ActionScript 3.0 :: Accurately Jumping Around In Animation / Audio

Jan 21, 2009

I'm learning AS3 as I modernize the VCR controls for our e-learning topics. The way we used to do it was load the wav into the timeline and keyframe to the audio. We have a little tracker bar you can click on to jump around, a tracker icon you can drag, play/pause and FF/RW buttons. In AS2, since the wav was in the timeline, I just had to worry about frame numbers.

It seems like the modern way to do it is to load the audio as an MP3 externally. How accurate will this be as far as sync'ing the audio to the animation when using the tracker bar and jumping around? I'll basically be mathematically slicing the bar graphic into pieces and using that to tell the animation what frame to start on, and converting that to a time for the audio to start.

View 4 Replies


Similar Posts:


IDE :: Animation To Look Smooth, No Jumping Or Stopping, Want Continuous?

May 12, 2009

I really want to smooth the animation a little bit more.i want the animation to look smooth, no jumping or stopping, want continuous

View 1 Replies

Actionscript 3 :: Accurately Get Referrer In Widget?

May 17, 2010

I have an embedable widget. For each impression, I would like to track the referrer (the page where the widget is embedded onto). Right now I am using ExternalInterface to use javascript to check window.location.href when its available, however, I am finding that most of the time I am unable to set the referrer.

I not using javascript correctly to get the referrer?

View 1 Replies

ActionScript 3.0 :: How To Match Substrings Accurately

Mar 14, 2010

How to match substrings accurately?eg: I wanted to search whether any pronouns like he, she etc are present in a string say input.Where is he?Here I wanted to find whether the pronoun 'he' is present. But since the where contains the substring 'he' I can't get the result properly.I tried with RegExp and arrays and strings; using match(), search() indexOf(). They all do it the same way.My RegExp pattern is as below:

Code:
var pronouns:RegExp = /(i)|(me)|(us)|(he)|(him)|(she)|(her)|(it)|(they)|(them)|(that)/;

I wanted to find for eg, strings like

He is alright
Where is he
She is there
Who is it
I know them

In the above sentences I wanted to get the position of where the pronouns 'he' 'she' 'it' 'them' etc occurs.Why because if it occurs I wanted it to replace them with another words.

View 3 Replies

Flash :: Accurately Draw Rotated Bitmap?

Jan 28, 2010

I have a container with masked bitmap in it. The scale and rotation of this container changes at runtime, and I need to draw the masked bitmap but cannot figure out the appropriate matrix calculations to do so.My code works correctly to reflect position, scale, offset for centering without rotation. When rotated, the angle is correct but the positioning is incorrect - I believe because the dimensions change when the rectangle is rotated.how to compensate for this in the positioning - here is some code:

// Adjust the transformation matrix to account for the position of the container
var tMatrix:Matrix = _imgContainer.transform.matrix;
//Offset for container

[code].....

View 4 Replies

Flash - How To Accurately Measure Time Delta

Jan 25, 2012

As I understand, getTimer() is very inaccurate - on my own machine it always returns a value which is a product of ~16. (16, 33, 50, etc.) Is there a simple and efficient way to more accurately measure the time difference (delta) between two separate calls in my program?

View 1 Replies

ActionScript 3.0 :: HTTPService Does Not Accurately Retrieves All Data

Oct 19, 2010

I'm using mx.rpc.http.HTTPService to retrieve data from a web service. On the initial call to "loadWsData", HTTPService accurately retrieves all the data. However, on any and all subsequent calls HTTPService does not accurately retrieve the data; rather it some how always retrieves the first data set. I've confirmed that the web service is providing accurate data, both from web browsers and a ruby ws client script. If I terminate the flex app and restart it, it will retrieve the accurate data.

ActionScript Code:
private function loadWsData():void{
var webService:HTTPService = new HTTPService();
webService.url = serviceUrl;
webService.method = "GET"; 
webService.addEventListener(ResultEvent.RESULT, function(event:ResultEvent):void{
var rawData:String = String(event.result);
var user:Object = JSON.decode(rawData).user;});
webService.send();}

View 1 Replies

Professional :: Syncing Audio With Animation?

Mar 24, 2012

I'm making an animation in flash CS5, and everything went well with it until a certain scene, which is no different than the other scenes in terms of animation/audio. In that scene, while one character is finishing his audio sentence, the next audio line already begins, screwing up the animation to audio sync in the animation from that point on. This doesn't make sense because the line that begins too early, isn't marked to play until a few seconds into the NEXT scene. Why is this happening? I tried so many things and it's really frustrating that nothing is working. I tried changing the lines from even, to stream, from mp3 to wav, making scenes longer at the end, but no matter what I do, the next audio line begins really early, messing up the entire audio to animation sync of the entire video from that point on.

View 5 Replies

ActionScript 2.0 :: Loading Images Accurately - Dynamic Button Rollover

May 4, 2006

As a test, I'm loading images (or references to images, more accurately) from an external XML file into Flash, each image representing where a thumbnail might appear in a portfolio, for example. I can get that to work fine. I have a couple of problems with the way the images appear, though. For one thing, when the 95 px X 95 px images are brought into the dynamically created 100 px X 100 px movieclips I have set for them, the JPGs stretch to fit... is this because I'm using the loadMovie method? The main difficulty I have, though, is my inability to get these individual movieclips containing JPG images to exhibit rollover and rollout behavior dynamically... without disturbing the image contained within.

Here's the code I have right now; my lame attempt at a dynamic rollover behavior is the for.. loop at the bottom, which is non-functional, by the way.
Code:
function loadXML(loaded) {
if (loaded) {
//according to "content2.xml," this would set the parser at "<projects>".
xmlNode = this.firstChild;
var thumbs:Array = new Array;
var description:Array = new Array;
[Code] .....

View 8 Replies

Audio Kept Visible In The Timeline For Flash Animation?

Oct 19, 2009

The images for animation load okay. The sound loads okay.  But the animation images need to be inserted in coordination with the sounds, which is difficult using only the ears, but I do not know how to keep the audio graph seen on the timeline so as to know where to put the images. I can keep the graph open on the little library window when it is open but not on the timeline. how to keep the graph open on the audio track while I work on the image tracks.

View 1 Replies

ActionScript 2.0 :: Play The Animation After The Audio Is Completed?

Aug 11, 2003

what should i do to make the animation plays after the audio is finished. I'm using the attach sound to play audio.

View 3 Replies

Professional :: Export Animation To QuickTime - Audio Sync

Jun 18, 2010

I am using Flash CS3 on a PC. I am trying to export an animation to quicktime (Export > Export movie) and have some problem regarding the sound. The animation contains actionscript 2.0loads external swf contains streaming soundsplay other sounds via actionscript. 4 scenes. When publishing the animation, it works fine, but when exporting it to .mov, the audio goes faster than the video.

Export setting:
Video:Compression type: H.264Frame Rate: CurrentKeyFrames: 4
Sound:Compressor: 24-bit integerRate: 48.000KhzSize: 16BitUse: Stereo
To be honest, I tried many other compression types and frame rates and keyframes, but nothing seem to work.

I tried:
- importing the external swfs into the original animation
- creating a streaming silence from frame 1 for continuous sound
- capturing the animation using CamStudio, but it's not smooth enough

View 1 Replies

Professional :: Scrubbing Animation Frames - Coordination With Audio?

Nov 25, 2010

If I have a 2 minute audio, and I want to scrub the animation frames around the 1 minute point, to see how they coordinate with the audio, is that possible?

View 3 Replies

ActionScript 3.0 :: External Audio X Animation - Sound Delay

Feb 8, 2011

I have a few animations that run on different scenes each time a scene is loaded the external audio should start with it. Well here is the thing the animation always starts before my audio files and each scene gets bugged. I need to create an action that only allows my scene to start with the audio and also starts loading the next audio so it wont be dellayed.

On the first scene I have the following code:
scene 1 frame 1
var autoPlay:Boolean;
if(!autoPlay){
stop();}
scene 1 frame 2 animation starts and audio 1 loads
import flash.media.Sound;
[Code] .....

View 3 Replies

Professional :: Rt/animation/audio Disappearing From The Timeline After A Save?

Aug 11, 2011

I'm having problems with many files losing their assets from the timeline after a save and reopening the file in Mac OS X Snow Leopard. This is happens quite often now and there seems to be no pattern to it. For example, I will open an existing Flash animation complete with sound and artwork, make changes to the animation timing, test the SWF and everything looks good, then save. After reopening the exact same file, there will be audio that was on the timeline will be an empty frame. In addition, there is art work that was swapped out or updated to a character and the symbols becomes empty after reopening.

View 7 Replies

ActionScript 2.0 :: Stopping The Audio Loop Without Stop The Entire Animation

Mar 21, 2009

I have a problem with an animation because I want to stop the loop sound without stop the entire animation what can I do to make correctly this action please? I tried to make a movieclip to control individually of the center time line but i dont get good results.

View 4 Replies

Professional :: Incorporate Audio (Voice) To Explain Flash Animation

Apr 6, 2010

I am doing a project on an interactive website that contains flash animations. I have to incorporate a voice that explains what is happening in the animations. I am using my own voice for this. I have recorded my voice and saved it as .mp3 files. between each animation there are about 6-10 audio files. I am pretty sure I can import the sounds into the flash library and drag the sounds on the timeline and sync the sound with the animations that way but is it possible to control the sound using actionscript as I have to incorporate buttons that allows the user to play, pause and stop the animation and the audio. Or can I only use actionscript to achieve this.

View 7 Replies

Flash :: Actionscript - Remove The Audio - Put The Audio Into A Byte Array And Then Re-add The Audio To The Flv Video?

Aug 6, 2010

If I import an FLV video is there any way to remove the audio, put the audio into a byte array, and then re-add the audio to the flv video?

View 1 Replies

ActionScript 3.0 :: Looking For UI For Animation Timeline Or Video / Audio Timeline?

Feb 7, 2011

I'm looking for an animation timeline or video/audio timeline ui or maybe like a gantt chart thing that can be adjustable. It's basically draggable icons in tracks and bars that you can adjust the size of.

View 0 Replies

IDE :: Jumping To A Frame Using XML

May 10, 2009

I'm adapting this iTunes coverflow style gallery for my own purpose [URL] Basically, the locations of the artwork and the URLs for when you click on a picture are stored in an XML file. Is it possible to adapt the AS or XML so that instead of opening a URL, clicking on a cover jumps to a particular frame on the timeline? Basically what I want to do is have the first and last items acting as previous and next buttons to go to a different frame on the timeline. I guess what i need to do is get the actionscript to do whatever is within and replacing that with the action I want it to perform?

View 2 Replies

ActionScript 2.0 :: MX Jumping On A Slope?

Nov 19, 2010

I have this rather cool code for a _mc on a slope. The only problem I am having is making the sprite.mc change states/animation when the sprite.mc is jumping.here's the code I have:

onClipEvent(load){
speed = 5;
gravity = 0;
r = _height/2; //radius

[code]....

View 1 Replies

ActionScript 1/2 :: Jumping From One Frame To Another?

May 4, 2010

I have a piece of code in AS3 but it doesn't work with AS2:
 
stop();
function login(event:MouseEvent):void
{
this.gotoAndPlay("first_page");

[Code]....
 
But I still have a problem. I have stops in each key frame but when I play the movie it shows directly the first_page section skipping all other frames before it.

View 4 Replies

ActionScript 3.0 :: GotoAndPlay - Jumping From First Scene To Next One

Jun 28, 2010

I have made 2 scenes. I am trying to jump 1scene to next scene you can find source file from here
scene1 is LoderScreen
scene2 is GameScreen and frame label is "start"
I did this gotoAndPlay("start","GameScreen")
But it is showing error/
Original FLA file [URL]

View 3 Replies

Professional :: Tween Before Jumping To Frame?

Jun 25, 2011

I am wanting to fade out of a frame and then fade into another, and the way i was thinking of doing this was to code a tween to alpha 0 and then use the code:
 
home_btn.addEventListener(MouseEvent.CLICK, startMovieHome);
function startMovieHome(e:MouseEvent):void
{

[Code]....
 
I dont know how to ask it to tween and then go to the label "home" once the tween is complete..

View 1 Replies

ActionScript 2.0 :: Looping Background And Jumping?

Mar 26, 2010

Okay so im making a game for a class...im using flash player 8....i need an actionscript code for looping a background that i have. i need an actionscript for having my character jump..

View 1 Replies

ActionScript 3.0 :: Jumping To Frame And Line?

Jul 5, 2011

ok so i know you can use gotoAndPlay to jump to a different frame but how do you jump to a curtain line of code in that frame

View 7 Replies

ActionScript 3.0 :: Frame Jumping On MOUSE_OVER?

Nov 11, 2011

What I created was just a test but I can't seem to get it working. What I did was create a very small rectangle at frame 1. Created a tween and then at frame 100 made it a very large rectangle.

Then in my code I wanted the user to MOUSE_OVER something and the rectangle to ease to the length it was at frame 30. However I keep getting this error message:

ArgumentError: Error #2109: Frame label frame 30 not found in scene Scene 1.
at flash.display::MovieClip/gotoAndStop()
at Untitled_fla::MainTimeline/test()

Here is my code:

[CODE]
stop();
circle_mc.addEventListener(MouseEvent.MOUSE_OVER, test, false, 0, true);
circle_mc.addEventListener(MouseEvent.MOUSE_OUT, test2, false, 0, true);

[Code].....

View 5 Replies

ActionScript 2.0 :: Jumping To Anchor On Another Page?

Mar 9, 2006

I want the button in my flash movie to jump to seperate html page called bios.html and go down to the anchor "kbrown".

I tried putting this code on the button. It went to the correct page but didn't scroll down to the anchor

Code:
on (release) {
getURL("bios.html/#kbrown", "_self");
}

[Code].....

View 2 Replies

ActionScript 2.0 :: Jumping When Space Is Pressed

Aug 11, 2006

I need to know what actionscript(2.0) to use in order to make my movieclip(player) jump when i press space and switch to another movieclip(player_jump) and then switch back to "player" when it reaches the ground. otherwise i won't be able to get my skateboarder to ollie(just so you know what kind of game it's going to be). my movieclips(sorry about the watermarks...)

View 14 Replies

ActionScript 2.0 :: Jumping To Scenes Via Variables?

Sep 12, 2004

how to jump to a scene that is identified by a variable?

I've tried:
New_Scene = "Scene 3"
gotoAndPlay ([New_Scene],1);

and all iterations thereof... No luck.

View 5 Replies







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