ActionScript 2.0 :: Make An Object Selectable?
Mar 19, 2006Ive figured out how to make an object selectable with this [code]...
Now that ive done that i want to know how to change the color of a selected object when i click a certain button?
Ive figured out how to make an object selectable with this [code]...
Now that ive done that i want to know how to change the color of a selected object when i click a certain button?
How do I make a selectable photo scroll bar like the one on URL... under the nav. I want to make one similar on a music web site, but am unsure how it's done.
View 2 RepliesHow do I make a selectable photo scroll bar like the one on[URL].. I want to make one similar on a music web site, but am unsure how it's done. I just need to know what I need to do, I'll figure it out from there. DO I jus bring the png photos in seperately? Do I just use a scroll bar component? I just need to know where to start
View 3 RepliesIs it possible to make a LinkButton selectable? That is, the text from the LinkButton can be selected and then copied. LinkButton does not have the selectable property.
View 1 RepliesAs part of requirements for a new feature of "locking" a page, it is desired to have all elements on a locked page be non-selectable. This is not to be confused with disabled. All elements should appear as if the page were active, but not be selectable.The current thought is to create a clear canvas and place it over the existing elements. With this thought, I have two questions:if you can think of a better way to make all items non-selectable than applying a clear canvas element over the existing elements could you describe it?if not, what is the best way to retrofit existing implementations to accept the overlayed canvas item? BTW, all .mxml pages inherit from a custom .as file.
View 3 RepliesI have to make all the textfields on the stage selectable through actionscript.Currently its a tedious task since there are more than 1000 files for which the textfields are to be made selectable. All of these files get loaded in a main shell.fla.Is there a way to write a script that would make all the textfields on the stage selectable???
View 4 RepliesI need to make Text box to be Draggable And Selectable
View 1 RepliesIs it possible to make an item in a List control not selectable? If so, how would this be accomplished?
I've tried one thing so far. What I did was use a custom item renderer that checks for a value in the data property upon a FlexEvent.DATA_CHANGE event. If that value is not set, I tried setting the item renderer's selectable property to false. This, unfortunately, does not seem to work.
If I have a menubar that has an XML datasource like:
<mx:XMLList id="menuList">
<menuitem label="Parent1">
<menuitem label="Child1">
<menuitem label="SubChild1" />
[Code]...
How can I make it so that clicking on Child1 will cause a click event despite it having children?
I am currently trying to create an app using flash AIR.I would like to find some more information on how to make an object snap to another ojbect then follow its path, eg. a person object is already on the stage, then drag an arrow to the object which snaps to it, then on play button it follows the arrow path. all in pure actionscript, no guide layers.
View 1 Repliesi wanna make an object ease after another object that is easing... like a motion trail. but the objects just go to the corner of the screen....and won't ease after each other.
View 10 RepliesIm working on a small project and it involves a guy which you move with the arrow keys. The arrow keys add to his x, y velocities and his position is updated accordingly. How can i get this man to grab onto an object and spin around it (like when you grab pole and letting your momentum swing you around) . I can make him grab the object but I dont know how to modify his x,y speeds to simulate the arc.
View 4 RepliesI'm still new to AS3, and I was wondering how to make an object point in the direction of another object and move towards it if they are a certain distance from one another. I haven't been able to find out how to do this from the Adobe devnet, so I thought I'd ask here.
View 1 RepliesThe following is that long only because I gave examples of what I want to know, not because it is complex .I have three basic questions regarding AS 3.0 classes.
1. How can I make a class object interact with an object on stage?
For example, when I have a square (mc_Square) with class "square" attached to it and I want it to trace "Colliding!" and print the X and Y of the mc_Box on contact with an on-stage *hollow* box (mc_Box) that has no class attached to it.how to do it vice-versa would also be awesome .
2. How can I make a class object interact with the same class object? For example, when I have two squares (mc_Square) that both have the class "square" attached to it and when they collide, it prints the X and Y of both of them.
3. How can I make a class object interact with a different class object?
For example, when I have two squares mc_Square1 with class "square1 (that also has a variable Primary=true written in it)" and a mc_Square2 with class "square2"; When they collide, the one with Primary=true would be removed and it's X,Y position traced.
Is there a way to have Dynamic Text non-selectable and not have a white background? Such as a transparent background?I'm looking to dynamically change text over a coloured background.
View 1 RepliesI have selectable html text and when highlight the text from top to bottom it scrolls the text.... how do I prevent flash from that doing that
View 0 RepliesI found if I make the text selectable, the SWF ignores format such as bullet points indention, spacing between paragraphs. How can I keep both?
View 0 RepliesMy program is enable user to choose movie with click on any radio button. Then the movie will store in the array. then the contain in the array will be loaded. Now i would like save the choice of user in a array and after that the program will trace the arrayand load the swf files that choose by user.User can choose as many choice as they want.
My problem is
1. when click, how the swf files save in array
2. there are the "next" button to let user click and proceed to view their next choice.The "nexScene" and "nextFrame' is not i want.I m seeking any opinion.
why are the dynamic textfields selectable? The textfield is inside a movieclip. Once the clips are attached, why can they not act like buttons?
ActionScript Code:
xmlData = new XML();
xmlData.ignoreWhite = true;
[Code].....
This is a really basic question, and I feel like I'm probably overlooking something extremely obvious.I'm working on a text-based application, and it's important that users aren't able to muck about with certain portions of it. OK, I thought, I'll just set textField.selectable=false right after I've created the text field.
View 2 Repliesmake a circle object movie clip call ball and make a rectangle object movie clip call mc and paste this coding.
[Code]...
can anyone explain about the movement about D? the D is talk about the distance if i go -X,way my ball go ++ to +x?
I searched and searched.Anyway, I have a swf sitting in a layer above html text. It's set to wmode transparent, and looks fine. it stays small until rolled over, then the buttons slid out as expected. However, when the swf buttons are still hiding, the html text in the area that the swf buttons will eventually occupy is not selectable when directly clicked.
View 10 RepliesI'm working on a project where I add a text field as a child to a sprite on the stage.
Even though I make it selectable and it's text field type "TextFieldType.INPUT", I still can't select it.
How do I make text selectable (so I can copy) in a DataGridColumn?
View 2 RepliesI am new to flex, and do not know how to add an image (or other ui component) to canvas, so user can select it (and see that it's selected), also I want to add a possibility for example to click backspace and remove selected image from scene. How to do that?
View 1 RepliesIs it possible to have 4 list boxes but only let the user select one item from all four list boxes? If so how?
[Code]...
I have 2 clips sitting on each other which can be tabbed between via swapDepths(). The initial 'underneath' clip has one large textfield/box of type 'input'. For some reason when you mouse over the upper clip in runtime (which has NO textfield) the cursor is coming up. Like as if it is selecting the textfield in the underneath clip. This shouldnt happen!!!!. Ideally users should only be able to select and enter data into the input field when that Mc has been tabbed and is at the top.
I did try making a function to turn the 'selectability' off when the input clip is at the bottom, but this of course doesnt work on textfields of type input
I want to create a dynamic list of options which is scrollable (I have got this far ok). These list options need to be clickable so when you click option on for exacple. It highlighs qand you then send a variable name.
View 6 RepliesI'm working on a project where I add a text field as a child to a sprite on the stage. Even though I make it selectable and it's text field type "TextFieldType.INPUT", I still can't select it. When I tried adding it as a child to the stage, it worked perfectly and I could select it.
View 8 RepliesI now officially hate the textArea component but that's not the point now. A couple of questions:1. How to make the textArea text NOT selectableit is NOT a textField so don't post .selectable = false, that doesn't work.2. How to make it anti-alias decently. Right now it doesn't look that smooth.I use this code:
Code:
var verdanaFont:Font = new Verdana();
var textFormat:TextFormat = new TextFormat();
[code].....