I cannot get the lines to draw onto the top of the MovieClip box_mc.At this pojnt, my solution is to change the alpha of box_mc to 0. Now I can see my drawings which are under the box_mc but keep within the boundries of the MovieClip.Maybe my thinking is too concrete, but I was trying to get the drawing lines to stay on top of the MovieClip box_mc like it was a small drawing board.I have tried place a reference to the stage in various places and use addChildAt() in order to see f I can change the MovieClip's place in the hierarchy but so far nothing has worked.
is there a way to keep the content of a mc (attached content) when I duplicate it? I know that duplicate remembers size, position, rotation etc. But I want to get the attached content too.
[Code]...
// Now I want to duplicate the Container to get a copy of it (Container2_mc) Countainer1_mc.duplicateMovieClip("Container2_mc", 10)
My problem is that when I click the letter movieclip it does create the duplicate as it should and it starts to drag the duplicate mc. However, when I release the clip it doesn't stop dragging? I realized that if I put onMouseUP event instead of onRelease it actually does stop dragging when I release the mouse. I would, however not like to use the onMouseUP event if possible.
is there a way to keep the content of a mc (attached content) when I duplicate it? I know that duplicate remembers size, position, rotation etc. But I want to get the attached content too.
I want to apply actions to a movieClip nested inside a dynamicly attached movieClip, with the attachMovie method; it doesn't works when the movieClip is attached by a button:
1.when the swf movie loads with an attachMovie method the remove_btn clears the window_mc
I keep trying to change the code so that I can control the area for drawing. The attached code is where I left of after many tries. The movie clip box_mc is being called from the library.
I am trying to get a box_mc to fade out if the mouse is in a set area of the screen, but if the mouse is in a different segment to reappear. I have set up a timer to detect mouse position and got the functions working but I dont know how to pause the timer in order for the fade to take effect.
import fl.transitions.Tween; import fl.transitions.easing.*; var timer1:Timer = new Timer(10)
I've made a button that presents a movie clip (a window) on the screen, you can move this window by grabbing the tab on the top of the window. But when you exit this window and open another (duplicate is made), you cannot move the window at all.My guess is that the code is lost when the duplicate is made, can someone tell me how to transfer my code to all my duplicates? For more info, visit I sent this about a year ago, and still havent got a responce.
I am trying to reference a movieclip within a movieclip that I am loading using "attachmovie". In the first frame of the root, I am attaching the movie. Then, from the attached movie I am calling a function that is also in the first frame of the root. In the function I am tring to set the property of a clip within the attached movie to visible using the following code:
_root.logIn.loginMessage._visible = true;
I have also tried _root["logIn"].loginMessage._visible = true; with no luck.
(logIn is the name of the clip I am attaching using attachMovie and loginMessage is the clip I am trying to reference in the attached movie)
This is how I'm loading it and I know that part is working: _root.attachMovie("login_mc","logIn",getNextHighes tDepth());
i am using get and setters in my as3 code to edit values of an other class (because those variables are shared) i dont like to put stage.sharedVar.isScrabble in my code every time to change a variable so i used get/set functions [code]as you van see it has a lot of duplicate code every time the "return stage.sharedVar." and the "stage.sharedVar."+ the value + " = val" is constantly comming back.i was wondering is there a other way of creating these get/sets?[code]
The following is the chunk of my code that is attaching a movieclip (from timeline), tracing thisDot works so it is not the variable which is a problem but there is no rollover applied to the attached movieclip.
var dot_name:String = new String(Graphs[s]._name+"_dot"+i); var dotObj:Object = new Object(); if (prevX != undefined) { dotObj._x = newX;
I have short script (onClipEvent (enterFrame) {some code here}) that works well on movieClip that is on Stage. I've added the script to 'actions - movie clip' -window). But my problem is that movieclip should be attached dynamically usign actionscript, so I cannot add the script to the clip, as I used to.
Is it possible to use duplicateMovieClip to copy a movieClip into another movieclip, or is it only possible to duplicate it inside one and the same containermovieclip?
I am using AS2. The character, a robot, has machine guns that fire off bullets. I am trying to get the bullets to disappear when they hit an enemy. They do dmage, but for some reason they are still there. Here is the code I use to attach and delete them.
I posted this in Kirupa but unfortunately i did not receive any response from the community for 4 days now. I'm thinking perhaps somebody here can answer my long awaited explanation for this bug or phenomenon. I have a shape animation on the timeline from one keyframe to the next (3 keyframes). There is an orange movieclip under that mask with instance name "container". Now if i attempt to attach a movieclip to it at runtime, it will automatically get removed when it reaches the 2nd shape tween keyframe. All my code is in frame 1. Isn't that illogical? I know it works if i place it into a movieclip. I need an explanation to this (if its a bug) and a workaround other than repetitively attaching it from frame to frame.
i am using Flash MX2004(AS 2.0), i need to mask the attached movieclip, totally i attached 3 movieclip(all are same one), i need to display first movieclip by using mask. one more thing is moving that mask by press button, when i press the button the mask will show the second movie clip and so on.
I have a mc in the library, linkage is "del". Here is the code I use to attach to the movie Code: delbt.onPress = function () { if (typeof(_root.del) == undefined) { _root.attachMovie ("dele", "del", _root.getNextHighestDepth ()); _root['del']._x = 100; _root['del']._y = 100; [Code] .....
This works fine to a point. In the "del" mc I have a button to remove "del" mc if no longer required. Code: on (release) { unloadMovie(_root.del) }
I discovered that this only remove the content and not the mc that holds it "del". So I tried Code: on (release) { _root.del.removeMovieClip (); } But this does nothing.
I am using Flash MX2004(AS 2.0), I need to mask the attached movieclip, totally I attached 3 movieclip (all are same one), I need to display first movieclip by using mask. One more thing is moving that mask by press button, when I press the button the mask will show the second movie clip and so on.
This is my code: I have to mask box1_mc function cardcolor() { var color:Color = new Color(_root["box_mc1"+i].box1_mc); var t:Number = 0x00FF00; _root["box_mc1"+i].onPress = function():Void { [Code] .....
I would like to have one movieclip over the top of other attached ones. I have tried getNextHighestDepth on the movieclip, but it still doesn't work. Here is my code for attaching the movieclips:
I'm working with a MovieClip ("mainMenuItem") that is linked to a Class ("GenericMenuItem.as") that uses attachMovie to add another movieclip ("Arrow") to mainMenuItem as follows:mcArrow = this.attachMovie(prefix+"Arrow", "_Arrow_symbol", this.getNextHighestDepth());I'm able to use on(release) within the Class definition to capture clicks on the mainMenuItem component, but haven't been able to find a way to detect a click on the "Arrow" library item that gets attached to that component.
I've created a simple class that defines a scrollbar to scroll content. I've applied this class (ScrollBox.as) to a movieclip in the library as the Base Class.
Now, I'd like to add this movieclip to the stage with AS3. So for the Linkage, I've given the movieclip a class name of 'AboutBox'. This is the code I've written to add it to the display list[code]...