A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: loading swfs in swf by using a mc

  1. #1
    Junior Member
    Join Date
    Apr 2004
    Location
    Phoenix
    Posts
    16

    loading swfs in swf by using a mc

    It's hard to explain exactly what I"m trying to do but..
    My navigation buttons are actually movie clips becausr there is a bunch of actionscript attached to it. and.. if I attached this code to the end of the elsticity code I can get the movie clip to advance to the next frame.

    on(release){
    _root.gotoAndStop(27);
    }

    But I want to load swfs instead.. and on top of that, I did a tutorial on kirupa in regards to loading swfs with intros and outros called

    "Transitions Between External SWFs"

    Everythign seems to be working well, except I can't get the code to work on the MC that is suppose to change between navigations and swfs, which is this code.

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

    If you don't understand? Well here's a link to my site/zip file.
    I think it might be too big to upload
    http://www.chohoh.com/modproductions/modprod.zip

    I'd love some help.
    This is a freebie site for someone so you'd be helping a good cause..
    The other thing is.. i get most of my tutorials from kirupa as well so it's kirupa styles... to my best.

  2. #2
    Senior Member
    Join Date
    Jan 2004
    Posts
    245
    Hmm I am little confused here I tested your movie and I see "About" loads right away! with out btn actions, Or is it you only want it too load on btn action.?

    on frame 25 you do have in modprod

    _root.currMovie = "about";
    container.loadMovie(_root.currMovie+".swf");

    Hence why it loads when running.


    Barry_UK
    Last edited by Barry_UK; 04-25-2004 at 03:00 AM.

  3. #3
    Junior Member
    Join Date
    Apr 2004
    Location
    Phoenix
    Posts
    16
    actually, that's what I want to happen. I want it to load the about.swf

    But, you will notice that it doesn't allow me to click on the other menu items at all.
    That's the wierd thing.. I can get the about.swf to load automatically.. but i cannot get the movie clip to load the other navs.. (*.swf or services.swf) when you click on that link (services.swf)
    Basically, I'm triyng to get the mc to load the swf for each category of the menu when you click on it (ie. services.swf or about.swf)

    I hope this makes sense... I know, it's confusing...
    I'm no math genius so that doesn't help much. .. but I did see g.love tonight live..

  4. #4
    Junior Member
    Join Date
    Apr 2004
    Location
    Phoenix
    Posts
    16
    basically..
    I can't get the other swfs to load when I click their specific link... (ie. services) = it's doesn't do anything..
    nothing happens.

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