Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jul 2008
    Posts
    64
    Thanks
    9
    Thanked 0 Times in 0 Posts

    loading external swf using xml menu

    I am trying to get my xml menu which is an external movieclip that is loaded into my main.swf. I can get the buttons to load the same movieclip into a movieclip loader in my main.swf, but that's the problem I can only load one external movieclip from each button. Any ideas?

    Here is my menu actionscript:
    Code:
    // On roll over turns over=true
    area.onRollOver = function(){
    	
    	over = true
    	
    }
    // On roll out turns over=false
    area.onRollOut = function(){
    	
    	over = false
    	
    }
    // get the urlturns over=true
    area.onPress=function(){
    	_root.clipLoader.loadClip("print2.swf", _root.swfHolder);
    	
    	
    }
    
    
    this.onEnterFrame = function(){
    	// The scale is equal to the target size
    	this._xscale += (targetSize - this._xscale)/3
    			
    	this._yscale = this._xscale
    		
    	
    	// over = true
    	if (over){
    		
    		// resizes to the max scale
    		targetSize = maxScale
    		
    		// Shows the color
    		if (txtColor._alpha < 100){
    			
    			txtColor._alpha += 12
    			
    		}
    	// over = false
    	} else {
    			
    		// Goes to the regular size
    		targetSize = minScale
    		
    		// Hides the color
    		if (txtColor._alpha > 0){
    			
    			txtColor._alpha -= 12
    			
    			
    		}
    		
    	}
    	
    }
    Here is my source.xml:
    Code:
    <settings>
    
    	<centered>true</centered>
    
    	<max>250</max>
    
    </settings>
    
    
    
    <menu>
    
    	<item name = "about" color = "CC3300" "link="about.swf"></item>
    
    	<item name = "contact" color = "CC3300" link="contact.swf"></item>
    
    	<item name = "expertise" color = "CC3300" link="expertise.swf"></item>
    
    	<item name = "interactive" color = "CC3300" link="interactive.swf"></item>
    
    	<item name = "logotypes" color = "CC3300" link="logotypes.swf"></item>
    
    	<item name = "print" color = "CC3300" link="prints.swf"></item>
    
    </menu>
    Last edited by Alex Vincent; 12-11-2008 at 08:52 PM. Reason: adding code tags

  • #2
    Moderator
    Join Date
    May 2002
    Location
    Hayward, CA
    Posts
    1,461
    Thanks
    1
    Thanked 23 Times in 21 Posts
    I don't grok this. How are you loading your source.xml file?
    "The first step to confirming there is a bug in someone else's work is confirming there are no bugs in your own."
    June 30, 2001
    author, Verbosio prototype XML Editor
    author, JavaScript Developer's Dictionary
    https://alexvincent.us/blog

  • #3
    Senior Coder gnomeontherun's Avatar
    Join Date
    Sep 2007
    Location
    Houston
    Posts
    2,846
    Thanks
    10
    Thanked 238 Times in 229 Posts
    Please do not post the same question over 3 different threads. Recommend two to be closed.
    jeremy - gnomeontherun
    Educated questions often get educated answers, and simple questions often get simple answers.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •