Hide Carosel After Leaving Frame?
Jun 25, 2009
From my flash "home" frames, I have 4 buttons that take the user to different places on the timeline. One frame on the timeline includes a carosel of pictures that rotate and looks nice. I downloaded the carosel actionscript and xml documents online, I did not build them myself. Now, when I hit the "home" button to get back to the home frame, the carosel still lingers around. I would like to know how to hide it, or make it not come back at all when coming back to my "home" frame.
Here is my actionscript inserted in the frame:
import mx.utils.Delegate;var numOfItems:Number;var radiusX:Number = 1000;var radiusY:Number = 30;var centerX:Number = Stage.width / 2;var centerY:Number = Stage.height / 2;var speed:Number = 0.9;var perspective:Number = 130;var home:MovieClip = this;var tooltip:MovieClip =
[Code]....
View 2 Replies
Similar Posts:
Dec 14, 2010
OK, I am trying to get the following functions to load and unload the video to my main timeline when I go in and out of a frame. I tried on Enter_FRAME but it is now working properly and load many instances.
What are the listeners I need to do to call the functions of oCoach when enetering a frame and fclickCV when leaving a frame?
[code]...
View 3 Replies
Oct 6, 2009
i want to stop a video from playing,when leaving a framei tried to use SoundMixer.stopAll(); but it only stops the sound, i think my video is still streaming in the background because im starting to notice performance problems when i go back and open the video againthe website gets very slow.
View 5 Replies
Nov 24, 2009
I have created an instance of FLCPlayback named "chili_player" which, depending on which button is clicked will play a certain video. This all works great.
my videos are located within videos_mc and in frame 80 of my site. I have other movie_clips and frames set up for other pages.
I have tried the normal method of placing the following code on every other frame the user can view.
videos_mc.chili_player.stop();
but it does not work and I get the following error message.
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at index_fla::MainTimeline/frame1()
View 3 Replies
Apr 19, 2011
Maybe someone has some insite on this before I open an artery. I have a timeline, seperated into sections. The navigation targets frame labels. On one of those keyframes there is a flv. When you play that video and then navigate to another frame without stopping the video, it continues to play. I've tried giving it an instance name and adding a stop action to it that resides in the button functions so when it navigtaes to another frame it would stop. However, when I click on any button and the movie is not currently playing, I get a error message that reads TypeError: Error #1009: Cannot access a property or method of a null object reference. I assume it is looking for something that is not currently there. It has been suggested that I use the SoundMixer.stopAll() but that removes any background music currently playing.
Do I need some kind of conditional statement that detects if the flv is currently playing?
Can FLV be controlled with a simple instancename.stop() ?
View 3 Replies
Nov 6, 2010
Is there an event listener to use to detect whenever I am leaving a particular frame on my timeline? If I am correct, Event.FRAME_EXIT only works on the newer versions of Flash. Is that correct? (I am working with CS3.)
View 1 Replies
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
Mar 15, 2012
I have l modded some code that I am really happy with, it makes buttons bounce around for the user to try to click on when entering a certain frame.. I notice tha the code adds eventlisteners ENTER_FRAME to make this work, when you leave that frame there are now problems with null objects becuase the listeners are still on but the objects are not there anymore..
Ok so attempted solution - I can use a currentLabel on the main timeline to check if the correct frame is reached then use a function if (label is x) put listeners on else take them off... works but then I have to have these objects hidden on the timeline and then add visible=true/false to my framelabel listener.. This works but part of my functionality here is that these movieclips that move are buttons that the user clicks on and they explode and dissapear- but now they dont because I have a code that says on that frame they should be visible..
The only thing I can think of is to have a blank frame at the end of the explode and put a stop on it. Then add a gotoAndPlay(1) into my frame label code. Seems very ugly, you guys got a better way? Can I remove eventlisteners on leaving a frame? Is there a code like LEAVE_FRAME??
View 6 Replies
Aug 7, 2009
It is for a portfolio for school, in the case that you wanted to know. I have created a frame in the FLT thatis for videos. I have called a net connection to load a video locally when a custom button is CLICKed, and i have made a custom button to pause said video, and play again, using togglePause
My problem is, once the video is started (using play) and if the user navigates away from this video page, (which means they are a jerk/ass for not finishing my video) the audio will continue playing, as the video has been loaded and is not through executing. I want this net connection to end once navigating away from the page, if necessary. I have tried calling an EventListener(EXIT_FRAME) but errors upon outcome follow.
View 0 Replies
Nov 28, 2011
Using CS 5.5, I am using a single scene with buttons that all appear on the first frame along with code snippet AS also on the first frame that when clicked, takes the user to a different frame. Everything seems to work fine, except, after you go to frame 15 and click on one of the buttons that take you to one of the earlier frames, the text from frame 15 still displays on those earlier frames. The text on frame 15 is on a different layer and does not exist anywhere else until frame 15.
View 3 Replies
Jan 27, 2010
I have a series of buttons that when clicked go to certain frames which all display different content. I have a unique movie clip on each one of these frames that has an initial play in, followed by a looping animation (the character walks in, then loops waving or something of that nature), I would like the movie clip to have a play out animation (character walks off) when the user leaves that frame so that when they go to the next frame the new movie clip can play in (new character walks on screen). [code]...
View 0 Replies
Mar 19, 2010
i'm using the code bellow, from gotoandlearn.com, to make a carosel menu.I'm I want to do is to make the carosel to stop with ease, and not to zero to fast.
Code:
import mx.utils.Delegate;
var resistencia:Number = 0.000001;
var numOfItems:Number;
var radiusX:Number = 375;
[code]....
View 1 Replies
May 11, 2010
I know how to make a video (instanced as showreel) stop when clicking on a button that that navigates to another section/frame, since otherwise I would still listen to that video while not visible. The problem is when I'm in another frame that doesn't have that video, when clicking on the menu to go to whichever other frame, it looks for that it to stop if it's playing and it and doesn't find it, and so there's an error.
How can solve this? Maybe I should put an order saying something like if there exists a video in that frame instanced as sowreel, stop it, otherwise don't do anything as there is nothing to be stopped. Or assign the order to the frame (which is called motion), but I don't know how to do that, can someone help? The code I have is:
import fl.video.VideoEvent;
function onClick(evt:MouseEvent):void { if( showreel.playing ){ showreel.stop();} gotoAndStop(evt.currentTarget.name);}
motion.addEventListener(MouseEvent.CLICK, onClick);web.addEventListener(MouseEvent.CLICK, onClick);logo.addEventListener(MouseEvent.CLICK, onClick);photo.addEventListener(MouseEvent.CLICK, onClick);
View 5 Replies
Oct 8, 2010
Here is my script:
ActionScript Code:
var myLoader:Loader = new Loader();
addChild(myLoader);
var url:URLRequest = new URLRequest("some.swf");
myLoader.x=315;
myLoader.y=223;
myLoader.load(url);
When I go to a new frame the swf does not vanish it just stays there. How do I get rid of the loaded swf from within the swf? I guessed it's something to do with the child?
View 3 Replies
Dec 6, 2010
I have code on frame one and buttons that I don't want to appear until later frames.This is my first time in Flash and can't figure it out. How would I write that?
View 1 Replies
Jan 31, 2003
is it possible to hide the cursor upon entering a frame. i know you can hide the cursor when you use a custom cursor hideCursor=true but what about like .... if you have a button and on the over state you have a movie, upon entering the movie the cursor hides?
View 2 Replies
Sep 11, 2010
I have a "snow movie clip" playing in my .swf, but removing the clip on a certain frame doesnt stop it from playing. I need to either remove it or hide it using as2.
View 1 Replies
Jul 2, 2009
can a button on a single frame be coded to both display a movie clip on its first click and, after a second click, hide the movie clip?
View 3 Replies
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
Jan 16, 2012
Im pretty sure Im not going about this the right way... but anyways If you move to the left or right, the front triangle is supposed to have its points redrawn to locked positions inside the player, but for some reason it is leaving artifacts and Im sure its some redundancy in my script that I don't see...here is the script executing the redraw...
Actionscript Code:
function reDrawFront() { var temp=frontLockright.localToGlobal(new Point(0,0)); var temp2=frontLockleft.localToGlobal(new Point(0,0));
[code]....
View 2 Replies
May 11, 2010
With AS, can I trace that user hasn't been operating on the computer for a while, say 5 miniutes, and then do something? theoretically speaking, to detect that there is no mouse or keyboard event for certain a period of time, and then do something~~ just like screensaver of Widows~
View 1 Replies
Feb 17, 2011
I have made a simple animation with music, 800ish frames, no actionscript, using CS4 When I export it as a Quicktime Mov it breaks up and leaves artifacts everywhere, I read that the spec of your mac can affect the export but I'm working on a mac pro with 2 x 2.26 GHz Quad core Xeon and 16GB Ram so I very much doubt its that. The only other forums I've seen (working) answers on are ones where you save the video and audio separately and rebuild it in after effects or something similar but I do not have that software (and surely you should'nt have to do all that). I need to import the movie into iMovie to add to another piece of film.
View 5 Replies
Nov 3, 2009
wondering if there is an event that will be triggered when a text box loses focus or has been changed and then moved out? I tried Event.CHANGE but it fires everytime a letter is typed into a box. I am looking for something that would file once the focus leaves the box.
View 1 Replies
May 11, 2010
With AS, can I trace that user hasn't been operating on the computer for a while, say 5 miniutes, and then do something? theoretically speaking, to detect that there is no mouse or keyboard event for certain a period of time, and then do something~~ just like screensaver of Widows~~
View 4 Replies
May 26, 2010
I'm trying a shooting game from an incomplete tutorial online. I'm trying to finish it off myself and hopefully learning more in the process but straight away I've hit a brick wall.The stage is 900 x 350. Bullets are fired from a turret near the center of the screen and will travel and eventually leave the stage at some point. I want to remove the bullet from memory and the display list once it has left the stage and can no longer be seen.I'm using a conditional if statement to check the x and y position of the movieclip, and if it outside the width or height of the stage then I want to remove it completely.
PHP Code:
stop();var angle:Number=0;var radiansToDegrees:Number=180/Math.PI;var degreesToRadians:Number=Math.PI/180;var currentTurretRotation:Number;var
[code]......
View 4 Replies
Jul 27, 2010
I have a movie that has an intro to it. It also has buttons that take them to subsequent pages. Once they go back, I'd like the intro portion of the movie to not play. In other words, I'd like it to start at a particular frame after the initial visit to it.
I think this can be done with Local Shared Objects, but I haven't quite figured out how exactly.
View 1 Replies
Sep 28, 2009
I have some htmlText in a textField inside a MovieClip on the timeline. The MovieClip has a little (CS3) timeline motion tween on it - it grows and shrinks once. The htmlText is populated beforehand via ActionScript and the entire SWF sits inside a preloader "shell" that handles loading it and adding it to the displayList.
When the text expands - it looks fine. When it shrinks, the HTML bullets (UL and LI items) leave "trails" behind - and thus create a "streak". The funny thing is, if later on I move the playhead forward using gotoAndPlay(), the streaks disappear, even though it's not moving to a new keyframe for that MovieClip. So it's clearly a screen refresh issue.
I tried turning runtime bitmap caching on, and the bullets did not display whatsoever.
[Code]...
View 1 Replies
Jan 8, 2010
i want to stop my video once i click onto another page
but the video still plays in the background??
View 4 Replies
May 26, 2011
I'm trying to create something with a flip effect tutorial from tutplus - [URL] However my flip area is much bigger than the tutorial, it's 900px wide. Everything works fine except that it leaves a trail when the width is that big. You'll see it when you flip it a few times. Someone else posted the same problem in the comments from last year, but no one replied. Does anyone know a solution to this?
Edit: Here is a screen shot: [URL] The front is purple and the back is white. As you can see it left a bit of the purple as the page flipped to white. I couldn't get a screen shot of it turning, but it's even more obvious as the page is actually flipping because the width become narrow which reveals a whole lot more that's left behind on the page.
View 2 Replies
Nov 20, 2009
Recently I got a premade flash component and put it in a flash site I was creating. It works fine when you view it, however, when I try to leave the "portfolio" page, the gallery stays on the stage, and I cannot get rid of it.
View 1 Replies