ActionScript 2.0 :: Play Frame 30 If 30% Is Loaded Form The Rest Of The Movie
Jan 18, 2005I have an animation
[Code]....
Now the animation is loaded and i need to play frame 30 if 30% is loaded form the rest of the movie.
I have an animation
[Code]....
Now the animation is loaded and i need to play frame 30 if 30% is loaded form the rest of the movie.
I have a preloader that is about 150kB in size and it doesn't load completely until about half of my 6MB movie (yet to be optimized) loads. So by the time my preloader progress graphics come up, 50% of the whole 6MB movie is already loaded. Moreover, it's blank until 50% of the movie is loaded (the preloader just seems to wait until that point before it's graphics and actions begin)?
I have the pre-Loader in the first frame of the movie and the movie begins in the second frame. I tried using separate scenes (a preloader scene preceding a scene for the rest of the movie) and that exhibited identical behavior.
Question: Is there any way I can force my preloader to completely load and run--load progress graphics and all--before the rest of the movie starts loading?
(see code below just in case).
Also - I'm using greensock tweenlite in the preloader, would that make a difference?
PS: When I say movie, it's actually a website
PSS: I'm using MovieClip(root).loaderInfo.bytesLoaded and bytesTotal etc...
Code:
import com.greensock.*;
const ROTATION_INCREMENT1:Number = 0.25;
const ROTATION_INCREMENT2:Number = -.125;
[Code]....
i want to load and play a swf file form a specific frame number
So when a swf finishes i want to load another swf file from frame number 6430.
Is it possible or not
I have my flash on multiple scenes, and would like to play an animation when clicking on the navigation button before switching to a different scene.
I'm halfway to accomplishing this.
Here is what i used
Code:
_root.gotoAndPlay("changepage1");
_root.onEnterFrame=function(){
if(this._currentframe=="changepage2"){
[Code]....
The above code is on a blank keyframe. Changepage1 is the start of the animation and Changepage2 is the end of the animation.
Upon clicking the navigation button it plays the above scenes.
However it doesn't change scenes to scene "Home2".
I have created a main swf file which holds a movie container which other swf's load into. One of the sections has a form in it. When I preview this section on its own the form works, but when I preview through the main swf file (or online) the text fields cannot be typed into. How can I fix this? Files can be downloaded from;[url]....
View 6 Replieshow to code this on a button
onrelease
gotoandplay(10); // i need delay here before activating the next code below//
gotoandplay(80);
the trick is.. i want the button to play frame 10 to 40 then after playing from frame 10-40 the movie stops and then play frame 80 to 100
I am creating a site, and it has a animation that it has to play before loading the next section. What I cant figure out is what function I need to create so that when a user clicks on the vision button it will play the frame after stop(); which will close that section, then have it load the frame for the section that the person clicked on. The only way I can think of doing this is creating 3 different close animations for the three sections. But I figure there has to be a way to have it play the one close animation and then goto the frame which is the portfolio section or vision section (depending on the button clicked).
View 1 RepliesI am creating a site, and it has a animation that it has to play before loading the next section. What I cant figure out is what function I need to create so that when a user clicks on the vision button it will play the frame after stop(); which will close that section, then have it load the frame for the section that the person clicked on. The only way I can think of doing this is creating 3 different close animations for the three sections. But I figure there has to be a way to have it play the one close animation and then goto the frame which is the portfolio section or vision section (depending on the button clicked).
View 1 RepliesI followed this tutorial for a form mailerHowever when I try to load this from my main swf into a movie clip holder, it no longer works. It only wants to work by itself, im a novice at flash/actionscript but im wondering if this is causing the problem by trying to get to the root of my main movie instead of the actual mailer.swf?
onClipEvent(data){
_root.nextFrame();
}
to play only once and then stop but the camera flash to keep looping.The sound is on a separate layer, but whenever I put the 'stop' feature in the ActionScript, it stops the WHOLE THING, so the camera flashes only once.Again, I want the camera flash to repeat, but the click sound to play only once.
View 1 Repliesit possible to set the frame rate of an externally loaded movie to a different frame rate than the movie it is embedded within. I basically have a flash site that loads flash movies using loadMovie command, however, the frame is lost within these movies and simply adopts the main site frame rate.
View 2 RepliesI have a flex repeater for an accordion inside a TitleWindow that is quite slow, I've already set recycleChildren to true, which has helped, but it's still slow on the first load and causes the animation to stutter when I open the TitleWindow.
The repeater is just one part of what's visible in the TitleWindow, what I would like to do is have the repeater load after the rest of the content in the TitleWindow so the animation of the TitleWindow being opened doesn't stutter (the main problem).
I'm in the middle of optimising a site, to which end I've constructed a preloader / welcome screen. My problem is that although the preloader apparently works (as in the bar moves and a numerical "percentage loaded" value is displayed), it only appears once the rest of the site is 80-90% loaded, i.e defeating its purpose.....?
View 2 RepliesI am making a flipping page book in flash and have had to create sections in different movies because it kept crashing when i tried to have all the pages in the same movie. I have 3 movies 'page flip4', 'pageflip4-2', and 'page flip 4-3' . I have used the code below to go (flip bacwards) from 'page flip4-2' to the frame label ''backflip'' in 'page flip4'..This works fine
Code:
on (press) {
loadMovieNum("page flip4.swf", 1);
}
[Code].....
I have a simple landing page here: www.epistage.sgIt simply reFUSES to play unless the user refreshes their browser....what to do?? My other flash sites have no problem and execute the functions I order them to as soon as its loaded?
View 2 RepliesI'm struggling to get the form to to go to a new frame once the form button has been submitted. [URL]Using ActionScript 2.0 The submit button is at this following path:
Scene -> txt8 (MC) -> t8.1 (MC)
The button has the following code on:
Code:
on (release) {
share_form.loadVariables("pay_per_click.php", "POST");
}
The onClipEvent(data) is held on the movieClip txt8, as this is the clip that holds the all the form components.
Code:
onClipEvent(data){
_root.nextFrame();
}
The next from frame that i'm asking it to go to, is directly after the txt8 MovieClip. Both the the txt8 MovieClip and NextFrame have stop(); code on them.The form submits all the info into the database, I just can't get it to load the next frame.
So i'm making a game (yah like no one else is xD) and in the game a movie clip moves across the screen. I want to make flash play the next frame once the movie clip leaves the stage. So like when the guy finishes moving across it would go to the next frame an say "you win" Is there anyway to do this? Im using actionscript 2, and flash cs3.and also, please dont tell me that i need to do this or that, gimme the code too.
View 1 RepliesI am using Flash CS4 and i have made some short movie clips. I want one of them to play on frame 24 once and then the next on frame 48 ect. How would i do this?
View 3 RepliesHow can u play a movie clip until a certain frame.
Lets say I have some buttons on the main stage. There is a MC on stage, let's say 100 frames long, which is stopped on frame one.
If you click button1 it plays the clip until it reaches frame 50 of the MC.If you then click button2 it plays from frame 50 until it gets to frame 90.
If you then press button1 again it plays till the end, loops, and comes to a hault on frame 10.
I built a pretty simple Flash movie for a client and put a preloader on frame 1. The preloader works fine then the movie plays. What is happening is if you go to another page on the site and then go back to the home page all you see is the preloader bar fully loaded but the movie doesn't play. You have to refresh the page for the swf to play again. It is doing it to me in Firefox but not IE 8 and it is doing it in IE8 on my clients computer...
Here is the code.
stop();
this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgress);this.loaderInfo.addEventListener(Event.COMPLETE, onComplete);
function onProgress(e:ProgressEvent):void{ var loaded:Number = e.target.bytesLoaded; var total:Number = e.target.bytesTotal; var pct:Number = loaded/total; loader_mc.scaleX = pct; loaded_txt.text="Loading..." + (Math.round(pct * 100)) + "%";}function onComplete(e:Event):void { gotoAndPlay(2);}
Here is a screen cap of what is happening. After you go back to the homepage all you see is the rpeloader bar fully loaded without the load text.
I've got loadMovie working and it loads a movie clip that has a stop(); on the first frame.At a certain frame within my main movie, I want to tell the loaded clip to play();My symbol is called "load1" without the quotes of course. It's an empty MC and on frame two my movie gets loaded into it. On frame three after a few seconds I have load1.play(); which I figure should work, but it doesn't!
View 1 RepliesI have a slideshow done in Flash. I have a main movie that has a slide on each frame of the movie, with navigation buttons. On each frame, I have AS2 that loads a different SWF per frame. The AS I'm using is:
loadMovie("Data/2.swf", "container");
stop();
The number "2" goes up/down based on the slide. I want a hard-wired number versus the frame number because my client is deleting/adding slides and it's easier to keep track of it hard-wired.
Right now, each slide I'm loading has its own play/pause toggle button that is this AS2:
on(release){
play();
}
So what I'd like to do is put the play/pause toggle in the main SWF (and put a graphic footer under all the buttons). So how do I tell the play/pause buttons to play/pause the MC that is containing the slide SWFs?
I have a main movie(main.swf). I've loaded a movie into it(loaded.swf). I need the loaded movie to finish playing once a button is clicked in the main.swf. So basically i need something like
when a button in the main.swf is pressed, finish playing "loaded.swf"
im importing a movie with Code:loadMovie("test.swf","content")were content is a little pink box with instance name contentnow my question is , how do i choose which frame the imported movie is on.i want to be abel to go to a certain fram in it and stoppreferably with no code in the imported movie if its possible
View 4 RepliesI am using a button (btn1) to attach a movie (hole01). The movie attaches fine but I can't seem to get it to go to the second frame of the attached movie and play.
[Code]...
I have a car that is a movieclip with 2 frames looping in scene 1 and I want the car to switch to another movieclip when I press the space button and go back to the oroginal car clip when space is released and if possible add a sound when space is pressed.
View 4 RepliesI've set a list of movies symbols playing at different time line individually and put them all together in 1 frame on the main timeline. However, i'm thinking of playing those symbols 1 at a time without changing the main timeline. Each of those symbols has the stop(); on them. However, it doesn't seem to work as i thought it would be. Is there anyway i could create a button, and while clicking on the button itself, it plays the 1st symbol and stop before playing the next symbol ? Sorry, i haven't put up any codes yet. A newbie here doing his final major project.
View 3 RepliesI have a menu bar at the top and and when i click the different buttons i want to play different movies from the start i.e different pages, and where i used to just type goto and play etc
I have the impression that i cant type straight on the button layer anymore so I need to type the code on an actions layer (right or wrong?)
I think this is nearly the code i need but what do i type to get it to go to a particular movie and frame?[code]...
I have a car that is a movieclip with 2 frames looping in scene 1 and I want the car to switch to another movieclip when I press the space button and go back to the oroginal car clip when space is released and if possible add a sound when space is pressed.
View 1 RepliesLets say I have a button. What I want it to do is to tell ANY movie clip that is on stage at the moment to play a certain frame.
View 10 Replies