-
accesing swf loaded into scrollpane from main movie
Hi
I have a scrollpane in my main movie, and when I press a button it loads a SWF (sample.swf)into the scrollpane (or better said, into the MC that is scrolled by the scrollpane). That's OK
However, what I want to achieve is to play frame 2 of "sample.swf" from a button in my main movie. Is that possible? I'll write some of the non-working code that I've tried in my button:
_root.mypane.gotoAndStop(2);
_root.mypane.contentPath.gotoAndStop(2);
_root.mypaneMC.gotoAndStop(2);
...
Any help would be appreciated, I don't want to use different SWFs to get what I want.
Regards
(I'm using mx 2004)
-
actually, you have to use the .content property of the scrollPane.
code: scrollPane.content.gotoAndStop(2);
contentPath is used to set the path not to get it.
-
It works!
Thank you very much!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|