# Buttons and loadvar xml question

**URL:** <https://forum.kirupa.com/t/buttons-and-loadvar-xml-question/258847>\
**Category:** flash\
**Created:** [April 28, 2008, 9:10pm UTC](https://forum.kirupa.com/t/buttons-and-loadvar-xml-question/258847 "2008-04-28T21:10:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ma7hieu](https://avatars.discourse-cdn.com/v4/letter/m/f17d59/32.png) [@ma7hieu](https://forum.kirupa.com/u/ma7hieu)\
**Post date:** [April 28, 2008, 9:10pm UTC](https://forum.kirupa.com/t/buttons-and-loadvar-xml-question/258847/1 "2008-04-28T21:10:56Z")

</div>

Hey I have never before posted on forums, Im now 1.5 jear in the business of webdesigning… and there´s something I cant get out… It´s:

1. On this website there is a button [http://www.kirupa.com/developer/mx2004/button\_effect.htm](http://www.kirupa.com/developer/mx2004/button_effect.htm)  
There is that button… its standard going to [kirupa.com](http://kirupa.com) when I import that in a website and want to use the button to go to say frame 75… the goto won´t work… thats when I remove the link and put a goto in it…

This is the action thats need to be changed, PLEASE HELP ME!

[COLOR=DimGray]//all this code is inside the complex button so you can stick as many as you want  
//on the stage and all will work… they all will have this code in it…

stop(); // stop the movie clip from playing (stop button from growing, we want that when the mouse rolls over only

this.onEnterFrame = function(){  
if(rewind == true){ //if rewind switch is set to true play backwards  
prevFrame(); // play backwards  
}  
}

this.onRollOver = function(){  
rewind = false; //set variable (or switch) that decides wether ot not to play backwards…  
play(); // play this movie clip… (grow the button(tween));  
}

this.onRollOut = function(){  
rewind = true; //set or rewind switch to true so it will play backwards…  
[COLOR=DarkRed]}

this.onRelease = function(){  
gotoAndStop(175);  
getURL(“[http://www.kirupa.com](http://www.kirupa.com)”, “\_blank”);  
}[/COLOR][/COLOR]

1. And what I´m wondering for months… and also nowhere to be found a answer… is that when I load an extern jpg trough the, loadingplace.loadMovie(“theimage.jpg”); I can´t specify the size the image should get… I want that the action resizes the images to say 200x150px.

I hope someone can help me… Thanks for the reading and the effort, Mathieu from holland

Website is under construction, [www.2blur.com](http://www.2blur.com)

My mail/msn [2blur@live.nl](mailto:2blur@live.nl)
