View Full Version : Movie Clip Ready2Go Question
PaulD
October 8th, 2003, 12:33 AM
Hello all
Having trouble deciding the best way to load a Movie Clip.
Basically I have my MAIN PG which has a button that loads a EXTERNAL SWF. Within my EXTERNAL SWF is a MOVIE CLIP that I want to load when a BUTTON is clicked. But there can be no delay or preloading involved. The Movie Clip must be already to go.
Just wondering what my best method would be. My first time uploading flash onto the web
*See attached example*
PaulD
October 8th, 2003, 12:34 AM
*another example*
The_Vulcan
October 8th, 2003, 12:47 AM
If you dont want to wait for it to load or a preloader then why load it ?
can't you just have the movie on the stage where you want it, with its first frame set to alpha 0 then on button press gotoplay(2) where you have your alpha set to 100
If you must load it, then put your load code in the first frame of the movie. like above have the movies first frame hidden, then on button press play....
or if you have a background say level2, load the movie into level1 so that it is hidden, and when loaded remove it.
then have your button load movie into level3, as it has already been loaded it should show up straight away.
dunno if this helps, perhaps I lost the plot.
PaulD
October 8th, 2003, 01:00 AM
@ bamb0006
for starters you haven't lost the plot, in fact you are far from losing it.
I do have a graphic that is acting as a bg. Maybe if I load the movie into level1 my movie will load behind the bg then I can call it with my buttons and tell it to go to level2, level3, like you suggested. That seems like a logical way.
There will be a transitition between three different movie clips so if I do it the gotoAndPlay way then I will have to set up a variable which is prob the same as loading the movies into levels/depths.
I will have a go at loading using depths, if that does not work then I guess I will have to load as a variable.
maybe Im the one losing the plot ;)
btw I live in Adelaide too :)
PaulD
October 8th, 2003, 01:09 AM
I'm an idiot!
I put a stop in frame 01 with blank frames. Then in frame 02 I put my animation. On my button I put a mc01.gotoAndPlay(2); & it works perfectly. The movie clip is already on the stage which means regardless of whether or not it has a stop(); in frame 01 it should load the movie along with the preloaded external swf.
Thanks heaps bamb0006, my brain needs to wake up...it's the cold weather we are having today
The_Vulcan
October 8th, 2003, 01:11 AM
It's a small world
The_Vulcan
October 8th, 2003, 01:19 AM
Thats ok, half the time when I post and think I am at a loss, its cause I have done something stupid like spelt a variable wrong...
What are you working on if you don't mind me asking.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.