ActionScript 2.0 :: CS3 Caching Last Frame State And Audio Position

Apr 30, 2009

Back in 2007 I was using a script that allowed me to store in the browser's cache a specific frame, so that when I navigated through different static html pages, it would remember to not "load" (if you will) the first half of the movie.

I am working on a site that has flash elements, one being an audio player, another being popup navigation.

Does anyone have or know of a script that will allow me to do two things:

1) remember a position page-to-page via browser caching (so the navigation won't pop up every time)

2) allow the audio player to remember its last position and whether it was muted or not.

This is what I am using to pause/play the audio:

Code:
var mySound:Sound = new Sound();
mySound.attachSound("track1");
mySound.start();

[Code]....

View 1 Replies


Similar Posts:


ActionScript 1/2 :: Audio To Not Play When Moved To New Position For Audio Player

Aug 25, 2009

I have an audio player that has a custom timeline and playhead. I am using a start and stop drag to move in the time line but the only way i can make it work is to have it play when ever I release the play head. I would like it to stay stopped if the player is paused and play if the player was playing.
 
[Code]...

View 5 Replies

ActionScript 2.0 :: Moving X Position From Start To End State

Sep 12, 2007

I have this script, that zooms and fades the movieclip but I also need to shift the position slightly from the start state to the end state. For example var startX = 60 var endX = 70 so when the zoom start it starts at x = 60 and slowly moves as it zooms out to x = 70.

View 1 Replies

ActionScript 3.0 :: Flash - Stop Audio From The Last Frame When I Go To The Next Frame?

Jan 29, 2011

I'm working on a Flash CS5 file, with action script 3. I have a layer with all the audio for each frame. When I click the Next button, the audio from the last frame plays over the audio of the current frame. The only code I have in flash is:

stop()
btn2.addEventListener(MouseEvent.CLICK� forward);
function forward(event:MouseEvent) {[code].....

View 3 Replies

ActionScript 3.0 :: Click On Another Greeting The Original Greeting Still Plays In Ie - Swf Caching Or XML Caching?

Dec 30, 2009

I have this PHP page that lists several people. When someone clicks on one of the people they are sent to another PHP page that has their video greeting in a .swf embedded into the page. This works by the php writing the path to the greeting video to the xml file that the .swf loads and plays.

Well in firefox it works perfect, but in IE when they try to click on another greeting the original greeting still plays. Its like the swf is caching the first greeting and refresh of the page does nothing to alleviate this. Is this a problem with the swf caching? or XML caching? or am I totally clueless?

[Code]...

View 1 Replies

ActionScript 3.0 :: Save State Of All Movieclips On Frame

Oct 2, 2011

How can I simply use an array or something to save the current frame of all the child movieclips so when I change the frame and then go back, they don't start on the first frame again? It is a very simple question, but I have a feeling that it is going to be super hard to implement.

View 1 Replies

ActionScript 2.0 :: Remember A Selected State On Frame 5?

Nov 6, 2006

i'm trying to remember a selected state on frame 5 and when i return back to that frame i want it to still be selected. here is my code so far:

Code:
var back:Object = new Object();
back.click = function(oEvent:Object) {
oEvent.target.selected = oEvent.target.selected;
};
q1.addEventListener("click", back);

i know its probably a little bit wrong but yeh i have this code on my back button in frame 20.

View 1 Replies

Actionscript 3 :: Syncing Frames To Audio And Channel.position Acuracy?

May 30, 2009

Calling channel.position on an ENTER_FRAME event, I notice that it's not being updated every frame, but it looks more like every frame and a half.

var sound:Sound = new Sound(new URLRequest('music.mp3'));
var channel:SoundChannel = sound.play(); // assume the sound is completely,
// totally, 100% loaded

[code]....

View 1 Replies

ActionScript 2.0 :: Change Movieclip Buttons State When Timeline Reaches A Certain Frame?

Nov 18, 2009

I have a menu with 4 movieclip buttons (movieclips that act as buttons) that when pressed make the timeline jump to a certain frame. The mc buttons have both "onrollover" and "selected" states. However the timeline also moves on its own, even if no button is pressed.

I need the buttons to assume the "selected" state when the timeline reaches a specific frame (as if the button had been pressed to make the timeline jump there). But I can't figure out how to do it althought I think it must be quite simple.

This is the code I'm using (controls the buttons and its on the first frame of the main timeline)

------------------------------------------------------------------------
// create an array of all nav buttons in group
var groupinfo:Array = [birds, bears, bats, bunnies];
// create constants to define start and stop of fadein and fadeout sequences
// (fadeout should be exactly the same sequence as fadein, in reverse frame order)

[Code].....

View 1 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 1/2 :: Dynamic InstanceName - Link The State Id's In The Xml Record To The State MovieClips That Make Up The Map?

May 12, 2009

I have a flash map that contains 51 movieClips, one for each state.Sample instanceName for a state (Alabama) would be: S_01
 
I have a XML record that contains specific info for each state.<stateID>01</stateID
 
I am trying to link the stateID's in the XML record to the state movieClips that make up the map.var stateInstanceName = 'S_' + stateID;
 
I was just trying to do a simple trace command to see if I could pull the _width of each state clip to see if I was linked up:
 
trace(mapInstance.stateInstanceName._width)

View 7 Replies

ActionScript 3.0 :: Flex - Loading Page As One State And The Main Application Design In Another State?

Apr 9, 2011

It's my understanding that view states can be useful when switching the layout of design elements. Such as, a loading page as one state and the main application design in another state. Is this the correct use of them? Additionally, I have a label in State1 and I cannot figure out how to access that label via actionscript. labelID.text = "New Text"; is not working.

View 2 Replies

Actionscript 3 :: Adding A Rollover State To A Spark Button When State Is Disabled?

Apr 14, 2011

I need to add a rollover effect to the disabled state of a Spark button. This way, users can rollover the button and know why the button is disabled.I think I would have to override ButtonBase's getCurrentSkinState. Is there anyway to test if a mouse cursor is over a disabled button?

View 1 Replies

ActionScript 1/2 :: Export Audio After Frame 1

Jun 10, 2010

I searched the forum and only find AS3 solutions. Does anyone know a way to export audio for actionscript after frame 1? I unchecked the "Export on Frame 1", and what that did was to skip exporting my audio all together. "Export for Actionscript" is still checked, but I don't know how to tell it when, I guess, is the problem.
 
I saw one thread that said to put the audio on the timeline, so I tried it, and although the volume slider still to worked with that metthod, but the mute button, which uses the Sound.start() and Sound.stop() commands, stopped working.

View 3 Replies

Professional :: Music To Frame - Audio In CS5.5 Pro

Mar 8, 2012

Never thought waiting seven years to update my software would be such a relearning experience...lol In Flash MX to add audio into a movie clip, animation, etc, all you needed to was add the file to your library and drag it onto the frame in which you wanted the audio to play. However when I try this in CS5.5 nothing happens. I'm sure there's just a different implementation now, and I don't know what it is.

View 1 Replies

Flash :: Embed Audio In Frame 2?

Oct 10, 2011

In the Library the mp3 has checkmark in "Export for ActionScript", and has "Class" set to "Song". There is no checkmark in "Export in frame 1", yet despite this, it seems that the mp3 is exported to frame 1. I have generated a size report and seen that the mp3 data ends up in frame 1. If I remove the mp3 from the project again, then I can see that the size of frame 1 drops from about 1.7 Mb down to 20 Kb.[code]...

How can I play audio in flash AS3 with audio is embedded in frame 2 ?

View 1 Replies

ActionScript 2.0 :: Fade Out Audio On Next Frame?

Apr 19, 2010

how I can fade an audio clip out when I go from, i.e., frame 5 to frame 6?

The reason is that I have my swf playing up to frame 5, where it stops, and allows the audio to continue playing. But, if the user wishes to go to the next part of my swf, i.e. frame 6 to frame 10, where it stops at frame 10 to play the next audio clip, I want the audio from the first section to fade out once the swf gets to frame 6 on the timeline to allow for the next audio clip to play.

Currently, if I proceed to the next part, frames 6 to 10, and the audio from the first part has not finished playing, then both the first audio and the second audio play simultaneously.

View 5 Replies

Flex :: Get State Group / Actual State Object For Current?

Mar 30, 2012

I'm using Flex 4.5 and trying to take advantage of the new state groups feature. I have two States (call them readType1 and readType2) that both belong to the same stateGroup (call it readOnly). There are several places where I'd like to do something based on the current state, and it would be the same thing for the two read states. [code]...

View 1 Replies

ActionScript 3.0 :: Loading Audio Clips After Frame One

May 12, 2010

The project I'm working on consists of a bunch of pages, each with narration. Each page is a separate frame on my main timeline. Due to all kinds of issues I was having, I am now loading in the audio via actionscript, rather than placing an instance of it into an object and going from there. The issue I am now having is that when I tried to simulate a download, the movie would sit on frame zero until all audio was loaded, so it took a long time to get to my preloader, and by then the movie was just about finished loading.

It was suggested that I uncheck "export at frame 1" on my audio files, but now I am getting errors that I am making a call to a possibly undefined method (random audio file name of choice). If I am loading my my audio via actionscript, do I have to load it all in on frame 1? And if so, is there any way for my movie to get to my preloader before trying to load things? I have also tried setting my publish settings to export my classes on frame 2 or 3, in the hopes of it getting as far as my preloader before stopping, but no luck so far.

View 12 Replies

Flex :: Set Size Of State After Moved Child State Using AIR?

Jul 25, 2009

In my air project i used current state size is width="441" height="358" . i have link button like Singin then move to singin state (currentstate='singin')

<mx:State name="signin">
<mx:SetProperty name="height" value="616"/>
<mx:SetProperty name="width" value="919"/>

So application resize into 616,919 . After that function finished move to current state like(currentstate='') But size not be changed . How can i set the size for current state?

View 1 Replies

Flex :: Fade All The Elements Of The Next State When Transitioning From Any State?

Jan 27, 2010

I want to fade all the elements of the next state when transitioning from any state.I tried different things but I can't get it to work. And I don't want to manually add transitions for every state.

Something like:

<s:Transition fromState="*" toState="*">
<s:Fade target="*" duration="500" />
</s:Transition>

View 2 Replies

Flex :: Creating State Children Before Switching To State

Mar 25, 2010

In my view I have a welcome screen:

[Code]...

Which is a pretty small component and I have panelContainer:

[Code]...

Whilst the user is reading the warm and fuzzy welcome note in the welcome state I want to be creating the big expensive panels state so taht when we switch there is no delay. Before the panels state is set panelView is null but I presume there must be an IDefferredInstance floating around somewhere that I can use to kick off the creation of the view. How can I get hold of it?

View 1 Replies

ActionScript 3.0 :: FLV Audio Keeps Playing When Navigating To Different Frame / Moveclip

Feb 10, 2010

1. I have a swf contains a FLV paly back component playing a movie .I have used flash cs4 import movie tool to create it. Name of the files are >movie1.swf movie2.swf

2. In the main movie I have a movie clip which loads the movie1.swf and it start playing .Now  user can move from move1 to movie2 by clicking a button

However when I click to view second movie sound of the first movie is still playing .Even if I click to go back to movie1 another sound will be playing and a big mess.[code]...

View 3 Replies

ActionScript 1/2 :: Stop Attached FLV Audio When Leaving Frame?

Mar 11, 2010

I have an embedded video object in a single frame. A script attaches an external FLV file which plays upon entering the frame. When I leave the frame to go to other parts of the movie, the music from the attached FLV continues. How can I stop the audio when I leave the frame?

View 3 Replies

ActionScript 3.0 :: Stop Audio File On Frame Exit?

Nov 24, 2009

I have added 4 different sound files to 4 different frames that are navigated via buttons. The problem i have is that if you navigate to another frame while one sound file is still playing the sound file continues over the next frame and the sounds clash. What i need to do is have the sound files stop once the frame is exited so is there a simple way to do this in AS3...

View 3 Replies

ActionScript 2.0 :: Preloader And Export First Frame Audio Links?

May 2, 2006

I'm having trouble figuring out how to get my audio to load without exporting it in the 1st frame. In other projects where I use components, in the linkages panel, I deselect 'export in first frame', and put an instance of the component in an assets frame. That way the preloader opens right away and the components loadup in the second frame (which just gets jumped over when the movie plays). I'm trying to do this with my linked audio but it won't work. When I deselect export in first frame, I just get no audio. In the assets frame I have the actionscript

[Code]...

View 2 Replies

ActionScript 3.0 :: Class - Load The Audio File In Frame

Oct 10, 2009

I made a doc class and a sound class. the sound class purpose is that if ever add sound i can just recycle easily the code to use and via the doc class just load it intot he correct frame. Issue: I made the sound class and it loads correctly for the first frame... But i want to add ANOTHER audio file, how would i alter my code setup so i can load the new audio file but instead on frame 1 always... i want to be able to load the audio file in frame 3 or 5 or 25.... How do i do that with the code i have setup??

[Code]...

View 1 Replies

ActionScript 3.0 :: Make One Sound On The Over State And A Different One On The Down State?

Oct 4, 2008

I am trying to get converted to Actionscript 3 from AS2.In old versions of flash, you simply placed the sound in a keyframe inside the button on the over or down state. Worked fine, but not anymore.I guess the sound must be set up with actionscript and a listener.I understand linkage. how to make one sound on the over state and a different one on the down state?

View 4 Replies

ActionScript 2.0 :: Find Frame Position Of An MC With It?

Oct 2, 2003

How do you find the frame position of an MC with AS? I have several MCs that are supposed to play one after the other, however there's got to be a way to keep my AS organized and not have nextMC.gotoAndPlay()s at the end of each one, ya know. I try to keep my AS all on a few essential well marked frames.

View 5 Replies

ActionScript 2.0 :: Sound Flash - When The Audio Finishes It Goes To The Next Frame Automatically

Jan 28, 2010

I am trying to make a webinar in flash, I have frames and in those frames I need to insert audio and when the audio finishes it goes to the next frame automatically. but I also have a menu bar and when I click on a button to take me to a frame i get a whole load of audio going on. I just need it to go to that frame and play the audio Just want to be able to have it play though, when the audio finishes it goes to the next frame or if i click a button on the menu it takes me to the frame i need,

View 1 Replies







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