movieclip

Nested movieClips not detecting mouse events in Actionscript

I have some nested movieClips. I've got an event listener on the parent listening for a mouse click. Problem is, the listener never picks up the click. Code: var movieClipStack:MovieClip = new MovieClip(); for each (var ol:OwnedLayerable in owned_layerables) { var mc:MovieClip = ol.layerable.mc; movieClipSt...

Movieclip stacking in Actionscript

I'm building a game of which the interface is one of the first items to load on screen. Sound button, pause and all the bits - During the game - all manor of things are dynamically added and removed to the stage. Therefore my interface goes behind my game scene. How do I ensure the movieclip always stays on top? Can I override the add...

AS3 access to properties of movieclip loaded in dynamically

My movieclip clipArt_mc receives movieclips that are loaded dynamically from a listbox selection using: var myLoader9:Loader = new Loader(); I apply color to clipArt_mc using the following: var trans3:Transform = new Transform(MovieClip(parent).design_mc.clipArt_mc); I would like to access the nested or loaded in movieclip insid...

Flash Lite 2 Split Image

Can flash lite 2(as2) split an image in to multiple movie clips? For example, get an image and split it in half to to mc's. ...

How to convert bitmap data into image file in AS3?

Hi everybody , I want to convert bitmap data to an image file like jpg or png file in AS3 can anyone help me? Thanks in advance ; ...

How are Flash library symbols constructed? Why are width/height already available in constructor?

Suppose I draw a square on the stage, convert it to a symbol, export it for ActionScript with a classname of "MySquare" (and of course a base class of MovieClip). How is it that in the MySquare constructor, the width and height of this MovieClip are already available? In fact, any named instances in the clip are also available. I'm co...

Flex: How to access movieclips from an imported swf.

What are the steps necessary to access movieclips from an imported swf within a Flex application? ...

Flex: How to access movieclips within an imported swf

Hello, I have imported a swf (not created with Flex, i.e. non-framework) into a Flex application. Once loaded, I would like to access movieclips within that imported swf. Looking at Adobe's docs (http://livedocs.adobe.com/flex/3/html/help.html?content=controls_15.html), it seems straightforward; however, their examples are between a...

The supplied DisplayObject must be a child of the caller

Hello. I am a newbie, and I have seached and tried for weeks on this, and I cannot get the grip on this. The simple code below gives the "The supplied DisplayObject must be a child of the caller" error. var square = new squareObj; addChild(square); addEventListener(Event.ENTER_FRAME, removeSquare); function removeSquare(evt:Event):void...

Target MovieClip from non-Document Class in Flash

Hi, is there any way to target a MovieClip from an external class that's NOT the Document Class? Is it correct to have the Document Class as Main AND View? ...

Flash AS3 Mysterious Blinking MovieClip

This is the strangest problem I've faced in flash so far. I have no idea what's causing it. I can provide a .swf if someone wants to actually see it, but I'll describe it as best I can. I'm creating bullets for a tank object to shoot. The tank is a child of the document class. The way I am creating the bullet is: var bullet:Bullet ...

How to optimize frame rate in Flash/Actionscript?

I'm building an application in Actionscript using Flash assets, and my frame rate becomes very low (~7 fps) when I attempt to render 20+ assets on the screen, even though most of those assets are stopped movie clips. I've tried setting .cacheAsBitmap to true, which helps a bit, but not enough. What else can I do to get the frame rate up?...

Problems unloading xml (movieclip) when changing to another frame

I need some help. I loaded xml on a movieclip and i also have a button to go to another frame but the xml keeps loadding!! what can i do to remove the xml each time i click on that button? I'm using flash cs4 AS3.Please help ...

Adding a MovieClip from inside a class method

Hi to everyone, I have been trying to add a movieclip to my .fla file from a class. my main fla file: main.fla actionscript file: script.as they stay in the same directory. script.as file as follows: package { import flash.display.* public class MyClass extends MovieClip { public var target:MovieClip; public function MyCl...

Export FLA composition to FLEX

Is it possible to export FLA composition to Flex? So it will work exactly as in Flash Pro but instead in FLEX? FLA contains a bunch of movieClips, buttons, images, all driven by an .as file. Thanks, ...

AS3 - accessing and editing loaded swf movieclip from main movie

import com.hydrotik.queueloader.*; ................. public class Main extends MovieClip { private var _ql:QueueLoader; private function _loadSTRATIntro() { QLog.log("_loadSTRATIntro()"); this._ql.addItem("res/swf/STRATIntro.swf", this.introduction_mc); this._ql.ad...

How to make a MovieClip remove itself in AS3?

What is the equivalent to removeMovieClip() in AS3? Apparently many have the same question: StackOverflow: How to completely remove a movieclip in as3 Remove movie clip as3 How to remove childmovieclip and add to new parent movieclip Others: removeMovieClip(this) in AS3? Destroy/Delete a Movieclip??? Remove movie clip But non...

AS2 Dynamic MovieClip Selection

If I have movieclips called "test1", "test2" and "test3" in the _root, I can use: for(i = 1; i <= 3; i++){ _root['test'+i]._x = 100; } How do i use the "_root['mc']" selection method if all my test mc's are in another mc called layout. I have tried this but got a syntax error. for(i = 1; i <= 3; i++){ layout.['test'+i]._x = 10...

why does my flash-animation reset when i move the mouse?

I have 2 overlapping movieclips on the stage. Both are instances of the same movieclip, but with different names. One bigger then the other, due to a magnifying effect. (I have tried to out-rule that code by the way, so its not that). The intention is to make both movieclips play when the mouse is over the stage and then stop as the mou...

How do you load a folder full of png files to construct an AS3 movie clip?

I see plenty of AS3 examples of loading 1 image file into a 1 frame movieclip, but how can you take a folder full of images, load them and treat each image as an individual frame of a single movieclip? The essential problem I seem to keep running into is how to create a keyframe during runtime... ...