A Flash Developer Resource Site

Results 1 to 1 of 1

Thread: Linkage & Conditional vars ...?

  1. #1
    Member
    Join Date
    Jan 2003
    Location
    belgium
    Posts
    52

    Linkage & Conditional vars ...?

    Hi.
    Straight to the point >

    my plan is to be able to 'attach' and 'unload' a movieclip in my stage.

    win_home (= the mc to be loaded and unloaded)
    > inside the movie is another mc that controls the play and stop actions.(=for minimizing and maximizing)
    It has this code:
    Code:
    onClipEvent (load) {
    	pressed = false;
    }
    
    onClipEvent (enterFrame) {
    	if (pressed == false) {
    		_root.win_home.nextFrame();
    	} else {
    		_root.win_home.prevFrame();
    	}
    }
    Then there is the navigation menubutton wich should control the loading of my "linked" win_home
    Here is it's code:
    Code:
    on(release) {
    	_root.attachMovie("home","win_home",3);
    	_root.win_home._y = 7.3;
    	_root.win_home._x = 370;
    }



    The problem is: The window "Home" in my movie, must already be on the stage. i can unload it, but when i push the menubutton again it acts weird ... i think the code for that button is wrong, or maybe i don't have to use linkage for that one...? (i just don't want to use the _visible command because if all the windows are gonna be loaded and invisible the movie will slow down (i think ... )

    chek out the SWF http://users.pandora.be/thomasd



    Ps: what do you guys think of my design?
    Last edited by .proskater.; 08-31-2003 at 10:31 AM.
    hi, how are you?

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