flash

How do you move an internal function to an external Actionscript 3 class file?

I have this catcher game, where soda bottles falls on to the stage, and we use a character as a cursor to catch it. But all the actionscript is built in already into the file internally. But I was asked to put the two classes I use (the cursor and the falling soda bottles) in an external classfile. And since I'm really new to OOP I real...

How to add a control feature to a flash movie built of compiled movie clips

I have designed quite a long flash movie, it's for an advert. The movie was designed in several flash files, each has been combined into a single movie clip and then all the movie clips have been moved into the master document. Each movie clip is on a single slide. They play through and when a clip reached the end I have used the ac...

Embedding and Displaying chinese/japanese

Hi all, I have been working on a subtitles engine for flash/flv video player. On my Mac everything is great, nice aliased glyphs, displaying all the characters, etc. Switch to windows, it all goes out the window. Some machines with Eastern Characters enabled display fine, but I can't guarantee all users will have this option selected. ...

How To Make Flash Button of PNG Visible Area?

Hello. I'm trying to know if there's a way in ActionScript 3 to load a PNG image and make some sort of button or sensible area applicable only for the visible area of that PNG?? Maybe there's a simple way to define a polygonal area on execution time, I mean, dynamically and make it sensible to mouse events?? Thanks! ...

AS3 removing MovieClips in an array

Anybody any ideas on how to remove children from stage using AS3 if I store the reference to the objects in an array and they exist in different locations i.e they are not all children of the same parent? SomeArray.push(this); ...

AS3: Referencing mc's from an array to then assign further array properties

I have a number of 'items' (mc's) contained in a scrolling mc that can be drag-dropped to other matching mc's. The items names are listed in an array and I wish to assign variables of suitability and feedback to each mc from the array also. I think this is called an associative array? Having some trouble correctly referencing the items ...

Transparency in a movieclip in Flash works in SWF, doesn't when compiled to iPhone with Packager.

I'm making an iPhone game in Flash and i added a little splash screen where the game name fades in from black then fades out to the menu screen. The whole animation is in its own movieclip, just 2 transitions where the alpha changes. When built to a SWF file this plays perfectly, but on the iPhone it doesn't. Even more strange; the iPho...

Flash - Turning Off Code Identifier Colors By Case?

sometimes Flash Authoring colors my actionscript inappropriately. for example: i have custom variable that i've named "closeButton". closeButton does not reference any of the official classes yet it always colored blue as an identifier. i'm assuming it's referencing some internal, private variable from some class in the frameworks. ...

Click through a png overlayed on top of a Flash player

Does anyone please have a solution to create a Clickthrough with jQuery on a png file overlayed on top of a Flash (JW) movie player? ...

YouTube player not working without continuous mouse movement over it

What can be the cause of the YouTube player not working (playing, buffering, firing api events) if I don't continuously move the cursor over the player? ...

Problem getting Javascript to work with SWF file using ExternalInterface

Hi guys, I have a SWF file emedded withing a HTML page. Trying to do a simple operation - go to and play certain frame in SWF using javascript. I'm using ExternalInterface to do this but for the life of me can't get the two to communicate. I add all the code but when clicking on the link which calls javascript, it says my flash object ...

Flex sound auto stop at the end of music

Tie this code to a button, if I repetitive press as fast as I can, an error exception would appear in the application. I found that it would not throw an error if I stop the sound when it completely fade out. However, I wish the fade out function could stop the sound individually, not stop o1_1 together. private function p1_1():void{ s1...

TypeError: Error #1009 (Help Please?)

I'm new with the whole ActionScripting Thing. :( So I truly appreciate it if someone can explain to me as simply as possible. :D I keep getting the errors below when I click to go to another page. Please help me out if I'm doing something wrong. ^^ TypeError: Error #1009: Cannot access a property or method of a null object reference. ...

Garbage collection in flash

cam = Camera.getCamera(0); vid1.attachCamera(cam); cam = Camera.getCamera(1); vid1.attachCamera(cam); At the time when Camera.getCamera(1) is attached to vid1, is Camera.getCamera(0) destroyed internally or still in memory? How to verify that? ...

papervision 3d background

hi guys, anyone has an idea of how this kind of background is created? http://www.papervision3d.org/ i'm going to create a flash game with 3d galaxies as the background. any ideas on how to achieve that? does the above link lead me the right direction? thanks in advance! ...

AS3 Object List Search with Attribute Value Only

Suppose I have a list of objects of a certain custom type and I need to find an object given only the value of one of its attributes, how do I do it? Eg. // Where user1 ... usern are objects of some class User users = [ user1, user2, user3 ... usern ] // How do I find out the objects that have the "foo" attribute set to "bar" ...

Flash memory usage in browser?

When I run my swf locally in the Flash Player application, its memory usage starts at around 50 Mb, and though it definitely fluctuates, it generally stays centered at around 50 Mb. Then I embed the same swf in an html page and run it in my browser (firefox). Now the memory usage starts at 20 Mb, but increases at a near constant rate u...

How do I change the background of a Flash document using ActionScript 3.0?

Let me preface this question by saying that I am a .NET developer at heart, just helping a friend with a project he is working on. I have been searching online for something that I think should be pretty simple. Here's what I have: A standard Flash CS5 document with one layer called background. The document is associated with a class ...

Is there any live mxml mx:datagrid full text search example\tutorial?

So I have in my RIA a mx:DataGrid connected to some web service from which it obtains data (Dataprovider). I have a simple text fild. I want to on text in text field change to see in my table only lines containing inputed text in some part of any word in any column. how to do such thing? ...

What is the best way to create a map with mouse over?

What is the best way to create a 2D plot, with different points in different coordinates (x/y coordinates) such that they are represented using different shapes on the plot, and whenever we click on one of them, or go with mouse over them, we see a text changing in a small window next to the plot? If I could do this in HTML, that would ...