ActionScript 2.0 :: Adjusting Frame Rate Of Imported Movie

Apr 8, 2003

How to adjust the frame rate of an imported movie so that it would run in its intended fps rate, and not at the same rate as the presentation in which is importing it. (To be more specific, my main presentation runs at 1 fps, but the intro movie I want to add runs at 20 fps). Anyway, along my travels, someone pointed me towards the code at [URL]. I have since downloaded it and tried to get it to work. As it turns out, I know so little about flash and actionscript programming that I am unable to get it to work properly!

According to the comments in the code, it is executed by calling the fPlayControl() function, which has the following syntax:
_levelN.fPlayControl(_root.mcMovie,nFPS)
where (quoting now)
"'N' is the level number of where this swf is loaded and 'mcMovie' is a movie clip on the _root timeline of the movie that is calling this function and 'nFPS' is a number between 1 and 120."

I don't even know what levels are! Are they layers? Thus, the first layer is level 0? Then the next layer is level 1? Next, how do I give an imported movie a name so that I can call this function with the movie's name as parameter? I tried importing a movie into the library, and then giving it a name, but I still couldn't get the bloody thing to work.

My steps to attempt to get this to work: I opened the play_control.fla file, and chose "Import to library..." I then selected my little intro movie, and then I brought up the library, and renamed it. I also choose the "Export for ActionScript" option, which automatically highlighted one or two other options. Then I added this one line after all the other ActionScript code:
_level0.fPlayControl(_root.myintro,1);
Anyway, after doing that, nothing came up. Then I added another layer and inserted the intro movie from the library into it and played the movie again. This time the intro played, but it zoomed along (at I'm assuming 120 fps, which is what the speed is set to in the demonstration file I downloaded). Thus, it still wasn't working.

View 4 Replies


Similar Posts:


ActionScript 2.0 :: Set The Frame Rate Of An Externally Loaded Movie To A Different Frame Rate Than The Movie It Is Embedded Within?

Sep 21, 2004

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.

View 2 Replies

ActionScript 2.0 :: Set The Frame Rate Of An Externally Loaded Movie To A Different Frame Rate?

Sep 21, 2004

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 Replies

Media Server :: Webcam Frame Rate, NetStream Frame Rate, Flv Framerate?

Apr 25, 2010

I'm recording Webcam to FMS 3.5 but when I play the recorded video from FMS it's choppy. I have set the camera.fps to 30 but when I trace out the currentFPS for camera it's variable and usually falls between 20 and 30. However when I play the recorded video, netStream's currentFPS returns a lower value, something closer to 10. So my question is, 1) why currentFPS of netStream is not the same as Camera's? 2) What's the actual frame rate of the recorded video (not the netStream, but FLV's)?

View 2 Replies

ActionScript 2.0 :: Change The Frame Rate Of A Movie?

Oct 16, 2003

Is it at all possible to change the frame rate of a movie with AS?

View 3 Replies

ActionScript 2.0 :: Faster Frame Rate For Movie Clip

Dec 10, 2011

I'm trying to find a way to make a certain movie clip run at a faster frame rate than the main timeline. I've searched around a lot and only found ways to make it go at a slower frame rate (using the FPS Controller Component).

View 4 Replies

Professional :: Frame Rate Goes Down When Movie Isn't Visible, Can Stop It

Mar 4, 2011

I understand that in order to make it consume less CPU cycles flash player forces the player to only execute at 2fps (or some other ridiculously low amount) when the swf is no longer in focus (or even if it's still "in focus" but not being rendered to the screen by virtue of being in a section of the browser window that's scrolled offscreen.) Is there any possible way to change this? I have a 3D engine that needs to keep the FR up.

View 7 Replies

Flash :: Fla - Cs5 - Change Frame Rate Of Only Movie Clip?

Jan 22, 2011

I am building a small flash application. In my application I've inserted an fla video. the flv video's length when I open it in vlc player is 16 seconds (after I edit the speed of the video in an external program and then converted it back to fla). When I open it in flash cs 5, the video's length is back to 90 seconds. I guess it's got something to do with the frame rate of my flash project. I'd like to be able to change the frame rate of only the movie clip containing that video, and not of the entire stage. How is that possible?

View 1 Replies

ActionScript 2.0 :: Increase The Frame Rate Of The Entire Movie?

Sep 5, 2009

I'm trying to increase the speed of a single movieclip. The frame rate of my movie is 12, and I don't want to increase the frame rate of the entire movie just to speed up one movieclip.I've seen tutorials all over the web, and all the actionscript controlled speeds of movieclip tutorials are for more interactive animations, such as mouse movements and rollovers.I'm looking for something that simply plays a movieclip faster on the timeline and I'm sure there is a simple code for this.

View 2 Replies

ActionScript 2.0 :: How To Control Frame Rate Of Flash Movie

May 7, 2011

I want to know that how can I control frame rate of my flash movie from xml file or from AS2 code.

View 2 Replies

ActionScript 3.0 :: Gradual Acceleration Of Movie Clip Frame Rate?

Dec 29, 2011

I'm new to AS3 and desperately trying to figure out how to smoothly accelerate the frame rate of a movie clip (let's say from 0 to 24 over the course of a second or two) as a result of rolling over a button.  I've been working on it for about a week just to get this far, and now I've hit a wall.  Here's my code thus far:
 
stop();
var cf:int;
var fr:int = 1;[code]....
 
Basically, right now it starts at a very slow frame rate and stays there, never getting up to 24 fps.  The only two objects in the scene are button1 and box1.  The desired functionality is that when you hover over button1, the box1 movie clip starts playing slowly then accelerates up to 24 fps and continues playing at that rate until you roll out of button1. 

View 4 Replies

ActionScript 2.0 :: Change Control Movie Clip 's Frame Rate

Feb 12, 2009

I was wondering if it is possible to change the frame rate per seceond (fps) of a movie clip while the movie is playing.

View 2 Replies

ActionScript 2.0 :: Detect Frame Rate Of Flash Movie At Runtime?

Feb 28, 2007

Does anyone know how to trace out the frame rate that a swf is currently playing at?I've tried creating two date objects on adjacent frames, running the getTime() method on each and subtracting the difference but it seems to be the same regardless of what I set the movie's frame rate to in the property inspector...I am basically trying to monitor the performance of an animation at runtime and make adjustments on the fly based on how fast or slow the movie is playing.

View 4 Replies

ActionScript 2.0 :: Attempting To Advance A Movie By Time Not By Frame Rate?

Sep 3, 2004

I'm attempting to advance a movie by time not by frame rate so, on frame 34 I have

Code:
function playNext() {
gotoAndPlay("scene1");
clearInterval(timerInterval);
}
timerInterval = setInterval(playNext, 5000);

with a scene1 label at frame 45, but the movie does not stop at 34, it continues to frame 45 plays to 55, where their is a
Code:

stop()
action. At frame 55 it loops back to 45, playing once again to 55 then stops.

What Am I missing?

View 3 Replies

ActionScript 3.0 :: When Change De X Or Y Value Of This First MovieClip The Frame Rate Slows Down For During 1 Frame

Mar 27, 2012

I got a MovieClip filled with a lot of others clips... When I change de X or Y value of this first MovieClip the frame rate slows down for during 1 frame. For exemple... I created a counter that returns around 30 mseconds every frame, but when I do this X or Y change the return is around 400 mseconds... When I try to fill the first MovieClip with less information it goes faster, about 100+-200 mseconds...

View 6 Replies

ActionScript 2.0 :: Adjusting Frame Number ?

May 31, 2010

I have a timeline slider part to my animation which starts at frame 1089 and ends at frame 1173, I have a script which allows me to do this and works perfectly when I build it in a new flash file starting at frame 1, I need this code to work for the animation I have built at frame 1089, I dont know which number "1's" in the script relate to the frame number, I have tried changing them all to 1089 but that doesn't work! at the moment as soon as I click on this it jumps back to frame number 1 - which I believe as the code stands is exactly what it should be doing. Please could anyone edit this code so that it realises which frames I want it to work in?

var numOfFrames:Number = 85; // number of frames in the timeline to scrub
var widthOfScrubber:Number = 500; // width in pixels of scrubber bar
var widthOfScrubberSlider:Number = 25; // width in pixels of scrubber slider[code].....

View 3 Replies

ActionScript 2.0 :: Adjusting Frame Number In Script?

May 31, 2010

I have a timeline slider part to my animation which starts at frame 1089 and ends at frame 1173, I have a script which allows me to do this and works perfectly when I build it in a new flash file starting at frame 1, I need this code to work for the animation I have built at frame 1089, I dont know which number "1's" in the script relate to the frame number, I have tried changing them all to 1089 but that doesn't work! at the moment as soon as I click on this it jumps back to frame number 1 - which I believe as the code stands is exactly what it should be doing. Please could anyone edit this code so that it realises which frames I want it to work in?

var numOfFrames:Number = 85; // number of frames in the timeline to scrub
var widthOfScrubber:Number = 500; // width in pixels of scrubber bar
var widthOfScrubberSlider:Number = 25; // width in pixels of scrubber slider

[code].....

View 1 Replies

Inserting Old Swf Into New Fla With Different Frame Rate?

Oct 24, 2009

I'm trying to insert an old banner ad into a new Flash site  The problem is, the banner I made at 20 frames per second, and the Flash site is set to 41, so it literally plays the banner twice as fast.

View 2 Replies

ActionScript :: Set Frame Rate In It?

Nov 8, 2010

Is it possible to set the frame rate of a movie through ActionScript 2? Is it possible to check it?

I've found many ways to check the rate at which it is playing, but I want, ideally, to be able to set the frame rate dynamically at runtime. I'm making a timer that uses flashing dots to show each unit of time, and I'd like to create a user interface so that someone playing the swf can set the time intervals without having to open the fla to change the frame rate.

View 2 Replies

ActionScript 1/2 :: Get Frame Rate In It?

Dec 30, 2010

How to get frame rate in as2, how to change frame rate

View 1 Replies

AS3 :: Flash - Get Flv Frame Rate?

Sep 6, 2010

i have to set the stage frame rate according to the frame rate of the flv and I will have differnet flv with different frame rate so i have to get frame rate of FlV using action script ??

Is there any method available in Video Class of ActionScript??

View 2 Replies

Change MC Frame Rate?

Apr 24, 2010

I have button rollovers, that when at 40fps looks really nice, but when i change the timeline to 24fps, it looks terrible.

What is the best way to change my frame rate of my rollver_MC to fps while leaving the entire fla to 24 fps in AS 3.0

View 1 Replies

ActionScript 2.0 :: Different Frame Rate For Different Movieclip?

Mar 16, 2010

How to set different frame rate for different movieclip?

View 1 Replies

ActionScript 2.0 :: Change The Frame Rate?

Jun 17, 2011

I CAN change the frame rate, like this:

[Code]....

But if I want to change these values I have a problem, I could create a button that says 'on(release){ mc1.framespersec(15);' but all this will do is increase the frame rate by 15, not make it 15.

View 1 Replies

Puzzling Frame Rate In Windows 7

Dec 8, 2011

I am creating a flash game that runs at 45 fps. When run either in a browser or on the desktop in Windows XP it looks smooth. When I view it in Windows 7 it is choppy - as if it was running at 15 fps. It is still processing correctly, it just looks bad. Does anyone know why this is? Is it just Windows 7 I have a test code snippet that shows this weirdness. Just paste the following into a new file and publish.

var nCounter:Number = 0;
var nColumn:Number = 9;
var nRow:Number = 5
var aBoxes:Array = new Array();
function setInit(){
[Code]....

View 1 Replies

Dynamic Frame Rate Settings?

May 27, 2009

Actually I am working in an image scroller project. It was working perfectly. But the client asked to do some updations. First of all please download the file that I have atached, which is a screen shot of user control page for image scroller. There is an user control page for image scroller. You can see many options there. In user control, scroller is specified as marquee scroller. There is an option, Speed of scroller, which denotes how quickly the image should scroll. The unit of this field is seconds. Because we are giving seconds in that field. A single image should move out of the stage with in the specified seconds in "speed of scroller" field.

var UnitDistPerSec:Number = Number(TransSpeed)*10;  where "TransSpeed" denotes the speed we are given in the user control page. var FPS = 100;  var ScrlConst = UnitDistPerSec/FPS;

[code].....

View 2 Replies

FLA To MOV - Unable To Get The Correct Frame Rate?

Dec 22, 2009

I have a problem exporting a flash movie to a Quicktime movie with the correct frame rate. When I try to transfer it to a DVD that will play in loop, the video is jerking. I really need to get a 30 fps video.
 
I'm using Flash CS3 on Mac OS X. I built my flash animation with photos and text only (no SWF or movies linked or embeded, no actionscript, no sound, one scene only). The frame rate I specified in my flash movie is 30 fps. My scene format is 1360 x 768 pixels (16:9).
 
I need to export my flash movie in an almost uncompressed format to bring it to a DVD.

[Code]...

View 2 Replies

Animation Independent From Frame Rate?

Apr 4, 2010

Currently i m working on a loader.... i want to use this loader on different-different project but every fla file have different frame rate.In that case the animation of the loader is not looking so good.

View 15 Replies

ActionScript 3.0 :: Embedding New SWF With Different Frame Rate Possible?

Jun 2, 2010

I am working in a flash file, and I wish to embed a new swf. Normally, I would just import it using the video importer, but this swf has controls on it, and I have a feeling they might be lost if the swf is converted to a swf. So, I am now using the loader class to laod it in. Is it possible to make it totally independent to the rest of the fla? One example, I want the frame rate to be different in the loaded swf, to the original swf, is this possible?

View 3 Replies

Professional :: Changing Frame Rate From 12 To 30?

Sep 29, 2010

I recently built a flash movie that I am going to export out into a quicktime movie for YouTube. I mistakenly built it with the frame rate of 12 fps and I need to switch it to 30 to make it compatible for YouTube.
 
My question is:
 
Is there an easy way to change the frame rate from 12 to 30 and keep the same timing that I have with the movie at 12fps? The only way I can think to do it is manually, but I was wondering if there is an easier way.

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved