actionscript-3

What's the project of choice for compiling GPB to AS3?

Inside a Java project I use Google Protocol Buffers (GPB) for serializing my objects. I can use the same .proto files in auxiliary Python code, which is great. Now I'm adding a Flex client to the whole thing and I'd like to use the same .proto files once more. It seems there's a couple of projects out there which compile .proto files to...

Flex app not working without debug version of Flash Player

Hi. Recently, when I tried to show the results of my work (some Flex app) to my boss, i was quite suprised that application which run perfectly well on my pc, on my boss' pc wasn't displayed properly (the only thing visible was a default grey background). After 3h of trying absolutely everything, finally the app showed up when I changed...

How to disable scaling on Images loaded in Flash Movie AS3

I have Flash, in which i load some images dynamically. But when I am viewing this flash on a large screen monitor, the flash is auto scaling (I can't disable stage auto scaling). And similarly size of images is also increasing. Here the problem arises, On large screen monitors the images are getting blur. How can I make it good on al...

how to load several external images; getting cannot convert to Class

I'm trying to load a bunch (about 100) of images into memory, so I can display them at various times. Originally I had simply embedded them, but that of course resulted in the swf file being larger than I wanted. So now I'm trying to change it to load them in the background because they aren't needed immediately. There are probably ple...

Q:Sending-uploading images from Flash to PHPServer-sequence and pros cons of various options

There seems to be so many ways of uploading images to a PHP enabled server, it is difficult to make sense of the various options and under what circumstances it is prefereable to use one over the other. On the front end you have the option to JPGencode or not, use a ByteArray or not, further compress the ByteArray or not. On the server s...

Streaming video in from web camera

Hi all, I wonder how can in load video from a web camera in flash using as3 Thanks in advance. ...

Lots of "incompatible signature" errors on Windows but not on Mac OS X with Flex 4 Gumbo.

I have a pure Action Script 3 project which I am compiling with the Flex 4 SDK. I have a standard Makefile which automatically invokes compc, mxmlc, and asdoc as appropriate. The project is compiling cleanly with no errors or warnings on my Mac OS X 10.4+ computer; however, when sharing it with a coworker developing on Windows XP (with C...

Flex having a VBox with Vertical Buttons.

Hi I am trying to get a left hand like panel bar in my application, one much like the OneNote left hand(notebook) panel. I have been trying to use a VBox with Buttons and setting the rotation on the buttons to 90. The buttons seem to disappear when I do this. An example of what I am trying to achieve is here: http://www.rid00z.net/p...

How can I implement adobe stratus client in C#?

In actionscript3 I am able to create a p2p network and send arbitary text data around. While this works fine in a network of flash clients I would like to connect a non flash client written instead in c# to the same p2p network. Is anybody working on such a thing already? Are there any articles on how to do it? ...

Creating a class dynamically in actionscript

Let me present the problem first. I need to load all images that I have used in my project externally without embedding. The images are present either in skins or as icons for items in trees. I came across the IconUtility class here I was able to modify it and use it for trees but the problem is we cannot use iconutility for the same com...

Compile a SWC using COMPC, excluding 3rd party libs.

Hi, I have a code library that I have built. It relies on 2 other (third party) libraries. At the moment, when I compile the library into a swc, both third party libraries are included. I am looking for a way to compile my code library against the third party libraries, but without including them in the compiled swc. This would obviou...

draw dot on linechart in flex

Hi community, I have a line series in a linechart and a slider that goes from 0 to 200. When I now move the slider, I want to have a dot appearing at the chart so when I move the slider to 150, there should be a dot where the x-coordinate of the chart is 150. Has anybody an idea? I did not found anything. Thanks in advance Sebastian ...

Only act on turnOff() once all objects that have called turnOn() call turnOff()

I want to have 2 static functions called turnOn() and turnOff(). Say objectA calls turnOn(), then objectB calls turnOn(). Then objectA calls turnOff(), it should not turn off because objectB turned it on as well. Also say objectA calls turnOn(), then objectB calls turnOn(). Then objectB calls turnOff(), it should not turn off because o...

In Flex, how to use command-shortcuts in the browser?

I tried catching the command key shortcuts using the keyDown event and checking for KeyboardEvent.ctrlKey, but the browser(Safari) seemed to have intercepted all those key events because the shortcuts I am trying to use coincides with the safari ones. Is there anyway to override this behavior? ...

How to implement macros in Flex/FlashDevelop/AS3

Hello, I am new to using the Flex Compiler with FD, although certainly not new to flash/as3 and FD. Currently, i have been compiling my applications with FD/CS3 and want to make the switch to the flex compiler. One of the main things i want to experiment with the flex compiler is using Macros in AS3. For instance, say i have some extrem...

Custom component with combobox-like behaviour

I am trying to create a custom component in flex that consists of a Button, and a TileList directly below that button. On button click event the TileList should open/close. The component works fine, but when I add it to my main flex app, inside a VBox, it simply opens and closes within the VBox. Because the height of the VBox is much sma...

Click-outside event on custom components in flex

Is there a way to write a custom event that gets triggered when the user clicks outside of that custom component instance? Basically anywhere else in the main flex app. Thanks. ...

Is uploading an image from local HD to remote AMFPHP method possible?

Can any AMFPHP experts tell me if it's possible to upload a file I select from my local HD using FileReference to an AMFPHP method? I must target FP9, though I know FP10 has a FileReference.data method. ...

Forwarding variable arguments

I'm encapsulating a call to a remoting service in my own RemoteObject class. This all works fine except when I have to deal with variable parameters that are being passed to the remote call. Since this is a call to the NetConnection.call, I should be able to pass variable arguments but since I'm encapsulating the NetConnection.call it's ...

write inline code within documents that has a class assigned

Hello, I download an AS3 package and I'm trying to add an eventListener to it. I'm adding this event in inline code. But I get the following error: 1046: Type was not found or was not a compile-time constant: MouseEvent. Since I don't know how to write classes, my question is: Can I write inline code when the document has a class assi...