I have a site designed in dreamweaver. I inserted an swf file into the dreamweaver site to do the following :
The swf allows people donate money through paypal and then return to the main site. I need a step somewhere
so that I can disable buttons after the paypal process has occurred. Kglad has suggested that I direct to a new
swf file when coming back from paypal. This makes sense, however, do I disable the donate button on the new
swf file and if so, how will the actionscript recognise the button instances ?
if swf1 contains btn1 that you want to disable when swf2 is opened by paypal, you can use:
var sendLC:LocalConnection=new LocalConnection();
var receiveLC:LocalConnection=new LocalConnection();
SWF1 contains all 908 buttons. However in AS3 I have used wildcard strings for the button names (rather than listing every button). Therefore I need some way to reference each button individually.
Will b++ work instead of btn1.....?
in swf1, you know exactly which button was clicked (assign a variable) that led the user to paypal. in paypalF(), disable that button (using the assigned variables value).