dcsimg
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Problem loading external swf's

  1. #1
    Junior Member
    Join Date
    Jan 2008
    Posts
    17

    Smile Problem loading external swf's

    Hi

    I'm creating an application where the user uses the ARROW KEYS to navigate around the menus and SPACEBAR to continue.

    On the first screen is the main menu that launches external swf's. (I have it as an exe)
    When I play the external swfs individually in the Flash Player.......the navigation is perfect and runs smoothly.

    But when I launch the external swf's through the first screen (menu).....the loaded swf becomes very slow/sluggish to react when I hit the ARROW KEYS.
    (eg. have to hit the arrow key 3/4 times before it moves)
    The frame rate in each fla is the exact same.
    I use the levels to launch the external swf..............I have also used the "load into an empty movieclip" and the outcome is still the same.
    I'm using CS5.

    What could be the problem???



    Thanks for your help.

  2. #2
    Moderator whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,755
    are you using any/many onEnterFrame() methods?

    do you have any code that is constantly running?

  3. #3
    Junior Member
    Join Date
    Jan 2008
    Posts
    17

    Arrow

    In the 3 external swfs, I have in each around 10 scenes. In each scene I have 6 frames with a stop() command in each frame.

    On the selected button in each frame I have the following code: (using actionscript2)



    on (keyPress "<Up>") {
    gotoAndStop(3);
    }

    on (keyPress "<Down>") {
    gotoAndStop(1);
    }

    on (keyPress "<Space>") {
    gotoAndStop("scene02", "firstframeLabel");
    }



    This code is consistant through the 10 scenes.







    On the menu swf; I have a menu system that launches the 3 external swf.

    One scene, using 3 frames with a stop() command in each frame.



    On the selected button in each frame I have the following code: (using actionscript2)



    on (keyPress "<Up>") {
    gotoAndStop(3);
    }

    on (keyPress "<Down>") {
    gotoAndStop(1);
    }

    on (keyPress "<Space>") {
    loadMovie ("application01.swf", 30);
    }
    Last edited by handemmet; 03-26-2011 at 06:03 AM.

  4. #4
    Junior Member
    Join Date
    Jan 2008
    Posts
    17
    Ok, I have built a replica demo using Flash CS3 and is having the same problems as the CS5 version.
    Cam somebody take a look at my demo and tell me why it is so slow/
    You can download the zip from:
    http://www.bounceworld.ie/download/Demo Test.zip

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