Questions tagged [movieclip]

A display object with a timeline in Actionscript on the Adobe Flash platform

A MovieClip extends the DisplayObject class in Adobe Flash. It is a display container that, unlike a Sprite or other DisplayObjects, contains a timeline for animation. MovieClip objects can be created in the Flash graphical authoring and animation tool, or created via .

More Information

950 questions
1
vote
3 answers

as3 removeChild issue

I'm loading some swf files at 0 on my stage. They are the pages of my site. To change from page to page I use removeChildAt(0) and then I addChildAt("page_title", 0). The problem is that removeChild dont delete the functions from the first swf file…
Fabio Montone
  • 39
  • 2
  • 10
1
vote
3 answers

How to add movieclip inside textfield

I would like to add a movieclip to a textfield. The objective is to be able to scroll the movie clip, since the uiscrollbar only works for textfield, i think my solution to scrolling the movie clip is to put it inside a textfield. I have tried…
1
vote
1 answer

ActionScript 3: MovieClip added to Stage not appearing or working

I'm making a simple game in Adobe Flash CS4 using ActionScript 3. I recently implemented a new, very small preloader to replace the placeholder that I was using. However, once I did this, I seemed to break everything. The first frame has only a…
steve richey
  • 497
  • 3
  • 16
1
vote
1 answer

as3 how to trace which movieclip is dispatching event

im working on a fps game. The game contains multiple enemy. But im calling the same movieclip as enemy. That movieclip dispatches fire event and reduce player life. But i need to know which movieclip is dispatching event. I've added enemy randomly,…
1
vote
1 answer

AS2 fixed sized movieclip

I'm working with a Flash website at the moment, and when clicking on a specific hotspot, it opens up a new .swf over the top. This .swf it opens is styled similar to a Lightbox. It has a (x) to close unLoad the movie, along with a (<) and a (>) to…
1
vote
2 answers

How can I trigger a function at Main from an instanced object -- the right way?

I want to keep total control over my game from the Main MovieClip and nowhere else. But I don't want to pass its instance through constructors neither do any .parent reference thingy from its children. Seems too workaroundish and unstable. A sample…
user1869316
1
vote
1 answer

How do I control a movie clip with the dragging of a dial using transform gestures?

I have a dial that rotates 120 degrees clockwise and 120 degrees anti clockwise using the rotate TransformGestureEvent. When rotating this dial I want it to control a movie clip. Dragging through the movieclip as you rotate the dial clockwise then…
Danielle
  • 53
  • 7
1
vote
2 answers

Resize a movieclip wihout messing up mouse coordinates

How do I do this? I have a seekbar which I'm retrofitting to resize with the FLVPlayback. Right now it gets the mouseX when you click the seekbar, and divides that by the length of the seekbar in order to know what percentage it should seek to. My…
Joren
  • 9,623
  • 19
  • 63
  • 104
1
vote
1 answer

How to get one MovieClip from several external SWFs. AS2

That is my question. I have many swf files with AS2 inside and I know that all of them has MovieClip named "viewport". So, I need to print all frames from these MovieClips. I tried to do this with printjob class, but function my_pj.addPage(...)…
1
vote
0 answers

android adobe air Remove MovieClip

i made a TowerDefens in Flash and would like to use it on my Android phone so i published it as adobe air 3.4 for Android. And it worked i can play my Game on the Mobile Phone and also the MouseEvents work pretty well on the phone but when it dont…
Boot750
  • 891
  • 1
  • 7
  • 17
1
vote
2 answers

How to add flash display movieclip to starling sprite?

I use starling framework, and I want to add flash.display.MovieClip to starling sprite? I want to use mask on starling sprite, but I nothing found how to do this. That's why I want to use flash.diplay.MovieClip's mask method. Thank you for your…
1
vote
1 answer

AS3 access a text field

I have 3 movieclips and each has a textbox as a child. I set the active one with var myroot:MovieClip = this.root as MovieClip; var activeText:MovieClip; This works function keyClicked (e:MouseEvent) { myroot.firstname_mc.getChildAt(0).text +=…
LeBlaireau
  • 17,133
  • 33
  • 112
  • 192
1
vote
1 answer

AS3: detecting movieclip in radius

I am developing a tree game and having dots to add branches on the tree, I want to enhance it for e.g. when one dot get a click then it display other dots within a particular radius around it.
justnajm
  • 4,422
  • 6
  • 36
  • 56
1
vote
2 answers

Adding one sprite multiple times

I'm using a fairly standard piece of code to add a movieclip to the stage using a library link. It's fairly standard code: var Beat:beat = new beat(); The trouble is, however that it only adds once, where I need it to add multiple times. How would…
Overt_Agent
  • 510
  • 6
  • 15
1
vote
1 answer

ActionScript 3 MovieClip class linkage

I'm simply playing around with basic ActionScript 3 using Flash CS3 Pro. I put in a keyframe this very simple code to duplicate n "brander" symbols: for (var i:Number=0; i<20; i++) { var m = new brander("MS_"+i); addChild(m); m.name =…
vyger