dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: need code help for loading external swfs

  1. #1
    Senior Member
    Join Date
    May 2005
    Location
    Canada
    Posts
    212

    need code help for loading external swfs

    hi
    im using this tutorial http://www.kirupa.com/developer/mx2004/transitions.htm to help me understand how to build a site that will load external .swfs . The problem is it offers the code is made to apply on butttons and i really need it to work with my rollover mc buttons. any suggestions at code that will work with my MCs and do the samething?
    here is the orginal code:

    on (release) {
    if (_root.currMovie == undefined) {
    _root.currMovie = "main";
    container.loadMovie("main.swf");
    } else if (_root.currMovie != "main") {
    if (container._currentframe >=
    container.midframe) {
    _root.currMovie = "main"; container.play();
    }
    }

  2. #2
    Junior Member
    Join Date
    May 2006
    Posts
    14
    use

    movieClipName.onRollOver = function() {
    };

    instead of

    on (release) {
    }

  3. #3
    Senior Member
    Join Date
    May 2005
    Location
    Canada
    Posts
    212
    perfect, thanks alot for your help

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