actionscript

Adding a custom UI component as a panel titleIcon (should be easy, I'm kind of a newbie)

The concept of this seems easy, but I'm having trouble getting it right and can't find anything to help me on this. I have a panel I need to perform a drag and drop operation on, but I only want to perform that if the user mouses down on a particular area of the panel. I can add an Icon to the panel by doing this: [Embed("/img/icon.png...

does static methods need to use static properties ??

I am using as3. Just a simple question. If I created a static method. say I decide to call on other methods within that static method. Do those methods I call on need to be static as well? what If I used some of the properties. Not to store data permanently, but just within that process. Do those properties need to be static ?? ...

Programmatically extracting a frame from a video in Flash

I need to write a small Flash app that will need to extract a video frame from a playing video. It will not need to be saved to the HDD of the user. I just need to get the image data and display it in the Flash movie. The frame to extract will be chosen by the user, which is why I'd like to do this purely on the client side (though I kno...

Capture hotkey in browsers

I'm doing SWF application which will run in browser. And I want to capture CTRL+F key pressing event when Flex application is in focus. In Firefox it works fine but in Opera and Safari browser captures event prior to Flex application and Find Dialog pop-ups. Is there any way for flex application to capture CTRL+F event prior browser? ...

make a protected property public

I'm trying to extend a class like panel so that I can fire click events only when the title area is clicked on. The title area is a protected uicomponent of Panel called titleBar. So I want to make that component public. It seems like I'm almost there but I'm getting a "TypeError: Error #1009: Cannot access a property or method of a nul...

Trying to access Flash movie from JS works in FF, but not in IE

I am setting up a Flash based MP3 player control (The standalone version of WordPress Standalone Player). I have a situation of multiple windows with players open. One window opens the other, so I have the window.opener property available. When the child window is opened, I want to programmatically mute the audio player in the parent w...

[as3] accessing an instance reference to the document class from the stage's timeline

Is there a way to get an instance reference to the document class to call a method of it from the stage's timeline? I see that here's a possible solution: using a singleton Other solution I though of is using stage.getChildAt( 0 ) but it's not very nice. Is there an 'official' instance reference? because the document class is obviously i...

Develop games with pure actionscript or adobe flash cs4 professional

Hi, I want to develop a simple race car game. A user will see his car from above and can use right and left arrow keys to navigate in the track and between other cars. What is the correct way to develop a game? Do I use pure actionscript with FlashDevelop or the Eclipse plugin? Do I use Flex3? Is it better to use adobe Flash CS4 Profes...

How can I automatically scroll a VBox when an item is drug near the top or bottom edge?

I have a VBox containing a bunch of panels. I have implemented dragging and dropping but I need to be able to scroll automatically when the item is drug near the edge. I am having mixed results. I can get it to work, but not well. My example is below. It works if the user bounces their mouse around a little near the top or bottom edge, b...

applying the is operand or the instanceof in a case statement

I am trying to figure out how to apply the is operand or the instanceof in a case statement to determine which datatype a interface object belongs too. keep getting errors switch (IOjbect is) { case Tile: trace ("Load Tile"); break; case House: trace ("A House Load...

Is is possible to show a custom right-click menu in Flash

Just wondering if it is possible to show a movie clip based menu inside a Flash movie when the user "right-clicks" an item (a button or movie clip for example). ...

Test Webcam via Flash

I am looking for a "test your webcam" flash movie like this one that is free and OK to use in a closed environment. I need the camera testing only, no server side processing of the video stream. It is thought as a small online tool for a client. Is this possible? Does anybody know a freely usable solution? ...

Minimax in actionscript 2.0

How do I use minimax in Actionscript 2.0? ...

Is there a way to test ActionScript without having Flash installed?

Is there a way to test Flash ActionScript scripts without having Flash installed and running them inside a swf? ...

Can anybody please explain the following piece of Flash ActionScript?

var \x01 = -712 + \x04\x05(); for (\x01 = eval("\x01") + 242; eval("\x01") == 765; \x01 = eval("\x01") - 27) { } Is this valid ActionScript? If so what does it doo? ...

BitMap Eventlistener not working

I am trying to add an event listener to my BitMap. Tile extends gameProps, which extends BitMap. I try using addEventListener. That doesnt work. but the Adobe docs say that Bitmap has an addEventListener object. package { import flash.display.BitmapData; import flash.events.*; import flash.events.Mou...

my firsApp "HelloWorld" connect was rejected.

FLash cs4 output: Connecting... Error #2044: unhandled NetStatusEvent:。 level=error, code=NetConnection.Connect.Rejected at HelloWorld/connectHandler() Server log: Sat 01:54:17 PM: Core (4072) connection to admin accepted. ----------------connect again---------------------------- Sat 02:09:31 PM: Core (1196) connection to admin acc...

Youtube API Problem - Can't see the video

Hi, I've a problem with the youtube actionscript api... The problem is that you can see the play button and the loading sign, and you can hear the sound of the video, but you can't see it. Why is that? Here's the code: // myPlayer.as package { import flash.display.*; import flash.events.*; import flash.ui.*; import fla...

How to adjust flash objects from all keyframes

I know there has to be away to adjust objects on the stage from all keyframes because it's probably the most annoying thing I've experienced I adjust a bitmap image and then when you play the movieclip, right when it hits another keyframe it shows the old position instead of the new. How can I update all images on the stage including al...

Convert powerpoint to flash

How hard is it to import a powerpoint presentation into flash. It would be perfect for me if the output would look like this: every powerpoint slide becomes a movieclip or a .swf file. I don't have any animations and sounds, its just text and images. I know i could save the slides to png but its very bad idea using bitmaps for text in fl...