Solved

Global createEmptyMovieClip?

Posted on 2009-05-03
3
326 Views
Last Modified: 2013-11-11
I am creating a nested movieclip in frame 1 of my movie.  See attached code.

This works only once.  When I move around the flash file, the movie I made goes away.  My guess is that since _root.s_master_mc.outer is made at runtime, once I leave that frame / movieclip it is gone.  Is there a way to createEmptyMovieClip globally so that it will always play?  Or is there another way to achieve this?
_root.createEmptyMovieClip("s_master_mc", _root.getNextHighestDepth());
_root.s_master_mc.createEmptyMovieClip("outer", _root.s_master_mc.getNextHighestDepth());
var ss_outer = _root.s_master_mc.outer;

Open in new window

0
Comment
Question by:el_suavo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 22

Expert Comment

by:rascalpants
ID: 24298133
i could be misunderstanding what you are wanting to do, but could you just load that new movieclip into one that is already on the stage and on a layer that is across the frames you want it to display thru?



rp / ZA
0
 

Author Comment

by:el_suavo
ID: 24298662
That is what I did.  Both s_master_mc and outer are existing movieclips (outer nested in s_master_mc nested in _root).  And it works, but only once.  When I move away from the frames that outer is on and then come back, it is no longer there.

I ended up loading the moving in the _root and just using a mask to show it when needed.  I am sure there is a better way but I was under the gun to finish.


0
 
LVL 22

Accepted Solution

by:
rascalpants earned 500 total points
ID: 24299483

again... the layer that is holding s_master_mc needs to be in ALL frames that need to reference the object... or it will not work.

just an FYI...


glad you got something worked out...  please close up the question if you can.


rp / ZA
0

Featured Post

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
The goal of the tutorial is to teach the user how to how to record live broadcast.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question