Flash :: Can't Retrieve An Equivalent To Selected Button On Spark
Feb 27, 2012I can't retrieve an equivalent to selected button on spark .
A bit of code:
_selectedBtn.selected=false;
I can't retrieve an equivalent to selected button on spark .
A bit of code:
_selectedBtn.selected=false;
I want to find a way to get the character index in a Spark based RichEditableText based on mouse x, y position.The mx.controls.TextArea has a protected getCharIndexAtPoint() method but I can't find an equivalent of this in the Spark RichEditableText which is disappointing.
View 3 RepliesIs there any function (or any easy way to implement it) equivalent to calculateDropIndex for spark's DataGrid?
(using Flex Hero 4.5.0.19786)
Flex 3 List control had a itemRollOver event. Flex 4 List doesn't have it. Is there an equivalent or a workaround for this issue?
View 2 RepliesI have a spark list, which is based on a dataProvider. As the application runs, the data in the dataprovider can change, and also the dataProvider can be swapped for a different one
What I need to do is make sure that something is always selected in the list (unless it is empty)
I have a list with custom item renderers. What I would like is when one of the list items is selected to position another control OUTSIDE the list to the same vertical position as the selected item.
View 2 RepliesI'm setting selected element in s:List component with Actionscript, it works, but List doesn't scroll to selected item -- need to scroll with scrollbar or mouse. Is it possible to auto-scroll to selected item
View 8 RepliesI want to change the background color of selected tab in spark TabBar control(Flex4). Till Flex3 we could have use the following code, bt it is not working in FLEX 4.
<fx:Script>
<![CDATA[
protected function tabbedPanel_clickHandler(event:MouseEvent):void
[code]........
My stakeholder has a request to remove the currently selected item from the DropDownList control(s) in the application. For example a drop down with [item1, item2, item3, item4] if item2 is selected then the only items in the drop down will be [item1, item3, item4]
Using Flash Builder 4 with Flex 4.0 sdk
I have a menu with many sub menus. I need to change the color of the selected button and then move on to the sub menu. My menu is horizontal and now it's not obvious the path that you follow.
View 2 RepliesI change an item in Spark List. The item then moves to a different index in the list since I keep the List's dataProvider sorted. However, the selectedIndex stays where the item used to be. I want the List's selectedIndex to still be on the item that changed.
View 1 RepliesI have a Flex Spark Button that I've changed the background to a dark color using
s|Button {
color: #66ffff;
chromeColor: #333333;
[code]....
How can I display an animated SWF in my custom Flex button (I am using the Spark library).
View 1 RepliesI created some movieclip buttons, set a statement to disable it, but I can't enable them again when another button is selected how can i resolve this?
[Code]....
I need to retieve the instance name of a button but cannot do it the same with a dynamic button the same as I can with a component button.For a built in component button the below code would output _level0.buttonName, however for a dynamic button i have created it only outputs _level0.
on (release) {
trace(this);
}
how to get the instance name of dynamic buttons?
Since iphone doesn't support flash at all.
Is it Darwin streaming server ?
I have buttons with black text. The buttons (not the text) change colour to red when you rollover them. I can't seem to work out how to get the colour to stay red when it's clicked to show that it's selected. Do I make a duplicate symbol which is already red to replace it when clicked? And I'm also unsure of the actions I'm supposed to use if any??Another thing, when I click on a different button, I don't want the previous button to still be selected.
View 1 RepliesI am trying to build my first website and I follow the instructions of a videotutorial of flash 8. But in the second step (Making it work the buttons) when I had tried to add action to my selected button, appear a message like this....Cannot add actions to this selection (translated from spanish) Why?...Is a conflict between versions 8 and CS3?
View 5 RepliesI placed 2 radio buttons - each of them has groupName = rg1. And when I write[code]...
View 1 RepliesIs it possible to change button state from AS3?
View 3 RepliesI'm doing a simple 2 button menu. Each button is a movie clip with 3 labels for the states "none" "selected" and "hover". smartBtn needs to be set to "selected" on enter frame. When cinemaBtn gets clicked, smartBtn should go to its "none" state. But I'm not sure why smartBtn keeps on being selected.
import flash.display.MovieClip;
import flash.events.Event;
import flash.events.MouseEvent;[code].............
I have a menu consist of many button and it have a rollover state of being colored and highlighted i want any button i selct to keep highlighted as it slected and when another button be selected the new one become highlighted here is thew cide i have and that' doesn't work.[code]...
View 1 RepliesI will try to explain my problem (I'm swedish...); If you look at the fla posted here and the trace information in the output panel when published, you see what the button is called. What I need is a way to use this info to create a code that makes the button blacked when clicked on and back to grey when some other btn is clicked.
View 4 Replieshow to get my magic buttons to stay 'selected' or highlighted until the next button is clicked. The highlighted state is 'released' (weird - but that's the case)
I've done an all-nighter & and am having a mind-blank.
Code:
myButton.onRelease = onClick;
myButton.onRollOver = overOut;
myButton.onRollOut = overOut;
[Code].....
I wondered what would be the equivalent of metadata tag used in flex or flash builder, but for flash or fla .. For example to use with [Injectors]Greetings!
View 1 RepliesHaving worked in Director using Lingo, I am wondering if Flash has a RandomSeed equivalent in ActionScript? For those of you not familiar with RandomSeed, it is the number that allows the computer to come up with 'random' numbers. By setting this number you can then get predictable results everytime. It can be very useful.
View 3 RepliesI am working on a drag and drop feature for the sparkScroller. This is sort of how my layout looks:
<mx:Canvas>
<s:Scroller id="items" .. />
<mx:Box id="dummyRow" visible="false" />
<s:View id="touchView" visible="false" />
</mx:Canvas>
So when you hold your finger over a row in the items Scroller for more than a 30 seconds, the touchView becomes visible so does the dummyRow. The dummyRow gets populated to look like the row which you held your finger over.
So the touchView has the event handlers for moving your fingers and places the dummyRow where your finger is. The problem I am having is even though the touchView is reacting to my move events, the scroller still keeps reacting to my move events as well even though it's a sub layer. Because I started on the scroller it still keeps track!
How can I remove focus / tracking from the scroller?
I have a renderer that looks like this:
[Code]...
Loading thumbnails using this method works perfectly. The issue happens when you scroll the List.
I know how to select radio button, but hte question is - how to check if this radio has been selected?[code]...
View 5 RepliesI have a very simple DataGrid with 2 columns, some thing like this[code]...
What Im trying to do is to activate the edition of the selected row when the user clicks a button. So far I've been unable to find any example of how to do this. I already tried 6 or 7 different approaches but non works.
How do you get the selected row (NOT selectedItem) of a DataGrid and how can you:
Change the ItemRenderEditor or ItemRenderer on the fly of just that row.
Or enable the edition of that specific row without clicking it.