actionscript-3

How to Get property values from Shared Object in client's load event - Very urgent

I am using shared object to share data between two users. First user connect to shared object and set some value in shared object. Please consider that second user has not connected with the shared object yet. Now when second user connects to the server and try to get that property set by first user, he could get shared object but could...

Capture all playing audio from Flash AS3 for later playback

Is there any way to capture all playing sounds into one ByteArray on playback. I´m about to build a soundmixer where the user can start and stop sounds when they want to and play it later. Does anyone have a clue how to do this? ...

Best way to typecast deserialised JSON

Hi, I think I've established that in as3corelib JSON.decode I have no choice but to deserialise to a plain old flex object. var data:Object = JSON.decode(json); If I then want to get the data contained in the object into another type I can't use type casting. I have to instantiate a new instance and add the properties manually. var ...

360 degree rotation in flash actionscript 3

how to rotate an object 360 degree in as3 is any solution ...

Get size of ActionScript 3 Dictionary

var d:Dictionary = new Dictionary(); d["a"] = "b"; d["b"] = "z"; How to get the length/size of the dictionary (which is 2) ? ...

Efficient looping through AS3 dictionary

for (var k in dictionary) { var key:KeyType = KeyType(k); var value:ValType = ValType(dictionary[k]); // <-- lookup // do stuff } This is what I use to loop through the entries in a dictionary. As you can see in every iteration I perform a lookup in the dictionary. Is there a more efficient way of iterating the dictionary (while...

Custom ActionScript classes: Syntax sugar

Because of some limitations (example) in the built-in ActionScript 3 Dictionary class I'm looking to build a wrapper which adds such things. Is it possible to keep the syntax below for my custom class, and if so how? var dic:MyDic = new MyDic(); dic[stuffy] = someObject; ...

Flex SDK 3.5 builds bigger swfs

I have an application which is almost entirely in actionscript. When I build it using Flex SDK 3.5 its size is roughly 378 KB, While Flex SDK 3.0 outputs a swf with roughly 355 KB. What could the reason be? ...

Facebook data to DisplayObject in AS3

Is it possible to convert facebook data (ex. user_pic) into a DisplayObject so I can be easier to manipulate? What I m trying to do is when users do FacebookConnect in my site to let them have the possibility to scale their image (like transform tool usage) before submit it in a gallery. ...

AS3 Class Extending Sprite

I am new to ActionScript so excuse me if this is a stupid question. So, I created a class, extended the sprite class, and now in the constructor I am trying to set the Sprite's width and height properties which are inherited from the DisplayObject. However, after I set this.width and this.height, and print the values, I get 0 for both...

Trying to create a flash app that dispalys photos from facebook.

Hi there, i'm intending to create a flash app that pulls images from facebook and displays them in a slideshow format. Has some here tried this? or does anyone have suggestions/advice/links on where to find information on this. i have had a look at; http://components.zerofractal.com/FacebookBridge/ has anyone succesfully used this? i ...

Flash scrollbar component - removing down/up arrow

Hey there, i just want to remove the down and up arrow from a scrollbar component in flash cs3. I've tried to remove the movieclips but than the flash would throw errors(which is obvious), than i tried to delete the graphics inside the arrows but with no luck. Thanks in advanced! Edit: I forgot to mention that i want the actual scrollb...

actionscript 3.0 OPP type and class

What's the different between var myObject : Sprite = new Sprite(); and var myObject : Sprite = new MovieClip(); ...

Flash: Closest point to MovieClip

I need to constrain a point inside a DisplayObject given to me by the artist. I got it working but only for the occations where the cursor is still inside bounds. The limited object is called limited. function onSqMouseMove(event:MouseEvent) { if(bounds.hitTestPoint(event.stageX, event.stageY, true)) { limited.x = event.st...

actionscript 3 MVC work flow

What's the best practice for passing data between the main class and the view class and vice versa? main.as var model : Model = new Model(); var view : View = new View(); var controller : controller = new Controller(); public function callFromView() : void {} view.as // how to reference the main.as private function callToMain...

"lost in strings" AS3

Can someone follow what doing, and show me how to do it correctly? I'm new with strings and arrays. Anything you can suggest would be appreciated. GOAL I want script to calling display objects to the stage, and the timer to move images up and down to appear like a scrolling numbers. I start getting sloppy, and mess up passing to Tweene...

Embedded Font Issue on different Operating Systems

My Flex web page is using an embedded .otf font in the main css file: @font-face { src:url("../assets/fonts/TradeGothic.otf"); fontFamily: myTradeGothic; } I develop using Snow Leopard and the font appears fine in Safari, Firefox, and Chrome. When I view the page on a Windows machine, the font does not appear to be working in either...

Can AS3 set the Accept Header for Flash Player (not AIR)

"Accept" is not listed in the forbidden headers in the documentation here: http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/net/URLRequestHeader.html but cant seem to set it in a GET request. Help! ...

Error #1006 value is not a function in C++ code compiled by Alchemy

I'm trying to port a big library to Alchemy. I've run into something that looks like an Alchemy bug. I have a class with a static member. There's a static function that uses it. Something like this: In foo.h: class Foo { static Bar m_pBar; static void doSomething (int a); } In foo.cpp: Bar Foo::m_pBar; void Foo::doSomething...

How to load PHP dynamically generated XML in FLASH

Question Updated for Bounty In Flash I need to load a dynamically generated XML file, which is created using PHP. I'm using the Bulk-loader library for all my loading. Currently my Flash can only load a manually created XML file, what I need Flash to do is to load a PHP generated XML File like this: http://dev.touchstorm.com/ten_hpn_...