actionscript-3

C# Open source library for reading and writing swf file,which supports version 8,9 and 10

Hi Chaps, Currently I am using SWFDOTNET libray for reading and writing swf file,which supports swf file from version 1 to 7. Is there any other open C# source lib for reading and writing swf flash which supports swf file version 8,9 and 10? Please reply..I am really in need of it. Thanks in advance, Chandrakala ...

AS3: Setting alpha on parent sprite without affecting sprites children

Stupid question I guess, but I haven't managed to find the answer yet :) If I change some value for a parent sprite, the same value will affect all of its children. So if I set alpha or width on the parent, the child will automaticly get the same value. Is there some way I can prevent that from happening? ...

Why is the uid-getter/setter called (ArrayCollection)?

Hi all, if wrote the following code and do not understand why the trace returns "false": function (with trace): import mx.controls.Alert; import mx.collections.ArrayCollection; public function runTest():void { var unique1:MyUniqueObject = new MyUniqueObject(); unique1.id = 1; ...

Flash AS3 Coloring Book - Movieclip only clickable in certain spots (Event Listeners)

I am working on a coloring book and have a movieclip (outlines) containing many movieclips that can be changed to whatever color the user has selected. However it seems like some of the movieclips can be clicked anywhere and work great, and others you need to click a certain spot for it to color in. I have an example here: http://jeffki...

FLVPlayback component freezes when seeking beyond loaded content

I'm creating a flex-based video player, using the FLVPlayback component (imported from Flash Pro CS3). I've reskinned all of the player controls and linked them in, and it's all working really well... However, if you try to seek beyond the point where the video has loaded (it's using progressive download), the video completely freezes. ...

Flash Actionscript 3 preloader in reverse?

Hi, I'm using the following actionscript for my flash preloader, what this does is have the preloader bar fill from the top to the bottom. this.addEventListener(Event.ENTER_FRAME, loading); function loading(e:Event):void{ var total:Number = this.stage.loaderInfo.bytesTotal; var loaded:Number = this.stage.loaderInfo.bytesLoaded;...

Screen reader reads flash in Google's Chrome but not in Internet Explorer 8

The screen reader (JAWS) is able to read the textfield in flash on Google's Chrome but not in Internet Explorer 8. I'm using the latest version of swfobject. ...

Flash FLVPlayback states

I'm writing my own class to manage a skin for an FLVPlayback component. It works 90% of the time, but sometimes the state get really messed up. Specifically, the video is playing, meaning I can see it play and the VideoEvent.PLAYHEAD_UPDATE event is firing, but when I poll the FLVPlayback component about its playing property, it returns ...

Can hitTestPoint be used with local coordinates at all?

In AS3 I have a game where a vehicle rotates to the direction of the cursor, but when it "moves", its sprite stays stationary in the middle of the stage while the map layer below it actually moves, causing the illusion of movement of the vehicle on the map. There are obstacles on the map that the vehicle cannot pass. The obstacles are in...

OpenPeak Flash app XMLSocket Security Problem

We're trying to create an app for OpenPeak. The Flash app will act as a client to a Java server on another computer on another domain. The Flash app client connects via XMLSocket. The Java Server uses ServerSocket to receive a request and send back a message. In order to trust the server, the Flash client needs a socket master policy ...

External XML and AS3

I want to pass external XML a variable. How do I do this? WHAT I'M AFTER - update my variable with COUNT XML WHAT I'M NOT GETTING - The integer to String values - How to pass XML to a variable link http://videodnd.weebly.com/ time.xml <?xml version="1.0" encoding="utf-8"?> <SESSION> <COUNT TITLE="starting position">-77777</COUN...

Best way to be able to pick multiple colors/designs of symbols dynamically from flash

Sorry the title's so convoluted... I must've tried for ten minutes to get a good, descriptive title! Basically, here's the scenario. Let's say a user can pick fifty different hat colors and styles to put on an avatar. The avatar can move his head around, so we'd need the same types of movements in the symbol for when that happens. Ad...

Actionscript flex: Converting # colors to uint

I'm working with several components that take color as a uint, but the colors I have are in the format of "#161616". I'm not sure what the relation between the 2 types of colors are or how to go from one to another. It doesn't have to be an actionscript solution. I have only a small number of these colors, so can be done manually too. ...

Calculation Expression Parser with Nesting and Variables in ActionScript

Hi There, I'm trying to enable dynamic fields in the configuration file for my mapping app, but I can't figure out how to parse the "equation" passed in by the user, at least not without writing a whole parser from scratch! I'm sure there is some easier way to do this, and so I'm asking for ideas! Basic idea: public var testString:Stri...

Advanced text search in actionscript-return ALL nouns,adjectives and verbs..

Hi I know that as3 has some powerful new text search capabilities, especially when combined with regex. I don't even know if this is possible, but I would like to somehow, search any block of text, and return all nouns, adjectives and verbs. What would be the best(most efficent) way to do this? Is regex an option? or would I have to lo...

Adobe AIR: touch screen doesn't trigger mouse down event correctly

i have designed a gaming kiosk app in as3 i am using it on a Sony vaio l pc (like hp's touchsmarts) in windows 7 the app doesn't need any multi-touch gestures (only single touch clicks and drags) so i am using mouse events everything is fine (including mouse click and move events) except that a single touch to the screen (with no move) ...

Delay rendering or force re-rendering in Flex

Hi there, In my Flex application, using a custom control, I am making a JSON request to grab some data from the server. My rendering depends on this data such as knowing how many boxes to draw. How can I either force the rendering to wait until I've got the data before drawing to screen or have the boxes draw once we receive the data? ...

Having vCam on custom classes instead of the root class.

Maybe some of you guys know bout vCam from http://bryanheisey.com/blog/?page_id=22 I'm trying to have the script running on a custom classes instead of a MovieClip in the library. But after some trying I fail so I stick back to having the MC in the library and load the MC from the project root action-script files. Now it works fine if ...

How to convert AS3 ByteArray into wchar_t const* filename? (Adobe Alchemy)

How to convert AS3 ByteArray into wchar_t const* filename? So in my C code I have a function waiting for a file with void fun (wchar_t const* filename) how to send to that function my ByteArray? (Or, how should I re-write my function?) ...

Parse boolean values in strings for use with Function.apply

I'm using String.split to parse a command line string into an array of strings. The result is then used to call a function using the Function.apply API. If apply(null, ["17"]) is called with this function: static function test(foo:int):void { trace(foo, typeof(foo)); } it works as expected (output: 17 number). However, calling...