ActionScript 3.0 :: In-visible Sprite With Visible Children?
Sep 28, 2011
My question is: Set parentSprite.visible = false will make all children in parentSprite all invisible, right? And is there any way to just make parentSprite itself invisible without effecting it's children?
View 2 Replies
Similar Posts:
Apr 4, 2011
I've got a sprite which I want to temporarily hide... But changing the .visible property doesn't do what I expect. The code looks roughly like this:
[Code]...
View 1 Replies
Mar 27, 2009
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 Replies
Mar 30, 2011
I have a VBox inside a Canvas. The 'red bars' are custom components based on 'Canvas'. All red bars are of equal height. I have 20 red bars inside the VBox. The scrollbars visible in the screenshot are the Canvas's scrollbars. The scrollbars of the VBox are disabled using verticalScrollPolicy = off.
Without scrolling, only 16 red bars (and a part of the 17th bar) are visible. However, when I scroll down the Canvas I expect to see the remaining red bars - but the bars that are not visible when the application starts don't get 'drawn'. What am I doing wrong? I want the user to be able to see the 17th - 20th bars when the Canvas is scrolled down.
View 1 Replies
Jun 17, 2010
I'm trying to avoid the scroll bar appearance on an UIComponent. Is there any way to obtain the computed width/height that my container component should have to have all children visible? I don't want to compute it myself. I would like to know if there is any variable computed by the component when it decides if it should draw the scroll bar or not.
View 0 Replies
Nov 30, 2011
I'm trying to get a simple AS3 app up and running, and for some reason, I cannot get a sprite to show. At this point, all I want to do is get a red sprite to fill the stage.
public class Main extends Sprite
{
public function Main():void
[code].....
View 2 Replies
Jul 27, 2010
Given this:
PHP Code:
var container:Sprite = new Sprite();
var _myriad = new _Myriad();
var tff:TextFormat = new TextFormat(_myriad.fontName, 24);
[Code]....
...why is it that I can see my text when I do this:
PHP Code:
addChild(tf);
but I can't see my text when I do this:
PHP Code:
container.addChild(tf);
View 2 Replies
Aug 8, 2010
I want to click on an object and make it appear and disappear. As the object is rectangular, I figured putting a white button the same size on a white background on a layer underneath the object would do this, but I can't seem to make it happen.I'm a complete novice, frustrated as I've been trying to achieve this all day and I'm sure it should be pretty simple, but could you give me the idiots guide. I know how to name an instance, make an object, script in actions on a separate layer. I would like to draw the button myself and give it an instance rather than drag it off the button component (as I can't work out how to make the component button white, change its size etc.!)
View 5 Replies
Apr 1, 2009
Code:
my_Dyn_Txt1._visible = false
cb1.onRelease=function()[code]....
When the checkbox (cb1) is clicked the "my_Dyn_Txt1" is visible. The problem I'm having is - when I move forwad and back in my frames the checkboxes which were clicked are not visible due to
Code:
my_Dyn_Txt1._visible = false
How can I make ("my_Dyn_Txt1"), a clicked checkbox STAY VISIBLE even after I move forwad and back in my FLA frames?
View 11 Replies
Apr 9, 2011
I have a tree with a dataprovider which takes the following form:
<details name="Cars">
<contact_person>aaaa</contact_person>
<list>
[Code].....
That is I want to hide the contact_person and list nodes.Deleting the nodes from the dataprovider cannot be done.So what i did was to create a custom tree data descriptor by extending DefaultDataDescriptor.Then override the getChildren method and applied a filterfunction to the collection returned by super.getChildren.The problem is when i hide the 'list' node I cannot have the child nodes to show up.So is there any way I can hide 'list' but show the children of 'node'?
View 1 Replies
Mar 4, 2010
I want to make a little thing pop up when I put press a button... Would the best way to do this by doing a - movieclipname._visible = true/false
View 3 Replies
Sep 7, 2010
Okay, this should be relatively easy but I'm running into errors. My main character is visible in the beginning of the game (where the main menu is) and because I coded it so that all of the enemies don't spawn unless the main character is visible, the enemies spawn too. As a result, if you stay at the main menu for long enough, the score continues to go up, the health goes down when enemies attack, etc.
View 1 Replies
Mar 30, 2011
when the video reaches 1 minute, a button appears. is there a way to hide the button again if the user uses the seek bar to go back to the 30 second (or any time before 1 minute) point?
View 2 Replies
Nov 4, 2010
I am unable to visualize the audio waveform in my flash timeline. I need to synchronize audio voiceover work and this is impossible to do without being able to see the timeline.
I am using CS4.....in previous versions I was able to see the waveform but no go for this version.....
View 1 Replies
Oct 6, 2009
I had a question if there is a way to set the stage as not visible? Meaning the .swf stage is transperent and takes the properties of the bg image of the bg of the page its laid on? I'm trying to steer away from just using flash for the site and using a mixture of flash elements in a css site but I can't seem to get the stage to be transparent.
View 1 Replies
May 3, 2010
I have six movie clips positioned across the stage and a following row of six movie clips below it. All of them move up the stage and are activated with a separate key press and it works ok first time. The following times going up the stage, the fifth and sixth movie clips are not visible on the first row, but are on the second row. The following code is what I am using for each clip - just repeated and named accordingly.
Code:
addEventListener(Event.ENTER_FRAME, leftbubbleMove);
function leftbubbleMove(e:Event):void {
if (leftbubble_mc.y > - 150) {
trace(leftbubble_mc.y);
leftbubble_mc.y -=2;
[Code] .....
View 1 Replies
Aug 1, 2010
obj_mc.visible = false; not working on mac, work good on pc.
View 3 Replies
Sep 20, 2010
I have my preloader which seems to be working correctly, however it only becomes visible as around 80%. So the page is blank up until then, then after that the loading bar is finishing and then goes to the rest of the site.
View 11 Replies
Jan 22, 2009
I have a dynamic text field. I have added a font object in the library, and selected that embedded font for my text field. I am using the font size I embedded. I also opened the Embed window & selected the characters I want.
When I do all of this, the text does not display in the text field. If I select DON'T embed from the embed window, then my text shows up, although, not in the right font.
View 2 Replies
Apr 12, 2010
My movie is 500 by 200 px. However i am loading display object much larger than that and have just a portion of them show. How do i programatically get the visible dimesions? root.stage.width gives me the extended value.
for the sake of good programing practices i dont want to hardcore the values.
View 1 Replies
Jul 27, 2007
I've been doing some simple text fades by keyframing the alpha values. Everything is fine on the stage, but when I publish it I can see a slightly translucent bounding box around the text. It's even visible on text I haven't animated. I've done fades before, but never ran into this problem. [URL]
View 14 Replies
Dec 18, 2010
I am close to finishing my animation and for starters one scene is lagging a lot and the artwork is visible outside of the stage dimensions. is this normal?
View 1 Replies
Jul 6, 2003
i have 10 buttons (b1,...,b10) and want to set their default visible property to false. I want only 1 of those mcs (pick by random) to be visible. How i do that?
View 7 Replies
Feb 13, 2009
This code is placed in several text boxes in my 10th frame and when I go to the 15th frame and come back to the 10th frame the selected checkboxes are not visible. how to keep my_Dyn_Txt1 visible unless it's unchecked. But at the start I need my_Dyn_Txt1 not to be visible as in the code. After the checkbox is selected I should be able to move to any frame (front and back) while my_Dyn_Txt1 is still visible unless it's unchecked by the user.
Code:
my_Dyn_Txt1._visible = false
cb1.onRelease=function()
{ if(this._currentframe==1)
[code]....
View 3 Replies
Nov 15, 2011
I have a SWF with a few buttons. The text on the buttons does not show up, as if the alpha is set to zero. This only seems to happen with certain versions of IE in combination with certain versions of Windows.This is a SWF that someone else created. It is placed on the page with Javascript. I do not have the option of recreating this at this point.
View 2 Replies
Oct 15, 2007
I created a UIScrollBar and linked it to a dynamic textfield. It works OK, but if I publish it and view it in the generated HTML file
(with flash player 9) it is not visible. If I view it in the standalone flash player it is fine.
View 7 Replies
Mar 3, 2009
What is the best way to keep a sub menu visible? The way I have it coding, is onRollOver the menu button, the sub menu is displayed. I want the submenu to disappear onRollOut of the entire menu... how would you do this?
View 2 Replies
May 19, 2009
I created a button in one movie. I nested a second movie that is the same size as the first movie. In the second movie I can successfully hide an object in the first movie with an object in the second movie. However, I can't prevent a button in the first movie from being shown in the second movie.
View 1 Replies
Aug 25, 2009
Flash Site not visible in Firefox only
View 1 Replies
Dec 30, 2009
how to make a clip invisible after 4 seconds of idle.
View 16 Replies