A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Parts of my swf disappear from the html embed

  1. #1
    Junior Member
    Join Date
    May 2007
    Posts
    2

    Parts of my swf disappear from the html embed

    Default Parts of my swf disappear from the html embed
    I have adapted this code form Lee
    Brimlow's
    tutorial.

    My problem is this. Once the user interacts with the scrolling menu and then dashes off to another window or to the desktop the "covers" mc disappears BUT other
    mc's
    don't! from the embed on the html.

    Is this because of the "
    onEnterFrame
    ". Please give me some advice. I have searched this on forums but people are using it on purpose so I can't seem to find a way to prevent it.



    /////-----enables the scrolling menu

    covers.onRollOver=coversOver;

    function coversOver() {
    this.onEnterFrame=scrollCovers;
    deletethis.onRollOver;
    }

    var b = stroke.getBounds (_root);

    function scrollCovers(){
    if(_xmouse<b.xMin || _xmouse>b.xMax || _ymouse<b.yMin || _ymouse> b.yMax){
    this.onRollOver = coversOver;
    delete this.onEnterFrame;
    }

    if(covers._x >= 60) {
    covers._x =60;
    }

    if(covers._x <= -260) {
    covers._x = -260;

    }

    please email me: [email protected]

  2. #2
    Junior Member
    Join Date
    May 2007
    Posts
    2
    Please help me. I can get you th fla if needed.

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