A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: how to fix?Imported SWF loses interactive features

  1. #1
    Senior Member
    Join Date
    May 2006
    Posts
    119

    how to fix?Imported SWF loses interactive features

    I have been working on this for a while. I want to import a swf to a MC on a main stage while keeping its interactive qualities. Is this even possible? I have found so many tutorial on this but they don't talk about loading a dynamic SWF with attached sounds and drag n drop
    they only refer to static images ect.
    I have tried this
    --------------------------------------------
    _root.createEmptyMovieClip("blank_mc", 1);
    with (blank_mc){
    _x=60;
    _y=40;
    }
    loadMovie("MY.swf", blank_mc);

    and
    ---------------------------------------------------------------
    _root.button.onRelease = function (){
    _root.loadMovie("MY.swf", Blank_mc.getNextHighestDepth());

    }

    They all DO import the SWF but the swf is lifeless. I cannot use the Drag and Drop not attached sounds. Now, I can bring back the
    drag and drop after re-pathing the sub SWF but I cant get the sounds to play.
    --------------------------------------------------------
    _root.Blank_mc.word0.onPress = function() {
    startDrag(word0); sound0 = new Sound();
    sound0.attachSound("I"); sound0.start();
    };

    _root.Blank_mc.word0.onRelease = function() {
    stopDrag();
    for(var x=0;x!=10;x++){
    if (_root.Blank_mc.word0.hitTest(_root["drop"+x]))
    soundSeq[x] = sound0;
    }
    };

    what am I doing wrong? (probably alot! hehe)
    Please, Any help would be soo much appreciated

    Mark

  2. #2
    Flashmatics silentweed's Avatar
    Join Date
    Mar 2005
    Location
    London, UK
    Posts
    4,875
    assuming everything works when the swf you are loading is tested alone..then its most likely a scope issue..put this in the beginning of the first frame of the actions layer in the external swf that you are loading ..

    this._lockroot = true;
    Flashmatics | Flashmatics Library (free downloads)
    -----------------------------------------------------
    Latest Projects:
    The Dead Room | Are You Smarter | Prison Break (Frame A Friend) | Beck's Fusions | The 24 Experience

    -----------------------------------------------------
    Flash Certified Developer

  3. #3
    Senior Member
    Join Date
    May 2006
    Posts
    119
    Pure genius.
    But there is still one more hurdle. It doest keep the attached sounds. sounds on buttons are fine though

    what could this be?

  4. #4
    Flashmatics silentweed's Avatar
    Join Date
    Mar 2005
    Location
    London, UK
    Posts
    4,875
    put the sounds in the main swf library instead ..
    Flashmatics | Flashmatics Library (free downloads)
    -----------------------------------------------------
    Latest Projects:
    The Dead Room | Are You Smarter | Prison Break (Frame A Friend) | Beck's Fusions | The 24 Experience

    -----------------------------------------------------
    Flash Certified Developer

  5. #5
    Senior Member
    Join Date
    May 2006
    Posts
    119
    sounds logical.
    I guess I will be posting about pre loaders soon then, since I will have HUNDREDS of sound files.


    Thanks!

    Mark

  6. #6
    Senior Member
    Join Date
    May 2006
    Posts
    119
    sounds logical.
    I guess I will be posting about pre loaders soon then, since I will have HUNDREDS of sound files.


    Thanks!

    Mark

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