A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Loading External SWF From MC

  1. #1
    Senior Member
    Join Date
    Jul 2001
    Posts
    449

    Loading External SWF From MC

    Hi,
    pretty simple question I know...I have external SWF's which I want to load into an MC on the main timeline...but I want them to load when a MC is pressed which is not a button...
    thanks,
    Tom

  2. #2
    Member
    Join Date
    Apr 2002
    Posts
    76
    Hi,
    V E N K A T
    ~~~~~~~~~~~~~~~~~~~~~~~
    BEGIN WITH END IN THE MIND

  3. #3
    Member
    Join Date
    Apr 2002
    Posts
    76
    sorry about that ... accidental that was.... anyways...

    just add this code on the MC's onClipEvent

    onClipEvent(mouseDown){
    if(this.hitTest(_root._xmouse,_root._ymouse)){
    this.loadMovie("test.swf");
    }
    }
    V E N K A T
    ~~~~~~~~~~~~~~~~~~~~~~~
    BEGIN WITH END IN THE MIND

  4. #4
    Senior Member
    Join Date
    Jul 2001
    Posts
    449
    hey,
    thanks for that but unfortunaytely it is not exactly what I want...it loads the SWF file onto the button but When the MC acting as a button is pressed I want it to load into a different MC on the timeline called "shirts"
    thanks again,
    Tom

  5. #5
    Member
    Join Date
    Apr 2002
    Posts
    76
    then replace the this.loadMovie with _root.shirts.loadmovie ... or the respective target whichever is applicable
    V E N K A T
    ~~~~~~~~~~~~~~~~~~~~~~~
    BEGIN WITH END IN THE MIND

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