ActionScript 3.0 :: Hide/Stop MC When A Second MC Starts?

Nov 16, 2011

im currently creating a page that contains a number of movie clips where when the mouse goes over the movie clips, the mc (which is a photo) enlarges on the screen.

Currently when I click a second mc the first mc is still visible and if the second photo is on a layer above the first photo then it's enlarged image is in front of the first enlarged image. (does that make sense?)Current script is (without any actions to hide the images as they didn't work):

//mcBarbara
mcBarbara.addEventListener(MouseEvent.MOUSE_OVER, playMovie1);
function playMovie1(evt:MouseEvent):void
{

[code]....

View 2 Replies


Similar Posts:


ActionScript 3.0 :: Hide/Stop MC When A Second MC Starts

Nov 16, 2011

creating a page that contains a number of movie clips where when the mouse goes over the movie clips, the mc (which is a photo) enlarges on the screen.

Currently when I click a second mc the first mc is still visible and if the second photo is on a layer above the first photo then it's enlarged image is in front of the first enlarged image. (does that make sense?)

I have tried a number of different functions to hide the current mc when a new one is clicked but I can't find any that work.

Current script is (without any actions to hide the images as they didn't work):

//mcBarbara
mcBarbara.addEventListener(MouseEvent.MOUSE_OVER, playMovie1);
function playMovie1(evt:MouseEvent):void
{

[Code].....

View 2 Replies

ActionScript 3.0 :: Stop Class File From Automatically Starting And How To Stop It After It Starts?

Oct 13, 2011

How do I stop a class file from automatically inserting itself into the .fla file. I want to insert it manually into a frame, and then tell it to stop after I leave the frame.The following is the code included in my .as file.

ActionScript Code:
package {
import flash.display.*;
import flash.events.*;[code].........

View 3 Replies

Php :: Stop A Player When Another Starts?

Mar 23, 2011

I have multiple players on the same page (flash as3), but I would like, that when a player is playing, stops, when another player begins to play...

View 2 Replies

Flash :: Stop A Video Before It Starts?

Jun 12, 2011

I'm comfortable with PHP and Javascript but this is the first time I'm using flash. I have Flash CS5.

I've managed to import a movie file, however, as soon as it's downloaded it starts playing. I've tried using the Action stop(); coding, which works file in the export preview in CS5, but on a website it runs straight away.

I know I can't use the command because that stops the timeline but by then the video is already playing. My solution would be to use and have the video in frame 2, then get javascript to jump to frame 2 when I was ready. However, I can't find a way to import a video file to a frame in CS5. Is there a better way?

View 1 Replies

Flex :: Stop A Soundeffect Once It Starts?

Jun 10, 2009

Play a sound effect when the user mouses down on the HSlider. Stop or pause the sound when the user mousses up. The following code starts the sound but a mouseup does not stop it.[code]...

View 1 Replies

Professional :: Stop Background Music When Flv Starts AS2?

Apr 7, 2011

I have a flash game that I have videos between some, but not all questions.I would like to have background music that would play during the questions then mute, or turn off when the video is played, then turn back on when video is completed.If possible, but not required, a mute button could be created that would mute the music and would overide it turning back on as well.In other words the person takes the quiz, when the video plays it shuts off the music and starts it back up when video ends. And if possible, if they select to mute the music before the video plays it will not restart after the video completes.I did this in actionscript 2. The questions are on frames 1-50, the videos are on frames 100-110.I have it set up when a question is answered it goes to the video then back to the next frame for questions when it completes.

View 1 Replies

Stop IPhone Playing Music When My App Starts?

Jan 14, 2012

I have produced an app for iOS but when it loads the music from the iPhone doesn't stop.
 
I have read on forums that if an app contains sounds that the iPod will fade out but it doesn't for me.  I have tried loading the sounds dynamically (these sounds don't play at all if the iPod is playing) and embedding them into the movie.  Nothing seems to work sadly.  I have ensured that I have all the recent updates for flash and the air packager and I can't find a solution to this anywhere.

View 1 Replies

ActionScript 3.0 :: Stop Mp3player Swf When Another On The Same Page Starts

May 19, 2010

I've created a small mp3player which is to be used twice on one page (eg. songA.swf and songB.swf). Both are based off the one .fla file and use exactly the same code. My client has requested that only one player function at a time, so that if a user is listening to song A and then starts playing song B without pausing song A, song A will stop playing and reset, and vice versa.

I've been scouring the web for the past few days looking for an AS3 solution but I haven't found anything I've been able to successfully apply, as I'm really quite new to AS3 and only a basic background in javascript has helped me get this far. Attached is a zip folder containing .fla's and an html page as an example of how it will be used on the client's site. And a link to a live example page included in the zip file: [URL] Other notes ummm... I'm using swfobject to display the swfs, and currently they display across the top browsers.

[Code].....

View 0 Replies

Actionscript 2.0 :: Stop Music Playing In One Swf When Another Swf Starts?

Oct 26, 2010

On my main SWF Home File i have 2 swf files are loaded into my (main home swf) and everything is runing smooth BUT the problem is when i want to watch the video the music is still playing i have to click on the button to stop music playing.

what i want is when i click on the video to play i want automatically the music to stop playing with out me clicking the mp3 button to stop the music playing.

NOTEKeep in mind i have 2 SWF files that are loaded in to the main swf file ...Home SWF is the main file

MP3 SWF << Loads on Home SWF
Video SWF << Loads on Home SWF

All i want is when the video is playing automatically stop the music and when the video is finish the music automatically continuing from where it was left.

View 1 Replies

ActionScript 2.0 :: The Movie Starts Again Even With _root.stop()?

Jul 30, 2011

I have a movie with 3 scenes, the last one has only just one statement on the timeline:_root.stop(), and there are not library objects neither ones created by code. Just and empty stage with the statement I told.I know I am not an expert in Flash yet, the entire design of code in timeline and movieclips are not very clear and tidy.When the movie reaches the scene three, it stays one or two seconds (not the same amount of time in each playing) and replay from scene one and the things become chaotics from there. I revisited one and two times the code and objects from movie explorer tool and can't figure out what demon makes re-start the movie when it must stop in the last scene

View 1 Replies

ActionScript 3.0 :: Debugger Starts But Doesn't Stop At Any Of The Breakpoints?

May 7, 2009

I'm trying to debug my as3 game, but no way, the debugger starts (with the different debug panels) but doesn't stop at any of the breakpoints so i created an empty as3 file (.fla) and put some simple code:

[Code]...

I put a breakpoint at line 2when i press Ctrl-Shift-Enter Or Debug>Debug Movie, it traces "Hello" 2 times without stopping when i right click on the new flash player window that opens, it shows DEBUG on the menu (not grayed), and i think that it means it's the flash player debug version that is running I'm running on Vista and I tried reinstalling Flash without success, but i've got another PC with windows XP and it works well on it,
Are there any restrictions on Vista or maybe services that should be started, or anything that should be activated / deactivated?

View 13 Replies

ActionScript 2.0 :: Stop Clock That Starts On Touch Of A Button

Mar 3, 2004

I want to make a stop clock that starts on the touch of a button.Like using getTimer() but only starts the time at the click of a button.I do not want to display todays date but just a millisecond stopclock like on a watch, one that you can reset and time again.

View 1 Replies

ActionScript 2.0 :: Stop Website Music / When Clip Starts To Play

May 18, 2010

when you play the short clips the sound of the site keeps playing in the background and the sound of the video plays over the top. Is there anyway to stop the website music when the clip starts to play and when stop or the clip finishes the website sound starts to play again. So you know what I mean the website is URL...

View 1 Replies

ActionScript 2.0 :: F8 Hide Or Stop Loading Progress Bar?

Nov 26, 2007

I have a situation where I'm using the FLVPlayback component and it starts off blank, meaning that it shows the video player skin but doesn't load a movie until prompted to do so. However, the progress bar in the skin is acting as if a movie is being loaded. I'd like to make it invisible or stop it until I need it, but I can't seem to target it. I've tried the following with no success.[code]

View 1 Replies

Javascript :: Toggle Flash / Hide&stop Or Remove?

Apr 21, 2011

I am going to be setting up a control that can hide and show a flash video.I want to either stop it when its hidden, or remove it entirely. I've been able to do both, but which is better for the user.Hide and stop means its already loaded. But the flash object is still there, so I worry about it eating up processing power.Removing it entirely means no, its not there, but adding it again appears to send out a call to re-download the file.

View 2 Replies

ActionScript 2.0 :: LoadSound Starts Fine, Then A Second Starts Replaying Again?

Apr 8, 2006

I've got a site that is using loadSound to play some mp3s and it works fine. however, the sound starts to stream, and then replays itself like a second later. my guess is that its playing faster than the load is going and when it gets to the point where it hasn't loaded enough, it starts to replay it, but i'm not sure that that is the exact problem. my code:

[Code]...

now, i tried making a playTrack function that i can call with setTimeout and i put that in the onLoad in place of track.start(), but that didn't work either (i was hoping to not start playing the track for 3 seconds to give it some time to buffer).

View 1 Replies

Sound Stop All Sounds Works / Then Sound Starts Again?

Jan 5, 2010

I am using FLASH CS3.I have gone through many posts, seems to be an issue with many people.Still haven't come across a fix.Website made in FLASH. Flash movie loads and sound works great!I have a button with 'StopAllSounds' action script.[code]When I go back to main page... sound starts up again.Is there a way I can stop all sound regardless of where the visitor goes on the website?

View 2 Replies

ActionScript 3.0 :: NetStream Choppy - Make A Character Start To Talk When The Sound Starts And Stop Talk When The Sound Stops

Aug 5, 2010

Need to make a character start to talk when the sound starts and stop talk when the sound stops so I'm using this:

[Code]...

View 2 Replies

ActionScript 2.0 :: Move Mc With Mouse But When Mouse Stop Mc Hide?

May 13, 2010

i am using this on Mc

onClipEvent(enterFrame){
diffx = _root._xmouse - this._x ;
diffy = _root._ymouse - this._y ;

[code]....

View 1 Replies

ActionScript 3.0 :: Mouse.hide() Error 1061: Call To A Possibly Undefined Method Hide Through A Reference With Static Type Class

Sep 12, 2011

I am using AS 3 Flash CS4, WIndows XP SP3. I am unable to use the Mouse.hide(); method in many of my scripts. If I add Mouse.hide() to a preexisting script, I get the following error; line1 1061: Call to a possibly undefined method hide through a reference with static type Class. If I add Mouse.hide():void; to a preexisting script, I get the following error: line1 Label must be a simple identifier Once this has happened, if I then remove ALL lines of script from the file...but leave the Mouse.hide(); [or Mouse.hide():void;], and also remove all objects from the stage, when I run the file, I still get those same errors.

[CODE]...

View 3 Replies

ActionScript 3.0 :: MyTimer.stop(); In The Fuction The Listener Called (to Stop It) It Dosent Stop?

Jun 12, 2009

I thought I had a handle on the timer class (even just a beginners understanding), but I'm having trouble with it.I have an event listener for the timer and it starts fine i get a delay, then a tween,but when I place a myTimer.stop();in the fuction the listener called (to stop it) it dosent stop.it will repeat placing the first image, and then call the first function again

......Wait its placing the first image in (a couple of lines before the start), so Its restarting the whole movie, not just the function?

myTimer.addEventListener(TimerEvent.TIMER, tweenone)
myTimer.start();
function tweenone (event:Event):void[code]...........

View 6 Replies

ActionScript 2.0 :: Stop() Or _root.stop() Doesn't Stop?

Aug 26, 2009

I have a contact form for which I have a tween. That contact form consists of two keyframes, first the form, I tried putting the code stop(); in the first keyframe but it didn't stop. I then changed stop(); to _root.stop();, which didn't work either. I have to stop it because otherwise users would see a thank you note before they even enter their details. What can I do? Converting to movieclip didn't work either, besides it puts a funny character when I press AltGr

View 2 Replies

AS3 :: Preloader Starts At 50%?

Mar 28, 2010

I have problems with creating a preloader in AS3. I have tried several tutorials but the problem remains... the preloader starts counting at 50% and is only shown after a few sec. I have removed all export in 1 frame from my instances.I have no sound. I would prefer not to load my main.swf into another swf, if there is another solution.

View 3 Replies

Flex :: Fdb Always Starts In IE?

Oct 27, 2010

I don't known what happened but fdb.exe now always start debug swf in IE And IE not my default browser.How to return its default behaiviuor? (embeded browser only with swf)

View 1 Replies

IDE :: Loadings Starts After 27%?

Sep 13, 2009

am a very beginner in this field i don't have the code right now i just took it from simple preloader tutorialswat i did is i created a text field in my first frame and gave the code to that textfield

View 1 Replies

IDE :: Preloader Starts At 40%?

Oct 6, 2009

this web site always seems to start with a blank screen and the preloader starts at 40%.

I nothing exported to the first frame!

[URL]

View 3 Replies

ActionScript 3.0 :: Variable Name Which Starts With $?

Oct 12, 2009

I was going through some codes and found vars being used like on PHP:

function($var:Number, $var2:Object){...

View 2 Replies

ActionScript 2.0 :: Preloader Starts At 60%

May 27, 2005

I have preloader in a file whose size is about 87kb....but preloader appears only after 60% of movie is loaded....why is it so and how can i start preloader to show from 1%

View 2 Replies

ActionScript 2.0 :: Preloader Starts From 50% ?

Jan 28, 2007

i have my preloader text and bar and and my text starts from 50/48 occassionally and goes to 100%...why is this starting from 48/50?? here is my AS frame 1:

Code:
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;[code]....

View 6 Replies







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