Masking With A Movie Clip -problem
hey, I have this movie clip made up of several graphic symbols. when i try to use this movie clip as a mask, only one of the symbols in the mc are masking, the others are'nt. can anyone explain this to me and how to fix this?? thanks !!
KirupaForum > Flash > Flash 8 (and earlier) > Flash 5
Posted on: 01-16-2003, 07:51 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Masking A Movie Clip
Ok, i have a movie clip(a) on the main timeline.
on frame 1 of this movie clip i have a second MC(b).
when i click a button, the timeline of MC A plays frames 2 - 10 which is a tweened shape on a mask layer to cover over MC B
MC B is a 20 frame looping animation but my problem is that when the mask tweens over, MC B always jumps back to frame 1 and starts playing again, same thing happens when i un-mask it.
if i change the mask layer into a normal shape layer it works fine and MC B carries on looping independently to anything else its just when there is a mask layer MC B allways jumps back to frame 1.
Masking A Movie Clip...
Hi All,
I am having some problems masking a movie clip and was wondering if maybe I could get some help! My problem is as follows...
If I import a picture to the stage and set it as a movie clip I can mask it no trouble, but if I create the movie clip using actionscript, something like
_root.createEmptyMovieClip("myImage", 0);
myImage.loadMovie(jukebox.jpg,false);
and then try to mask it I cant! All that happens is that the movie appears above everything else.
Cant figure out what I'm doing wrong!
Any Ideas???
Cheers,
Stephen
Masking Movie Clip?
Hey guys
Can anybody tell me how to mask a movieclip?
I create it like this.
ActionScript Code:
var container:MovieClip = new MovieClip();
this.addChild(container);
But if I try to put a mask Layer over the layer where the actionScript is it doesn`t work.
Hope u understand my Problem.
Thanks Martin
Masking A Movie Clip (_mc)
On my main timeline, I've created two layers. One is a movie clip (_mc NOT .swf), and the other (above) is a simple rectangular shaped mask(ing layer). Instead of the mask revealing the area of the movie clip that I want to show, it makes the entire layer beneath invisible. I've made thousands of masks, but have never had this problem. Is there something specific that I have to do to a mask or its masked layer if the masked layer is a movie clip?
Masking A Movie Clip
Is there some trick to masking a movie clip? I have two movie clips that I am placing on the same layer and duplicating about 20 times. One is a ball that vibrates and I can mask that one with no problem. The other movie clip is a ball that bounces around the screen. No matter where I place it, this bouncing ball will not get masked.
I have no clue what is going on. Help would be much appreciated!
JRW
Masking A Movie Clip
Is there some trick to masking a movie clip? I have two movie clips that I am placing on the same layer and duplicating about 20 times. One is a ball that vibrates and I can mask that one with no problem. The other movie clip is a ball that bounces around the screen. No matter where I place it, this bouncing ball will not get masked.
I have no clue what is going on. Help would be much appreciated!
JRW
Movie Clip Masking
Can anyone explain how to animate multiple movie clips as a mask?
similar to the transitions in the sections for: exopolis.com
thanks in advance
Masking Masked Movie Clip
Did mask a movie clip that contained mask layer, but that masking which was contained inside of the movie clip doesn't work.
How to make 'em both work?
Masking Big Movie Clip / Image
Hi all,
does anybody know about some action script, which would mask the big movie clip / image(1600 x 1200)?
Example: http://www.manipulator.com/
Thank you for any help.
[F8] Masking A Movie Clip For A Button
I’m having trouble with a masked moving clip that I’m trying to use for a button. My goal is to have moving water for a button when the mouse rolls over it. I already imported the water I want to use as a JPG, and turned it into a movie clip, but I haven’t been able to mask it. When I test the main movie and I roll over the button, I see the water moving like I want it to, but it’s the whole image, not just the circular shape I tried to mask. Is there a better way to do this or am I doing something wrong? Thanks.
Masking Movie Clip Question
I have a problem with a website I'm working on, but before I try to explain all of it, let me just ask a general question that may help answering it without having to explain everything. I read somewhere that in an external swf, if you have a mask that is masking a MC, the mask reads the MC as 1 frame. Is this true and if it is how do you correct that problem? If I am looking through my MCs timeline and I want to click a different link, the mask reverts my MCs timeline to frame 1 before it masks it.
Stuck In The Movie Clip Of Masking
Hi,
my problem is that I play a masking with a Movie Clip and can't get to the next scene after playing the mc once. here is the link to the file: http://teszt.netteam.hu/bgw/
I would like to skip to Scene2 and keep also the background music.
How would it be possible?
thanks for your kind help in advance
Masking Scrollable Movie Clip
I've recreated text boxes"movie clips" that use a mask for scrolling. I found the tutorial online. The scroll boxes work perfectly but the mask is not working. When I unmask the box within my text movie clip and test you can see the text that is outside of the "mask" and watch it scroll. When I mask that layer (it looks like it's suppost to in my .fla file) and go to test you can't see any text at all? I appreciate any feedback:)
I don't think that it is anything in the existing code but I'm attaching all the action script just in case.
Thankx
Attach Code
up button scene1:
on (rollOver) {
tellTarget ("control") {
gotoAndPlay(2);
}
}
on (rollOut, dragOut) {
tellTarget ("control") {
gotoAndStop(1);
}
}
down button scene 1:
on (rollOver) {
tellTarget ("control") {
gotoAndPlay(5);
}
}
on (rollOut, dragOut) {
tellTarget ("control") {
gotoAndStop(4);
}
}
control:
-down frame 4: stop();
frame 5: y = getProperty("_root.text.content", _y);
if (y<-120) {
gotoAndPlay(4);
} else {
setProperty("_root.text.content", _y, y-6);
}
frame 6: gotoAndPlay(5);
up frame 1: stop();
frame 2: y = getProperty("_root.text.content", _y);
if (y>70) {
gotoAndStop(1);
} else {
setProperty("_root.text.content", _y, y+6);
}
frame 3: gotoAndPlay(2);
Masking Scrollable Movie Clip
I've recreated text boxes"movie clips" that use a mask for scrolling. I found the tutorial online. The scroll boxes work perfectly but the mask is not working. When I unmask the box within my text movie clip and test you can see the text that is outside of the "mask" and watch it scroll. When I mask that layer (it looks like it's suppost to in my .fla file) and go to test you can't see any text at all? I appreciate any feedback:)
I don't think that it is anything in the existing code but I'm attaching all the action script just in case.
Thankx
Attach Code
up button scene1:
on (rollOver) {
tellTarget ("control") {
gotoAndPlay(2);
}
}
on (rollOut, dragOut) {
tellTarget ("control") {
gotoAndStop(1);
}
}
down button scene 1:
on (rollOver) {
tellTarget ("control") {
gotoAndPlay(5);
}
}
on (rollOut, dragOut) {
tellTarget ("control") {
gotoAndStop(4);
}
}
control:
-down frame 4: stop();
frame 5: y = getProperty("_root.text.content", _y);
if (y<-120) {
gotoAndPlay(4);
} else {
setProperty("_root.text.content", _y, y-6);
}
frame 6: gotoAndPlay(5);
up frame 1: stop();
frame 2: y = getProperty("_root.text.content", _y);
if (y>70) {
gotoAndStop(1);
} else {
setProperty("_root.text.content", _y, y+6);
}
frame 3: gotoAndPlay(2);
Flash 5: Scrolling A Movie Clip, Masking
So I have a Content Movie clip, then a mask movie clip and then the Final cut that has the Mask clip inserted, a background (which is approx. half the height of the content, but the same size as the mask), and the Scroll Arrows, back, and slidebar. This is then inserted in a frame in a scene.
First problem: when the content is masked nothing shows up.
Second problem: I don't know how to scroll the movie clip I have only scrolled text boxes.
Third Problem: I have some buttons in the content MC that set variables.. how do I access that variable from the Frame in the scene.
If anyone can answer any of these questions it would be greatly appreciated thank you.
Masking Multiple Movie Clip Instances
Hi,
I'm trying to create a grid of square movie clips using the code below and then masking them so the Movie clips will only show thru the shape that I choose. I've got the first part working fine but I can't seem to mask them the way that I need. If i put a mask on layer then the MC's that get added with the attchMovie get put on top of it. I looked into the setMask() method but it didn't seem to work either. Any ideas would be great. Thanks.
Matt
Code:
w = 10;
h = 10;
across = 400/w;
down = 400/h;
for (i=0;i<down;i++){
for(j=0;j<across;j++){
counter = ((i*across)+j);
attachMovie("square", "square"+counter,counter);
mv = _root["square"+counter];
mv._x = j*w;
mv._y = i*h;
}
}
Masking A Movie Clip Containing Dynamic Text?
I have a simple hand made dynamic scroller. It runs from a text file.
fyi : when i refer to 'record display' below, I mean the movie clip which contains a dyamic text field. the text field is were the loaded data shows up.
If I mask the scroller (in order to clip the viewing area correctly), it incorrectly displays the records in the scroller (it shows the text, and one record display). If I remove the mask, everything displays correctly, but nothing is clipped.
if you look in the text file (CellData.txt), you can set the first variable MASK, to true if you want flash to mask the scroller, or to anything else (false) if you want to see how it looks without the masking.
what is the workaround for this. I have included an example
[F8] Trouble Masking Empty Movie Clip
I hope to get some help with this as this is driving me crazy!!
I am creating an image scroll gallery similar to the following:
http://www.oman3d.com/tutorials/flash/imagegallery/
I have the thumbnail images in place and I can get it to scroll properly, but I want the edges to be rounded. Basically, I just want a rounded rectangle to mask this whole thing. I created a rounded rectangle, converted it to a movie clip and exported it with an instance name of "Mask." When I play the movie you can see the whole stage regardless (the mask is being completely ignored). Can anyone explain to me how to mask the container of an empty movie clip??
The following is my action script:
this.createEmptyMovieClip("container",1);
var imagesNumber:Number = 9;
var scrolling:Boolean = true;
for (i=1; i<=imagesNumber; i++) {
container.attachMovie("thumb"+i,"thumb"+i+"_mc",i) ;
myThumb_mc = container["thumb"+i+"_mc"];
myThumb_mc._x = (i-1)*myThumb_mc._width;
myThumb_mc._y = (Stage.height-myThumb_mc._height)/2;
myThumb_mc._alpha = 50;
myThumb_mc.setMask(Mask);
myThumb_mc.onRollOver = function() {
this._alpha = 100;
};
myThumb_mc.onRollOut = function() {
this._alpha = 50;
};
}
container.onEnterFrame = function() {
if (scrolling){
this._x += Math.cos((-_root._xmouse/250)*Math.PI)*15;
if (this._x>10) {
this._x = 10;
}
if (-this._x>(this._width-250)) {
this._x = -(this._width-250);
}
}
};
Thanks in advance for all of your responses.
Masking A Movie Clip That Contains Other Movie Clips
hi,
i am just trying out something in flash but it just doesnt work.
I have a layer which has a movie clip which contains other movieclips in itself.
Masking the layer that has the main movie clip causes the other movieclips in the main one to disappear when running the swf.
Does any one have any idea how to get around this???
thanks
Masking A Movie Clip That Contains Other Movie Clips
hi,
i am just trying out something in flash but it just doesnt work.
I have a layer which has a movie clip which contains other movieclips in itself.
Masking the layer that has the main movie clip causes the other movieclips in the main one to disappear when running the swf.
Does any one have any idea how to get around this???
thanks
Every Other Movie Clip On A Masking Layer...strange Problem
Hey folks, I've got a weird one here...
I'm creating a grid of square "tile" movie clips, each of which contains a simple square button instance (and the scripting to handle those buttons). The movie clips are being loaded into a Masking layer, to incrementally reveal a portion of an underlying image
Behold exhibit A. When you roll over the tiles of revealed image, there's a popup balloon. NOTICE: the balloon only pops on every other tile.
Behold exhibit B. The only thing I changed was to make the layer into a standard layer. All scripting and button events seem to work flawlessly.
Could someone please explain to me why only every other button works on a masking layer? Or at least posit a theory?
Masking Text In A Movie Clip In Flash Problems?
Hi there all
Has anyone else had the problem that it is impossible to mask text in a movie clip when you tween the mask in flash?
Say you have a movie clip and in it you have some random text, you then add a mask to that text and then you apply a shape or motion tween to that mask....... The mask doesn't work... - no text at all is displayed.
Has anyone else had this problem? is it a common thing?
Let me know your experiences, or if i'm the only one!
Cheers
Masking A Movie Clip Containing Multiple Dynamic Text Fields
I have a containiner mc with multipe mc's inside. each of these mc's is being used as a button and contains a dynamic text field. all of this is created dynamically. the effect being that i have a list of names loaded from an external file. the user can click on a name and access more info. everything is fine so far but now i'm trying to make this list scrollable. I want the mask so I can define the scroll window area. i have tried using setmask. this makes t so the mc-buttons outside the mask are not functional but they are still visible.
any ideas here? thank you to all who can help.
the following is the script used to make the buttons.
for (this.i = 0; i < directors.length; i++){
while (load_done == false) {
directorname = directors[i];
this.director_name_container.createEmptyMovieClip ("directors"+i, i + 4)
this.director_name_container["directors"+i].createTextField("director",1,0,0,200,20);
this.director_name_container["directors"+i].director.variable = "name";
this.director_name_container["directors"+i].director.border = false;
this.director_name_container["directors"+i].name = directorname;
this.director_name_container["directors"+i].director.setTextFormat(myformat);
this.director_name_container["directors"+i].director._y = 0 + inc_y;
this.director_name_container["directors"+i].director._x = 0;
load_done = true;
_global.numdirectors++;
}
inc_y = inc_y + 20;
load_done = false;
}
Making A Movie Clip In A Movie Clip Go To The Next Frame Of The Original Movie Clip
I have a movie clip (for simplicity I'll call it movie_a) in movie_a I have another movie clip movie_b.
in movie_a i have a button that when pressed makes movie_b play (it has a stop frame every once in a while so the button acts as a "next" button)
I want it so that when i get to the last frame of movie_b and press the button, it will go to the next frame of movie_a
I hope that doesn't confuse u and u can help me solve this problem, as i am stumped and I've tried everything I could think of (which isn't that much as I'm not too good with actionscript)
thnx
SwapDepths With A Masking Clip
I want to be able to get a mask to the front of the stage and mask around 100 duplicated clips in one go.
I tried using swapDepths on a clip that was in a mask layer but all that did was lose my mask somewhere! Not sure where it went, maybe to the back...
I notice theres an action setMask() but this only works in masking a single clip. How can this be done? I want to keep the duplicated clips on the maintimeline rather than have them all within another clip. Surely I don't have to create a mask clip for EVERY clip I want to mask???
GP
gp@1lg.com
Dynamically Masking A Clip
Ok this might have been posted b4 but i have to go get dinner ready, ehhehe so plz dont flame me for not searching the board, i am attaching a movie clip at runtime with attachmovie, the thing is that this clip is supossed to be masked by a mask, *sigh*, i havent been able to do this, i attach the clip but have no idea how to make clear that i want that clipped masked by that mask, hope i was clear enough, thx a bunch in advance,
Masking Clip, Then Resets?
I've encountered an interesting problem....
I've created a MovieClip for my background. This MovieClip is AS'd to loop an Image in the background from left to right. Like a cloud scene. This MovieClip contains 10frames and the AS is on the 10th frame where it is also stopped.
On the main timeline I masked this MovieClip. The weird thing is that when I Motion Tween this MovieClip... it resets! Meaning it didn't stay on the 10th frame, but it jumped back to frame 1. Now, I know it's a Masking problem because if I removed my Mask, it doesn't Reset when it tweens.
Anyone encountered this problem before?
SwapDepths With A Masking Clip
I want to be able to get a mask to the front of the stage and mask around 100 duplicated clips in one go.
I tried using swapDepths on a clip that was in a mask layer but all that did was lose my mask somewhere! Not sure where it went, maybe to the back...
I notice theres an action setMask() but this only works in masking a single clip. How can this be done? I want to keep the duplicated clips on the maintimeline rather than have them all within another clip. Surely I don't have to create a mask clip for EVERY clip I want to mask???
GP
gp@1lg.com
Problem In Masking A Smart Clip?
Hey, does anybody know if it is possible to mask a smart clip? I am trying that and everytime I do so...the smart clip content is not visible (even though the mask layer covers it properly!)
any suggestions ?
Thanks.
Masking A LoadMovie Video Clip.
I would love to mask a movie clip that I am loading a swf file into using loadMovie. Is this possible? Currently I have a mask layer and the target MC on a layer beneath the mask, but the loaded video seems to just ignore the mask.
Thanks for any suggestions.
Masking Clip While Tweening Alpha
I am able to set a msk successfully on dynamically loaded movieclip, but when I tween the clip's alpha property, the mask is no longer applied. Here is the tween:
_alpha_tween = new Tween(_container_mc.getInstanceAtDepth(_establishedDepth), "_alpha", Regular.easeOut, 100, 0, 2, true);
movieclip <_container_mc> contains a clip at depth <_establishedDepth>. I reference this clip using the getInstanceAtDepth method because I am swapping depths between 2 clips in <_container_mc> and cannot know which one is that depth. That does not seem to cause a problem. The mask applies fine. The problem comes only when this tween starts, and the mask no longer applies.
FL8 -- Dynamically Masking A Filtered Clip
Hello -
I am messing with the filters and experimenting with dynamically masking something that has a filter applied to it.
If I go the traditional route on the timeline, I create 2 layers, add some content and a filter to a mc I can mask it so that say a blur doesn’t bleed out over everything, I get a nice clean line cropping the bleeding effect of lets say a blur, but blurred content.
If attempt the same in code, the filter redraws the effect to the new viewable space thus no cropping occurring. I'm assuming it is because using filters forces the clip I am applying a filter to into cacheAsBitmap=true, but you'd think that shouldn’t redraw the effect. I'm still digging through the classes and may not see a way to stop this but anyone know a workaround to this?
Example : http://www.stunnedgrowth.com/flash8/test1.html
Thanks,
Ben
Align Clip On Stage That Has Wide Masking
Is there a way to say "only use the coords of the viewable area" when aligning a mc that is masking a really wide object? (I'm looping through XML and duplicating MC's inside a centered mc and under a mask.)
Thanks
Movie Clip Buttons Nested Inside Movie Clip Dont Work
Hi people!
im having a problem here.
in my first frame i have a movie clip named "menu_mc".
i have this AS for this movie:
Code:
this.menu_mc.onRollOver = function() {
menu_mc.gotoAndPlay(8);
}
this.menu_mc.onRollOut = function() {
menu_mc.gotoAndStop(7);
}
thats working ok, the menu_mc plays on rollover from frame 8 till frame 12 where stops.
On frame 12 (this is inside the menu_mc movie clip) i have another movie clip, named button1_mc.
and also i have AS controling that MC:
Code:
this.button1_mc.onRelease = function() {
getURL("index.htm", "_self");
}
The problem is that when i rollOver on menu_mc it work fine and the button1 appears, the problem is when i try to click button1...
doesnt work.
the swf you can see it on www.wt.com.mx/menu.swf
can anybody help me please?
what im doing wrong?
or what other ideas can you give me so i can make that work.
thanks!
Mouse Rollover On One Movie Clip Increase Decrease Alpha Of Another Movie Clip..
So I really haven't messed with Actionscript much for a couple years and here is my issue.
I have several movieclips I put together that will eventually be a menu for my website. When you roll over a menu option (movieclip) I am trying to get another movie clip to fade in giving the description of the menu item.
For example - when you roll your mouse over the 'Live Chat' option a brief text description would appear telling you what the live chat is about. This description is a seperate movie clip appearing away from the original menu.
I have made the movieclips for the menu and the movie clips for the descriptions. I tried this action on the menu option to get the description to fade in:
Code:
onClipEvent (load) {
this._parent.mc_text_discussionBoard._alpha = 0;
}
onClipEvent (enterFrame) {
this.onRollOver = function() {
if (this._parent.mc_text_discussionBoard._alpha<100) {
this._parent.mc_text_discussionBoard._alpha += 5;
}
};
}
But the alpha only increases on the description (mc_text_discussionBoard) by 5 when I keep rolling my move over and out and over again. It makes sense why it does that, but I'm not exaclty sure how to get it to continually increase the alpha by 5.
any help would be great and I am anxiously waiting to get this solved!
Kevin
Code 4 MovieClip Button To Load A Movie Clip Into A Placeholder Movie Clip.
Yeah that title sounds a little confusing...so i will explain:
Is there a way to tell a "movie clip button" that once it is clicked on to load a "movie clip" into a "movie clip placeholder". So instead of loading an external swf into the placeholder, it will be a movie clip from within the same library. Putting every single custom clip on the timeline would take a while, so that is why I thought it would be easier like this, and the other movie clips are not that large that I want to load into it so there is no need for external swfs, trying to keep it clean. Here is the code along the lines I am trying to go for.
__________________________________________
this.profile_mc.onRelease = function() {
placeholder_mc.loadMovie("profileSection_mc","plac eholder_mc","_root.content");
}
__________________________________________
- "profile_mc is the button I am trying to activate to load the
"profileSection_mc" into the "placeholder_mc". but so far no good.
- the movie clips are within the same library, not on the timeline or external library.
- Is this possible?
Using A Button In A Movie Clip To Control The Movie(and Not Movie Clip) Timeline
Ok i have a button placed in a movie clip. I want this button, when released, to go in another scene, frame one, on the movie(scene) timeline and not on the movie clip timeline.
So i tried: gotoAndPlay("mission", 1); (mission is the name of my scene)
But it goes to the frame 1 of my movie clip, It would be great if someone could tell me how i can control the movie timeline while my button is in a movie clip
thaks
Vakarm
How To 'stop' A Movie Clip Within A Movie Clip Within A Movie Clip Loop
I've done searches, laughed, cried, and punched holes through the wall, but I can't figure this out.
I'm in Flash MX (pro) and I have a MovieClip on my main timeline (frame 1). Inside that clip is another animation (the static animation scrolling across the screen), and another inside of it of the static animation (6 characters on a train each animated uniquely).
Confused yet? Ha! OK, so I just want the damned animation on the main timeline to run once and then stop (or to 270 frames). I've tried:
myMovieClip.stop()
to no avail. I've tried attaching the script to the movie clip itself, and also to the frame.
Any suggestions?
Making A Draggable Movie Clip Control The Location Of Another Movie Clip
http://www.kineticz.net/jba/residental.jpg that is a picture of what i am trying to do. the white bar at the bottom is the draggable movie clip and the group of 3 pictures right above that is the movie clip that i am trying to control w/ the draggable clip. I am having trouble writing a script that will do this. any help you can give will be much appreciated.
A Button Inside A Movie Clip, Within A Movie Clip, Calling Another Scene:
Is it even possible?
I have been trying to do it for the last few days for a site I am working on.
I have done searches in many forums and it's foolish looking for an answer that way, because quite frankly every thread I opened was something to do with LoadMovie or GetURL, etc.
What I have right now is on the button in my Menu Bar Movie Clip:
on (release) {
gotoAndPlay(285);
}
Which plays a fancy little animation in the movie clip and then on the last frame of that movie clip I had:
gotoAndPlay("Contact", 1);
Which is the Scene for the "Contact Us" Scene named "Contact"
One would think that it would load up the scene and play at frame 1, however all that happens is it reloads the movie clip of the "Menu Bar" at frame 1 and starts over, not even realizing what I asked.
Anyways, I figured there's a script or something that tells it to look outside of the movie clip or to the _Root, or whatever.
If someone has a solution, it would be greatly appreciated.
Sorry I have no example to show, since I have yet to upload it. (It's my company's web site, and I don't think customers would want to see some half-arsed web site that's not complete.
Thanks in advance.
On Mouseover Show Movie Clip, On Mouseout Close Movie Clip *HELP*
Basically what I am trying to do is this...
I have a movie clip that is a name. When you put your mouseover the name I want another movie clip to display to the right of the name. This clip has a photo and bio of the person.
The photo and bio have an animation that fades it in and an animation to fade it out. I have 5 frames for the fade in, then stop frame, then 5 frames for the fade out.
What actionscript do I need to use to make that second movie clip load when a user mousesover the name (first movie clip) and to make the second half of the second movie clip play when the user removes their mouse from name (first movie clip).
NOTE: I tried using loadMovie and unLoad movie but I couldn't do it loading another swf. The reason being this is already an swf loaded inside a main movie. I guess you can't load an swf inside an swf that's already loaded inside an swf. I hope this all makes sense!
I appreicate all the help!
Thanks a lot!
Create An Empty Movie Clip Inside An Existing Movie Clip?
I'm making sort of a tabbed navigation scheme by reading the data for each tab in from an XML file. What I'm wondering is if it's possible to use createEmptyMovieClip() to make a new empty movie clip inside a movie clip that already exists on the stage.
Using
ActionScript Code:
m_anchor.loadMovie(bg_image);
works as I would expect. bg_image is just the relative path to an image file, and m_anchor is a movieclip already on the stage. However, doing a similar thing:
ActionScript Code:
m_anchor.createEmptyMovieClip("textbox", this.getNextHighestDepth());
and then drawing a shape (a rounded rectangle, which I then want to put text on top of) doesn't work. It works if I just say "this.createEmptyMovieClip" instead of attempting to create it inside the m_anchor clip, but if I do that, the "textbox" is created at the root level and I can't unload it along with everything else in the "m_anchor" clip. Is it possible to create a new empty movie clip inside of one that is already on the stage?
Thanks!
Load An Internal Movie Clip To An Empty Movie Clip On The Stage
Can any of you shed some light as to why this is not working:
on (release) {
emptyMC.attachMovie("mrimc","instance1",this.getNe xtHighestDepth());
}
what I want to have happen is when the user clicks a button it loads the mirmc into emptyMC on the stage.
I have double checked that my empty movie clip does indeed have an instance name of emptyMC and that the movie I want to load into does in fact have the name mrimc in the library. Any ideas?
|