ActionScript 2.0 :: Loading SWF Just After Movement Of MC Finished
May 18, 2005I am using the a menu like the attached. My question is: How can I make a SWF to load only after the movement of the buttons is finished?
View 2 RepliesI am using the a menu like the attached. My question is: How can I make a SWF to load only after the movement of the buttons is finished?
View 2 Repliesim using the a menu like the attached. My question is: How can i make a SWF to load only after the movement of the buttons is finished?
View 2 RepliesI have a movieclip clip that plays when the movie starts, the movieclip is a visual assets that show's that the application is loading some information but it's not showing any loading progress, just playing while the assets are loaded.I created a for loop that will load the assets using a simple loader, and then when the object is loaded the application push the object to an array.Problem is that when the loading starts all the animation that i have on screen stops until the loading is finished.The whole point is that the animation will play while it's loading.
View 10 RepliesI have set up a nice video site for a client. I have a sub menu where you can select swf files. Each swf has an FLV attatched to it. I prefered this method over XML for various reasons.In any case I would like after the swf has loaded, and the flv COMPLETES the entire movie, to automatically go to the next swf file and start that flv. I've tried many codes with no luck.
View 2 RepliesThe following code loades text into a textfield the problem I'm having is the routine at the bottom runs before the text loads and the scrollbar disappears even when there's enough text to overflow the textfield. How would I make sure the text has finished loading before running the code that enables/disables the scrollbar?
mainText.htmlText = main[1];textFieldLength = mainText.text.length; if(mainText.length > textFieldLength){ mainScroll._visible = true; }else{ mainScroll._visible = false; }
I am a flash newbie, how can I get the flash to start playing before it is finished loading on a website? I embedded a FLV file into a flash and I'm going to export it as a SWF, I want it to start playing the movie before it's done loading so people don't think that it's not working.
View 2 RepliesI have some code where I am loading a few hundred images into an array in Flash. I am using XML to pass in the list then a Loader for each entry like this -
for (var i:int = 0; i < myXML.item.length(); i++) {
imgloaders[i] = new Loader();
imgloaders[i].load(new URLRequest(myXML.item[i].imageLocation));[code]...
I want to perform some action once all of these have finished loading. The only way I can think of is to increment a count each time one finishes and have a Timer that checks if the count has reached the number of images I am loading.
i have an animation with a series of colored squares appearing and disappearing from the stage [URL]..except that the squares appear and disappear). Each of the squares fade in and out using Actionscript, with a custom method that animates its alpha property over time. I want to pick randomly every few seconds a square, to make it disappear and put a new one in its place, and my code is more or less like this:
[Code]...
How do i check whether an external SWF which is loaded onto a movieclip sub_mc.loadMovie("introduction_1.swf")) has finished loading or not. If the loading is done, then an animatoin inside a movieclip will be played, else the preloader continues
View 1 Replieshow do i tell html that flash is finished loading its content... i mean once flash loads 100% i want to inform html that its loadded..
View 3 Replieshow do i tell html that flash is finished loading its content... i mean once flash loads 100% i want to inform html that its loadded.
View 2 Replieshow to automatically load external movie clips so that they load and play after the previous movie clip has finished. I have attached a simplified version of the files that I am working with.The files are set up as so: Main.fla : this is the main file in which all of the other movie clips are loaded into.Movie1.fla, Movie2.fla, Movie3.fla : These movies need to load and play after the previous movie has finished playing.
View 1 RepliesIs it possible to set a listener or something like it to run a function once the flash movie itself has finished loading?So something like:When this flash movie has finished loading, activate function.Btw. I'm not trying to do this with a swf file loaded into another flash movie. I need this to be done by the movie once it self has finished loading.
View 1 Repliesi am loading some external swfs with the bulkloader. The strange thing, they start playing in the background ( i can hear the sound) without even having added them to the stage.
Here is my code:
ActionScript Code:
public function init():void
{
bLoader = new BulkLoader("bLoader");
[Code].....
I'm using the same code I always use for preloading another swf but it's not working this time. The problem this time is that when the loading bar gets to 16% every time you can hear the movie I'm loading playing in the background. I can just add a stop to the first frame of the movie I'm loading ("trial_1.swf") but how do I tell it to go to the second frame once it has loaded?
Here's my code:
var myrequest:URLRequest=new URLRequest ("trial_1.swf");
var myloader:Loader = new Loader();
myloader.load(myrequest);
[code]....
I have a loader using the following [code]...
But when the loader reaches about 40 to 50 % the movie starts to play without the loader reaching 100%.
All the code is done in frame1 in the Loader.swf
I would like to make transitions similar to ones used in [URL]. I understand the tutorial on transitions and loading content but I am having trouble with the actionscripted movement.
View 1 RepliesI've been playing with carousel code, and was wondering how to change it from circular animation (carousel) to left/right linear (conveyer belt) style animation, how to change the mover code and 't.angle = i * ((Math.PI*2)/numOfItems);'
[Code]....
I have a mc (fStrip) which looks like a piece of filmstrip with thumbnail images in it. I want this mc to move when the users mouse is positioned over it, but I only want it to move only along it's x-axis and in a direction opposite that of the mouse. And I want it to move or flow smoothly.
I've been trying to figure this out (see my lame attempt below) but without much luck.
onClipEvent (mouseMove) {
buffer=20 //movement buffer
mousePos=_root.fStrip._xmouse //store mouse position
if (mymouse!=_root.fStrip._xmouse){ //if the mouse has moved
[Code].....
I wish to get the effect of ants scuttering across the screen or up a tree, I have not decided which direction yet. I started with the tutorial code for the snow effect from kirupa, and changed it around to fit the little vector ant I created. The way I have it now looks pretty good, but the movement is a little too fluid. They obviously move in sinusoidal paths bc the code tells them to. I have about 20 copies of the main obj, and they're all a little different in size and specs (speed, transparency, etc) but what I was wondering was if there is any way I can change the code to make it a little more hectic, or erratic, not so fluid. If there is no way of doing so, it looks pretty good right now. If there is, however, I think it could look awesome. here's the code I'm using for the object.
onClipEvent (load) {
//stage
movieWidth = 850;
movieHeight = 50;
[code]....
how to get the camera to move with a character? At the minute he just moves off screen when i press right rather than the camera following him.
View 3 RepliesI have a Mogli (Junglebook-like) Character that i got to move with the arrow keys on the keyboard.
I want the character to jump (so for example , he must while moving to the right of the "gamearea" , you must be able to hit a key (say for example the "control" key ) and then the character must jump ( go up ) and as soon as the key is released he must obviously come down.
And also how do one set movement speed on any particular movement.
_root.object_1.sunny.gotoAndPlay("walk"); _root.object_1.sunny.gotoAndPlay("laugh");Hi, I code the following. But it jumps straight to the seconf mc "laugh". Is there nbo way of playing walk and on finishing playing laugh.
View 4 RepliesI'm working on a project where a SWF will play (as sort of a splash), followed by JS. After the video plays, the navigation and content will appear, and the video will fade out. I'm just wondering what would be the best way to accomplish this? Play the video first and then load everything via ajax behind the scenes? The goal is to be as seamless as possible and I am having a flash asset provided to me by the client.
View 1 RepliesNeed to make a photo gallery in flash. Not sure how to put the .swf into dreamweaver when finished.
View 2 RepliesI have a movie that plays a series of movie clips, it will play a clip, then, once the clip has finished, it will move to frame 2, where it will play another clip, and so on
Is there any way for the root timeline to now when a child movie clip has completed. I currently have the child clips do _root.nextframe, but i would prefer to have all control within the root
A.swf has an empty_mc on it's stage. Loading into the empty_mc is B.swf.B.swf plays C.flv. After the C.flv is done playing I want B.swf to tell A.swf to go to frame 3
View 2 Repliesif someone decompiles my code, do they see my comments?
View 1 RepliesIm using an instance of the FLV PLayback component, how can I find out if the video is finished so I can then do another function?
View 2 RepliesI'm using Actionscript 2 for this interactive.This is what I'm trying to get a button to do:on release:check "mainmovie1" mc on main timeline.If "mainmovie1" mc's timeline is at frame labeled "finished" go to label "1.0" on main timeline If not, go to label "fake_1.0" main timeline
View 2 Replies