Need help with Flash CS3 - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Need help with Flash CS3

Hi there,

I'll get straight to the point. I have everything programmed on my first frame. It's a tiny videogame with no interaction.

I have a button on my frame, when pressed, I need to give a bonus to the player. The player spends a certain amount of in-game gold to activate the bonus.

Here's what I've got:

bbonus1.onRelease = function() {
//Player pays
if(gold >> 1000) {
gold = gold - 1000;
doubleExp = 120;

The code doesn't work, AT ALL. Gold does not get deducted and the bonus is not activating.

I'm sure it's something very stupid, but I jsut can't get around it...
Sign In or Register to comment.