ActionScript 3.0 :: Make Flash Visible And Invisible?
May 5, 2011I 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 !
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 !
I want a movie clip to be visible for 3 seconds then invisible then visible again after 3 seconds.
View 4 RepliesI 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]......
I have a file where everything is on frame one, and I have a nav bar. I want there to be a couple of buttons showing up below the main nav bar when one nav button is clicked, then disappearing when any of the other buttons are clicked.
View 1 RepliesIf there an object is placed on the stage named square and with the document class Main an object was added to square with addchild,if I wanted the square to not be visible but still be the parent while the new object added to square was made visible, how would you accomplish that?
My Trials: It seems if you set the parent to false visibility and then try to set the child visibility to true it disregards that request because the parent visibility overrides it, so the entire movieclip object remains completely invisible.It seems you can make a child become invisible while the parent is visible, but I want to do the opposite.
I have a simple FLA that pans through an image up/down/left/right. There are several hotspots (transparent buttons) that popup simple captions when the user rolls over them and launches a URL when clicked.
The captions are actually one caption that I dynamically write text to, size, and _x, _y locate when the rollover event occurs.
The caption (cap) is a rectangle and text box MC symbol which is grouped with the graphic and buttons as another MC symbol. It all works great, panning, captions.
The problem is, when the mouse is first moved, the caption box appears over the graphic. I want it invisible until a rollover occurs. I have tried a setup function action in the first frame that performs cap._visible = false;, which did not solve it. That syntax works fine following the first rollout.
on (rollOver) {
cap.desc.text = "Mr Reynolds";
cap._width = 7*cap.desc.text.length;
[Code].....
I am creating a thumnail bar having the thumnail of the images, it has the default visible thumbs of 7 images, while the others must be hidden on the right of the bar. I used the code in AS3 to add thumbs in to the bar, the first 7 were fine, but the others still appearred visible and cover the bar border.My thumbBar is simply a rectangle and what i really did was to thumbBar.addChild(thumb). But all the thumbs appeared visible, first 7 thumbs stayed inside the rectange but the others were outside.How can I make the others invisible and turn them visible only when i use with the MouseOver Event.
View 3 RepliesThis is a very simple thing I want to do: show informational popups when an area of the screen is rolled over. I was able to get this working in action script 3 with MouseEventListener and the visible =true/false property but can't seem to get it working correctly in AS2.
View 2 RepliesI'm sure this question has been discussed before? I'm wondering how I can make this particular scrollbar invisible when the text inside is short and visible when the text is longer? What would be the AS for this? I'll attach my file to this post!!
View 2 Replieshow I can make this particular scrollbar invisible when the text inside is short and visible when the text is longer?
View 3 RepliesIs there anyway a Dispaly Object can make its parent invisble = visible=false,
But the child remains visible?
Just trying to save on re-writing a batch of code so its the normal parent child relationship.
how to make a clip invisible after 4 seconds of idle.
View 16 Replieswell i m here to ask a "simple" doubdt i think, i wanna duplica a movieClip and acess it in diferent X positons, and how can i put my mc visible in some frames and invisble in others? i ve tryed mc.visible = false but it didnt work :S
View 1 RepliesI have got some images that i have loaded flash from another website.
i have used the tween function to make it move about. i would like to know if there is a way to have many images in the same symbol and change there visiblility so that you can only see one at a time. when i use
Code:
_root.images.image1._visible = false
_root.images.images2._visible = true
[Code].....
This may well just be because it can't be done but here goes.Does anyone know of a way that I can make a MoviecClip "visible=false" whilst stopping just one of its children's, children's, children...etc from also going invisible.I am aware that it can be done by setting them all individually but this will take a lot of code (and I like tidy code...and I'm lazy), and I am reluctant to use a loop as it will interrupt the animation that is going on at the time.
View 2 RepliesI have a movie clip named circle_mc(see the image on the link below) and a mask object(movie clip) which determines visible area of the circle. User can change the portion which is visible (extend the red area and make it red+blue, gray area is invisible). I need to find proportion of visible area to invisible area (red+blue/gray) so that I can calculate angle.
View 1 RepliesI am using Flash Professional CS4. I made 2 buttons (2 rectangles,each turned into a symbol of type button). I now want when I click 1 button that the second becomes invisible. Is there a way to do so?
View 2 RepliesI've been building a website for a friend: WEMI. The thing is I'm using a script I bought from Activeden.net which is awesome and works great for displaying external webpage's within you flash site. However, there are a few issues. If you visit the link above (WEMI) and navigate to either "Till salu" or "Frmedlade hem" you'll notice that the popup is not positioned in the middle. Also, the popup only goes away if you interact with it, such as scrolling down or something like that. You can't just click on another button, say "Kontakta oss" and continue navigate. I just won't go away.
how to deal with my issues: "You can call setInvisible(); through the popup reference (in the example called p) and to center it you can add a resize event listener to the stage and in the callback function set the x and y of the popup" Since my knowledge in AS3 i limited
I have a banner with big invisible button covering the stage and underneath it I have movieclips which must respond to mouse events. But I can't get through invisible button. I only get button events and cant interact with movieclips underneath it. Here's simple code:
invisibleBtn.addEventListener(MouseEvent.CLICK, onTopClick);
bottomMc.addEventListener(MouseEvent.MOUSE_OVER, onBottomOver);
function onTopClick(e:MouseEvent):void{
[Code]....
Is there any ways to set a movie clip(item2) invisible but set another movie clip which located inside item2 visible?
View 1 RepliesI 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]....
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]...
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??
View 4 RepliesSo 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.
How do I tell flash "when externalMovieA.SWF is loaded, make movieclipB visible?
View 13 RepliesIs 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?
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?
After a few years of using Flash I am creating my first project in AS3 and am running into some problems which are quite common involving targeting movieclips and controlling them. Basically I have a fla which has an MC on the timeline with an instance name of INFO_MC. Now i want this MC to be invisible when the swf starts and I have managed this by using the following code: Actionscript Code: INFO_MC.visible = false;
This is fine. However I get stuck when I try to make INFO_MC visible when I click a button in a loaded swf. How would I target INFO_MC from a button inside a loaded swf. Do I need to add an event to the button and then have a listener on the root timeline which would turn INFO_MC visible when it hears that the button has been clicked?
Ive got my dancing fruit sorted, however when I save the file as an animated gif and put it in my application the gif has the stage background. If it wasnt animated I could edit the back ground in photo shop, but I dont seem to be able to with the animated file. Is there anyway I can just have my dancing fruit with out the stage?
View 3 RepliesI'm sure this is something easy that I'm missing, but I can't figure it out. How do I make a button invisible? I need it to be invisible through frame 43 of my movie. I have tried changing the alpha to 0, but it's not letting me change that, except in the edit button mode which changes it for the entire duration and not just through frame 43.
View 1 Replies