dcsimg
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: [Resolved] [Resolved] A URGEN HELP!!

  1. #1
    Senior Member
    Join Date
    Dec 2001
    Posts
    103

    A urgent help

    Hey guys i was not able to slove this prob now more than a month ok pls help me

    Here is the problem

    I want to load an external .swf file in to my main movie with the preloader

    i placed a preloader in my external swf and loaded it using load movie using target with container movie clip

    Now the problem is when i use that target and load that movie in the container movie clip my preloader doesnt work !!!

    but when i remove the target and load it by using levels asigning 1 (value) the preloader is working but i can alighn it to the desired place on the main movie so pls help me to solve this problem all i want is to load a external sef in my main movie at a desired location WITH A PRELOADER !
    Thanks Hope you guys will Help me
    Cheers


  2. #2
    Senior Member EQFlash's Avatar
    Join Date
    Jun 2002
    Location
    where i'm at
    Posts
    2,735
    you just loaded the movie to a level instead of a container.
    to place the external movie where you want it.
    ----code----
    this.onEnterFrame = function() {
    _level1._x = number;
    _level1._y = number;
    };

    ----end code----

  3. #3
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    But EQ, that code won't work until the movie is completely downloaded, and certainely not on the same loading script! Loading on levels is different than in container clips in that you can't set properties of the movie until it's fully downloaded, because it simply doesn't exist until then and you cannot set properties of something that doesn't exist yet!

    eyeflash...

    This easiest, in your situation, would be to preset the position of your "to be loaded" movie within itself.
    Add this on it's first frame:

    this._x = 100; // offset from top-left corner
    this._y = 250; // offset from top-left corner

    This might take a few trials to get it just right, but it's the easiest way to do it.
    You can also set any other property (on that first frame) of that movie with:

    this._alpha = 50;
    this._xscale = 50;
    // etc... etc...

  4. #4
    Senior Member
    Join Date
    Dec 2001
    Posts
    103

    Smile

    Thanks oldnewbie it worked! atlast Thanks again

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center