Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash


Advertisements:










ActionScript 2.0 :: FLASH - Make A Movieclip Visible For 1 Second?


I have a quiz and when the correct answer is clicked i want to show a correct answer mc so when the answer is clicked a "correct" or an "x" will flash up for 1 second. I have to functions on for right (celebrate) and one for wrong (wrong_answer)

[Code]....


View 2 Replies (Posted: 05-17-2011, 01:17 PM)

Sponsored Links:

Related Forum Messages For Flash category:
ActionScript 2.0 :: Set Up A Code That Will Make A MovieClip Visible?
I am trying to set up a code that will make a MovieClip visible = false when you press the spacebar then reapear when you hit the spacebar again. I had it working once but I lost the code somehow ... think I deleted the wrong file. the one time I got it to work I used a keylistener and stuck the code in the action panel on the timeline at frame 1.

I thought maybe there is a way to do the same thing but instead of the frame 1 action panel thing. I thought you might be able to set it up in a movieclip class action script file. I did these tutorials on the kongregate site ... shootorials and they teach you how to make a MC move with the arrow keys which was easy ... they had you make a ship into a movie clip then you created a new AS class file for the ship movie clip. Then they placed the code under the function onEnterFrame() in the ship class AS file which works well when you want to move something ... because it checks every frame.

I can set up what I want in that area just fine ... problem is it fires off every frame .. so my movie clip blinks on and off several times everytime I hit the spacebar. I just want it to disapear when you hit the spacebar then become visible again when you hit the spacebar again.

Seems like this should be a very easy thing to do but I spent all day reading through tutorials and searching google everything I tried all I did was run into one error or another when I tried to compile for a test.

I am very new to all this so the other thing that confuses me is the fact that you can put code in so many different places and depending on where it goes the same thing might be written a different way depending on where you write it.

Posted: March 26th, 2009

View 2 Replies!   View Related
Make A Frame Become Visible And Play / When Click On A Movieclip
This time I'm experimenting with visibility. All the tutorials online vary a lot. I'm trying to find something noob proof. I have actionscript 2 and 3. I'm not sure which one to use..I'm just trying to learn how to make a frame become visible and Play when I click on a movieclip.

Posted: 04-27-2009, 12:37 PM

View 5 Replies!   View Related
ActionScript 2.0 :: Make Movieclip Visible When Variable Empty?
I have an swf that plays a video (toobplayer component) and has two dynamic txt fields. The video and both txt fields are "fed" from an xml file. I also have a movie clip that loads an image on another layer and is set to an alpha of 0. Is there a way to use a conditional statement to check the video variable and if one is not present to change the image loading movieclip to an alpha of 100. here is what I am working with.[code]...

Posted: 10-27-2009, 01:31 PM

View 5 Replies!   View Related
ActionScript 1/2 :: Make Movieclip Visible For A Specific Time Duration?
Is there any possibility to make a movieclip visible for a specific time (e.g. 5sec.)? I want to make "srch275" show for 5 seconds and then make it disapear.

sruch_btn.onRelease = function () {if (cosearchbx.text == "APPLE"){srch275._visible = true;}

Posted: Apr 9, 2010 8:00 PM

View 1 Replies!   View Related
ActionScript 1/2 :: Movieclip Has A Toggle Button To Make It Visible True And False?
on frame 1 I've got 10 movieclips and each movieclip has a toggle button to make it visible true and false.

How do write the script to do the following on frame 10?

if only 1 movieclip is visible make one_mc visible true
if only 2 movieclips are visible make two_mc visible true
if only 3 movieclips are visible make three_mc visible true
... so on for all 10 hope this make sense.

Posted: Jul 19, 2010 10:30 PM

View 10 Replies!   View Related
ActionScript 1/2 :: Make A Movieclip Visible False When A Scroll Bar Starts To Scroll?
How do make a movieclip visible false when a scroll bar starts to scroll?

//I tried this and had no luck.
this.onEnterFrame = function(){
obj_mc._visible=false;
}

Posted: Jan 29, 2011 3:06 PM

View 1 Replies!   View Related
Flash :: Can't Make 22 Pieces Of A Puzzle Visible
I am making a jigsaw puzzle in flash. But I have a weird bug. There are 25 pieces, 5x5. I am passing in the background bitmapData to the pieces as they are created.

For each piece I create a single puzzle-shaped mask bitmap.

So each piece contains a bitmap whose bitmapdata is the puzzle texture. And each piece has a mask piece.

When I just show the masks, all 25 pieces are drawn to the stage.

But when I use the piece masks to mask out the texture, I seem to have a hard limit to 22 pieces in which the mask is applied. This happens if I am using 25 peices or even 80 or 100. Each time, only the last 22 pieces created will display the texture. [code]...

Posted: Jan 4 at 2:18

View 1 Replies!   View Related
ActionScript 3.0 :: Make Flash Visible And Invisible?
I have a flash and want to make it only visible when loading 100%. In frame 1 I write stage.visible = fault; or this.visible=fault;

it doesn't work ! the flash still display !

Posted: 05-05-2011, 05:02 AM

View 7 Replies!   View Related
Actionscript 3 :: Make Flash Button Of PNG Visible Area?
I'm trying to know if there's a way in ActionScript 3 to load a PNG image and make some sort of button or sensible area applicable only for the visible area of that PNG??Maybe there's a simple way to define a polygonal area on execution time, I mean, dynamically and make it sensible to mouse events??

Posted: Oct 15 10 at 14:12

View 4 Replies!   View Related
Flash - Make A Movie Clip, Clickable After Just Becoming Visible?
So I have a movie clip called signInBtn and one called signOutBtn initially,

signOutBtn.visible = false;

but when a user signs in

signInBtn.visible = false;
signOutBtn.visible = true;

But after I do that, I can't click the signOut movieclip. I thought it might be because the signOutBtn was under the invisible signInBtn but that is not the case.

Posted: Nov 5 10 at 0:44

View 2 Replies!   View Related
Flash :: MovieClip Is Not Visible At Stage, However It Exits?
My Flash file contains a movie-clip(Box1) that is exported for Action-script but it is not exported to Frame 1 in Linkage Dialog Box. Box1 has been put on frame-40 and the object is accessible in document Class but is not added to stage. However when it reaches to Frame 40, the object at Frame 40 get visible. My question is where is boxObj??

[Code]...

Posted: Oct 20 10 at 11:08

View 1 Replies!   View Related
ActionScript 2.0 :: Tell Flash "when ExternalMovieA.SWF Is Loaded, Make MovieclipB Visible?
How do I tell flash "when externalMovieA.SWF is loaded, make movieclipB visible?

Posted: April 11th, 2005

View 13 Replies!   View Related
ActionScript 2.0 :: Increase Traffic Or Make Flash Site Visible In Search Engines
Is there a way to increase traffic for flash web site. Is there an action script to make your flash website "visible" for others. I heard that if I build a flash web site it will be difficult to get customers due to the fact that flash pages usually don't show up in the data bases. Is it right?

so anyhow is there a way to increase traffic or make my flash site "visible' in search engines. do you think building a splash page in html and then redirect them to flash is a good idea?

Posted: February 12th, 2003

View 4 Replies!   View Related
ActionScript 2.0 :: CS3 : Make A Combination Of Keys Make A Movie Clip Visible?
How can i make a combination of keys make a movie clip visible? Basically i want something like this to work:

if(Key.isDown(Key.Alt && Key.A)){
reminder._visible = true;
}

So when someone presses the Alt and A keys down at the same time the 'reminder' mc becomes visible?

Posted: 08-11-2009, 01:07 PM

View 2 Replies!   View Related
ActionScript 2.0 :: Opening URL - Use Default Error To Make An "error Movieclip" Visible?
ok now i have a variable "URL" [URL] (or something like that - it works anyway) and a search box replaces the url and places it in the url as appropriate Error opening URL "[URL]" now if someone types "hello" and submit, it looks for "[URL]" but if the image isnt in the folder it will come up as Error opening URL "[URL] in the OUTPUT box now is their any way at all to say in the actionscript (the image searched wasnt in our database please try again) i know its a default message flash comes up with but is their a quick way to use this default error to make an "error movieclip" visible?

Posted: July 27th, 2006

View 1 Replies!   View Related
ActionScript 2.0 :: MovieClip._visible Not Working [Flash Pro 8] - Movie Clip Is Still Visible On The Screen
I have some AS that creates a movie clip and later tries to make it go away. However, _visible isn't working as I would think. Here's a sample: I create the triangle:

[Code]...

It doesn't work, however. So, I tried trace(triangle30._visible) both before and after the second chunk of code, and it does indeed change from true to false. However, the movie clip is still visible on the screen.

Posted: December 3rd, 2006

View 2 Replies!   View Related
ActionScript 3.0 :: Visible Movieclip Inside An Invisible Movieclip?
Is there any ways to set a movie clip(item2) invisible but set another movie clip which located inside item2 visible?

Posted: 08-03-2009, 12:50 AM

View 1 Replies!   View Related
ActionScript 3.0 :: Make Var Visible To Two Functions?
following code:

[Code].....

even once i'v executed "getMcInfo", I get "null" from the trace statement in "changeBorderColor", I should get [object blabla]. I know this has something to do with the scope of the variable "MC" but i just can't fine a solution..

Posted: 07-07-2010, 05:52 AM

View 1 Replies!   View Related
ActionScript 2.0 :: Make A MC Not Visible After A Certain Time?
Is it possible to have a MC go to ._visible=false after a certain amount of time? So you would roll over it and let's say after 2 seconds it would become not visible. Is this to do with the setInterval function? Actionscript knowledge is slim so be gentle.

Posted: 01-29-2010, 06:41 PM

View 9 Replies!   View Related
ActionScript 2.0 :: How To Make Mc Visible Function
i have this script to animate my button. so fare it works fine. the buttons are mc and have three states: one for up, one for over and one for press.when first loading the swf, i want to have the first button already in the 'press' status.i tried to do it with this:but1.mc_butup._visible = false;but that confuses my function of the button states.this is the scrip i have so far:

Code:
var buttonActive;
_global.buttonRelease = function(which) {

[code].....

Posted: January 17th, 2004

View 2 Replies!   View Related
ActionScript 2.0 :: Make Mc Visible And Invisible?
I want a movie clip to be visible for 3 seconds then invisible then visible again after 3 seconds.

Posted: March 21st, 2010

View 4 Replies!   View Related
ActionScript 3.0 :: Make An Object Visible Off Stage?
I would like to make an object visible off stage. So that the object is floated over the HTML. Any Ideas. I don't seem to be able to do it using Transparent Window in the HTML publish options and think it may only be possible using javascript (layers) but I would much prefer to only use flash so if anyone has a idea I'd love to hear it.

Posted: 07-14-2009, 08:57 AM

View 2 Replies!   View Related
Professional :: How To Make Things Visible Offstage
I'm trying to allow all things oitside of the stage peramiters to be visible in the browser screen so certain elements can be longer than the stage and still be shown Can't remember if it's a flash thing or an html thing.

Posted: Jun 6, 2010 4:13 AM

View 6 Replies!   View Related
ActionScript 3.0 :: Make String Of MCs Invisible/visible?
I have a map of states state when a particular state is clicked on, the fla centers on and zooms to that state. When you click on a state a unique ID is pulled from an xml. Using this ID, I can then call all the counties that are part of this state through the county's xml which is also loaded on my stage.or example if I click on Arizona, it zooms and I get a trace of all the instance names of the counties within Arizona.

//call all instance names of Arizona counties
cldcnfips=(cntXml.Records.Record.(STATE_FIPS==cldstfips).afips.children());
trace(cldcnfips);

[code]......

Posted: Jul 28, 2010 7:41 AM

View 7 Replies!   View Related
Copyright 2005-08 www.BigResource.com, All rights reserved