|
-
HELP! Scrollpane wierdness
Help,
although this seems simple to me, it has proven to be puzzling.
I dare any of you, (yes I dare you) to solve this simple question.
I have made quite a few preloaders, of different types, they all work nicely,...UNTIL... I try to load them into a Scrollpane, then the preloader refuses to play (until the bulk of the main swf loads, like at about 95%), thus rendering the preloader pretty much useless, as a person waiting for that swf to be loaded into the scrollpane will be staring into a blank scrollpane until the main swf loads.
I am baffled, as the swf, if you access it directly it starts playing the preloader almost instantly (I would expect that)
DOES ANYONE HAVE KNOWLEDGE ABOUT THE MAGIC OF SCROLL PANES????
I'll buy you a cup of coffee.
THANKS
-
Hey Timmy!!!
Well I think it's just a referencing issue. How exactly are you loading the preloader into the pane?
-
I am loading the swf (with preloader)
First I have a swf file with a scrollpane.
I have buttons (with action scripts for each one)
the as for each button is as follows:
on (release) {
_root.sp_1.contentPath="http://www.mywebsite.com/barndoor.swf";
}
-------------------------------------
All other buttons (5) have the same script, with the swf file name being the only difference.
such as :
on (release) {
_root.sp_1.contentPath="http://www.mywebsite.com/kitchensink.swf";
}
--------------------------------------
As I said the preloader is part of the swf (scene1) then when finished loading, we of course go to scene 2 (main swf)
I am going crazy, have tried just about every variety of preloader,
Very frustrated! I THANK YOU FOR REPLYING!!!!!
ANY thoughts?
Thanks
-
Hey Timmy!!!
Okay, your best bet might be to try loading the swf into a new empty movieclip. Then have the content path equal the movieclip. You would be using a method called loadMovie(); to load it. Then in order to call different things you'll use _level0.paneName.spContentHolder.movieClip.whateve r else
That might work, not 100% sure.
-
 Originally Posted by walsher
Okay, your best bet might be to try loading the swf into a new empty movieclip. Then have the content path equal the movieclip. You would be using a method called loadMovie(); to load it. Then in order to call different things you'll use _level0.paneName.spContentHolder.movieClip.whateve r else
That might work, not 100% sure.
I am a little confused as to your possible solution. Any chance you could write the code and explain it, as I can't see it right this second.
Thanks Walsher.
-
Hey Timmy!!!
Okay, first off all create a new movie clip by hitting ctrl+F8. Name it whatever you would like. It will create a blank MC, meaning a mc with nothing inside of it. Next what you will need to do is set-up it's linkage name. You'll need to right the mc in hte library. Which should bring up a dialque box. In here click on the first check box, I believe its export to action script. This will also select the bottom one, which is fine. Then in the text box above it type whatever you want to call the emptyMC. Then click ok.
Then above all your code we'll add the content path to equal the empty mc.
code: scrollPaneName.contentPath = "whatever name you gave it, linkage name";
So that way the empty MC will always be inside the scroll pane and we don't have to change it.
Next will be loading our different swf files into it. We'll do this with your different buttons. So each button will load a new swf into the emptyMC.
code: on(release){
_level0.scrollPaneName.emptyMCName.unloadMovie()
_level0.scrollPaneName.emptyMCName.loadMovie("addr ess", " newName for your swf");
}
So everytime you check on a button it will take out whatever is loaded in the empty MC and then add the new one. Hopefully this makes sense.
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
|