actionscript-3

Is there new functions on AS3 for develoment in the iphone SDK for flash?

Hi, im developing iphone's app in flash CS5 and i wondering is there are new function in AS3 for specific applications on the iphone apps, and wondering too if the are component like iphone style buttons for flash. Thanks! ...

Using the NetConnection Class

Hi, I'm trying to use the NetConnection class to connect to a live video feed on an external server. I have it set up to start playing my video when the user clicks a Play button, however, this appears in my output every time I click the Play button: ArgumentError: Error #2126: NetConnection object must be connected. at flash.net::Ne...

actionscript 3 - Sprite Always on top

Hello, I have a sprite and when it is added to the screen, I want it to be added on top of everything else on the stage. What is the best way to ensure that a sprite when added, is on top of everything and not hidden behind other sprites? Thanks, ~ kcg ...

How to embed a lot of images using Actionscript 3

Hi, i would like to know what is the more practical way to embed many images using actionscript. Firstly, i don't want to download an image every time from the server, and then, i would like to change the number of images and/or their names. What do you propose for these requirements? ps: I have been alerted for the Embed tag but it see...

flash 10, as3 - wmode="opaque" causes selection on textarea to behave wierdly after mouse is pressed and left stage

hi everyone... I m using textarea in flash 10 cs5 as3. The problem is when i try to select a text and go out of stage and leave the mouse then again move mouse on text then selection of text will move with the mouse. Here is what causes that: * click somewhere on the text and drag the mouse in order to select the text * then go out of...

drawing API on Flex 4 stage?

Hello all, I'm currently trying to debug a problem in Flex 4, in where a component is firing a custom event with its local coordinates translated to global coordinates (i.e. localToGlobal) and another component (in a separate "branch" of the display list hierarchy) recieves such event and uses it as a part of an animation, via globalToL...

flash 10, as3 - save text of textarea and reuse it to replace text in textarea

hi everyone Is it possible to save text of textarea (flash 10, as3, cs5) in some variable or so and with its textformat (more than one color) and then reuse it to replace text in textarea? I tried saving htmlText of textarea but the problem is when i replace it in textarea tags causes problem. There will always be another extra line. ...

High-performance way to compile regular expressions in AS3?

I have a pretty simple question. What is the best (highest-performance/lowest memory-usage, etc.) way to compile a regular expression in AS3? For instance, is this: private var expression:RegExp = new RegExp(".*a$"); private function modify():void { /* uses "expression" to chop up string */ } Faster than this: private var expr...

stylename changes for TitleWindow have no effect?

i have titlewindow named id_GrgPanel and have style name "SelecetedPanel" ... i have some event listener where i change the style of this title window.. like... if(param==true) { this.styleName="SelecetedPanel"; } else { this.styleName="Panel"; } Styles are properly defined. but when else is executed the titlewindow stylename cha...

Parsing a large CSV file, dealing with commas and quotes

I need to load in a large CSV file (>1MB) and parse it. Generally this is quite easy to do by splitting first on linebreaks and then commas. The problem is though that some entries contain Strings that include their own commas. When this spreadsheet is converted to CSV, the lines containing commas are wrapped in quotes. I've written a ...

Embed unknown file formats

Using the Embed tag, we can embed in the swf file not only swf's or jpg's etc, but also unsupported file formats like: Embed[(source="mzip.zip", mimeType="application/octet-stream")] public static MyZip:Class; When i instantiate such a class, what type of object do i get? Is it possible to get a ByteArray from this class? When i do...

AS3: Impossible to copy DisplayObjects with content?

How to copying display objects (sprites, movieclips etc) while keeping thier content (graphics, added display objects etc)in AS3? The most commonly suggested solution by Kirupa (http://www.kirupa.com/forum/showpost.php?p=1939827&postcount=172) doesn't seem to copy any graphics or child display objects: // create a sprite var s:Sprit...

Flex 4: how to have a drop down list of Checkboxes.

Hi, How would I get a drop downlist to populate with check boxes. I am porting a c# project to flex, and I would like to imitate the functionality of their checkbox drop list. Anyone got any idea how I would go about this. Please and thank you. ...

Adding Google Analytics to Adobe Air HTML/Javascript App

Hi There I am attempting to add google analytics tracking to an Adobe Air app created with HTML and javascript. I have tried adding the ga.js file and using it like I would in a webpage: <script type="text/javascript" src="lib/js/ga.js"></script> <script type="text/javascript"> var pageTracker = _gat._getTracker("UA-********-1"); ...

how to attach scanner in flex application?

I want to attach scanner to a flex application and read the image using scanner.Does anyone know how to attach scanner to a flex application?. ...

How to increase the buffer in Virtualized Flex 4 Layouts

Virtualized Layouts are nice, but I find that they often feel a bit "chunky" due to the "tightness" of the virtual range. This could be improved by increasing the range - one or two steps ahead (and behind) would often be enough to improve the "responsiveness" of the list, especially when external resources (like images) need to be loade...

Get all movie clips inside a stage area

Is ther a way to get all movie clips inside a area with AS3 I need this to do multiple selection. ...

Flex or flash interface components for developing IOS apps?

Hello, im developing apps for the IOS plattaform using flash CS5, but the interface components (like listbox, combobox, buttons and so) that comes with flash/flex are not optimiced for IOS developing. Is there outthere a free libary of components for interface on IOS??? Thanks! ...

AS3 - Loader class problem tracing the swf (document class)

Hello, I am using the Loader class to load 3 external swfs: sharedTopics.swf (does not have a document class) fonts.swf (document class is FontManager) main.swf (document class is Main) The same loader is used to load all 3 assets. __assetLoader = new Loader(); var urlReq:URLRequest = new URLRequest(target.path); __assetLoader.co...

AS3: Trigger artificial MouseEvent

Hi! I am converting a simple flash 'drumset' application to support TUIO multitouch using the tuio as3 reference implementation from http://www.tuio.org/?flash As a quick and dirty solution, i am trying to trigger an artificial MouseEvent, but nothing seems to happen :( where is my error? is this even possible? thanks already! here's ...