ActionScript 2.0 :: CS4 - Button To Turn On AND Off?
Jun 3, 2010
I was just wondering if there's a way to write code for a button so it will, e.g., make a movie clip visible with one click, then hide it with a second click?what I usually do is give the mc two frames, so on click one it goes to frame 2 while it changes the visibility or alpha, and on frame 2 sends it back to frame 1 while changing the mc back. But I would like the flexibility of doing it on the fly with code rather than have to fiddle with each mc.I tried doing it yesterday with an if/else if statement, like, "if alpha is 0, change it to 100, else if alpha is 100, change it to 0" but couldn't get it to work. But if that's the way to go I'll keep playing with it.
View 4 Replies
Similar Posts:
Apr 26, 2010
I have a FLA file with 4 layers 2 of the layers are Text Boxes 2 of them are masks to make the different words "Shine" Is there a way to make the whole file a button so when people click on it, it goes to a different page?
View 6 Replies
Oct 7, 2011
I'll start off by saying I'm a newbie, just putting that out there. How do you make a turn by turn multiplayer flash game? I don't know if an engine is made in AS3, PHP, Javascript, or whatever,I made my game already, it's just that it isn'tmultiplayer yet. Basically, there are lines, and each player crosses out a number of lines, and the last player to cross out a line is the loser. I want it where one user crosses out some lines, then presses End Turn, then the other does their turn and then presses End Turn to allow the other player to move his cursor. But how can I get both players to see the same frame and only have one player have the ability to move the cursor during a turn? Is there some easily adaptable multiplayer engine for flash for newbies out there
View 2 Replies
Mar 14, 2011
I'm working on this app and I can't figure out how to turn an image into a button, and I can't figure what type of image does it need to be(PNG/JPEG, or something else). Also I'm using flash builder. e I can't find anything about this on the internet.
View 2 Replies
Dec 4, 2007
Is it possible to have one button the toggle my 'my_sound.setVolume();' between 0 and 100. I'm having a hard time getting the as correct, but here is my idea:
[Code]....
View 6 Replies
Aug 20, 2011
Is it possible to control a mask(turn on/off) by using a button and AS2?
View 1 Replies
Feb 8, 2010
I am trying to use a button to flip the page rather that using the corners. I have switched the page flipping off using:
ActionScript Code:
canflip = false;
There is this code below that is used to tell me how to use a button however I do not understand it.
[Code].....
View 2 Replies
Mar 26, 2009
I have this textfield in wich i load some vars when a button is clicked. How can i make a sort of button of the loaded vars? So if i click on the first title; i go to the right txt-file!?
Here's the code so far:
code: //vars instellen
//titels
var title1:String = "Maan Fotografie";
var title2:String = "Vertigo-/zoomeffect-fotografie";
[Code].....
View 1 Replies
Feb 21, 2012
I want to create a button to turn on and off a movie clip, did any one know how to do it!
View 6 Replies
Jul 7, 2010
I have a bunch of areas on a map that I've turned into buttons. When the user does a MOUSE_OVER on a button, I'd like an info box to show up so they can see some information. So far, I've created my info boxes as movies clips with fade-in/out tweens between frames.
[Code]...
View 4 Replies
Jan 29, 2009
I am trying to make a button turn on/off a sound when pressed. I have tried to code it, but it does nothing everytime.
I have a sound in the library, with a linkage name of "sound" it is on the first frame in the main timeline. And i need a button to turn it off, and then on again.
View 0 Replies
Jun 14, 2010
Is it not possible to have selectable text turned on when you are making a link or button?
View 2 Replies
Aug 26, 2010
I've come a long way with this sliding menu("Sliding menu.zip"). There's only one more thing that needs to be fixed. Can anyone tell me how to get the first movie clip button ("1") to be red when it arrives? When the user clicks on another button I want the red number one to turn black. It's sounds so simple but my mind is blank.
View 2 Replies
Jan 10, 2006
how to make some htmltxt for my flash site turn into a button to email. i know in dreamweaver I use mailto"blabla@bla.com" but this doesn't seem to work in htmltxt.I also like some functions like underline,bold, how to go to a certain url,etc.
View 3 Replies
Sep 15, 2011
how can i make MC visible for 20 seconds when a button is pressed i tryd to do this and this is what happend
when i first press the button it works perfectly but when i press the button the seccond time the MC doesnt turn visible can someon give me a sample how to do this?
View 3 Replies
Jan 2, 2004
If I have a movie clip that has an onRollOver event, how do I turn the back into a pointing cursor from the gloved button cursor?
View 2 Replies
Aug 28, 2010
I am creating a card game in flash and to do the turns i used the while loop, but that made my script infinity and it is causing trouble, how can i stop the script and start it again with a "end turn" button?
View 9 Replies
Jun 23, 2011
creating a flip-book in flash (using AS3) . I've looked at the other flip-book programs and editors out there, and none really give the customization that my company wants.I have something working, but the page scoping seems to be off. The pages will turn back and forward with a button click but they flip out of order. However, it all runs fine with no error when the user clicks on the pages themselves. This is the code from the main timeline (where I'm getting an error).
View 6 Replies
Mar 27, 2010
I have added a flash sound file to our homepage. How do I add an option for the visitor to turn the sound off? I don't have the .fla file for it.
View 1 Replies
Sep 10, 2009
I have a very simple project. I just need a flash video that has a sound file and a button to turn on/off.
View 1 Replies
Dec 27, 2009
I have some sounds in a timeline ( i purposely put them on time line rather then through AS3). But is there a way to turn off all sound in the swf, like is there a global sound channel?
View 1 Replies
Jan 13, 2010
Is there any way to turn off the autodocking panels. I just want my panels to be free floating and not stick together. The way they dock and stick together is the worst.
View 2 Replies
Oct 23, 2011
How do you turn off the sound in a game only? I ask because I have two buttons in my settings: turn music on/off and sound on/off. turning music on and off is really easy because it uses a specific sound channel. But How do you turn off the volume the sound only (e.g. music is still playing but not the sound of the game)?
When I mute the sound via SoundMixer.soundtransform you can't hear anything so that's not what I wanted to have. In my game all sounds are thrown into an array. My first idea was that I go through all sounds listed in the array and turn off the volume but that's not working.
Code:
//not working
private var sounds:Array;
private var soundChannels:Array = [];
[code]....
View 1 Replies
Oct 5, 2009
How do you turn a date of bith into months. im doing this:
var dobDate: Date = child.CHILD_DOB; //10th Feb 2008var daysSince:uint = Math.floor((nowDate.time - dobDate.time) / DateTime.DAY); var monthsSince:uint = Math.floor( daysSince / AppConst.DAYS_IN_MONTH);
trace(daysSince) //603 - correct
trace(monthsSince) //20 - incorrect (it should be 19)
note:
AppConst.DAYS_IN_MONTH = 30
DateTime.DAY = 86400000
View 9 Replies
Sep 20, 2010
I have 9 fla files. Is there anything I can do to create 1 swf out of 9 separate fla files??? I tried to cut and past the info all onto 1 timeline. Is there more than one way to do this?? I end up with multiple files with the same name in the library and it becomes a bit of a nightmare just trying to use the cut and past method.
View 4 Replies
Nov 25, 2011
I know virtually nothing about Flash so I'm kind of casting about in the dark.
I have the misfortune of being a BT customer, and whilst I have reasonable bandwidth (can view streaming high res video fine) I always have problems listening to radio programmes from the BBC. I think it could be buffering due to traffic shaping, or it could be the Flash applet used to play the content, or something else.
Is it possible to bring up some kind of debugging console, or view some kind of error log to see if there is some diagnostic information that could be useful in finding the problem?
View 1 Replies
Aug 6, 2010
How would I turn something like this...
ActionScript Code:
<feed name="BBC Top Story 1" url="bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml1">
<description>Top Story News</description>
[Code].....
View 3 Replies
Apr 13, 2003
i saw the component thingy on kirupa... but i want to make a car drive in flash with just code.... there is a really good one on (click "drive!" on the menu and you can drive the little car around)... i would really like to know how to do this.
View 3 Replies
May 26, 2003
I know how to turn music on/off but I now want to find out how to do the following. On 50cent.com, you can select from a variety of songs, then play the one you wish. I want to know how to do that, with the buttons changing the songs, then being able to press play, and stop. Could someone tell me how to do this, or redirect me to a tutorial that will teach me. I have flash mx, so you could post a flash mx tutorial if you wish. Another example is shown on West49.com, but I dont need to know how to open the playlist option they have. Just a simple left and right button changing the songs, thena a play and a stop button.
View 1 Replies
Jul 2, 2007
I have 8 buttons. I need to turn one on, and turn the rest of them off. I can't figure out how to do this. do i use loops, booleans?
View 2 Replies