-
Senior Member
Accessing a MC inside of a scrollPane
Is it possible to command a MC that is loaded into a scrollPane? For exemple: I have a button on stage and once I release it - I want the MC inside of the scrollPane to jump to a specific frame in that MC. Is it possible? And if it is - how???
Thank you!
Sometimes the most simple things are the most effective...
-
Flash Gordon
Originally Posted by flashHelp
scrollPaneInstance.content
Description
Read-only property; a reference to the content of the scroll pane. The value is undefined until the load begins.
so i.E.:
btn_mc.onRelease=function(){
scrollPaneInstance.content.gotoAndPlay(34);
}
My letters on the F1 key have faded, how are yours today?
-
Senior Member
But where do I put it? On the button AS so it will appear within the on(release) or elsewhere?
Is btn_mc=the instance name of my button?
Is "content" should appear as is or as a name of the MC that is inside the scrollpane (i.e. _root.mypane.content or _root.mypane.pane_mc)?
Thank you very much for your help!
Sometimes the most simple things are the most effective...
-
Flash Gordon
content is a fix expression.. a property of the scrollpane.. all described in the help.
you might put of course:
on(release){
_root.mypane.content.gotoAndPlay(x);
}
directly onto your button...
mypane.content is the _root of your loaded mc.
Did i make myself clearer now? (bloody krautish.. sry)
My letters on the F1 key have faded, how are yours today?
-
Senior Member
OK, you're talking about F8... I'm using FMX... Though I have F8 at my work, but on this project I'm working at home, with FMX. So... can it be done with MX?
BTW, maybe I'll ask a more simple question: after all what I need is on press of a button to make some sort of animation, sort of a transition, and at the end of this transition effect to load a movie (external file) into the scrollpane. There're a few buttons as there are a few movies, but the transition effect remains the same. So how can I load different movies after the same transition animation, no matter what button I press?
Once again, thank you!
Sometimes the most simple things are the most effective...
-
Flash Gordon
Oh sorry man...
ScrollPane.content
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX 2004.
No clue about MX.. should be in the help of that component..
My letters on the F1 key have faded, how are yours today?
-
Senior Member
Nothing about it in there... I guess that this option began in MX2004 (according to your quote), so there's nothing I can do about it...
How about my second question? How can I make the animation play on the press of the button and the content be loaded only after that animation ended?
Sometimes the most simple things are the most effective...
-
Flash Gordon
try the following:
Code:
for (var i in scrollPane_mc){
trace(i+") "+scrollPane_mc[i]);
}
and so on.. maybe you find the content..
(after the content has been loaded of course)
I found the labels in a calendar this way..
My letters on the F1 key have faded, how are yours today?
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
|