ActionScript 3.0 :: Swf Keeps Playing When Move Webpage?

Jan 10, 2009

New to this and using Flash CS4/AS3 to build simple website...and everything works fine apart from the swf movie keeps playing when I move to another page.

I am using MC buttons to go to labels on a timeline in a MC. On the time line 'videos' I dragged on UIloader to play a swf of a video. My problem is that when I go to another page (along the timeline), 'home' or 'contact' etc, the swf is still playing from the 'Videos' section. You can't see it of course but can hear the sound. If I click back to 'Video' the swf starts to play again over the first play. I have stop action on timeline above each different section, but this just stops all the pages from cycling.

below is the code i'm using for the buttons.

function btn1Over(event:MouseEvent):void {
btn1.gotoAndPlay("over"); }
function btn1Out(event:MouseEvent):void {

[Code]....

View 1 Replies


Similar Posts:


Playing FLV File On Webpage Without Player?

May 18, 2009

I need to play a FLV file on a web page, but I don't want it playing in a visible player. That is I don't want there to be the usual Play button and no frame. I want it to work and look much like this link: [URL]. It is similar to those infamous "Mac vs PC" videos which occasionally play on the home page of [URL]. My flash ability in this area is limited. (I'm a Joomla pro but not a flash pro.) Looking at the source code, I see various swf controller file links, and some javascript, I think.

I have no idea what is in the swf files that may or may not be making it all work. First of all I don't even know if it is possible for a FLV file to play above html and then disappear revealing the html when it is finished playing. I assume with the swf and javascript and divs this is possible, but am not sure.Ideally I would love the complete code if possible. Or links to where I can find out how to do it.

View 1 Replies

ActionScript 3.0 :: Movie Keeps Playing When I Leave Webpage

Aug 6, 2009

I have run into a sticky problem in IE7.

A visitor can click on one of four links on an HTML page. Each takes them to a correlating anchor position within a movie that is located on another page.

When they click on the link, they are taken to that page and the movie begins playing at that location. So far, so good.

Some visitors hit IE's browser back button to return to the orig page. There, they click on one of the other anchors and are once again taken to the page with Flash. This time, however, the audio from the first anchor they clicked continues to play below the new audio they selected.

Apparently, the original link doesn't stop playing. Is there a way to stop a movie from playing as someone uses the browser's navigation to leave that page?

View 2 Replies

ActionScript 2.0 :: FLV Sequence - Building Interactive Move (Webpage)

Oct 19, 2009

So imagine the scene. I have A Rubik cube visual that I have animated (nice 3d flv sequences that i have imported into the swf). I have a loop that i want to use as a base...and 4 movies that act as transitions each to a different screen containing copy (A sill of the last frame of my transition movie and some copy that I want to add in flash text - think dvd menu style) ( Also with 4 transitions that return the cube back to its default set up and loop).

How would one go about coding these interactive elements. I think of it in terms of DVD menus. I would build in encore and export as flash but Idon't want the 720 resolution. The code cannot be that complicate can it? Its just going to be about controlling how the movie plays, stops (using certain movies as transitions) and coding the button. I suppose i am proposing building an interactive movie style set up?

View 1 Replies

Flash :: Options For Playing Multicast Video On A Webpage

Feb 14, 2010

Assuming a network hierarchy that supports video multicasting, what options are there today to tap into this stream from a web page? I've seen some references to this with Silverlight and project Star Light, which I unfortunately have no experience with. It also feels like a third option behind HTML5 and Flash.

View 1 Replies

ActionScript 3.0 :: User Leave Webpage But Movie Keeps Playing

Aug 6, 2009

I have run into a sticky problem in IE7. A visitor can click on one of four links on an HTML page. Each takes them to a correlating anchor position within a movie that is located on another page. When they click on the link, they are taken to that page and the movie begins playing at that location. So far, so good. Some visitors hit IE's browser back button to return to the orig page. There, they click on one of the other anchors and are once again taken to the page with Flash.

This time, however, the audio from the first anchor they clicked continues to play below the new audio they selected. Apparently, the original link doesn't stop playing. Is there a way to stop a movie from playing as someone uses the browser's navigation to leave that page? The links page is here (just click on a photo to begin the movie. [URL]

View 0 Replies

ActionScript 2.0 :: Move To Another Frame After FLV File Finishes Playing?

Dec 7, 2009

I have several FLV files that play via the FLV playback component dragged onto the stage. The user presses a button and the appropriate FLV plays.

After it plays I what to move to another frame so the FLV is no longer on the stage and makes way for the next one the user selects.

View 1 Replies

ActionScript 3.0 :: FLV Player Stop Playing When Move To A Different Frame?

Mar 19, 2010

I'm trying to create a small flash website for a Uni project (I'm a music student but they want me to be able to make websites, go figure?) and I am having trouble getting a video to stop playing when i goto another frame. Im using the FLV player from Window>Componants and i have named it PubPlayer. I've tried setting its source to Null, Using .stop() and even setting its volume to 0 but everytime i goto another frame it keeps playing.Im gettingTypeError: Error #1009: Cannot access a property or method of a null object reference.at AlbumsEps_fla::MainTimeline/GoAlbum()My code is as followsQuote:

stop();
PubPlayer.source = "Machines.f4v";
function GoHome(event:MouseEvent):void {

[code].....

View 4 Replies

ActionScript 2.0 :: Load 1 Swf Per Frame: Move Down TL As Each Swf Finishes Playing?

Jan 22, 2008

I have about 30 very simple external swfs--each contain an image with tweened fades and rollover-to-pause/rollout-to-resume actions. They're loaded onto the main timeline one after another as a slideshow. It's an auto-play and loop: each image swf loads the next one on to the empty movie clip after it is done playing. (i.e., swf1's last frame loads swf2, and so on.)

This set up was fine until I realized that I should have a place-marker--something that indicates where you are in the slideshow. No other functions (go to next/previous) for the marker. I just need to show graphically that you're seeing the 5th of 30 images. The graphic is 30 dark dots that get filled in as you progress.

To do this, I figured it would be easiest if I designate 1 frame per image (=one swf) on the main timeline. So, frame 1 will load 1.swf and when 1.swf finishes, frame 2 will load 2.swf. This will make it easy for me to color in the appropriate dots according to where we are in the slideshow.

What I think I need to figure out is to "pause" at each of the frames on the main timeline until the loaded swf is done playing. They're all different in length--some are 50 frames and some are 90 frames long.

I almost had it figured out from massive googling, but I honestly don't understand it well enough to tweak what I've found to do what I want it to do.

Also, if there is a way that I can easily make the "place marker" work without changing the way it is currently set up (1 frame in main time line; 30 swfs that load one another), that would be even more awesome!

View 10 Replies

ActionScript 2.0 :: Mc To Move Onto Frame 2 When An Imported Mp3 Starts Playing

Jul 16, 2003

i want a mc to move onto frame 2 when an imported mp3 starts playing. i've found :

[Code]...

View 7 Replies

ActionScript 2.0 :: Move My Mouse To The Button It Resets The Movie Clips Thats Playing

Apr 18, 2011

I am having a movie clip playing on a loop on the ON frame of a button , and something else on the OVER frame, and everytime i move my mouse to the button it resets the movie clips thats playing. heres my file:
[URL]

View 1 Replies

Professional :: Playing An External Video File And Upon Video Being Played, Move Onto Next Frame?

Dec 16, 2011

I suppose the title says it all.  I can load an external video file (FLV) and I can have it play.  I also have the custom buttons made to control the clip.  The only thing I have left to do is to have the main timeline move onto frame 2 once the external video reaches its end.  I am using actionscript 3 and flash cs 5.5. 

View 7 Replies

ActionScript 3.0 :: Mp3 Title List - Stop Button Should Move From Song To Song When Playing?

Aug 19, 2009

I have a list of mp3-songs, when song 1 is clicked it gets streamed, a stop-button appears, if this Btn is clicked, this Btn disappears as it should - but if user forgets to click for stopping sound and clicks song 2, stopBtn 1 remains and the new stopBtn 2 also appears. there should be only one stopBtn, the one next to the song is playing.

I would like to move the stopBtn and I have tried several approaches move; graphics.moveTo; if(stopButton !=null) {removeChild (stopButton)}; I packed the var stopButton:Sprite in the header and so on.

Code:
SoundMixer.stopAll();
import flash.display.Sprite;[code]..........

View 0 Replies

ActionScript 2.0 :: Get The Move And Zoom To Be Smooth So The Users Can See It Move Across The Screen Then Gradually Get Bigger?

Apr 11, 2004

tutorial where when you click on a movie clip it moves to a certain location on the page and then zoom in and makes it a certain size. Also i want it to move back to its original location if you click it again.I want the move and zoom to be smooth so the users can see it move across the screen then gradually get bigger.

View 5 Replies

ActionScript 3.0 :: Make Buttons That On Rollover Move To Left - On Rollout Move Back To Their Initial Position

Dec 15, 2009

well i want to make buttons that on rollover move to left, on rollout move back to their initial position, and if clicked, they but stay this time at the final rollover place, and be there until something else is clicked. When something else is clicked, the previous button , returns to its initial place. So i ve got it all figured out except for the freeze and move part when the buttons are clicked. All it does now , is when they are clicked they freeze at the position i want, but i havent got a clue how to update them, after so they start moving back, and reacting on rollover and rollout, when the next button is clicked.

[Code]...

View 2 Replies

ActionScript 2.0 :: Move And Loop - Move An Object Across The Stage And Once Out Of Site

Dec 11, 2006

I know this is very noob, but I need a simple AS move and loop. Move an object across the stage and once out of site, loop and start over again? It needs to be a slow and endless loop.

View 3 Replies

Actionscript 3.0 :: If Press Play Button While The Sound Is Already Playing It Has The Same Song Playing In The Background

Nov 13, 2010

I have a sound clip that I'm loading externally into my flash file. The code I'm using looks like this and is placed in the as layer on the first frame,

var mySound:Sound = new Sound();
var myChannel:SoundChannel = new SoundChannel();
var myTransform = new SoundTransform();
var lastPosition:Number = 0;
mySound.load(new URLRequest("introaudio.mp3"));
myChannel = mySound.play();
[Code]....

View 14 Replies

Professional :: Playing Scenes In Test Movie Animations Stop Playing?

Dec 4, 2011

I am using AS2 in CS5.5.I am creating a project for a class that introduced me to adobe flash.  The issue is I have gotten to a certain point about 15 scenes.  During say the 15th scene scrolling through the timeline animations works fine, playing it on test scene works fine.  When I go to play it on test movie it stops at a certain point.  At first I thought it might have been a misplaced stop action but there is none to be found.  The weird part is every other scene I create after that continues to freeze as well, the images are there, but the animations won't play.  All my previous animations play before those with the issue, it's justThese new ones won't play for some reason in test movie, but work completely fine in test scene and the timeline.

View 4 Replies

ActionScript 3.0 :: VIDEO Stops Playing, Continue Playing Flash Movie?

Aug 7, 2009

I am loading an external SWF file into my main timeline. The external SWF file contains an FLV video. At a certain point in my main timeline, the SWF file loads and plays the video. Is there a way to say...

If the VIDEO (FLV) is done playing, gotoAndPlay(X)?

View 4 Replies

ActionScript 3.0 :: Detect Cuepoints Playing From FLV Movie That Is Playing From FLV Playback Component?

Oct 9, 2009

I was wondering, what was the best way to for actionscript 3.0 to detect cuepoints playing from a FLV movie that is playing from an FLV playback component?

View 1 Replies

ActionScript 3.0 :: Detect When A Playing Audio File Has Reached The End (stops Playing)?

Aug 31, 2009

I have some animation (programmatic, I'm NOT using keyframed animation in timeline), and some music I want to play in the background. Once the music file reaches the end (about 30 seconds long), I want to trigger the end of the animation functions.I figure I could either use an actionscript timer to trigger the end of the animation or a keyframe with actionscript that is placed on the timeline near the end of the song but these methods assume knowledge about the duration of the wave file. If I changed the framerate or updated the external wave file, these triggers would possibly no longer sync upIs there some sort of event listener or other detection method for an audio file to signal it has finished playing? Or maybe there is a way to get the duration of the audio file to use in the timer

View 3 Replies

ActionScript 1/2 :: Stop Other Sounds From Playing While Current Sound Is Playing?

Apr 10, 2011

I am creating a game that has 6 movieclips all on the main time line of the game. Each movie clip has three buttons that when clicked plays, pauses or stops a sound clip.When I press any of the sound clip play buttons that sound starts playing, the problem is when I click any of the other sound clip play buttons those sounds also start to play. Is there a way I can disable the other sound clip buttons while the current sound is playing then enable all of the buttons when the current sound has stopped.
 
This is the code that creates one of the sound objects

[Code]...

View 3 Replies

Flash :: ActionScript - Make Sth Move Somewhere And Move Back?

Jan 27, 2010

Using Tween class maybe? I tried the easeOut. But if will write 2 Tween, the 2nd one will overwrite the 1st one, so I only see the obj moving in the 2nd Tween direction, not the 1st Tween direction. I know the coordinates for the 2nd Tween below is not correct (cos all coordinates shld follow the defined reference point), so I need to find out the logo's width and height. But is alright now cos it is for testing purpose.

[Code]...

View 2 Replies

ActionScript 2.0 :: Click In Ball And Move It Up, The Gravity Move It Down?

May 8, 2002

How can I move (on click) the ball up? I'd like to click in ball and move it up, the gravity move it down as well...

View 1 Replies

Stop The Playing Sound And Start Playing The Button?

Oct 3, 2009

So I made a few buttons with sounds within them and when I publish it they work just fine. But what I want them to do is;

Say I click a Button.The sound starts playing.Then I click it again, before the sounds done playing.I want it to stop the playing sound and start playing the button I just clicked on, whether it be the same button, or a different one.Right now it just ends up sounds like an echo because it'll play it as many times as you click it.

View 2 Replies

ActionScript 3.0 :: MP3 - Stop Whatever Song Is Playing And Start Playing The New One?

Apr 13, 2010

The problem I have is I click the play button and start playing. Then I click next and when I click play for another song the songs overlap. How can I stop whatever song is playing and start playing the new one? Has to stop the prev song when I click play_brn.

[Code]...

View 2 Replies

Flash :: Move Shape With S:move MXML?

Feb 13, 2012

I'm trying to create an animation with an rectangle. I want the rectangle to move in a loop from x=150 to x=50 and back to 150 and so on.

At the moment I can only move the rectangle forward and it stops after it moved 100px.

how to create the loop ?

This is what I have come up with. not much Iknow.

<s:Move id="moves"
target="{rect2}"
xBy="-150"
duration="1000"
easer="{sineEasing}"/>

View 2 Replies

Professional :: Stop A Sound From Playing If It Is Playing Already

Dec 6, 2011

ok so i have a button that plays an animation for fire when held down. and when realsed goes to and stops and frame one. when it reaches the end of the time line it goes to and plays at frame 10 and goes back to the end of the timeline. I have a sound for the fire animation that plays for the effect. The problem is the sound keeps going untill its over even if the button isnt held down. and when the playhead reaches the end of the timeline it goes to and plays and frame 10 and it replays the sound. if i hold it down it will just keep playing the sound over and over from start to finish. what i want it to do it when i hold the button down i want it to play the sound and when released it stops the sound where ever it is at. I also dont the sound to play again if there is a sound already going to stop it from playing 20 sounds at one time it gets loud and you need asprin after about 5 seconds of that.

View 2 Replies

ActionScript 3.0 :: Enemy Animation Sequence - Rotate + Move, Then Stop Then Shoot Then Rotate Back And Move Off Screen

Aug 10, 2009

I am having some dificulty making a path for this enemy i'm trying to create... cause i want him to rotate + move, then stop, then shoot, then rotate back and move off screen... Its easier if you see it.. you can download the swf file in the zipped archive to demonstrate what i mean. I did it there with tweens. Anyway.. i tried and make it but i'm a little stuck on the stopping part... you can also see what i did in the fla file attatched...

View 1 Replies

ActionScript 2.0 :: Have 2 Movieclips - Move Both Of Them But The Second Movie Clip Will Only Move If The First Clip Reach His Final Destination?

Aug 29, 2003

i have 2 movieclips: i want to move both of them but the second movie clip will only move if the first clip reach his final destination how do i do that?

View 2 Replies







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