A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: checking variables

Threaded View

  1. #4
    Senile member! :)
    Join Date
    Dec 2001
    Location
    Saunaswamp (transl)
    Posts
    2,296
    As the variabeles is set on _root you should be able to reach them using "_root.suites" and "_root.desc"

    Code:
    on(rollOver){
    	_root.mos.moluxo.gotoAndPlay("mouse_over");
    }
    on(rollOut, releaseOutside){
    	_root.mos.moluxo.gotoAndPlay("mouse_out");
    }
    on(release){
    	trace("before");
    	if(_root.suites == 1){
    		stop();
    		trace("after 1");
    	} else if(_root.suites==2){
    		trace("after 2");
    		if (_root.desc==1){
    			_root.suites=2
    			_root.descricao.luxo.gotoAndPlay("sumir");
    			_root.descricao.superluxo.mcsuites.gotoAndPlay("luxo");
    		} else if (_root.desc==2){
    			_root.descricao.gotoAndPlay("superluxo");
    		}
    	}
    }
    /Mirandir
    Last edited by Mirandir; 09-28-2004 at 12:44 PM.

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