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

Reducing the hit area on a movieclip button

Hey guys, have a little issue i need to figure out. I created a movie clip button that contains 2 text fields, one static and one dynamic. The dynamic text field holds strings that will vary in length. This MC in general is used as a button so what…
1337holiday
  • 1,924
  • 1
  • 24
  • 42
1
vote
0 answers

How can I prevent MovieClips existing throughout multiple frames? (Flash, AS3)

Heyya, Community! So, I've been programming in Flash ActionScript 3.0 for a few years, gradually relearning everything. However, I can't figure this out for the life of me -- I've been forced to use inefficient work-arounds since now. And I just…
1
vote
2 answers

RemoveChild frame animated MovieClip, will stop frame running?

If I removeChild frame animated Movieclip, will it automatically stop running the frames inside it? Actually without calling mc.stop();
Almas Adilbek
  • 4,371
  • 10
  • 58
  • 97
1
vote
1 answer

hitTestObject on dynamically placed MovieClip instances

Trying to do hitTestObject on instances that are dynamically placed on the stage. Receiving an error: TypeError: Error #2007: Parameter hitTestObject must be non-null. at flash.display::DisplayObject/_hitTest() at…
jc70
  • 255
  • 2
  • 13
  • 32
1
vote
1 answer

Dynamically place instances of MovieClip on stage (AS3)

I'm trying to dynamically place instances of MovieClip on the stage. Receiving an error: TypeError: Error #2007: Parameter child must be non-null. at flash.display::DisplayObjectContainer/addChild() ActionScript: // properties in…
jc70
  • 255
  • 2
  • 13
  • 32
1
vote
2 answers

When is Flash frame script executed exactly?

I have a movieclip which has in the actions for frame 1 this["myCustomVar"] = "bla"; I then do this: var mc:MovieClip = new MyMovieClip(); trace(mc.hasOwnProperty("myCustomVar")); // is false Why does the movieclip not have myCustomVar, or to put…
Bart van Heukelom
  • 43,244
  • 59
  • 186
  • 301
1
vote
1 answer

as3 Trying to access a main timeline variable from inside a movieclip

I just found a way to do it, but I'm still getting an error. On the main timeline I have: var onBeat:Boolean = new Boolean; and inside a movieclip I attempt to access it with: MovieClip(root).onBeat = true; and it technically works, the variable…
Galbert
  • 11
  • 3
1
vote
0 answers

Flash AS3 making a mask with movie clip

I want to apply mask effect into movie clip. I made a movie clip that was divided 3 areas. parent movie clip name is "box" 1 area name(Child box) = "m0" as MovieClip 2 area name(Child box) = "m1" as MovieClip 3 area name(Child box) = "m2" as…
Richard
  • 351
  • 4
  • 17
1
vote
1 answer

as3 embed uploaded swf into scene

var file:FileReference=new FileReference(); and then trace (file.data); works fine after that I'm trying to embed received data into the scene but with no success var ExtSWF:MovieClip; ExtSWF = file.data.readObject() as…
el Dude
  • 5,003
  • 5
  • 28
  • 40
1
vote
1 answer

Trouble activating back after an Enable=false

As a homework I have to code a simple gallery; we've been working with GreenSock effects also. Here's my code so far: import com.greensock.easing.*; import com.greensock.TweenLite; for (var i:Number = 0 ; i<5 ; i++){ …
1
vote
0 answers

Actionscript 3 - How to stop rotation from changing movieclip's position

This is really frustrating me. Let's say I have a simple MovieClip called Container, inside Container I have other MovieClips like Rectangle, Circle and Triangle. Container has 2 single frames on which the nested MovieClips are placed…
Coder
  • 106
  • 1
  • 7
1
vote
1 answer

How to get values for buttons created with (MovieClip) or (Sprite) class

In the last line, I want the XML function to read the name of the button clicked and show the corresponding tag in the XML file (the tags in the XML file has the same names of the buttons), or instead I will have to make functions or if statements…
Safwat Alshazly
  • 331
  • 4
  • 11
1
vote
3 answers

Check when a part of the MovieClip leaves the Stage

I'm creating a Drag and Drop game using AS3, i want to check when a apart of a Movieclip is outside the screen to move the View behind and let the user choose where to drop it. I cant' test if the MovieClip credentials are bigger that the stage…
1
vote
0 answers

AS3 - gotoandstop() on a MovieClip from a CustomClass

Unfortunately I'm not a programmer, just an artist but I have to do a little game example as my homework to the university. So, I made a class to my movieclip called Hero and I made the control system in Hero.as (from a tutorial). It's working well…
1
vote
1 answer

How can I target dynamic name of movieclip which is a child of another one

I'm trying to control a movieclip which is located in another movieclip, the problem is that the child movieclip has a dynamic instance name, please take a look for this example: var myvar = "2"; mc_1.mc_2.y = 0; // that's ok but if I…
Abaq
  • 13
  • 2