Flex :: Get A Bounding Box For The Current Selection?
Jan 25, 2011I'd like to do fancy things the selection indicator. How do I get the bounding box for the currently selected characters?
View 2 RepliesI'd like to do fancy things the selection indicator. How do I get the bounding box for the currently selected characters?
View 2 RepliesI'm having a problem with a tutorial i have been following to create a website. I followed the whole tutoril through until i get a problem at the final steps.Here is the tutorialQuote:49. after you have typed everything you wanted on the diffrent squares now its time to make it all work. what you need to do is to click on the blue square ontop of the �home button� dont double click it just select it. afte you have it selected press (F9) this will bring up the the actionscript window type the following
on(press){
gotoAndStop(�home�);
}
[code]....
I am in flash 8. I am working on a simple button symbol and the actions panel is showing "Current selection cannot have actions applied to it" and the options are unavailable".
View 21 RepliesI have instances of a button and I cant seem to add any actions to them! I just get the message in the topic title. I have another flash file that has buttons with actions applied to them, but this one wont let me!
View 1 RepliesI'm creating simple buttons (as I've done numerous times in earlier versions of flash) and need to apply an action to the hit phase - however keep getting the above message in the action script window. I just installed flash CS4 a few weeks ago.
View 4 RepliesI am building a website for an online store in Flash 8. I needed to use a dropdown menu for selecting the size of a clothing item, so I just used the default ComboBox component. I thought it was working fine, until I came across a strange bug (with the component, or my own code) where the ComboBox was not showing the current selected item.
The dropdown's list works, and shows all the options, but if you click on one, it doesn't get displayed as the current selection in its TextBox. The weird thing is that it still works fine, and I can access the data ok. If I use myComboBox.text I can access the current selections text, even though Nothing is being displayed.
Has anyone come across this before, and has any suggestions for what I am doing wrong.
A few details: Here is the actual code I am using to load the options into the ComboBox: Code: Select allvar my_cb:ComboBox = this.pages.product.size_comboBox;
my_cb.removeAll();
var sizesList:Object = productData[categoryID][productID]["sizes"];
for(var s in sizesList){
my_cb.addItem({data:s, label:sizesList[s]});
}
my_cb.redraw();
There are a number of other things happening the same time as its adding the items to the comboBox, e.g. loading images, creating movieClips, etc. Could loading this be causing the comboBox to not function properly.
And I need to edit the very script I found doing text search, just the one that cannot exist by what the editor says.Script was made in the times of Macromedia Flash 8, I use current Flash (cs5) trial.
View 2 RepliesIs it possible to make a bounding circle instead of a bounding box?The objects should bounce INSIDE the circle.I have now a bounding box outside the circle, but the objects exceeds the circle at the corners.
I was thinking of making an array of Points on the edge of a circle and when the object is < or > then do something... but that would be a lots of if/else statements.
I just write text and make it graphic symbol. Then try to put AS on it. But when I click on that to pur the script (v. 3.0), it's says current selection cannot have actions applied to it.
View 2 RepliesI'm just trying to get started with very basic AS 2. I have two books, (Understanding Flash MX 2004 ActionScript 2, by Alex Michael, and Animation and Effects with Flash MX 2004) All of the very basic ActionScripts I've attempted from both books result in the "Current selection cannot have actions applied to it" error message.
Here's an example from Michael's book, which is for putting an event handler in a movie clip. I'm going to write all of the instructions just so you know I'm following them: 1. Create a new movie. 2. Draw a circle on the stage. 3. Select the circle and convert it to a symbol. 4. Name the symbol circle and select movie clip as the behavior. 5. Click OK. 6. Select the circle movie clip. 7. Open the Actions panel window. 8. Type in the following[code]...
have only been animating for several months now. I am now trying to get into simple games, and I am starting with what I was told is the easiest, a Dress-Up game.This is the source of the tutorial that I am following: http:[url]....
I am following the Dress-Up game. I have created a button, dragged it into the Movie-Clip, and then went back to the scene, and selected it, right clicked, and clicked Actions."Current Selection" is selected, and it says "Current selection cannot have actions applied to it".
when I try to add this action to Scene 1, or Symbol Definitions it is a syntax error, and says extra characters as the reason.The script I am trying to use to make my Ball movable is;
on(press) {
startDrag(this,false);
}[code]....
I am just retruning to flash from cs2 and its much, much harder.I want to create one simple mute button. Does anyone havea link to how I can do this from start to end in cs4? Everything I've found ends with me getting the error message: "Current selection cannot have actions applied to it" while tutorial carries on and neeer address this as a possibility.
View 1 RepliesI'd like to do fancy things the selection indicator. How do I get the bounding box for the currently selected characters?
View 1 RepliesLets say I have 4 items on the stage item1_mc, item2_mc, etc...they're stacked vertically with a small space between them. I wish to cycle through these items with two keys, up and down respectively...how would I go about doing this?
My current idea is to create an array of these items and have each press of the key add or subtract "1" from the current selection...is this the correct method to pursue? Are there better options?
I recently 'upgraded' to CS4. For some strange reason I have intermittent problems where I can't assign an action to any object. I'm trying to link a simple button, but in the actions window I get a message telling me that, "Current selection cannot have actions applied to it".
View 2 RepliesThe link elements I'm talking about are single words, so they are not wrapped inside the container, which means that they should have a single bounding rectangle. But how do I go about finding this rectangle? I'm familiar with Flex3 but don't know enough about the new Text Layout Engine in Flex4.
View 1 RepliesI never realized that fl.getDocumentDOM().selection doesn't retain the selection order... <sniff>. I was hoping to build relationships based on the order. I guess I took if for granted that tools like Maya and Max store the selection buffer in order of what was selected. I'm trying to avoid: Select Object, <Press 'Parent' Button>, Select Parent, <Press 'Parent' Button>
View 2 Repliesi am attaching a number of _mc (my_mc) with a for loop. Inside each my_mc is an input textfield (my_txt)I want to click on my_mc.my_txt and select the textfield .the following code allow this and i can enter text from the keyboard however I want to add text from a _mc keybooard on screen (here called myBtn_mc).As soon as I click on myBtn_mc of course I lose focus ... i have tried to use a variable (select) to keep scope&focus
View 6 RepliesI have a TabNavigator, and each tab is a Module. One of the modules is labelled Units and the full code of the module is posted in this post. There are several problems:
1) Forms are not populated with data from the datagrid selection.
2) Selecting a row and clicking delete gives the very-common error: TypeError: Error #1009: Cannot access a property or method of a null object reference.
A trace on the valueObject unit within the selectionChangeHandler function gives NULL. Why? Note: In other modules (other tabs of the TabNavigator), I have DropDownLists populated with units. This means that the valueObject Unit is defined in the other modules. However, valueObjects should be private to modules, and not shared.
[Code]....
I want to disable (and look disabled) some rows in a spark datagrid. I found this answer to stop selection which is greatIn flex, is there a way to capture and optionally cancel a row selection event in a DataGrid?
But I want in addition to show that the particular row is not selectable. Ideally I want to have some sort of overlay but I am not sure if that is possible. My alternative solution is to change the text color to grey for the unselectable row. Looking at the datagrid renders they all seem to be column based. I looked at skinning potentially (overriding the alternating color property) but this just sets the background property and not the text color.
I have put one combobox in flex application. I need combobox with multiple item selection how to select multiple items in combobx in adobe flex 3
View 1 RepliesIn my TileList, I want to select the TileList items on rollover, as opposed to the click event. I already have the TileList setup to allowMultipleSelection = "true".
View 3 RepliesI have I datagrid, on which I want to select multiple rows on a other user interaction than the one intended by the Programm. I'm wondering, whether I can programmatically select some rows depending only on code?
View 1 Repliesflex example to select multiple row selection in datagrid
View 1 RepliesI have a combobox with multi selection. when i click on add button, which ever data is selected in the Combobox, those data has to be displayed in the another comboBox.
[Code]...
I am trying to programmatically pass focus to a newly created TextField, but for some reason setSelection and setFocus do not work. For example, see my test code below:
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" creationComplete="_init()">
<mx:Button click="{tf.setSelection(1,2)}" />[code]....
The only setSelection that does anything is the 0,3 one on MOUSE_DOWN. I assume this all has something to do with the text field receiving focus with the mouse click,
Let's say I have a DropDownList with the 50 states in it. I would like to type in the letters "C + O + L" to jump to Colorado, like Firefox and most application do. Right now, it's jumping from California to Ohio to end with Louisiana.
View 3 RepliesMy datagrid is filled with data from an Oracle database. The datagrid refreshes after 1 min. After that, I lose the selected item. I want to avoid that. Consider that it's quite possible that there is new data after refresh, so the selected index may no longer appear in the datagrid after a refresh.
View 1 RepliesI have a dataGrid in Flex to which data is added dynamically using dataGrid1.dataProvider=myArrayCollection;The DataGrid is non-editable and defined in mxml as [code]The data in myArrayCollection definitely does not contain duplicates.I am not able to select any row except the last.This occurs when I overlay the AIR 3 SDK on my copy of Flex
View 1 Repliescan you please tell me how to have multiple selection in flex combo box component
View 1 Replies