actionscript-3

Loading multiple external SWFs within a main swf.

Hello, I’m building a website that loads multiple swfs within one main swf. I would also like some swfs to unload when i click on the button situated on it. could someone please help me on this. Currently I’m only able to load one swf with this code, can I somehow load more that just one swf by default? you can see the code below: va...

How to set alpha on a DAE?

I'm a bit new to Papervision3D, and I'm trying to set the alpha level on a DAE I'm loading from a Collada file. How can this be done? I'm aware that I can set useOwnContainer to true and set the alpha then, but I'm trying to avoid this so that I don't need to deal with the layering issues this creates. ...

AS3 - playing video within a loaded swf

My file structure is this: main.swf /swf/child.swf /video/testvideo.flv When I compile the child.swf by itself, it loads and plays video just fine (using netStream.play(../video/testvideo.flv). However, when I compile the main.swf, which at some point loads child.swf, I get this error when trying to play the video: Error #2044: Unhand...

Flex SWFLoader Event.COMPLETE not triggering

While trying to load a Bitmap onto a SWFLoader the Event.COMPLETE event is not being triggered mySWFLoader.source = new Bitmap(Bitmap(someEvent.content).bitmapData); but if I use a URL as source the complete event is triggered: mySWFLoader.source = "http://example.com/123.jpg"; Is there some kind of restriction while using Bitmap a...

Is there a multiline text workaround for Flex

Is there a workaround for displaying multiline text in Flex 3? The two controls I have tried so far are mx:Text, and mx:TextArea. Each control has its own bug associated with it. For reference: mx:Text bug - http://bugs.adobe.com/jira/browse/SDK-9819 mx:TextArea bug - http://bugs.adobe.com/jira/browse/SDK-12616. Basically, neither contro...

Is is possible to store an array in a DataGridColumn in Flex?

Hello Everyone, I have a datagrid column with a button that opens a modal dialog box allowing the user to upload multiple files. In the code below, the browseAndUpload() method does that. When the user finished uploading files and closes the upload box the closeUpload() method is called. I know for a fact that the uploaded files are ...

How should I fill a list with a combination of database entries and meta-values?

I am acquiring the contents of a table to fill a dropdown box in a Flex 3 application: <mx:ComboBox dataSource="{myList}" /> The list is populated by the contents of a database table of persons: Public, John Q Doe, Jane ... The combo box, however, also needs to have some other meta-entries in it that do not come from the database: ...

Recommendations for fully or partially porting my Flex client to C#/SQL Server?

I am a ways into developing an client that communicates with a pre-existing server using the Actionscript Message Format (AMF). I love designing my GUI in Flex, as I've found refactoring my GUI to be very straightforward since everything is nested well in the mxml file. However, there is alot to be desired in the API's that are availab...

open local files in AS3

Hi, How do i open file and get its content as a ByteArray in AS3. I saw examples, using FileStream & File classes from flex.filesystem, but the doc says it's for AIR only. Thanks, Nava ...

DisplayObject serializing

hi Is it possible to serialize a display object with ByteArray to store and recover it back ? Flash , ActionScript3 Thanks for help. ...

Style Textinput Itemrenderer in Flex Datagrid

Is there a way to make the default item renderer in a Datagrid look like a text input field? I just want to tell the user, that he can change the value of this cell. Thx, Martin ...

Flash CS3 + AS 3.0 Mute and unmute stage volume

Hi Can someone please help quickly mute or unmute the stage volume in Flash CS3 using AS 3.0. Thanks ...

Flash Actionscript 3.0 Videoplayer help

Hello, it's been a while since I last used Flash so thought it best to learn Actionscript 3. However, I've been working through a [Flash videoplayer tutorial][1] and I'm really struggling to cusomise the layout for my own needs. I moved the progress bar down by 13.9px and to the right by 55.8px. I also shortened the progress bar to 176...

Accessing DataGridColumn item renderer variable

Hello Everyone, Within a DataGrid, I have a DataGridColumn that uses a custom component as the item renderer. Within the component, I have an ArrayCollection that stores a set of value objects. My problem is that I cannot access the ArrayCollection values from outside of the item renderer component. Does anyone know how it would be p...

ScrollPane in Papervision3D

I am having major issues with a ScrollPane component in Papervision3D. This issue has been brought up at a couple of different forums, but not solved: http://osflash.org/pipermail/papervision3d%5Fosflash.org/2009-March/029503.html http://www.nabble.com/ScrollPane-doesn%27t-size-or-display-properly-td22302394.html I have tried dynamic...

How to use Flash BitmapData to scale up a image without losing the quality?

I'm trying scale up an image in Flash without making it pixelated, I know that I will loose some quality by scaling up, but i'm not trying to scale 6 times bigger or something :) I tried to use matrix and scale, but the quality is just bad... is there any other ways to do this? so here's my code, var _bmpData:BitmapData = new Bitm...

What exactly is the 'this' reference in as3 classes?

I have searched up and down the internet for even the slightest mention of the 'this' reference, and have found NOTHING!!! Nobody seems to talk about 'this' at all. I'm an experienced c++ programmer, so I am more than familiar with the idea of a 'this' pointer/reference. My question is just what exactly is the 'this' reference in an a...

Resize XML gallery with AS3

Hi, I'm developing a project in AS3 for commercial purposes and study too. This time I'm developing an image gallery with XML and AS3 and I have a doubt with resizing the stage and change the x position of my pictures. With this code below I can resize the pictures, but I can't change their x values. Could anyone helpe-me with a ...

How to Make a button send an email using AS3 automatically

I am working in actionscript 3.0 and am making a website! In my website, I want to make a button that sends an email using a click of button and I don't want it to open their mail client, instead just send it. I am currently using the "mailto" function but would like to know how to make it send automatically, or what else I can use to ...

How to click through a display object in Flash with AS3?

Hi, I am creating a photo editor app where, at some point, the photo you edit is supposed to be dropped between two layers of DisplayObjects (a background image and an image mask.) There is a problem, though. When the image you are editing is dropped between the background and the image mask layers, it becomes unclickable, and therefo...