| User |
Message |

CED 14
Posts: 6
Joined: 01/17/2006
Credibility: 0 pts
|
Hi everyone well i am trying to make a button in flash that when u click it sends u to a website!! but the problem is that i cant get the codeing correct can anyone help me there?? here is a video of wat i do, the button is already set and the only thing it says in tutorials is that what is shown in the vid.
Help video
this is the error message i get if i try to run it
1084: Syntax error: expecting rightparen before colon.[I][/I]
|
| 01/31/08 14:32 |
Login to rate this user's post! |

Hijaru Ta
Posts: 4
Joined: 07/31/2007
Credibility: 0 pts
|
kinda obvious
i had that mistake too a while ago, you need to use these ""
so the code would be: getURL("http://www.gameamp.com");
i usually use this code:
on(Release){
getURL("http://www.ilikechocolatecookiesandmilk.com");
}

GW.IGN: Hijaru Ta CoH.IGN: Hijaru
|
| 01/31/08 15:27 |
Login to rate this user's post! |

CED 14
Posts: 6
Joined: 01/17/2006
Credibility: 0 pts
|
thanks alot now when i do it i get no erros but when i play it i get this error
1180: Call to a possibly undefined method on.
how could i fix this
thxs again
Studies show that 92% of teens listen to rap. If you are part of the 8% that listens to real music the add this to your signature.
|
| 01/31/08 15:33 |
Login to rate this user's post! |

Hijaru Ta
Posts: 4
Joined: 07/31/2007
Credibility: 0 pts
|
i'm not sure about this, but can you post your code that you have now?
it may be the wrong action your applying to it, and also post the version of flash you have ^^

GW.IGN: Hijaru Ta CoH.IGN: Hijaru
|
| 01/31/08 15:36 |
Login to rate this user's post! |

CED 14
Posts: 6
Joined: 01/17/2006
Credibility: 0 pts
|
i have Adobe Flash CS3
and the code i put into the action of the button is this
Studies show that 92% of teens listen to rap. If you are part of the 8% that listens to real music the add this to your signature.
|
| 01/31/08 15:39 |
Login to rate this user's post! |

Hijaru Ta
Posts: 4
Joined: 07/31/2007
Credibility: 0 pts
|
ah well, that's the problem i guess. i don't know for sure b/c i just started learning flash (school project)
but the first line should be:
on(Release){
(notice the squiggly thingy is in the first line!, now when you press enter it should leave a blank area before your next line)
getURL("http://www.gameamp.com");
and now the last line.
}
it should look like this:
| QUOTE | on(Release){
getURL("http://www.gameamp.com");
} |

GW.IGN: Hijaru Ta CoH.IGN: Hijaru
|
| 01/31/08 15:44 |
Login to rate this user's post! |

dragoniusx
Posts: 40
Joined: 09/09/2005
Credibility: 0 pts
|
try:
on(release)
{
getURL("http://www.gameamp.com", "GET");
}
edit: could use POST aswell, its the method used to define the way the data is sent.
***THIS POST HAS BEEN EDITED***
|
| 01/31/08 15:50 |
Login to rate this user's post! |

CED 14
Posts: 6
Joined: 01/17/2006
Credibility: 0 pts
|
It still not working now i get htis error i am sorry if i am annoying with this but i cant find a good enough forum for this sort of help!!! they are all inactive
Studies show that 92% of teens listen to rap. If you are part of the 8% that listens to real music the add this to your signature.
|
| 01/31/08 15:54 |
Login to rate this user's post! |

dragoniusx
Posts: 40
Joined: 09/09/2005
Credibility: 0 pts
|
code?
|
| 01/31/08 15:57 |
Login to rate this user's post! |

CED 14
Posts: 6
Joined: 01/17/2006
Credibility: 0 pts
|
the code is copied from the post of Hijaru Ta the one above
| QUOTE |
on(Release){
getURL("http://www.gameamp.com");
} |
Studies show that 92% of teens listen to rap. If you are part of the 8% that listens to real music the add this to your signature.
|
| 01/31/08 15:59 |
Login to rate this user's post! |

Hijaru Ta
Posts: 4
Joined: 07/31/2007
Credibility: 0 pts
|
well i'm going to bed now lol xD
and i think dragonius will take it from here, he/she/it seems to know much more about flash :D

GW.IGN: Hijaru Ta CoH.IGN: Hijaru
|
| 01/31/08 16:00 |
Login to rate this user's post! |

dragoniusx
Posts: 40
Joined: 09/09/2005
Credibility: 0 pts
|
he, and the code seems totally fine... reminds me why i hate actionscr!pt -_-
***THIS POST HAS BEEN EDITED***
|
| 01/31/08 16:01 |
Login to rate this user's post! |

CED 14
Posts: 6
Joined: 01/17/2006
Credibility: 0 pts
|
thxs a lot i have to go to bed to actually
i hope she knows what it is
Studies show that 92% of teens listen to rap. If you are part of the 8% that listens to real music the add this to your signature.
|
| 01/31/08 16:02 |
Login to rate this user's post! |

dragoniusx
Posts: 40
Joined: 09/09/2005
Credibility: 0 pts
|
I'm a guy ffs, lol.. whoa guys.
Let me finish my round of CS:S first...
***THIS POST HAS BEEN EDITED***
|
| 01/31/08 16:02 |
Login to rate this user's post! |

CED 14
Posts: 6
Joined: 01/17/2006
Credibility: 0 pts
|
ahh u know wat °#§¬ it i am going to bed why make it so complicated i had programs
gd night
Studies show that 92% of teens listen to rap. If you are part of the 8% that listens to real music the add this to your signature.
|
| 01/31/08 16:03 |
Login to rate this user's post! |

dragoniusx
Posts: 40
Joined: 09/09/2005
Credibility: 0 pts
|
Think the problem could be the differences in actionscr!pt versions,
| CODE |
on (release) {
getURL(\"http://www.gameamp.com\", \"_self\", \"GET\");
}
|
Made a quick button in Flash 8 (AS2) using the above code and it works just fine.
1) In your movie you changed the drop down menu to action 1.0 & 2.0
2) In your first clip you've got actionscr!pt 3 selected
3) You've got a frame selected rather then a button.
|
| 01/31/08 16:23 |
Login to rate this user's post! |