ActionScript 3.0 :: Controlling Alpha For An Object On The Timeline?
Sep 14, 2011
I recently bought an mp3-player coded in Flash and it works great, except for the fact that I do not want it to appear constantly on the timeline.
The mp3-player is generated throught code, so I was wondering if there is a way to control the alpha of a variable named mp3playerContainer and set it to 0? I have navigation points on frame 25 and 55 where I want this mp3player to not be visible. Could it be an idea to use "currentFrame", so that if currentFrame equals 25 or 55, then alpha of the variable mp3playercontainer will be set to 0?
View 2 Replies
Similar Posts:
Sep 10, 2009
I have created a website on the time line. There is actionscipt contolling which frame to play via a button. Within this button is a movieclip with a fade in using alpha on its own timeline with a stop(); at the end.The problem is I only want it to play when you first see it from moving to that page from the main timeline. Currently if i move over the button it plays the movie again which i dont want to happen. I do however want to retain the over states etc for the button.
View 2 Replies
Feb 17, 2009
I want to have an object start off with an alpha of 0 but then opacity in to 100% later on the timeline BUT I have to use Actionscript.
View 6 Replies
Oct 23, 2010
[URL] i want the object to fade out but in the object there's a lot of overlapping pictures and each becomes half transparent. how to make the movieclip to change the alpha as it was without objects?
[Code]....
View 2 Replies
Jun 22, 2005
I have an emptyMovieClip and a button on my stage. I'd like to control the alpha of the button depending on whether a movieclip is loaded into the emptyMovieClip or not. I'm just a beginner at Flash and have little programming experience.
if a movie is loaded in the emptyMovieClip, button alpha = 100%
else button alpha = 0%
View 2 Replies
Apr 13, 2010
There's a site I'm working on I have the alpha on the navigation buttons set to 0.2 the text appears with full alpha as I want I have a nice Old English font I want to use but when I embed the font it takes on the alpha settings of the background.I set the alpha for the text field to 1 but the text remains at 0.2.n how to set the alpha of a container without affecting the embedded text in it or to set the alpha on the embedded text independently?
View 3 Replies
Mar 29, 2007
I've been playing around with the presentation screens and slide in Flash, from browsing the web there seems to be very little if any information of how to control MC's within different parts of a presentation i.e. removing them or changing alpha. I've loaded an MC and now I'm am trying to remove it from the stage been experiment on the same slide and I just cant seem to get control of it.
I was using
_root.slide1.intromc._alpha = 0;
But this doesn't work for. How I can get access to MCs in a slide if its possible !!!!
View 1 Replies
Feb 15, 2012
Main_mc has a movie with a button movie and an animation movie. I want the button_mc to control my main_mc timeline. I want a btn when rollover play up to frame a and stop. Rollout play to end. If btn is clicked play and stop at frame a.
View 5 Replies
Nov 4, 2006
Below is the code for dynamic image gallery from XML.
We have an alpha effect to the image animation when the image is loading. The affect is working fine (fade in).
But, when the next image is loading, we want fade out alpha affect to the current image before the next image loads.
delay = 6000;
//-----------------------
function loadXML(loaded) {
if (loaded) {
[Code].....
View 1 Replies
Dec 1, 2009
I'm trying to get an instance of an FLV Playback that serves as a background to one of the sections of my Flash site to fade in once the section is entered, and fade back out again when it is exited. I've put it into an mc called 'vid container' and I applied some simple motion tweening to the container, to fade it in from 0 opacity to 100 and back down again. What I'm having trouble understanding is that, while the fadeout works absolutely fine, the fade in doesn't work at all.
View 2 Replies
Jan 25, 2010
Well, I have a project where I would need a XML with a % range from 0-100 to controll a timeline. The concept is to fill a bottle. So the timeline would animate from empty to full. But must be controlled with a XML number and its all in AS2...
View 18 Replies
Nov 29, 2010
I never seem to get any answers on these forums lately but surely someone can answer this. I've loaded an AS2 based SWF in to an AS3 SWF. I want to gotoAndPlay a frame in the AS2 SWF when a button is clicked thats inside the AS3 SWF.
View 2 Replies
Nov 26, 2009
if its possible to control a movieclips timeline a bit more than the simple play, stop functions.
I was hoping by pressing a button, it would make the MC's playhead not just jump to frame 20, but play to it.
So if the movieclip's timeline is on frame 60, I press a button and it scrubs all the way back to frame 20. Click another button and it scrubs to frame 40, etc..
View 3 Replies
Mar 27, 2004
I have a MC in my movie. I want to control it's properties in different frames in the main timeline. For instance
at the 1. frame change it's position
at frame 50 change it's alpha
at frame 100 change it's scale
until now I have done all this by motion tweening but I know AS is the best way.
View 3 Replies
Apr 3, 2010
i have forward/back buttons to control the timeline. what happens in the following code is that if the button is clicked while in the < or > range of frames, it gets buggy. heres the code.
[Code].....
this doesnt seem to go to the exact frame i need if i click while the current sample is still animating in. It would be much better if i could tell flash to a specific frame instead of asking flash to determine a range. that way, if a button is pressed during an animation it wont just advance one frame, it would jump to a specific frame.
I wish i could just do this:
[Code].....
i thought about creating a var that would be a string. i could then add a number to the name of that string each time the button is clicked. then i could make frame labels the name of the string. but i couldnt get my head around it. also, i didnt know how to make the button stop adding to the string name once it reach a certain value (6 in this case). or how to make it play the last sample animation if the user kept clicking the advance button at the end of the samples.
View 1 Replies
Sep 1, 2010
So im creating a site for a friend and I have placed the menu inside a movieclip so the buttons are inside the movieclip. This the script i have tried :
Code:
stop();
natural1.onRelease = function () {
[code].....
View 1 Replies
Nov 11, 2009
This time I'm attempting to make a timeline, that should control what frame of a movie clip on the root timeline is displayed. So relevant to where the user slides the slider bar, the appropriate information will be displayed inside that movie clip. Now I really have NO idea where to start the coding that will attempt to convert the slider's location on its on slider bar, to what frame is shown on that movieclip.
[Code]...
View 28 Replies
Jun 3, 2010
Just wondering how to control the timeline of an external swf loaded into the root of your main timeline, from within nested movieclips on your main timeline?I can successfully control it once it's loaded from within the function that assigns the external swf a MovieClip var, but I want to control it from deeper in my main swf.1. I've loaded an external swf into the root of my main swf.2. After loading, I assign the external swf a MovieClip var, and then set up a button to control the timeline of the external swf:
function dataOnLoad(evt:Event): void {
var myClip:MovieClip = evt.target.content;
function updateSwf(evt:MouseEvent): void{
[code].....
View 6 Replies
Mar 9, 2011
I can't use the normal MovieClip methods on my imported swf.
Code:
package {
import flash.display.MovieClip;
import flash.events.Event;
[Code].....
I've tried waiting for the swf to finish loading
View 5 Replies
Sep 3, 2011
I have buttons that load movie clips when you mouse over them and unload the movie clips when you mouse out.[code]the problem is that the movie clips aren't necessarily playing from the beginning when you mouse over, since their timeline is independent.How can i specify that I want to add the instance of the movie clip to play from frame 1.I've tried using the gotoAndPlay method with the frame number/ label in parenthesis afterwards and got an error message..I've looked through multiple tutorials on controlling symbols using AS, and i still can't get this to 'click' for me.[code]
View 3 Replies
Aug 2, 2004
I have a huge timeline with photos, each photo on a different frame, and several buttons, one for each picture on the first frame. My idea is to make a unique action for the buttons that tells the timeline to go to the frame number that is the same as the button instance name.
View 1 Replies
May 14, 2010
How do I control the timeline from a movieclip from within itself?I made a menubutton for a school assignment. To make it, I created a movieclip of the button's graphic, with on the second frame the button again but with the menu open (haven't added anything in it yet).Opening the menu is as easy as
Code:
menu_mc.addEventListener(MouseEvent.CLICK,openMenu);
function openMenu(evt:Event):void{
[code].....
View 4 Replies
Apr 4, 2011
have a MovieClip that's called 'enemy1'. It is using a class called 'Enemy'. Is it possible to control my enemy1 MovieClip's timeline from the Enemy class?
For example I want to run an if check and see if current frame inside my MovieClip is currently 15. (I have animation inside my MovieClips)
When I do something like this inside Enemy.as:
Code:
if(this.currentFrame == 15)
{
this.stop();
}
I get error messages like: Line 271119: Access of possibly undefined property currentFrame through a reference with static type Enemy. Line 291061: Call to a possibly undefined method stop through a reference with static type Enemy.
View 9 Replies
Aug 2, 2004
I have a huge timeline with photos, each photo on a different frame, and several buttons, one for each picture on the first frame. My idea is to make a unique action for the buttons that tells the timeline to go to the frame number that is the same as the button instance name.
View 1 Replies
Mar 21, 2009
I'm having a bit of time getting this to work.
Setup like this: Main mov:
Nav1 is clicked and loads in external swf. In the swf that was just loaded there is button to call another external swf on the main movie's timeline. I'm trying make a "lightbox" effect. Where you click on the external swf and the screen darkens and a swf is loaded on top of it. Above the loaded swf. Of course on a new layer.
PHP Code:
This is handling the swfs that get loaded in
EXTERNAL SWF LOADER
_root.page_mc.preloader_mc._visible = false;
_root.page_mc.preloaderText_txt._visible = false;
var mcLoader:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();
mcLoader.addListener(myListener);
[Code] .....
View 9 Replies
Aug 23, 2009
i've discovered that the only way to sync loops adequately in flash is to put them together on the timeline.
is there any way to change the volume of each layer with actionscript? i'd like to dynamically mix between loops.
View 4 Replies
Sep 10, 2010
Is there a way to have a button click change the main time line frame rate?
View 4 Replies
Nov 2, 2010
I have a simple swf called site.swf that loads a menu with UILoader called menu.swf, from menu I'm able to navigateToURL but I also need that it goes to frame 50 in menu.swf.
View 1 Replies
Nov 22, 2011
I am slowly getting back into flash again and I have an MC (lets call it M_sms) that on a rollover has an animation. I have several of these M_sms on the main stage and there is no problem. The M_sms have also been placed inside a MC (lets call it M_big) that has also been placed on the main stage. M_sms for some reason do not animate on rollover. I have a startdrag/stopdrag on the M_big and that works fine. But the M_sms nested do nothing.
View 1 Replies
Feb 19, 2009
On my main timeline I have two movie clips sitting side by side in frame1. They are called content_mc and content_mc2. Those are their respective names in the library and as instances. Now, I have a button in content_mc in which I am looking for the following behavior. When I click it, I want the timeline inside
content_mc2 to jump to frame2. MovieClip(parent).gotoAndStop(2); This code would be just dandy if I wanted to go to frame 2 of the main timeline, but I cannot find, for the life of me, how to go up one level (parent) and then specify down a new level (content_mc2). In other words, where do I put "content_mc2" in this syntax?
View 1 Replies