actionscript-3

AS3 <Key,Value> Collection

In actionscript object class can act as a collection that stores key,value combinations: var o:Object = new Object(); o["a"] = 1; But when I'm trying to extend it and add some custom functionality: var mo:MyObject = new MyObject(); mo["a"] = 1; I get this: ReferenceError: Error #1056: Cannot create property a on MyObject. ...

text replace using charcode in AS3

How do you replace text based on a charcode? ...

Actionscript 3 NetStream immediately paused does not get metadata

I am writing a basic video player in Flash CS5 and Actionscript 3. For this basic player, I attach my NetStream to my NetConnection, then call the stream's .play() method to begin loading. Although I want the metadata and for the stream to begin buffering, I do not wish to start playing right away, so I immediately call the stream's .p...

Can flash read client side hardware information?

Can flash read client side hardware information such as RAM, CPU, Computer unique id hard drive size? I know it can read the camera and maybe the monitor size but the above is still remain unknown to me. ...

Dynamically changing the referenced XML file in Flash AS3?

Basically I have media being parsed and played by reference of an XML document using AS3. These media files are gonna be seperated into seperate XML files then what I was planning was to just dynamically change which XML file is being referenced. Problem is, the code only fires once on frame 2 and I can't seem to figure out how to swit...

SWFAddress, Back button

Can SWFAddress "sense" when a user has pressed the browser back button? I know it can fire off EXTERNAL_EVENTS, but...does it do this for specific buttons? ...

Problem retrieving pixel color on color picker

I'm currently making a color picker (pretty standard one, pretty much the same as photoshop with less options at the moment: still in early stage). Here's the picture of the actual thing : http://i.imgur.com/oEvJW.jpg The problem is : to retrieve the color of the pixel that is under the color selector (the small one, the other is the mo...

change var initialized on root time line from class in as3

hi im new on as3 and its make me so frustated since so many changes from as2. i have problem when i want to change variable value from class file, here is the detail. on the root timeline frame 2, i initialized var like below stop(); var gameStat; gameStat = "stop"; then i attached penguin movie clip to the stage, and i make class fi...

Is there a way to populate the Tree component with the display list

Is there a way display the display list in the Tree component. I could parse the display list into xml but then I would not be able to create a reference to the display object. ...

Drawing random circles using a timer within stage boundaries in actionscript

I need to use a Timer for time controlled animation, time the drawing to occur every 500 milliseconds & Draw 20 circles in total. I also need to make sure the circles are completely drawn inside the limits of the stage.. I've been trying to figure this out forever and it's driving me crazy. This is the code I've been playing around with ...

Convert Flex Action Script project into a Flex project.

I've got a flex action script project that consists of 3 AS files. I'd like to use the Flex frame work so I can add some components and other functionality. How can I go about converting this Action Script project into a Flex project with a .mxml file? I'm using Flash Builder 4. thanks Here's a link containing the project files I'm ...

Creating five clocks to appear on stage in actionscript with different current times from around the world

Using any five different cities around the world (one being chicago) I am trying to create multiple closks to appear on stage, each with the time associated with each city displayed on it. Each one has to allow enough time differences to have different time periods of the day like Morning, afternoon, evening and night hours and i need t...

How to clear a text-field on focus with AS3?

Hello. The theme question sais it all. I have an input text-field on the stage that has some text describing text in it before the user types anything. Now, how do I clear this text when the user focuses on (clicks) the field? ...

rendering html/css in Flash

Are there any libraries for rendering HTML/CSS in Flash? Basically, I would like to be able to load in an external html file (nothing fancy, just some text, images and hyperlinks) and then render them to a Sprite. ...

Audio/video recording using flash

I want my users to record audio/video and post that to other users. Is it possible to record video through Flash's and receive encoded video on server side without any further processing (i.e. just saving the stream to a file)? I did some Google search and found that it's possible with new microphone API (http://www.adobe.com/devnet/a...

Video Strucking issue

I created the custom flash video player using AS3.when i check the player with youtube downloaded flv files .the player is working fine and streaming well.When I use my encoded video( mov to flv using adobe media encoder cs5) the player is struck while playing and when full streaming completed the player is playing well. i tried with bu...

Flex 4 modules - cannot include classes unless in same folder as the module? What am I missing?

Hi, I am playing with a Flex 4 / Air 2 project, that loads Modules at runtime. I can include intrinsic MX classes in my module and all works fine (eg: import mx.controls.Alert). I can also include my own classes - however, only if the class is in the same folder as the module. eg: <?xml version="1.0"?> <mx:Module> <mx:Script> ...

as3 problem with parsing data from xml

Hi Everyone, I'm trying to make a banner which the user can edit his Preferences in a xml file. My xml file looks like below. <billBoard> <items> <item> <imageUrl>images/plaatje_1.jpg</imageUrl> <imageShowTime>5</imageShowTime> <imageClickLink>http://www.google.nl&lt;/imageClickLink&gt; ...

How to take input from an xml file during a Flash Program

Hi I was wondering I could make my flash program take input from an xml file to create various shapes dynamically? ...

AS3 / AIR - Creating a plain text file?

is it possible to create a plain text file with AS3 or AIR? example: i would like to create a plain text file named "MyTextFile.txt", have it contain text that reads "This is my text file." and save it to my desktop. another option would be to have the file already exist in a directory, so i would only have to rewrite its contents - a...