ActionScript 3.0 :: Hide All Unwanted Movieclips And Reveal Only Need?
Jan 3, 2012
Is there a way to hide all unwanted movieclips and reveal only those you need? From my understanding, if i do not want a particular movieclip on the stage, i will use scene1.visible = false; but it becomes very complicated when i have different scenes appears at one time, so i need to
I want to have a text field that, if a certain letter is typed in it, shows (visible = true) a certain movieclip. I need to cause 26 separate movie clips, (or one movieclip with 26 frames, one per letter), to respond to each letter of the alphabet when letters typed in the text field.
I want to create a simple script in AS2 that can reveal and un-reveal some text upon clicking (and any additional graphic), preferably with a simple transition (likely a tween). How would I go about achieving this?
When my site finishes loading, just before the animation begins, I see for a very short period of time (just a frame I guess) weird images, actually the outlines of some elements (screenshot 1) that are supposed to have alpha = 0 and visible = false, and a weird shape which I believe has something to do with a big gradient - also with alpha = 0 and visible = false (screenshot3) also the preloader is all messed up (screenshot2) .ve made a few changes and these weird images and outlines persist for a longer time.
This should be simple (I think) but I want to use the same Flash movie on several pages of my website, hiding different MovieClips on each page.
My plan is to pass the 'hide' instruction using a Flash parameter in the HTML, which I've got working fine, but hiding an entire array of MovieClips using "visible" just doesn't work using the code here.[code]...
I'd like to be able to have an array of movieclips where i'm able to toggle their visibility depending on what button has been pressed. I would need to have a default movieclip that is visible and all the others are hidden, but then when I click a button to make one of the other movieclips visible the default one is hidden etc.You can see an example of what i'm trying to achieve at http:[url]........I'm experienced in PHP and HTML but have not used flash for several years so i'm pretty rusty. Can anyone point me in the right direction?
For the majority of projects that I create, I have an intro animation for all the movieclips on the stage, so that they do not just appear like HTML at once. The problem with this is that I do not animate in buttons and interactive movieclips on the main timeline (I use internal frames to animate. Frame 2 is always .onRollOver, Frame 11 is always .onRollOut, Frame 50 is movieAnimationIn, etc). This means that Frame 1 needs to have an alpha level of 0, so that no one sees the MovieClip until I fade it in with intro animation.
This is a pain in Debugging/IDE mode, if I need to edit the movieclip, since I have to find the little white dot (transform starting point) and double click it to view inside the movieclip from the stage. I try to create intro animation last since it usually hides all the movieclips and makes editing them annoying!
Is there a framework/class/package available that would hide all the movieclips I place in an array in the first frame of the movie and then show them once I choose to fade it in? I think I could write one myself, but I didn't want to re-invent the wheel.
This would be a greatly increase productivity to many Flash Developers.
Basic problem here. I'm adding a bunch of movieclips using the addChild method. I simply want to remove/hide/fade them after a button click, but I am unsure of how to refer to the movieclips which I've just added.
Here is the code as it stands: Code: Select allimport gs.TweenLite; import gs.easing.*; var strip:Bgstrip; var contentBg:ContentBg = new ContentBg(); contentBg.x = 440; contentBg.y = 166; addChild(contentBg); [Code] .....
I am trying to make a couple of Movieclips hide on the holding down of a key such as Page down ive used this:
[Code]...
it hides the MC but doesnt return visible on release of PGDN. Ive had a go at trying to fix this but i cant find the right command in the actionscript dictionary. Also is it possible for the MC to hide only on the holding down of multiple keys.
I'm stucked here. I want the font type "BauhausMedium" to apply when ft_01 is clicked, font type "Haettenschweiler" to apply when ft_02 is clicked, etc... at the same time I want all" ft_01a", "ft_02a", "ft_03a" movieclips to hide except for the movieclip similar to the clicked button. E.g. if "ft_02" was clicked ft_02a to be visible =true and rest to be visible = false (ft_01a, ft_03a).
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.
I'm trying to create a preloaded that reveals an image. Example of what I mean is: when 10% is loaded 10% of the image is visible when 50% is loaded 50% is visible.
I am trying to learn about Custom Components at the moment. As a task I'm hoping to create a component that I can drop on my stage beside a couple of movieclips. Then using the component inspector I would like to set one clip as a button and the other as the response. So basically, when i click on the button, it reveals the other clip. Click and reveal!
I created a flash movie which resembles a control panel. I created a image of the group of people that worked on the project and I want the image to be hidden until the user types a key combination that would trigger the image to appear and dissapear when clicked. This url is something like what I was looking for,but I want an image to appear instead, can this be customized? The only problem is, I'm not really good at actionscript. Is there any tutorials out there that may show an easy way to do this. The attached file is a sample of my interface
get the zip file which will be very helpfull. I made some screenshots in photoshop for help.
1). map jpg: That's the map
2). the map is covered with a black layer
3).the user changes (somehow) the _alpha property (before starting revealing the image) to -let's say- 60% and reveals with the eraser the path of the map up to some point.
4).the user sets the _alpha of the cover back to 100% in order to get the picture shown in the example.
I have a button that when hovered over scrolls out to reveal the page. I then want it so that when someone rolls out from the button, it then scrolls back in to how it started. This seems to work ok, with just one small problem, the page doesn't necessarily always stay scrolled out, even if you don't move the cursor away from the hit area of the button. I have a flash file which contains a simplified version of the button as I would to achieve it working, and then on a separate layer my faulty button. Its too big to attach, but if anyone can help i would gladly email the file
The tutorial I am working on is at: [URL]. I have no problem with the fade grid effect itself but... I'm trying to make one of the squares (which is a guy in the middle of a scenic landscape) visible first giving the effect that you can only see him first, then the grid squares fade in to reveal the landscape that he is standing in.
So I tried just cropping the square out in photoshop, then just placing it in the exact same spot above the original image, but everytime the movie gets to the portion in the timeline with the actionscript, the little square with the man in it disappears. I want the square with the man in it, to remain on the stage from beginning to end, as top layer.
Code: for (i=0; i<200; i++) { circle.duplicateMovieClip("circle"+i, this.getNextHighestDepth()); randX = Math.floor(random(Stage.width)); randY = Math.floor(random(Stage.height)); this.banner.setMask(this["circle"+i]); this["circle"+i]._x = randX; this["circle"+i]._y = randY; } Circle is a movieclip that has a circle starting at 2px by 2px and expands to 100 by 100. Banner is just a movieclip, but I would like these expanding circles to act as a mask to reveal the banner. This should work, but isn't, I know I am overlooking something.
This has been bugging me for a little, and some of the examples I have tried to find throw me in loops and they have been wrong. [url]...
Or if you have ever played "Scorched Earth" you will see that when some part of the terrain is destroyed, it punches out the pixels perfectly when a shot is fired into the ground, to reveal the picture behind the main picture with the terrain.
I have plenty of ways of creating falling snow like effects, but a client has just comitted me to an effect as a test of my ability without talking to me first, that I am a little stumped by. use AS2 or AS3 for this project because of the filters and tween effects available to me.I need to have a top down falling snow effect (its actually supposed to be flour falling from a sieve but hey...). All the snow effects I know, fall down sideways on, from top to bottom, and then they disappear off the page (the flakes).I need the particles (movieclips) to fall downwards from a birds eye view, and 90% of them to disappear, but the remaining 10% to gradually (over about 5 seconds) build up a white logo (shape) in the middle of the screen.So I am guessing that I am going to have to be clever with dynamic masks to get the shape appearing a little bit at a time, and then I also need some random motion, and scaling as the particles fall downwards (and away) from the eye.
I have a preloader using a mask, set to slowly reveal the target object from the bottom up as the movie loads. But there is something off with the code and I'm not a programmer.
I have a question, and I find it hard to find resources on it. I have two layers, and another layer with an image of a broom on it. I want to use the broom to move over layer2, and reveal the layer beneath it. Kind of making a sweeping game. Frankly my search efforts on google have only come up with alot of masking, but I am sure you need actionscript to make the broom move with the mouse.
I have a web design for a client that was pretty much complete. They decided that they wanted to replace one of the graphics with a flash animation. When I added the swf file to the layout in Dreamweaver it apparently is adding some space around the swf which breaks the rest of the design. It looks to be about 4 pixels or so of space that is getting added. I experimented with padding, margins, borders on every element in the design. I tried changing the Scale parameter of the swf to "no border" and "exact fit". I tried enclosing the elements in a table. To simplify things I created a new blank page in Dreamweaver and added the two elements that are giving me grief. The original width of the design was 792.
On the top I had 2 graphics, the first was 212 wide and the second was 580 wide. The first graphic is the one that got replaced with the swf file. The swf is also 212 wide. But for some reason there is that extra space on the right side of the swf that forces the second graphic to the next line. You can see the example here: [URL]. This shows what happens when the original graphic was replaced with the swf. (The swf doesn't do anything as I actually replaced the client's swf with one I made that has the original graphic as the only item in the movie). If you look here: [URL]. I changed the width of the second graphic to 574 wide. That kept the graphic on the same line, but you can clearly see that the swf has the unwanted space to the right.
Problem embedding CS4 Flash Movie - Player 10. I am embedding a Flash Movie into an HTML doc. The doc was created in DW CS4 and has a table with 3 columns and 5 rows. Each cell will have content. I put a flash movie in the center cell, three rows down from top. Everything looks great in Safari. However, in IE, FF, and IE Chrome, there is space along the top and bottom of the movie -- have not tried the AOL browser. About 10 px each. I've tried everything to fix it. I published the HTML in Flash and tried integrating the generated HTML with my table -- same problem. Maybe publish settings could be tweaked.
I've tried 0 margins in CSS header tag, and HTML too. I thought I had this problem about a year ago with a different site ... been that long ... and resolved it.
I have created a sliding rollover panel so that a user can hover over an invisible button to reveal the panel itself. The panel itself is under a movie clip which basically motion tweens the panel to slide in and out effectively. Then there is the panel_mc inside the movie clip which contains an img. The one panel can slide out but for some reason cannot slide back, even when you rollover the button(popUp_btn)!!!! The compiler errors does not even display this error!!!
Here is the code for the main AS timeline in the site: stop(); panel_mc_arrangement.panelInner_mc_arrangement.popUp_btn.addEventListener(MouseEvent.ROLL_OVER,rollFarrange); function rollFarrange(event:MouseEvent):void{ if(panel_mc_arrangement.currentFrame <<2){ panel_mc_arrangement.play(); }else{ panel_mc_arrangement.gotoAndPlay(20); }}
I have plenty of ways of creating falling snow like effects, but a client has just comitted me to an effect as a test of my ability without talking to me first, that I am a little stumped by.I need to have a top down falling snow effect (its actually supposed to be flour falling from a sieve but hey...). All the snow effects I know, fall down sideways on, from top to bottom, and then they disappear off the page (the flakes).I need the particles (movieclips) to fall downwards from a birds eye view, and 90% of them to disappear, but the remaining 10% to gradually (over about 5 seconds) build up a white logo (shape) in the middle of the screen.So I am guessing that I am going to have to be clever with dynamic masks to get the shape appearing a little bit at a time, and then I also need some random motion, and scaling as the particles fall downwards (and away) from the eye.
Before I jump in at the deep end, has anyone got any ideas on this, even just part of it (the falling particles or the revealing dynamic mask part) would be a great help.Please let me know if you can help with ideas and input in anyway, and I'll give you credit on the final project when complete, as well as much help as I can with game related scripting and deisgn/URL...
When I import a psd layered file I get an unwanted (red) border appearing around the art and as a box around the art. This doesn't exist in the psd file, but appears in the flash file. Should I convert and import it as something else? Is it a resolution setting in flash?