AS 1.0 Help, Switching Frame Rate.
Hello all,
I was wondering if there was a way to control the frame rate of an swf with action script 1.0. The company i work for is looking for a solution to this, they basically display custom flash ads for clients on flat screens and between these flash shows they want to add an extra ad which needs to run at a different frame rate than all the other ads. All the regular ads run at 12 fps and they want to have an ad come in and play at 24 fps and once the 24 fps ad is over have the rest of the ads play at 12 fps again. All these ads are driven by an action script 1.0 code which controls all the ads.
I hope i explained it good enough, i am just looking for a piece of code that will allow me to change the frame rate of a flash movie.
Unfortunately they still use AS 1.0 for now.
Thanks!
Ultrashock Forums > Flash > ActionScript
Posted on: 2008-05-29
View Complete Forum Thread with Replies
Sponsored Links:
Frame Switching
Hey guy whats up, I wanted to know if someone could help me out with a problem I'm having. I have a demo file, that I would like to send to you, and see if you can help me out with it, but I dont think I have permission to attach files, so I can email it to you if you can shoot me an email at shiftctr@hotmail.com
Basicly I have three buttons on stage, when ever someone clicks either of the three buttons, I want it to play a movie clip then goto the corresponding frame instance.
This will make allot more sence if you see the fla.
I want buttonOne to play frame "start" which has the movie clip in it, then goto frame "another"
buttonTwo to play frame "start" then goto frame yetAnother" and buttonThree to play frame "start" then goto frame "third"
I dont know if this is possible or not, if so, can you please help me out, other wise there is a long method of making it work, but it is going to take SO MUCH time to do.
Thank you.
View Replies !
View Related
Switching One Mc Frame When Clicking Another Mc
SET-UP:
I have row of buttons, all different movie clip symbols that will have transitional animations for their rollOver and rollOut events. They are contained in a single parent movie clip. They will eventually work as thumbnails that load swf files into a placeholder mc.
OBJECTIVE:
Each mc button has rollOver, rollOut, and release events, with each going to a specific frame in that movie clip's timeline. In addition, each mc button has an 'on' state, or corresponding frame in the timeline where the mc button is 'dormant'.
PROBLEMS:
1. When the on (release) event is called on a particular mc, it navigates to the indicated frame. However, the rollOver and rollOut events contradict the release. I have tried setting variables with 'if' conditions on each event, but it is not working correctly.
2. When one mc is selected, it should 'de-activate' the one that was last selected. e.g., when you click mc1, and mc2 was on it's dormant 'on' state, it should make mc1 go back to the frame in it's timeline where it will be active again.
Here's what I have that works navigationally. This script is attached to an mc with an instance name 'mc1' embedded within a parent clip.
on (release) {
_root.holder_mc.loadMovie("image1.swf", 0);
this.gotoAndPlay(3);
}
You can see it's targeting placeholder clip, which is now working fine. Frame 3 is the 'on' or activated dormant state and I want it to remain there without interference from the rollOver or rollOut. Then when 'mc2' or 'mc3', etc. is clicked, I want 'mc1' to return to frame 1 where it will be active again.
Eventually, the rollOver and rollOut animations will be more complex, but for now, I just have them going to a single frame with no fancy tweening animation.
Please help!! This seems like it should be built into Flash somehow, but I can't find anything on solving the problem!!
View Replies !
View Related
Switching Images Within A Frame
Hi, total newbie and totally freaked out, did the search on google and did the search in online help, no use.
Seeking to switch images in a frame (without switching the frame of course). Like DynamicText allows to switch text.
Basically have numbered images which I want to call to the screen from an arrayed index, yes have a good idea of scripting and none of Flash.
Any pointers would be highly appreciated.
View Replies !
View Related
Help Switching To Image Frame
I am in the process of customizing a template that a client of mine purchased from Template Monster.
The template can be seen at http://www.webdevgirl.com/mauimatt
I'm in the process of adding additional thumbnails to the top of the first screen because there were 3 blank ones. The topmost thumbnail you can see on the template is one I've added.
The problem I'm having is that although I have changed the actionscript to point to frame 6 of the allim symbol, it still jumps to the 5th frame of the allim symbol.
Here is the actionscript for image6
Code:
on (rollOver) {
this.gotoAndPlay("s1");
}
on (releaseOutside, rollOut) {
this.gotoAndPlay("s2");
}
on (release) {
if (_root.pic<>6 and _root.pic_animation == 1) {
_root.pic_animation = 0;
_root.pic = 6;
_parent._parent.pic.play();
}
}
I know it might be hard to assess just from this little blurb what's going on, but if someone wants the .fla file send me a pm and I'll email you the .fla. I'm hestitant to post it since it's a purchased template.
If anyone has any thoughts on the situation, that'd be great.
I wanted to add the following that I just found in the actionscript. It refers to the img instances themselves and I'm guessing it has something to do with the image switching.
Code:
onClipEvent (enterFrame) {
homeX = -_root._xmouse/2.15;
diffX = homeX-_x;
moveX = diffX/6;
_x += moveX;
}
The original code had moveX = diffX/5 and I changed to 6, but it hasn't made a difference. Just thought it might help.
View Replies !
View Related
Video Playback Frame Rate And Frame Selection?
I'd like to create a toggle control to play video at 1/8x, 1/4x, 1/2x, 1x, 2x, 4x and 8x the source frame rate. Is such a thing possible or does Flash only support real-time playback?
Also, is there a way to create -1 and +1 frame buttons for the position? The idea is to pause the video then use them to pick an individual frame to study.
View Replies !
View Related
Losing Instance Name When Switching To Another Frame
Hi guys
I got a weird one for you all.
I've created a character object which is being used in a game.
Theres 3 frames inside it, each containing a different animation.
So, frame 1 contains a walking animation, frame 2 contains a running
animation and frame 3 is dying. They're all labelled appropriately with frame labels so its pretty easy for me to access any one of them at any time.
Each animation consists of a body and a head which have been given the instance name "body" and "head" in all 3 frames.
The problem is, whenever I switch frames (eg: walking to running), and then try to access the head or body instance in the new frame, flash doesn't seem to recognise it for a fraction of a second! It throws a "TypeError: Error #1009: Cannot access a property or method of a null object reference."
Then for some reason, everything is OK and it carries on just fine, as intended, as if nothing has happened.
I've labelled and named everything appropriately, and I still can't figure out whats going on.
Can anyone shed any light on this? All help is appreciated. Thanks!
View Replies !
View Related
Playing A Banner At The Top Without Frame Switching Interupting It.
ok I have a flash site im working on and I have room at the top of it for a banner, well I want the banner to play constantly even when u click on a button that takes the scene to a diff frame I dont want the fact that it goes to a new frame make the banner animation swtch frames like lets say im on Frame 2 of the animation, I clcik a button that skips ahead to frame 100 I dont want the banner to go there I want it to play continuously. how do i do this?
View Replies !
View Related
[MX04] Sound Problem When Switching Frame
This could be pretty hard to explain. I'm making a RPG and got stuck on a sound problem.
I have 3 frames. Frame 1 is a map (where the character walks around). Frame 2 is also a map (but a diffrent place). Frame 3 is a battle scene. Frame 1 & 2 share the same music frame while the battle scene ha one of its own.
Screenshot
When ever a random battle occurs, the map music will stop, the scene changes and a diffrent music starts. After the battle you'll go back to the scene you were on before the battle and the normal music (name of sound is "mysound") will restart. However if the battle takes place on map 2 (frame 2) the music wont restart since it's shared with the first frame (see picture above). I have already thought of giving each frame its own music frame, but that wont do, since I dont want the music to restart if you WALK from map1 to map2.
So my question is: Is there any way to check if a certain music file is already playing (the thought was that if a music file is already playing it will just keep doing so, If not it will just restart the the music) or anyother sollutions?
Somebody gave me a tip to do something like this:
Frame1:
var snd = new Sound();
snd.attachSound("mysound");
_root.snd.start(0, 99);
Frame2:
if (mySoundObj1.IsPlaying())
//do nothing
if (!mySoundObj1.IsPlaying())
_root.snd.start(0, 99);
But this doesn't seem to work. Do any of you see any errors in this code or have a diffrent sollution?
View Replies !
View Related
[F8] Switching To A Random Frame After Thirty Seconds
I have a flash file with 3 stories (each it's separate keyframe)
I have a script that basically tells the flash on load, to play a random story from those 3.
..................................
frameLabel = new Array()
frameLabel[0] = "story1";
frameLabel[1] = "story2";
frameLabel[2] = "story3";
x = random(frameLabel.length);
_root.main_mc.gotoAndStop(frameLabel[x]);
stop();
..................................
QUESTION - How can i get the flash to keep playing a random selection of Story 1,2 or 3, for 30 seconds, without the page having to reload? So for after 30 seconds it has moved to a randomly selected story.
View Replies !
View Related
Delay Frame Rate Of Particular Frame
Hi,
Can someone teach me how to delay the frame rate of particular frame in an MC?
eg. an MC with 20 frames, frame rate is 30 fps. when it runs to frame 19, i'd like to make it run at 15 fps. and it goes back to normal (30 fps) again.
How can I do this?
Thanks for help!
View Replies !
View Related
Help With The Frame Rate
for ex. I have 2 movies and movie 1 load another movie 2
the movie 2 has 120 fps and movie 1 has 12 fps
the movie 2 doens't keep the 120 fps when it load to movie 1
any body know how can I fix this problem???
T.K.
View Replies !
View Related
Frame Rate
Just a quick question if it can be done.
Is it possible to make a symbol that is a movie clip which plays at one frame rate and put it in a movie clip that plays at a diffrent frame rate?
Thanks for all the help I have recieved from this web site and if anyone helps out this time thanks again.
Zane
View Replies !
View Related
Frame Rate PSA
I've just seen the last site with an fps of 12 that I can take... I know it sounds a little nit-picky but things look so much better at around 20 fps. As everyone knows, the default is 12, but I know a lot of people just as soon forget about the fps once they get going. So take a minute and change the default to 20 if your machine can handle it... It makes everything look a little bit more professional. Happy Flashing.
View Replies !
View Related
Frame Rate
Hi can someone please help me on information about the Frame Rate and what is a good number to use for smooth animation that is universally viewed ?
Thank you !
View Replies !
View Related
Frame Rate
Hello,
i have a flash web site which .swf file is 105Kb. I changed the fps from 12 frames per second to 20 frames per second. I thought the size of .swf would increase but it's the same. Is this normal?
And if it is not normal should it increase a lot?
I am using Flash MX.
Thanks,
Miguel
View Replies !
View Related
Frame Rate
This is really bugging me, but I've noticed that my frame rate of my flash movie drastically decreases when viewed in IE6. However, I primaily use Mozilla as my default browser, and in Mozilla it runs at the normal speed. (My speed is set for 30 fps) But in IE6 it is definately slower...However, I've noticed on other computers ALSO in IE6, the frame rate is the normal 30 fps. I was wondering if this is a common problem, and if there was any way to fix this. Replies would be greatly appreciated.
View Replies !
View Related
Frame Rate.......
what frame rate is better to use in flash, for a web site??
i ususally use 12 but i need to do a really fast fx in a new web site and i like how it see at 36fps, is there a any problem if i use 24 or 36 ??
View Replies !
View Related
FPS, Frame Rate...
Hey,
On the site i'm workin on I I made a movie clip, but after making it it moves way too slow, so I upped the frame rate to 35, and thats the speed I want it to move at... but I don't wana make my whole site based on the 35fps, id rather work with 12-15... as i'm more usto it and would be easier. Is there any way to speed up the frame rate of just the one movie clip?
And without shortning the frames in it, I don't wana go back and cut a few frames out of each tween.
Anything please would help,
Thanks in advance,
Ian
View Replies !
View Related
Frame Rate
I 've spoken with multiple flash animaters, and I never get the say answer. I was wondering what framerate I should be using if I the site has some animation
View Replies !
View Related
Frame Rate
does anyone know if you can dynamically change the frame rate in flash.?
I am loading one movie into another and I don't want it to inherit the frame rate of the first. Is there some way i can change the rate in actionscript?
cheers
View Replies !
View Related
Frame Rate
does anyone know if you can dynamically change the frame rate in flash.?
I am loading one movie into another and I don't want it to inherit the frame rate of the first. Is there some way i can change the rate in actionscript?
cheers
View Replies !
View Related
Frame Rate
I would like to hear your opinion regarding frame rates. I am trying to determine what rate to set a portfolio site at. I would like the animations smooth but yet I don't want it to take forever to load. Thoughts?
View Replies !
View Related
Frame Rate
ok.. i need to know if its possible to change the framerate of a .swf file. i no longer have the .fla file, and its a pain in the ass to do it all over again. all i need to do is double the rate from 20 fps to 40 fps. is this possible? or am i gonna have to make the whole thing over again?
thanx in advance
-Pyro
View Replies !
View Related
Frame Rate
i want to control frame rate of one movie from a loaded movie (with button) in Movie one. I mean can I control a fps of movie with external loaded movie. PLZ EXPLAIN
View Replies !
View Related
Frame Rate?
hey people, i was wondering if there is a way to increase the frame rate for individual scenes so that when you goto scene 2 which in turn is level 2 the actions would be speeded up to increase the difficulty?
cheers
View Replies !
View Related
Frame Rate
Few questions about frame rate.
1) how does frame correspond to the timeline? in other words, how does flash know (or keep track of) what has to be done within ONE frame?
2) and if it can't do everything then what? would code processing be split between frames? (im talking frame rate frames here, not animation frames)
3) or does all actionscript/animation happen regardless, and if it takes too long then the frame rate just drops and if thats the case, whats the point of having a frame rate, or is that just an upper limit?
4) Is it possible to keep track of the frame rate with actionscript, and if so to tie the processing of the actionscript code in with that frame rate tracking?
5) i've heard it said in the forums that double buffering is impossible with Flash, but i've also read in magazines, that certain Flash agencies say they use double buffering, so who's right? Is is possible or not?
thanks.
boombanguk
View Replies !
View Related
Best Frame Rate?
Hello,
I work on Flash cartoons for the web and they currently run at a frame rate of 12. I was wondering if that's a good place to stay for Frame rate, or if I should up it. If I SHOULD up it, then to what? I have had no problems with 15, but when I tried 24 for some reason I couldn't scrub through the timeline and hear my streaming audio. Any suggestions? Thanks!
View Replies !
View Related
Frame Rate?
I usually set the frame rate to 24 fps, but somewhere I saw that 30 fps or more is the common frame rate now days. What about if you have a video included?
View Replies !
View Related
Get The Frame Rate
I am trying to write a script that tweens a movie using action script in a set time period. To do this i need to know the frame rate of the movie.. How would i go about setting a var to the frame rate of the movie?
View Replies !
View Related
Frame Rate
please visit the following link to a Flash related article...
http://www.flashscript.biz/utilitie.../framerate.html
i don't know much about actionscript, i want my movieclip runs at 60fps and it is at frame 15. could you please tell me how do i change the code?
View Replies !
View Related
What Is The Best Frame Rate?
I've pretty much been doing everything at 20 fps for a couple years now but now I'm hearing conflicting opinions. One guy told me 15 was better, another told me it was 60.
Did something change recently in the flash player or are these guys idiots?
A: what is the *best fps for a code driven 2A style site?
B: what is the *best fps for an e-vite/animation?
* taking the over all browser market and state of the internet into consideration.
View Replies !
View Related
Frame Rate Help
My buddies and I were developing some flash websites this weekend and we noticed that in Internet Explorer things were playing slower then In netscape, mozilla, and in flash itself. What is the reason for this slower frame rate in Internet Explorer? Is there a way to fix this?
View Replies !
View Related
Frame Rate With A-C
Anly takers on setting frame rate with A-script
(frames 1 to 80 fps 12)(frames 20 to 40 want to increace to 20 fps)than go back to 12 fps 21 to 80.(f-MX)
come on big bogs show the pup how its done:
View Replies !
View Related
Frame Rate
Hi people,
I was wondering if it 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.
Help... please.... anyone.....
View Replies !
View Related
Frame-rate
Hi,
Does anyone know, how to get a movie's actual framerate, through actionscript?
I've been making something, in which I want to display the targeted framerate, and the actual one, on which the swf's running.
Qasim
View Replies !
View Related
Frame Rate
Hello all.
Strange problem with flash MX.
Worked on a movie with the framerate set at 12. After much work, decided it needed to be higher and changed it to 25 in the document settings. Visually the framerate has changed. However it has had no actual effect. The animation still jerks as if at 12. Tried redoing the tweens after i had changed the framerate, but this makes no differnce.
Any help appreciated.
View Replies !
View Related
Frame Rate
Can you change the frames per second in different scenes so the first scene can be 12 fps and the second scene is 14 fps?
If so, tell me how please!
View Replies !
View Related
Frame Rate Help
Hey guys. I have a question, my site is running really slow on older computers. By older I mean like a mac g4. PC's it runs fast. The site is very light I have preloaders, the tweens are short and mostly done in actionscript. I upped the frame rate all the way up to 120!! But now I feel like it's straining the processor and running even slower. Help.
View Replies !
View Related
Frame Rate
Can anyone tell me why my movie plays slower over the net than when played locally? I have my frame rate set to 40 and everything plays fine when viewed in Flash or when viewing the .swf. However once it is fully loaded in a browser, it plays more like the frame rate is set to its default 12.
This is how my movies are set up; I have a preloader .swf called "loader" which loads my main movie "skdzines.swf" into level 0. This is essentially just my navigation page which will load all other pages into it into a mc called "page". So once this page is loaded and plays through it loads "aboutMe.swf" into the empty mc "page". These are all set to the same framerate of 40.
I know you might not be able to tell how it is supposed to look, but could you take a look at it over the net and tell me if it seems slower than a framerate of 40?
www.whatnott.com/skdzines/index.html
Thanks
View Replies !
View Related
Frame Rate
i would like to run a movie within a project and have it move to the next frame every minute. but i would also like the main movie to play at 12 fps.
is there a way to have different fps within a movie
if not does anyone have any ideas on how i could do this
many thanx
View Replies !
View Related
|