actionscript-3

Definition mx.binding:BindingManager could not be found.

Why I'm getting this error in a actionscript project using flash Builder? I'm not even embedding anything, I'm just extending an OSMF class 'NetStreamLoadTrait' which has some metadata, that's it. [ExcludeClass] I'm using another OSMF project insted the one coming with the Flex SDK 4.0, but I have deleted the osmf package inside the SD...

AS3 GESTURE_SWIPE with N-Trig powered touch screens

Hey Guys I'm currently developing a prototype using AS3 and trying out some touchscreen gestures. I'm compiling using AIR 2.0 and currently have GESTURE_ZOOM and GESTURE_ROTATE working but for some reason GESTURE_SWIPE is giving me a few headaches. I know It's possible as I've seen it working here, using the same laptop (DELL LATITUDE ...

how to display one mxml in another

I have one mxml file that process xml, and display the graphics on panel. I need to display first mxml in another mxml file, in some area(HBox, VBox, Panel, dont care). How i can do this? ...

How to open a folder from an Air 2.0 Application?

How to open a folder in Windows Explorer or Finder (Mac) from an Air 2.0 Application? I'm using Flex 4 + ActionScript 3. Seams like I could do it using NativeProcess but I don't want to create a native installer. Is that possible? Thanks! ...

How can I make my AS3/Air code better?

Hello everyone this is my little Frankenstein code, don't make fun of it, it works! So you would pass in the table name and a data as an Associative array which are objects. I'm pretty sure this is not good code as I was and still am learning ActionScript. So what can I change or how would you guys make it better? public function save(t...

ActionScript Access Param Tag Within Another File

Hey Guys, Having some issues accessing my param tags from within actionscript. Essentially I have the following tag: <param name="config" value="config" /> But I am unable to access it. There are two issues that I have, and I've been searching the internet high and low for the answers. 1) How do I even access the parameter? I have s...

Multiple AS classes in one swf file

Hi there, I'm trying to compile AS files using the mxmlc but the particular class depends on other classes. My command is something like this: mxmlc -includes classA classB -source-path=. com.example.com.classC. This gave me classC.swf but when I loaded it, it was still looking for classA.swf and classB.swf. Is there anyway I can hav...

insert string info into addressing a movieclip in as3?

I am trying to dynamically address different instances of the same movieclip by passing a string into the movieclip address, but apparently I don't know what I'm doing. I'm trying something like below: var vsTargetName:String; vsTargetName = "instance50"; vsTargetName + vsThumb.thumbHighlight.visible = true; Is something like this pos...

ActionScript 3: maintaining textarea UIscrollbar position on loss of focus in flash embed.

I'm using Flash CS4. Everything functions as it should when CS4 previews the swf after compiling it. However, after embedding the flash item in a webpage, if the textArea loses focus within the flash piece, the textarea's built-in UIscrollbar resets to the very top. Here's the kicker: if I add a FOCUS_OUT event listener to the textAre...

Flex - prevent tooltips from hiding. Persistent tooltips

Hi Folks, I'm trying to prevent a custom tooltip from disappearing. I've tried three runs at this, borrowing from the usual suspects: Peter Dehann, MonkeyPatch and others. As you can see from the code below I'd like to stay within the tool tip paradigm and not go to popups. Can anyone suggest a way to persist a tooltip? The intent...

Negating Alternation In Regular Expressions

I can use "Alternation" in a regular expression to match any occurance of "cat" or "dog" thusly: (cat|dog) Is it possible to NEGATE this alternation, and match anything that is NOT "cat" or "dog"? If so, how? For Example: Let's say I'm trying to match END OF SENTENCE in English, in an approximate way. To Wit: (\.)(\s+[A-Z][^.]|\s...

As3 and Image ByteArray Data

How can I get the bytearray data from an image that is under certain shape, for example a circule or square? Let's say I want to modify ONLY the pixel inside this circule, how can I get this Bytearray data? Any ideas? ...

Load profile image from Facebook with Actionscript 3

I'm trying to load profile images (friend images) from Facebook with AS3 but I seem to be running into a security issue. I'm currently using the "official" Adobe Facebook API for Actionscript 3 which works fine. However, I seem to be having trouble loading profile images when running my application in a browser. The images load fine whe...

Trouble with Flex 3 PopupManager

I'm trying to use the PopupManager class in a Flex3 AIR app to open different kinds of panels but I'm running into some problems with it. I'm using a method like the following with which all panels are opened .. private function createPopUp(clazz:Class, modal:Boolean = false):IFlexDisplayObject { var p:IFlexDisplayObject = IFlexDisplay...

Adding fixed Gridlines Chart in Flex

Is anyone know how to adding fixed gridlines chart in flex, for example: I have a vertical axis which has a minimum value 0 and the maximum value 100 but I only want to display gridlines on values 30 and 70. So please me.... thx ...

Flex desktop application: How to position elements relative to the window size

I am creating a desktop application with Flex for the first time. I am having problems with the position and size of the elements in the screen. For instance Elements with 100% width do not resize when the window is resized or maximized Elements positioned relative to the bottom of the window do not move when resizing or maximizing the...

Flex 4: Item renderer and setting values for named objects (Odd Bug)

Hi, I have a custom component as an item renderer. In this renderer there is an item called dlFirstChoice. Now when I add more items to this list and force the list to rebuild itself something odd happens. Part of the creation of the renderer I set a default selection for the DropDownlist as follows: dlFirstChoice.selectedIndex=0 Th...

Adobe Flex: toolTip of a spark component with enabled=false

I have a Spark Component (a Group) which doesn't behave as wanted. The tooltip is only shown when the component is enabled=true which the following example shows: <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx"...

flex tree itemclick event, doesn't work

Hello Stackoverflowers, i'm creating a reusable flex tree component. And i would like to stick in the itemclick funtion. So that when a user clicks anywhere on one of the tree's Branches. the branch expands. My problem is that i don't know how i can get the listener function to fire. What i would like to do is create the tree completely...

Spark ComboBox click issue

I'm using a spark combobox in my AdvancedDataGrid, as an itemEditor. At some point I noticed that clicking on the scroll bar arrows would close the CB - very annoying. After much research I found this on Stackoverflow which completely solved my problems - awesome! One more and last lingering issue left though: when selecting an item fro...