You get that undefined error coz you're referencing the stage from the  
loaded swf and there is no stage for it. Fallow this thread and you  
should solve your problem. 
http://www.actionscript.org/forums/showthread.php3?t=214023&page=2


On 14 Dec 2009, at 11:38, Robert Eriksson wrote:

> Hello!
>
> I don't know if this is the right forum for this question.
>
> I am trying to build a scrollbar with in Flash AS3.
>
> I load an external swf with a scrollbar and use this piece of code:
>
> Stage.addEventListener (MouseEvent.MOUSE_UP, stopScroll);
>
> When the external swf is loaded then the Stage gets undefined... I
> have noticed that Stage is very common and also loading external
> swfs :)
>
> How to combine these?
>
> Kind regards Robert Eriksson
>
> --
>
> You received this message because you are subscribed to the Google  
> Groups "SWFObject" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected] 
> .
> For more options, visit this group at 
> http://groups.google.com/group/swfobject?hl=en 
> .
>
>

--

You received this message because you are subscribed to the Google Groups 
"SWFObject" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/swfobject?hl=en.


Reply via email to