# \[Flash8\]Help needed! variable pass from rollover buttons to AS on frame

**URL:** <https://forum.kirupa.com/t/flash8-help-needed-variable-pass-from-rollover-buttons-to-as-on-frame/243258>\
**Category:** flash\
**Created:** [November 5, 2007, 4:54am UTC](https://forum.kirupa.com/t/flash8-help-needed-variable-pass-from-rollover-buttons-to-as-on-frame/243258 "2007-11-05T04:54:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shwnew](https://avatars.discourse-cdn.com/v4/letter/s/dbc845/32.png) [@shwnew](https://forum.kirupa.com/u/shwnew)\
**Post date:** [November 5, 2007, 4:54am UTC](https://forum.kirupa.com/t/flash8-help-needed-variable-pass-from-rollover-buttons-to-as-on-frame/243258/1 "2007-11-05T04:54:12Z")

</div>

Hi  
I am creating a weather forecast in which i have to create many rollover buttons by which i can pass different value like “sanjose” which goes to path(“[http://61.16.10.25/\_flash/sanjose.aspx](http://61.16.10.25/_flash/sanjose.aspx)”) on layer 1 frame 1 which have the action script. below is working fine if i pass the whole path in feedURL, but dont know how to pass city name while rollover to AS

feedURL = “[http://61.16.10.25/\_flash/sanjose.aspx](http://61.16.10.25/_flash/sanjose.aspx)”;

#include “scripts/content.as”  
// fire event to display current weather conditions  
dispatchEvent({type:“containerInit”, target:this});  
// when button is pressed, shift it’s position  
function btnPressed(btn) {  
btn.\_x += 1;  
btn.\_y += 1;  
}  
// when button is released, put it back  
function btnReleased(btn) {  
btn.\_x -= 1;  
btn.\_y -= 1;  
}
