ActionScript 2.0 :: How To Hide A Object
Jul 19, 2004I'm trying to make one of these hide background buttons. I can't figure out how to hide a object. So when you press hide background, the background object gets hidden.
View 4 RepliesI'm trying to make one of these hide background buttons. I can't figure out how to hide a object. So when you press hide background, the background object gets hidden.
View 4 RepliesI have MovieClip, created with CS5. Is there a way to hide (set visible = false) all it's children (objects which lie on movie clip) within AS3 code?
View 1 RepliesI have MovieClip, created with CS5. Is there a way to hide (set visible = false) all it's children (objects which lie on movie clip) within AS3 code?
View 4 RepliesHow can I hide an object? (I'm working on Adobe Flash) I have 2 objects, a cat (1) and a mouse (2).
When the cat "eats" the mouse, I want to dissapear or hide the second object (mouse).
I'm working on a project that has multiple 'scenes' located on each frame. In one scene, if you click on an object it disappears. I did this using the visible = false method. However, anytime you return the scene after, the object is visible again. How would I write the code so that it stays invisible permanently when you click it, regardless of whether or not you leave and later return to the scene?
[Code].....
got a code to show and Hide an object with a button and it's working good. There's the code
[Code]...
I want to introduce my hide/show code to this code but dont understand how to do it. What I want is that if I enter ''image1'' in my Passwordbox, my ''image1'' object show/hide. If I enter ''image2'', my ''image2'' object show/hide. Can someone help me with this?
There is something I have been trying to figure out how to do, I keep running into needing a simpler bit of code to hide all the movieclips except the one that was just made visible. My only idea so far is to manually input all the movieclip names and tell them whether or not to be visible. It works, but it creates a lot of code and is time consumming to change. I hope there is a way to use just one or two lines of code and hide all but the currently selected movieclips.
View 9 RepliesIn Actionscript 3.0, how do I hide the mouse using:Mouse.hide(); to only hide it over a particular area or a particular object?
View 1 RepliesI used to play around with flash during the early days of action script 1.but now i can't seem to find my way around it. Used to be able to add the script to the button itself.here is my problem.I have 2 object movie clip instanceobject_red and object_blueand I have 2 buttonsshow_switch and hide_switchwhat I want to do is to have a toggle button show and hidethe objects on the movie.
View 1 RepliesOn my HTML page, I have <div> with an <iframe>, which references another page, that contains a Flash SWF object. If I set any of these:
display:none;
visibility:hidden;
opacity:0;
filter:alpha(opacity=0);
on the <div> that wraps the <iframe>, the SWF object sometimes remains in plain sight, while the <div>and <iframe> go out of view as expected.
[Code]...
This should work in the latest versions of Safari, Chrome and Firefox on a Mac and in the latest versions of Chrome, Firefox and Internet Explorer on a Windows 7 machine, and it should fail (no errors but the hiding behavior doesn't occur) in Safari on a Windows 7 machine.
It might be pertinent to note that one thing I've noticed about the SWF objects that have passed and failed are that the ones that have failed all revolve around video content whereas the ones that have passed don't. Granted I haven't tested more than a half-dozen objects, but that's quite a coincidence. :)
im building my site now and i want to have background of hexagons that get visible only when the mouse is at certain distance of them, so i found out that i have to use as3, ive read some tutorials and other post and i tried the following code that i found online:
stage.addEventListener(Event.ENTER_FRAME, showDistance);
function showDistance(e:Event):void{
var distance:Number = (circle.x, mouseX, circle.y, mouseY);
[code].....
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.
[CODE]...
I made a flash project that I published as an exe file. this project calls a number of external flv files. Now, I want to hide these files, because it's my own work and I don't want anyone to steal it, how can I hide these files?
View 3 RepliesI have an AdvancedDataGrid with a ArrayCollection as its dataProvider. For instance i have a CheckBox that allows me to show or hide certain rows in the AdvancedDataGrid.
View 1 RepliesIs there anyway to hide .swf path showing up from webpage??
View 6 Repliesis there a way in action to group to object so when one object is drag across the screen the other object sticks with it, im using flash btw
View 6 RepliesSo I have this Photo class than handles loading a pic, and dispatches an event when the loading is done with:[code]which is simple and works, but now I'd like to make something more advanced. I'd like to dispatch the load ratio.So far I have extended the Event class, with my own EventRatio class, and I can put properties on that class. Which is cool, but I need something more dynamic than just sending a fixed value.So, what is the best way to connect the Loader object of the Photo object, with the EventRatio object?
View 5 RepliesI have many layers and would like to hide or shut one off so it does not Publish. How? When I hide the layer in the timeline, it dissappears from the timeline, but still Publishes...
View 2 RepliesI have a Movie Clip configured as a Button and I wanted to know how to make the cursor transform into a pointer (little hand) when it's over tat movieclipBut well that was just not the point of the Post what really interests me is that when I click that MC a Pop up menu appears (another MC) but if i decide not to click any of the buttons in that menu the menu will stay there until I click another button or something and i will want it to disappear if a click it for a second time or something like that.
View 1 RepliesJust wondering if there is a way to hide the tweening path (ie motion path) of a motion tween animation when scrubbing. I have a number of objects in motion and while I am scrubbing the animation, the tweening path is kind of distracting so I would like to hide them. Is there anyway to show/hide the tweening paths?
View 3 Replies[b]Ok why wont this work?
Trying to do a
Navigation bar button , to preloader to abour me page with a photo component.
Not on the pre loader page the bar works, only it wont disappear.[/b]
[pre]s[color=blue]iteLoader.loadMovie("AboutMe5.swf",4);
Frame_movie._alpha = 100;
loadingBar._alpha = 100;
[Code]....
it appears to be the if script thats the problem not triggering the fad or gettig red of the pre loader altogether.
I have 20 movieclips and when one is clicked the other nineteen must dissapear. This is my code,
function What_I_clicked(event:MouseEvent)
{
hidemc(event.target.name);
[Code]....
Because of SEO considerations I am trying to use flash as little as possible in my site. I need it though for uploading files. I like to have an accurate progress bar and I find flash is great for this.Anyway once my file is uploaded, successfully, I would like the flash to go away (either exit or hide itself) and reveal an "Add To Basket" button underneath which is written in HTML.Failing that, is there a way to get flash to change a CSS style of an object so I could have my Add To basket button hidden and then made visible when the flash tell it?
View 1 RepliesI'm using this code to play flv [code]...
But I want to hide all icons (Play, Stop, timeline and scroll bar), how can I do that?
I have a funny situation there are two texts first in blue color and second in white color, images with alternate colored box(white then blue then white so on) is moved on these textsnow when white box cover white text then text hides or blue box cover blue text then blue text hides.
View 1 RepliesI have a button called myBtn.
In my actions in Frame 1, I have tried both[code]...
I develop a game that will have to load jpg images that now i just put in the same folder where swf file is, in order to load them when it is needed. Is there a way to somehow embed all this stuf in the swf so that i will have to deliver only the swf file?
View 2 RepliesI am loading a SWF in an HTML page the following way (using JavaScript)[code]...
View 2 RepliesI am creating Air (AS3) project. It will be have own system of protection. All data from the server to the application and back is encrypted. I use a secret key which is registered in a server-side scripts and in the application. If a hacker decompiled the app, it can find out the secret key. The secret key is the string (constant). I do not want to make obfuscation for my application.
How can I hide this secret key? Can I obfuscate only it? Can I obfuscate separate AS3 class with secret data and then access to it from the main code when needed?
I am working on a project that uses PHP , as3, and possibly some AMFPHP.
The project allows users to upload and download images among other things. I have been trying to gather as much info about making things as secure as possible. I've got some good advise about using .htaccess files, and a few other tricks.
My main question at the moment is how to hide the "path" info from and to the PHP / assets / and to and from the AMFPHP sevices ...
Currently I have all the paths hard-coded in one .as that returns an object with the paths to any of the other classes that need/request it. I found this method to work well since I only need to change this one .AS , and it will branch out to the other classes that need it.
I'm not super worried about others decompiling my code, and they could probably "sniff" out the paths if they really wanted. I'm mostly concerned with allowing others easy access to all of my AMFPHP services or being allowed to parts of the site I do not wish them to be. basically I realize that things aren't gonna be 100% secure regardless, but would like to take precautions.
So to cut to the chase ... Whats the best- simplest way to obscure / hide the paths being used in a PHP - AS3 project ? ... I entertained the possibly of PHP includes or even a SQL database if need be. I rather not spend a bunch of time and money on questionable obfuscator software, unless there's a tried and true one for flash (not flex). .. and I currently do not have a SSL but don't know how critical - common this is.