dcsimg
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: place the loaded flash file

  1. #1
    Senior Member mzhang's Avatar
    Join Date
    Aug 2000
    Posts
    407
    hi there,

    is there a way to place the loaded swf file?

    1. I have two swf files. ( SWF_1 & SWF_2 )
    2. There is a link in SWF_1

    when I click the link in SWF_1, I want to load SWF_2 in and place it on x=300 y=300

    I used the action script below to load the external flash, but how can I place it on on x=300 y=300

    loadMovie("swf_2",10)

    Thanks




  2. #2
    Senior Member
    Join Date
    Aug 2001
    Location
    Egypt
    Posts
    332
    hi,
    you have to load your movie in an mc.. for example..

    loadMovie("swf_2.swf", "my_mc");

    and then place your movie clip container anywhere in your stage..

    regards,

  3. #3
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    You can't position a loaded movie on another level, from the main movie, before the external movie has fully downloaded, and certainely not on the same Frame or Button action as the loadMovie action itself.

    In your case, after the movie is fully loaded, you could position it with:

    _level10._x = 300;
    _level10._y = 300;

    The easiest, in that case, is to pre-position the "to be loaded" movie within itself with something like this, on it's first frame:

    this._x = 300;
    this._y = 300;

    You can preset any properties of the "to be loaded" movie that way...

    this._alpha = 50;
    this._xscale = 50;
    this._visible = false;

    Etc... Etc...



  4. #4
    Senior Member mzhang's Avatar
    Join Date
    Aug 2000
    Posts
    407
    thanks.....


    I am tring it later....

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