actionscript 3 - Dynamic Text Boxes disappearing in AS3 -
i've got small interactive flash animation, there's button allows user gain points clicked, go "shop" when clicked. problem dynamic text box doesn't show value on second frame. actionscript on 1 layer, throughout entire file.
var money = 100; var shopbtn; cash_txt.text = money; stop(); button.addeventlistener(mouseevent.click, moneyget); function moneyget (evt: mouseevent){ money += 50; cash_txt.text = money; } shopbtn.addeventlistener(mouseevent.click, shop); function shop (evt: mouseevent){ cash_txt.text = money; gotoandstop(2); }
i've checked if embedded fonts working, , it's fine. thanks. i'm using professional cc.
Comments
Post a Comment