Changing Video Speed
Hi,
I (<--noob) am completely stuck!
How can I adjust the fps of a movie that I import into FlashMX so that its fps can be independent of the main project's fps as well as the fps of another short video (the sun) playing at the same time on another part of the stage.
The video I need to work with is a video of the earth doing 1 rotation. I need to have it play 365 times while it goes in a full orbit around the sun. So this means it must play 365 times in a 360 degree orbit. I have actionscripted the orbit of the earth movie clip around the sun movie clip.
Can I control this with actionscript? It seems that actionscript would be the only precise way of getting the .9 rotations per degree. Or--do I need FlashMX2004 for this?
ALSO--can someone explain to me (in layman's terms) how I can have a button speed up the earth movie and another button that will slow it down?
BTW—I am pretty much a Flash noob so step-by-step directions would be very helpful.
Thanks a bunch everyone.
FlashKit > Flash Help > Flash MX
Posted on: 04-12-2005, 09:53 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Changing Audio/video Playback Speed At Runtime
Is it possible to modify the audio/video playback speed of an mp3, flv, or video swf file during runtime?
I'm trying to determine whether or not it's possible to create an audio/video playback controller that allows the user to slow down content or speed it up while maintaining audio output.
I've looked through the documentation for the Media Class in MX 2004, but haven't found any methods for controlling playback speed.
Rob Penner created a great fps modifier, but it only updates the stage, and not audio.
Change Frames Per Second Dynamically
Any insight would be greatly appreciated.
Speed Up Video Using Flash Video Encoder
Hi,
I'm converting a quicktime movie into an flv file and am also trying to increase it's speed. I've tried playing about with the frame rates option but it dosn't change anything. Is it possible to do this in the video encoder?
Any rays of light thrown on this subject will be greatly soaked up!
Changing Speed Of MC
i need a MC to play at different speeds based on an external variable, is it possible to change its speed.. or fps.. with actionscript?
in my animation. live wind speed readings need to change the speed at which my cloud animation plays. any way of doing this?
Changing Speed Of Rgbtransform
myColor = new Color(_root.bg);
myColorTransform = new Object();
myColorTransform = {ra:'100', rb:'255', ga:'100', gb:'0', ba:'100', bb:'0', aa:'100', ab:'0'};
myColor.setTransform(myColorTransform);
what can i add to that code to make the "bg" MC ease to its new color, instead of having the new color pop up?
Changing Speed In A Movie
from flash kit I downloaded a very nice movie which makes it possible to play it forewards and backwards, ideal for a photo show I thougt.
However recently I saw on the burberry site http://www.burberry.com/UK/Home/main.shtml
Changing Speed In A Movie
from flash kit I downloaded a very nice movie which makes it possible to play it forewards and backwards, ideal for a photo show I thougt.
However recently I saw on the burberry site www.burberry.com/UK/Home/main.shtml
a similiar slide show, but with the difference that the movie on this site has a verry classy slowdown between the photo's. If have included the "backwards" movie I alreaddy had so you can see the difference, can someone help me with the code which is needed for sush a slowdown?? I would be a great help
Yours faithfully
Yntze Gjalt Heida
(I couldn't upload the "backwards" .swf file but I 'm sure you can easily find it on the flashkit website
[F8] Changing A Speed Of A Timer Bar
I am not a programmer but my husband is. He is stuck on something and I want to show him I am smart and can give him the answer. Can someone help me with the answer of if it can be done, and how?
(He is using this as a graphic display timer. It will show someone when their time is up to complete a task)
He wants a movie (graphics) of a bar changing from green to yellow to orange and then to red. (Meaning Times Up for the User to Complete a Task!)
As the programmer he wants to use flash to be able to change the speed the graphics changes. For example, he wants the bar to turn from green to red in 1 minute. Then it is decided he wants the user to have five minutes to complete a task. Is there something he can do in flash so that the graphic artist does not have to do a new design and he can just change the exact speed of the bar of when his time is up to complete something?
Please respond in programming terms so I can give him the information.Thank you so much!!!!!
Changing Clock Speed
Ahhhh! Someone please help. I am sure I am over complicating this. But i am trying to make a clock that runs on real time. But with the press of a button you can speed the clock up or slow it down. Any help would be great. Thank you
Kind Regards
Skezo
Changing Animation Speed
Hi,
I'm trying to change my animation speed in a movie clip, without having to add additional frames.
Is it possible to do this with an action script within Flash 4?
thanks in advance
Paths-Changing Speed/opacity
Hey, all!
Is there a way to make an object follow a path at a random speed and also change opacity so the object looks like it's blinking? I have an object following a curvy path and want it to be slower as it goes up and faster on loops - like a rollercoaster.
Thanks for any help,
Suzanne
Paths-changing Speed/opacity Along It
Hey, all!
Is there a way to make an object follow a path at a random speed and also change opacity so the object looks like it's blinking? I have an object following a curvy path and want it to be slower as it goes up and faster on loops - like a rollercoaster. I'm thinking I either have to 1) use an actionscript 2) keyframe everything instead or 3) Use 3d software instead...which one is it? I'm using Flash 5.
Thanks for any help,
Suzanne
Scrollpane - Changing The Arrow Speed
setSmallScroll doesn't seem to make a difference maybe because I'm scrolling text and graphics.
Here's where I'm at. I clicked on the scroller and named the instance test1. I clicked on the content and gave it an instance name of test2. Then content is a combination of pictures and static text - given a movieclip name of "content"
The scroller appears in frame3 and passes to frame 4.
I have put the words content.setSmallScroll(5); in frame 1
I tried test1.setSmallScroll(5); in frame1 and test2.setSmallScroll(5) in
frame 1 but so far no difference.
I would greatly appreciate it you let me know where I'm going wrong. I'll be happy to post the file.
Thanks again for all your help.
Changing The SPEED Of A Movie Clip.
Hi,
I have a movie clip of a tweening pendulum and call it dynamically.
How can I change the speed of this MC from the dynamic call up?
Is it as simple as changing the size or xscale or position?
Thx
Shaf
Changing The Speed Of Audio / Music
I am making a simple game in Flash with a looped music track.
As the game develops, it will speed up and I would like to speed the music up as well, is this possible using only one music clip and action script or will I need a seperate clip for each different speed.
Changing The Speed Of A Movie Using SetInterval
Hi, if anyone could help with this it would be great. I'm using AS2 with CS3 and flash player 9.
I'm making some video tutorials, you select the title of the tutorial in the file, it loads the relevant tutorial SWF up into an MC.
I've made a slider where you can change the speed of the MC. I've used setInterval to do this. The slider sends a global value "tutorialSpeed" to the MC. Everything works great until you load a new tutorial into the MC, everytime a new video is loaded it just gets quicker and quicker and quicker even though the same "tutorialSpeed" value is being sent. I assume it's something to do with the first line of code being executed many times?
The following code does everything, it's positioned on the first frame of each tutorial SWF
Code:
var intervalID:Number = setInterval(this, "advanceFrame", tutorialSpeed);
stop();
//
function advanceFrame() {
clearInterval(intervalID);
gotoAndStop(_currentframe+1);
intervalID = setInterval(this, "advanceFrame", tutorialSpeed);
trace(intervalID);
}
Changing MovieClip's Frame Rate/Speed
Glory!
I want to change the speed of a movie clip in my Flash Movie. Let's say my Flash Movie has a 12fps, which i cant change because of everything in it. But i want to have a movie clip in it which is very fast animation, how do i change the speed of this Movie Clip? Can i change it's frame rate or something.
I do see this a lot.. that little movieclips/animations are horrendously fast in speed/animation inside flash movies, but i dont know how they do it.
Any help appreciated!
Mickey
Changing The Frame Rate Does Not Affect The Speed Of The Movie?
I'm trying to create a rollover that involves a photo cut up into strips. Each of the fragments fades in, slightly increases (10%) in size, and then falls into place. I'm trying to play around with the speed of this effect but increasing the frame rate does not change the speed of the rollover. The movie is only 54Kb. Could anyone explain why is this happening and what is the best way around it?
Many thanks for your help!
Ismar
Changing Speed Of A Movie Clip Based On A Condition
I'm creating a simple first person shooter where santa claus and his reindeer are flying across the sky and you have to hit him three times with a snowball to get a holiday greeting (well if you miss three times you get the holiday greeting anyway which I also need help programming). What would I need to do to make santa move a little bit faster with each successful hit?
Video Speed?
I am trying to develop a video player similar to the ones found on YouTube and Veoh. I am trying to figure out if it is possible to control the speed of playback (aka slow-motion implementation). Anyone help?
FPS And Video Speed
I'm working on a flash demo to be used at a trade show my company is doing. Inside the flash demo I have a video that plays. This video is a bit too slow for my boss's liking. Unfortunately the original creator if the video has left the company so I can't have him render me a new version.
I tried raising the fps of the flash demo, and it seems to work when Previewing it inside Flash 8. However when I publish the file the entire demo goes at it's original slow speed. Is there anyway I can speed this up or will I need to edit the video file seperately in a program such as Premiere?
Thanks in advance.
Video Application Speed?
I have a flash app that streams video via flash media server 2 .....now the app runs extremely slow if I compile it with the frame rate set at 14 fps but if i compile it at 1 fps then it functions within acceptable speeds.....will slowing the fps down to 1 fps have any effect on the video or is it ok since i don't have any animations?
Trying To Speed Loading Of Video Clips From Cd
Can you load an flv file instead of a .swf using something like "loadMovie?" I've built and published a projector that calls swfs with video clips embedded in them using loadMovie. Works great, but the video swfs are very slow loading from the CD.
Is it possible to speed up the loading by calling flv files instead of the swfs, and, if so, what actions do you code to make them load? Thanks so much for any help.
Flash Video Playback Speed
Hello,
I wonder if anyone could help me with this.
In my flash movie I have a video (that is a loop) that plays from an external flv.
I also have a variable that updates every couple of second with a number between 0 and 100.
What I'd like to do is change to the playback frame rate of the video to match the variable. However. I'd like the scale of frame rates to be from 12fps to 48fps but I cannot change the numbers in the variable so there would have to be a conversion somewhere in the code. (perhaps 0=12fps and 100=48fps)
Can anyone help?
Rationalise Download Speed Of Video In Swf
Greetings
I am trying to optimise download times for short videos. The following url is a Flash/Fireworks/Dreamweaver file called boating.swf which then loads a gallery.swf or videoswf which subsequently loads separate videos, final file boat.swf is ok
It is the videos I have a problem with as they are very slow to download.
I have been dismantling the files to find the problem and it seems that even if I strip the file to having no elements there still remains 480Kb on the first frame...
What is that about.
BTW I am running FlashMX (Icannot justify the cost of upgrading)
Any explanations or help on optimising videos would help.
Thank you.
Control Speed When Video Playing
Hi,
Is it possible to control the speed when playing a video?
Let's say I want to watch the video in slow motion. Can I do it at the player side? I don't want to have to encode the video with a different FPS.
I saw the VideoPlayer uses NetStream to actually play the video but now I'm kinda stuck and don't really know what to look at.
Please help,
Thanks.
Exporting Minus Video To Speed Up Process
Hi guys,
I've been building an application in Flash MX 2004 with an FLA of now over 400mb (it contains a gallery with lots of videos). When I make minor changes and put them to test it's very frustrating that it takes around 10 minutes to compile and export.
Is there any way to export the swf without any of my video files as and when I want to? I'm predicting not but you never know what you boffins come up with.
Thank you in advance..
Varying Embedded Video Playback Speed
Hi,
Worked out a way of varying the playback speed of embedded video based on mouse coordinates, but it has a problem:
I use a function in a manager class to update 2 static vars in the class which controls the video playback with the current mouse coordinates();
The playback speed is controlled with two functions. advanceFrame() is triggered once, then varies its interval based on the result of readMouseY():
Code:
advanceFrame()
private function advanceFrame():Void{
clearInterval(add_int);
vid_cont.nextFrame();
var nxtInt:Number = readMouseY();
add_int = setInterval(this, "advanceFrame", nxtInt);
}
private function readMouseY():Number{
var pX:Number = title_cont._x;
var pY:Number = title_cont._y;
var Ydiff:Number = Math.abs((vidCenterY+pY) - mY);
var Xdiff:Number = Math.abs((vidCenterX+pX) - mX);
var difference:Number = (Math.sqrt((Ydiff * Ydiff) + (Xdiff * Xdiff)))*1.4;
if(difference > range) difference = range;
return difference;
}
mY and mX are the static vars and vidCenterX and vidCenterY are calculated elsewhere.
This works perfectly if pX and pY are calculated outside readMouseY(), but as soon as I put them into the function (which I need to do), it crashes flash after about 10 seconds.
Any ideas why this may be?
Dynamically Change Video Playback Speed?
hi all.
i've googled this endlessly but not finding much... i need to be able to dynamically affect the playback speed of video in flash. i need to be able to noticeably speed or slow the video itself. has anyone done anything similar or have any suggestions as to how it might be done, or where i might look?
any help/input/tips would be great - i'm stuck!!
thanks!
Controlling Speed Of Audio And Video Playback ?
Hi!
I would like to know if there is (or will be) a way with upcoming Flash CS4 or even with Adobe Flash Player 10 capabilities (or even with Adobe Pixel Bender) to control the speed of an audio or video playback.
For example being able to play some sound slower or faster and even adjusting audio pitch (and other audio filtering).
It's been a while that I've been looking for this (back to Flash Player 6 when Flash was part of Macromedia) and with all progress achieved since then I hope there is some accelerate and decelerate feature now.
Please let me know about it.
Detecting Internet Speed Etc For Video Output
Hi everyone!
We are putting some flash video on our intranet and would like to figure out how to use action script to detect internet speed and prob screen res to feed back video(s) compressed & resized accordingly. Is that the right approach? I'm sure there are some rules, regulations & industry standards out there to follow... Any help would be greatly appreciated! :)
Thank you so much in advance!
Olga
Update Video Play-speed Dynamically
I want to change the framerate of one movieclip in a game I am making. I know about the stage.frameRate, but that is something that affects the entire application. I was thinking about trying to use a timer to do so. Does anyone have any ideas of where to start?
Imported Video -- Speed Issues When Playing In Reverse
Hey guys,
I've got a question...
In my flash movie, I've imported a very small video file.
When the video is done playing, I wanted the user to be able to click a button and the video would play in reverse.
I've gotten this to work with the _currentframe and _nextframe properties, but when I play the movie in reverse it's not as smooth.
Here's an example of what happens:
http://www.alexmustin.com/flash/video_test1.swf
Once the movie is done playing, click on it. When it's playing in reverse, you can see it gets a little choppy when the guy gets towards the top of the rail.
Has anyone found a way to play the movies backwards without having the speed affected? Maybe I shouldn't use the _currentframe property??
Any help is appreciated!
Speed-test Figures As Video-size Guides
I found this speed tester:
http://www.bonvi.net/Test/index.html
in a thread from 2002. Kirupa praised it so I tried it.
I got pre-test figures like 479 and 530 and test figures like 100, 802
& 1476 and 183, 1465 & 1703.
I've seen a lot of these testers and I can't figure out what the
figures mean, in terms of how "big", i.e., total data rate (in kilobits per
sec), I would make a streaming video to ensure maximum quality that would still
download smoothly to a viewer with, say, the same particular jumble of
speed figures I got above.
My streaming server host company recommends no more than 300 kbps for my
videos, to download successfully to most broadband connections.
But let's take my test figures above as an example.
How would I use those figures to determine if 300 really *is* the limit
my connection could deal with smoothly? Supposing my test figures
indicated I could handle a 450 kbps version and I could write an
actionscript to steer a viewer with a similar connection speed to a
higher quality (450 instead of 300) version of the same video. Wouldn't
that be better than just having a one-speed-fits-all version?
If so, then how would I convert or interpret the test figures I got from
this speed test (or one like it) to make an accurate judgment on how
"large" a video file a given connection speed can run smoothly?
Changing Video Format
I've got a file which has a flash video (flv) file in it, now I want to convert it to mpeg or avi or any standard movie type to play on a website without it getting restricted due to intended audiences filters blocking .swf files. I tried changing the publish settings, but it just gave me the canvas and didn't play the actual video, the same happened when I tried to export the movie. Any ideas?
Changing Video Option
hello i was wondering if anyone knew of a good tutorial that will teach me the following..... I would like to have a video on my website and below it or on the side of it have other videos smaller so that when clicked on it will play the video in the bigger box. Sort of like what youtube has but i rather not have the page reload when clicking to view another video. i would like the new video to just load in the bigger box. Well i hope that made sence!!!! any help would be greatly appreciated! thank you
Changing Imbedid Video With Thumbnails
Here is what i am trying to do I want to do a page simular to this page here is the link
http://www.foxnews.com/video2/player...olitics&-1&exp
I want the concept that you can click on a thumbnail picture and change the flash video that is imbedid in the page........I shure would appreciate some help with this issue.
thank You
Mike
Changing Depth Of A Video Object
I've created a video object on the stage to show FLV files. Everything else is dynamically created using Actionscript.
During runtime I want to move re-parent this object and change its depth, but I can only seem to make it be at the very back or at the very front. Any ideas?
Thanks.
Changing The Default Flash Video Interface?
Hi Everyone ,
Sometime ago, I read an article about changing the default FLV Interface.
As I remember, the original data(which can be changed) is somehwere in the Flash user profile folder. Unfortunately, I do not remember the PATH and have lost the article.
Can someone help me there..give me a possible hint on the path to these Profile data?
Thanks in advance
Aris
Changing Resolution Before Redording Video File
Hi
I hve done the video recording and playing example successfully,
I want to know How we can change the resolution of recodring video, when we record video it take's default resolution how this can be changed?
If any suggestion how do I increase the Quality of video recording.
Thanks in advance,
sangati shinde
Problem Changing Video Object Resolution
Hi,
I have a problem with my AS3 code. The user can type their desired width and height for the video in two boxes and hit a button that triggers the updateResolution function. Everything works except for when I redeclare video = new Video() in the updateResolution function, the variables that the user set don't register. If I manually say:
video = new Video(1024,768);
it works fine, but for some reason the vars don't have the same effect...
video = new Video(setWidth, setHeight);
Does anyone have any suggestions? Thanks!!!
Attach Code
//Initial vars for resolution
var setWidth:int = 800;
var setHeight:int = 600;
//Display the webcam feed on the screen
var cam:Camera = Camera.getCamera();
var video:Video = new Video(800, 600);
video.width = 320; //Changing it on the screen only so it fits
video.height = 240; //The actual resolution remains 800x600
cam.setMode(800, 600, 15, true);
video.attachCamera(cam);
stage.addChild(video);
video.x = 320;
//updateRes is my button, of course
updateRes.addEventListener(MouseEvent.MOUSE_DOWN, updateResolution);
function updateResolution(e:MouseEvent):void{
setWidth = Number(userWidth.text); //userWidth and userHeight are the text inputs
setHeight = Number(userHeight.text);
cam.setMode(setWidth, setHeight, 15, true); //This works fine with the setWidth/setHeight vars
stage.removeChild(video);
video = new Video(setWidth, setHeight); //This does not
video.width = 320;
video.height = 240;
video.attachCamera(cam);
stage.addChild(video);
video.x = 320;
}
Best Practice For Streaming Video With Quickly (2-5 Sec) Changing Sources
Hi!
In my flex app I have a videodisplay, which should change its source every 2-5 seconds to an other clip (and or an other playhead time). Im trying to reduce the buffering times between the source changes, so that the resulting video plays without interceptions. To reduce the buffering times i've tried multiple video instances which preload its new source while an other instance is playing its clip.
Are there better ways for doing this? Could SMIL be a solution?
Thanks!
[F8] Changing Caption Xml With The Change In The Video For A Single FlvPlayback Compo
Hi all,
I am having a problem in CaptionDisplay class used to add captions for a video.
In my project I have to show many videos in a flvPlayback component, and every video have their own caption xml file.
The caption file is working fine for the first video but when the video is changed the caption doesn't work, here is the code snippet I have used:
In the root I put this code:-
import mx.video.captions.*
var initObj:Object = new Object();
initObj.font = "_sans";
initObj.embedFonts = false;
initObj.textSize = 16;
initObj.textColor = 0xFFFFFF;
initObj.textShadowColor = 0x000000;
initObj.backgroundColor = 0x000000;
initObj.backgroundAlpha = 60;
initObj.overlay = true;
var CC=new CaptionDisplay(_root.tv,initObj);
var ccbtn_ref=new CaptionButton(_root.controls_mc.cc_mc,CC);
ccbtn_ref.toggled=true;
CC.useTimedText=true;
CC.source = "test.xml";
And when the video is completed then I call a function, in which I change the contentPath of the flvPlayback and also put this code :
'_root.CC.source = "test2.xml";'
but this way the next video keep playing but the caption is not shown for the second video.
I also tried to make a new CaptionDisplay object every time a video is changed for the same flvPlayback component. But doing that way the flvPlayback goes to "loading" state and never recover from that state.
Any help will be most welcome.
Thanks in advance,
Vikas.
Changing Caption Xml With The Change In The Video For A Single FlvPlayback Component
Hi all,
I am having a problem in CaptionDisplay class used to add captions for a video.
In my project I have to show many videos in a flvPlayback component, and every video have their own caption xml file.
The caption file is working fine for the first video but when the video is changed the caption doesn't work, here is the code snippet I have used:
In the root I put this code:-
import mx.video.captions.*
var initObj:Object = new Object();
initObj.font = "_sans";
initObj.embedFonts = false;
initObj.textSize = 16;
initObj.textColor = 0xFFFFFF;
initObj.textShadowColor = 0x000000;
initObj.backgroundColor = 0x000000;
initObj.backgroundAlpha = 60;
initObj.overlay = true;
var CC=new CaptionDisplay(_root.tv,initObj);
var ccbtn_ref=new CaptionButton(_root.controls_mc.cc_mc,CC);
ccbtn_ref.toggled=true;
CC.useTimedText=true;
CC.source = "test.xml";
And when the video is completed then I call a function, in which I change the contentPath of the flvPlayback and also put this code :
'_root.CC.source = "test2.xml";'
but this way the next video keep playing but the caption is not shown for the second video.
I also tried to make a new CaptionDisplay object every time a video is changed for the same flvPlayback component. But doing that way the flvPlayback goes to "loading" state and never recover from that state.
Any help will be most welcome.
Thanks in advance,
Vikas.
Streaming Audio Speed No Good - Depends On Processor Or Internet Connection Speed?
we are launching a narrated, streaming flash 6.0 presentation for a client. frame rate is 20fps. here is the link:
http://www.optionaldesigngroup.com/preston
they sent us this email:
"I do not know who else this may be happening with, but when Marjorie Sanders (OC) opened to take the tour, it loaded the software (not sure why her machine didn't have it), and the video was the size of a postcard, Kathleen sounded like a little child (almost munchkin like) and was going 100 mph (so very, very fast - almost unintelligible). Can we experiment with it. Could it be because of the download - I would hope that people don't receive it that way or they will end up laughing at it (it is almost silly)."
does the streaming sync depend on the internet connection or the processor speed? i am assuming processor, and that on a kick-butt new machine it will stream faster then on a slower one.
i think the only way to counter for this is to go in and add some more frames in the narration between phrases. we don't want to lower the framerate because it will affect the flow of the tweens.
any thoughts on this would be greatly appreciated. thanks.
Problems With Speed: Loading An Animation Dynamically...reduced Speed Why? W/exampl
Im loading an animating logo dynamically into a site. The animation works in normal speed if i access it directly:
http://www.ingerreime.no/David/thegl...ches/home.html
But, when i load it dynamically into the main site, the speed reduces drastically! Click "home":
http://www.ingerreime.no/David/thegl...achesmain.html
Everything is loaded dynamically, except the blue backgrounds.
Any thoughts?
Thanx!
Dave
|