DuplicateMovieClip with externaly loaded movie

Hi
the function duplicateMovieClip gives me a real hard time.
I dynamically load certain parts of my application using the
MovieClipLoader, then (when the external movieclip is completely
loaded and intialized) I try to duplicate this movieclip using the
duplicateMovieClip function, but it doesn't work.
Using the function on a movieclip that has been created at
design time or using createEmptyMovieclip work, but not with the
externaly loaded ones.
Is this some kind of security problem? How can it be solved.
Any help is appreciated.
Thanks in advance
Paul

quote:
it will need to be in a flash library.
Does this mean it needs to be in _a_ flash library or in
_the_ flash library of the main movie?
In other words, could I mark the part of the external
movielcip to be exported as actionscript variable and then use it
with duplicate movieclip in the main movie? or is there any
workaround to achieve the goal of having externaly loaded parts of
an application to be duplicatable?
Right now I do another loadMovieClip for every instance of
the layout part instead of duplicating the previously loaded one. I
guess as long as caching is enabled in the surrounding browser this
is not a big problem, but if the cache is turned of I guess this
solution will result in a lot of traffic slowing the application
down.

Similar Messages

  • Problem with non loading movie clips in CS3

    Hi.
    I am making an animation ( Trailer for an upcoming handheld
    game i am working on ).
    And i have encountered a problem when i play back the
    animation with Flash player.
    There is two movie clips in the animation ( Normal vector
    drawing but with effects applied on it ( color adjustment , and
    blur ) ) and when i play the published swf back with flash player
    the two movie clips are in their normal Vector mode ( without the
    filters ) until the middle of the animation when they finally
    "load" , the filters finally have an effect on the two vector
    drawings.
    i use a very high end computer so that couldn't be it.
    And when i am going to upload the flash film there's going to
    be a loading screen ... i have no clue if it's going to fix this.
    But for now this is really odd and looks really awkward.
    If this problem persist i will not make the deadline. please
    help fast.
    Thanks everybody.
    -Jimmy Gonzo
    EDIT: oh and i also noticed that when the stuff isn't loaded
    yet... the animation goes too fast.

    It seems to me that you need to put a preloader in the first
    frame of your whole .fla. It seems that all your assets are not
    being loaded before the .swf playhead moves forward.
    A simple preloader could be something like:
    frame 1 label this as "preloader"
    frame 2 (insert the following commands)
    if (this._framesloaded >= this._totalframes) {
    this.gotoAndPlay("init");
    }else{
    this.gotoAndPlay("preloader");
    }

  • Help with externally loaded movie

    EXAMPLE
    OF MY PROBLEM
    Im kinda bad at explaining such detailed problems, but i hope
    this comes out clearly.
    I have two movies: a Photo-Album swf, and an Image swf.
    My Photo-Album swf is very basic, and uses the loadMovie
    action to load the Image swf.
    My Image swf was created at 346x260. The Image swf only
    contains my image, which i turned into a button that is small to
    begin with, but when rolled over becomes very large (1024x768).
    The problem ive run into is that when the image becomes large
    it leaves its 346x260 boarders, and enters into the Photo-Album's
    space.
    What i eventually want to have happen is to be able to drag
    the large 1024x768 image inside of the 346x260 frame.
    so my final question is:
    How do i keep this image inside its boarders when it becomes
    larger???
    thx for any help
    -Ash-

    See if this helps
    http://www.fcpbook.com/MotionControl_inFCE.html
    Punctuation would help us.

  • How do I interact with a loaded swf?

    Hi,
    I have a "lesson" that I'm building that will display a series of "pages" based on an XML file. I have simple navigation buttons that work to page through the XML file. but I'd like to use load an external SWF file with buttons to use as my navigation panel. Everything is AS 3.0. The code to load the navigation movie looks like this:
    // load navigator
       navLoader = new Loader;
       navLoader.contentLoaderInfo.addEventListener(Event.INIT, handleInit);
       navLoader.x = 50;
       navLoader.y = 200;
       lessonSprite.addChild(navLoader);
       navLoader.load( new URLRequest("Navigator1.swf"));
    The loaded navigation movie has two buttons. How do I add an event listener to those buttons so that they call a function in the parent movie so I can detect when the user clicks on the button named "GoNext" in the loaded movie?  I've tried several ways but I've had no luck. Could someone please point me in the right direction? This navigation panel is only one application of this sort of communication that I'll need in other parts of this type of lesson so I really need to figure out how to detect user interaction interaction with the loaded movie. Guess I need to know how to call a function in the parent movie from the loaded movie.
    Thanks,
    Peter H.

    Hey Pete,
    The answer that you seek and the simplest one as well will be from the MouseEvent. that  you will most likely have applied to your loaded swf.
    As long as both swfs are in the same domain, you wont have any issues with security and therefor, the MouseEvent. which bubbles up, will be able to reach your swf file which has loaded it.
    You can then write your code in your loaded swf to simply listen to the loadedMovieClip  by targeting the contents of navLoader just like this,
    navLoader.content.addEventListener(MouseEvent.MOUSE_DOWN,onDown)
    protected function onDown(me:MouseEvent){
    now providing you have given your two buttons names in your loaded swf, you will be able to perform addition tasks by receiving the name of the target.
    protected function onDown(me:MouseEvent){
    var btnClip:Movie= me.target as MovieClip
              var btnName=btnClip.name
    if(btnName==(button1)){
         //do the following
    }else{
           //it was button two
    button1 was just a random name in this case .
    This will do the trick

  • Load Movie/ photo gallery

    I have a load movie button working correctly, and I have a
    photo gallery with 'back' and f'orward' buttons working correctly -
    but when I try to load the photo gallery swf file, onto my page
    with the load movie button, I get an endless NaN error pop up on
    screen.
    Does anybody have any suggestions as to where I'm going
    wrong?
    Many thanks.

    NaN (Not A Number)
    The chances are that it’s a string being passed back to
    something that’s expecting a number.

  • Close popup window from loaded movie

    I have an html link which launches a flash movie into a
    separate html window. The flash movie then loads another movie into
    level 10. from this level, I am trying to close the flash movie and
    its associated html page using the code:-
    javascript:window.close();
    This doesn't work. It closes level 10, but leaves level 0 and
    the html page intact. How can I resolve it?
    Any help would be very much appreciated.

    I have carried out a simple test using the above code to
    close a single swf with no loaded movies. This works. However, when
    I try to load a movie into a higher level and close the whole movie
    together with its html page from there, it doesn't work.
    Thanks

  • This message comes up "This computer is already associated with an Apple ID" trying to down load movies of another computer of ICloud how do I get By?

    This message comes up "This computer is already associated with an Apple ID" trying to down load movies of another computer of ICloud how do I get By?

    Hi Allan, thanks for that. I've already set up a log in for my wife and that is all working fine. The problem is that when she logs in and opens iTunes and trys to associate her library with her iTunes account she gets the error message "This computer is already associated with another iTunes account". Whilst this is true, the computer is associated with my iTunes account under my separate log in, which should have nothing to do with hers. If she transfers the association to her account it will lock me out of my content on my log in for 90 days - I'm trying to work out how to associate each of the log in accounts with a separate iTunes account so we can access our music independently of one another without locking each other out. Hope that makes sense!

  • HT202157 Does anyone else have a problem with the latest Apple TV update?  My Apple TV no longer can load movies from my iTunes library, including ones I've already watched or were watching.  Can I roll back this update, and if so, how?

    After updating my Apple TV, it will no longer load movies from my iTunes library.  Music works, but no movies.  I've turned this puppy every which way but loose, but no joy.  Is there a way to roll back an update?

    Greetings,
    I've never seen this issue, and I handle many iPads, of all versions. WiFi issues are generally local to the WiFi router - they are not all of the same quality, range, immunity to interference, etc. You have distance, building construction, and the biggie - interference.
    At home, I use Apple routers, and have no issues with any of my WiFi enabled devices, computers, mobile devices, etc - even the lowly PeeCees. I have locations where I have Juniper Networks, as well as Aruba, and a few Netgears - all of them work as they should.
    The cheaper routers, Linksys, D-Link, Seimens home units, and many other no name devices have caused issues of various kinds, and even connectivity.
    I have no idea what Starbucks uses, but I always have a good connection, and I go there nearly every morning and get some work done, as well as play.
    You could try changing channels, 2.4 to 5 Gigs, changing locations of the router. I have had to do all of these at one time or another over the many years that I have been a Network Engineer.
    Good Luck - Cheers,
    M.

  • I rented a movie on an iPad mini while connected to wifi. Now I'm in the car with out Internet and when I try to play the movie is says "could not load movie" what can I do? I purchased it from iTunes and let it load fully before leaving.

    Can somebody help me figure this out? So before a road trip I rented a movie on my Ipad mini. The movie fully loaded before I left. It downloaded under wifi. Now that I'm in the car I tried to watch the movie but it isn't working. When I press play an error message pops up saying "could not load movie" can I not watch it with our wifi? What's going on? What can I do to watch the movie?

    Having the same problem. Watched 25 minutes of a rental and it stopped with the message"unable to load video"
    Using current version IPad mini.
    Ios7 is  HUGH PIECE OF CRAP!!!!

  • "Could not load movie" with YouTube videos.

    Hi there,
    In both the past and present I have had much difficulty with playing many YouTube videos on my iPod touch 4. This happens to be the case no matter if I am in the YouTube app or on the mobile YouTube site in safari. I will try to play a video to watch it and often times I blue box will pop up saying 'could not load movie'. This makes video viewing and sharing quite difficult! Please help! Thank you very much!
    - Samuel Amos

    Here is an explanation for you for the "could not load movie" error, which I have also received on my iPad.
    If you run across this error on your iDevice, keep the following in mind:
    This is taken from another site, so I will quote:
    "Most of the time its due to the age of the video upload, this one for example was done back in 2009 which was 2 years ago now. YouTube as you know relies heavily on Flash for video playback which is not compatible with the iOS range.
    However to combat this, YouTube did work on converting chunks of videos to H264 playback, but by default the entire backlog of videos did not go through this conversion process...so you will find the odd video out there that does not play.
    I believe though (and please someone correct me here if i am wrong) YouTube by default now encodes uploads in H264 as well as flash and a few other formats for multi-platform enjoyment :-) "

  • Rented movie stopped half way through,"Accessing itunes store" with revolving loader symbol

    FIrst nite with ATV2, it suddenly stopped working, didnt recognize my password, and ultimately i had to change my password. Then went to bed and tried again this morning. It worked.
    Second nite with ATV2, we rented a movie. 2/3 of way through movie, the loading circle appeared. cannot access the movie, though it recognizes that we have 22 hrs left on the movie.  cannot access other itunes content.
    --turned ATV off and back on--didnt work
    --checked network--no problems
    --reset ATV2--still cannot see anything but loading circle.
    Tried to see a tv show we'd watched earlier today. "accessing itunes store" with the loading circle appeared.
    HELP?
    I have spent more hours trying to make the device work than enjoying it.
    Thinking that I want to return this product. it works like a PC device.
    If you dont know how to fix it, can you tell me,
    HOW do i return it?

    are you guys watching TV late at night. I've noticed that the shows stop working at around 11 to 11.30 pm pacific time. I suppose that iTunes updates their catalogue to include the latest shows that are new and cleared for sale after the night's TV schedule. I think it's poor iTunes judgement to do that. Most people watch TV at night. They should update their catalogue some time in the morning hours.
    I usually just unplug my apple TV, restart and then wait for a while to make it work.
    If you guys get stuck because you put the show on pause then the remedy is to turn the screen saver off. Switch it to never because then when you pause and iTunes server goes out you don't have to re-authorize the show to continue watching it. That's if you purchased and the show was sownloaded to your apple TV

  • Can't Load Movies to ATV1 with iTunes 11

    In iTunes 10 I was able to load movies to my ATV1 through syncing. Now that I have upgraded to iTunes 11, I can't seem to figure out how to upload movies from my iTunes Library to my ATV1. Any help would be greatly appreciated.

    there is no itunes 11, so you will need to check what you actually have done to itunes.

  • Control loaded movie with actionscript

    Is it possible to get a button in my main movie to effect a
    loaded movie. I need to make one element inside a loaded swf become
    transparent. What would the code for that look like?

    lets say you loaded your SWF into holder_mc and the the
    element is inside another movie clip in the SWF named your_mc and
    the actual element is name element_mc
    yourbtn.onRelease = function(){
    holder_mc.your_mc.element_mc._alpha = 0;
    }

  • Problems with loop on progressive loaded Movie

    Hey I got help for a a week ago to do a loop on progressive loaded movies, but nov I got a problem it only loops on keyframe one and not on keyframe 2. Do anyone know how I can sort that out..?
    I have the following on keyframe 1, where everything is perfect:
    var timedelay:Number = 3; 
    var video;
    var nc:NetConnection;
    var ns:NetStream;
    nc = new NetConnection();
    nc.connect(null);
    ns = new NetStream(nc);
    ns.client = this;
    ns.addEventListener(NetStatusEvent.NET_STATUS,netStatusf);
    function netStatusf(e:NetStatusEvent) {
        if (e.info.code == "NetStream.Play.Stop" && Math.abs(durationNum-ns.time)<.1) {
    setTimeout(replayF,timedelay*1000);
    function replayF(){
    ns.play("film/film1.f4v");
    var durationNum:Number;
    function onMetaData(iObj:Object):void {
        durationNum = iObj.duration;
    video = new Video(287,263);
    video.x = 204.1;
    video.y = 140.5;
    addChild(video);
    video.attachNetStream(ns);
    ns.play("film/film1.f4v");
    and on keyframe 2 I got this, here it chooses a randome movie from the Array, when it'a chosen it dosen't loop:
    var moviesA2:Array =["film/film1.f4v", "film/film2.f4v", "film/film2.f4v", "film/film2.f4v", "film/film2.f4v"];
    var movie2:String = moviesA2[Math.floor(Math.random()*moviesA2.length)];
    var timedelay2:Number = 6; 
    var video2;
    var nc2:NetConnection;
    var ns2:NetStream;
    nc2 = new NetConnection();
    nc2.connect(null);
    ns2 = new NetStream(nc2);
    ns2.client = this;
    ns2.addEventListener(NetStatusEvent.NET_STATUS,netStatusf2);
    function netStatusf2(e:NetStatusEvent) {
        if (e.info.code == "NetStream.Play.Stop" && Math.abs(durationNum-ns.time)<.1) {
    setTimeout(replayF2,timedelay*1000);
    function replayF2(){
    ns2.play(movie2);
    video2 = new Video(287,263);
    video2.x = 204.1;
    video2.y = 140.5;
    addChild(video2);
    video2.attachNetStream(ns2);
    ns2.play(movie2);

    i assume you've applied ns.close() when going to frame 2 so that stream stops looping.  then use:
    function netStatusf2(e:NetStatusEvent) {
        if (e.info.code == "NetStream.Play.Stop" && Math.abs(durationNum-ns2.time)<.1) {
    setTimeout(replayF2,timedelay*1000);

  • Reusing dynamically loaded movies

    Hello,
    I am trying to reuse a dynamically loaded movie which has
    been loaded with a movie clip loader. The movie loads fine and can
    be displayed once with no problem. However, I would like to be able
    to store this movie so that it can be resused again without loading
    it from the URL again. Is there a way to do this?
    I found this in the docs:
    quote:
    the problem w/ attachmovie is that one must have a link
    identifier (in linkage panel) in order to attach it.
    there is no way (that i know of) to attach a *dynamically*
    created clip - either by duplicateMovieClip or
    createEmptyMovieClip.
    I'm hoping this isn't true. What if I had a JPG I loaded
    dynamically and I wanted to use it 100 times? I can't imagine
    having to load the JPG 100 times.
    I need something like attachMovie(), but that only works with
    movies that are already in the library. Does anyone know if there a
    way to reuse a dynamically loaded movie? I've tried all sort of
    combinations of createEmptyMovieClip, duplicateMovieClip, and
    attachMovie but nothing has worked.
    FYI - I am using Flash 2004 MX Pro and ActionScript 2.0.

    yes, load it 100 times. it will be retrieved from the user's
    browser cache after the first time so this is not the limitation
    you're thinking it might be.

Maybe you are looking for

  • Adobe reader 9.0 + Adobe Acrobat 5.0 on Internet explorer 7.0 ?

    Hello! I possess Adobe Acrobat 5.0 to create some PDF documents I possess Adobe Reader 9.0 to read some PDF The 2 programs operate WindowsXP SP3 well. I don't manage to open a PDF file with Internet Explorer 7.0 = he looks for has open Acrobat instea

  • Acrobat causes Nvidia driver to stop and recover

    I accidentally started this in the Photoshop forum in an nvidia thread - I was told to move it, so here I am.  Apologies. I am running an EVGA nVidia GeForce 7200GS 512 MB VGA/DVI/TV-out PCI-Express Video Card (model# 512-P2-N430-LR). Windows 7 (32bi

  • Multiple ethernet connections in one computer?

    I have two ethernet connections in my computer (2 IP Addr) I would like one connection to talk to a PLC(UPD) While the other (wireless) to talk to a printer across the room (TCP Visa Resource- open and write) Is this possible in LV7.1

  • Disable online editing

    Hi Experts, System Landscape - EP 2004s Does anybody know how to disable 'online editing' command for documents ? Regards, Amit

  • Service Date Duration

    I have an Object called Service Date in the Universe. In Webi, I created a report with Service Date for a duration of 03/02/2010 - 05/04/2010 by using Service Date as Query filter with in Between Operator. In report it shows the service date duration