1 Replies - 3454 Views - Last Post: 30 June 2008 - 09:39 PM

#1 mrloserskid  Icon User is offline

  • D.I.C Head

Reputation: 4
  • View blog
  • Posts: 125
  • Joined: 30-June 08

radio button image change if

Posted 30 June 2008 - 08:51 AM

hi i know how to swam images to each other. and import them all that stuff.
but i dont know how to make an if.

what im looking for is something like when button click. if radio button 1 is slected switch image to A0001.jpg
if radio button 2 is selected use A0002.jpg

only one radio button can be selected but dosent really matter

thanks for the help ;) ;)
heres my swaping code.

on (release) {

//load Graphic behavior
this._parent.A2.loadMovie("A0002.jpg");
//End behavior

}
p.s. A2 is the name of the movie clip witch is changed to A002.jpg

thanks

Is This A Good Question/Topic? 0
  • +

Replies To: radio button image change if

#2 JBrace1990  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 110
  • View blog
  • Posts: 760
  • Joined: 09-March 08

Re: radio button image change if

Posted 30 June 2008 - 09:39 PM

View Postmrloserskid, on 30 Jun, 2008 - 08:51 AM, said:

hi i know how to swam images to each other. and import them all that stuff.
but i dont know how to make an if.

what im looking for is something like when button click. if radio button 1 is slected switch image to A0001.jpg
if radio button 2 is selected use A0002.jpg

only one radio button can be selected but dosent really matter

thanks for the help ;) ;)
heres my swaping code.

on (release) {
if(radiobutton1.selectedValue == "A0001.jpg")
{
this._parent.A2.loadMovie("A0001.jpg");
}
else
{

//load Graphic behavior
this._parent.A2.loadMovie("A0002.jpg");
//End behavior
}
}
p.s. A2 is the name of the movie clip witch is changed to A002.jpg

thanks



now, i'm not completely sure, but i know that's how you do it in Flex, and they're very similar... the only difference is probably just what you called the conditional in the if statement...
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1