Flash CS3 - Flash CS4

Free tutorials and scripts for all.
Actionscript 3.0

problema listener su mc creati runtime

This is a discussion on problema listener su mc creati runtime within the Actionscript 3.0 avanzato forums, part of the Flash CS3 generale category; Salve! ho come al solito un problema... Ho questa funzione che viene richiamata per creare un nuovo mc come contenitore ...


Go Back   Forum Flash CS3 Flash CS4 > Flash CS3 e Actionscript 3.0 > Flash CS3 generale > Actionscript 3.0 avanzato

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-10-08, 17:29
Member
 
Join Date: Jan 1970
Posts: 34
Rep Power: 0
superkent is on a distinguished road
Angry problema listener su mc creati runtime

Salve!
ho come al solito un problema...
Ho questa funzione che viene richiamata per creare un nuovo mc come contenitore per un immagine.
Il codice funziona alla perfezione ma..... i listener non funzionano!!! è incredibile... anche se faccio un trace dentro overThumb o outThumb non restituisce nulla!!
Code:
public function loadNext(img:Number):void {
	var thumb_mc:MovieClip = new MovieClip;
	thumb_mc.addChild(thumbArch_array[img]);
	//posiziono il mc
	thumb_mc.y=126*img;
	thumb_mc.buttonMode=true;
	thumb_mc.useHandCursor=false;
	// i listener non funzionano!!!
	thumb_mc.addEventListener(MouseEvent.MOUSE_OVER, overThumb);
	thumb_mc.addEventListener(MouseEvent.MOUSE_OUT, outThumb);
	// attacco il mc al container
	pagina_mc.immagini_mc.addChild(thumb_mc);
ho pensato che è probabile che sia dovuto a un mouseChildren=false ma non sono applicati a degli oggetti sovrastanti a quei mc...
__________________
iMac 20" 2.16Ghz Intel Core 2 Duo, 2GB SDRAM, Wireless+Bluetooth, 250GB HD + 1.5TB, mouse+keyboard Wireless
_MAC_

Last edited by superkent; 02-10-08 at 17:31..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #2 (permalink)  
Old 03-10-08, 13:58
Junior Member
 
Join Date: Aug 2008
Posts: 17
Rep Power: 0
menhir is on a distinguished road
Re: problema listener su mc creati runtime

ciao non sono un grande esperto per cui..
ma mi sa che devi prima fare addChild e poi dopo attacchi il LIstener..
ciao fammi sapere se e' cosi'..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #3 (permalink)  
Old 03-10-08, 16:05
Member
 
Join Date: Feb 2008
Location: Modena
Posts: 78
Rep Power: 1
bulga is on a distinguished road
Re: problema listener su mc creati runtime

se non metti addChild può darsi che ti restuisca il contenuto del movieclip
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #4 (permalink)  
Old 03-10-08, 18:12
Member
 
Join Date: Jan 1970
Posts: 34
Rep Power: 0
superkent is on a distinguished road
Re: problema listener su mc creati runtime

no... ho provato a spostarli ma è uguale.. invece ho scoperto cosa provoca questo problema!!
Questi mc creati runtime sono attaccati dentro a un movieclip mascherato (sulla timeline)... e sopra a questa maschera c'è un movieclip con un'ombra interna (un mc con applicato un filter)
Questo insieme (mask+filter) inibisce i MouseEvent!!! incredibile!! ho provato a togliere il mc con l'ombra e funziona tutto!!!
sapete aggirare il problema?? ho già provato a mettere mask_mc.mouseChildren=true ma non va...
__________________
iMac 20" 2.16Ghz Intel Core 2 Duo, 2GB SDRAM, Wireless+Bluetooth, 250GB HD + 1.5TB, mouse+keyboard Wireless
_MAC_
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #5 (permalink)  
Old 06-10-08, 18:24
Member
 
Join Date: Jan 1970
Posts: 34
Rep Power: 0
superkent is on a distinguished road
Re: problema listener su mc creati runtime

a nessuno è già capitato?? non sapete proprio aiutarmi??
__________________
iMac 20" 2.16Ghz Intel Core 2 Duo, 2GB SDRAM, Wireless+Bluetooth, 250GB HD + 1.5TB, mouse+keyboard Wireless
_MAC_
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Flash Multi Gallery
  #6 (permalink)  
Old 07-10-08, 11:36
Junior Member
 
Join Date: Aug 2008
Posts: 17
Rep Power: 0
menhir is on a distinguished road
Re: problema listener su mc creati runtime

al limite se non ci salti fuori crea dei bottoni "invisibili" e li piazzi proprio sopra il livello mascherato...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads

Thread Thread Starter Forum Replies Last Post
Actionscript 3 listener per frame menhir Actionscript 3.0 base 2 07-10-08 11:41
Actionscript 3 menu runtime Ale_88 Actionscript 3.0 avanzato 0 14-06-08 09:48
Cambiare un movie clip a runtime AmiFlash Actionscript 3.0 base 3 20-03-08 13:02
URL DYNAMIC importa condivisione runtime loris.dassie Flash CS3 generale 0 21-02-08 11:44
export for runtime sharing tia Actionscript 3.0 base 4 03-08-07 10:39


All times are GMT. The time now is 08:43.


Powered by vBulletin versione 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC4
Forum SiteMap


FlepStudio
by Filippo Lughi
P.IVA 03605860406