OZONE Asylum
Forums
Multimedia/Animation
ActionScript Gurus
This page's ID:
11225
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
First of all, you want to start writing Flash5 syntax: the comparison operators in Flash 5 are == for equality, and != for inequality ("ne" is Flash 4 for inequality). The older style "getProperty" should be updated too, to dot syntax. And the two "onRelease" statements could be combined into one. >>So then I assume that if you wanted to have more than one draggable box clip you would have to give the gift bag a name and then change the line so that instead of using a ne "" you would use a eq "gifttarget" and change the the GetProperty line accordingly.....? If I understand this correctly, _droptarget returns the path to the thing the dragger was dropped onto. In this case, it would return the path to the bag MC, whatever it was named. If you had multiple boxes dropped onto a common bag (or shopping cart or whatever), and you wanted to keep track of which [b]boxes were dropped[/b] into one bag, you'd need some other solution. You could also take this a step farther. Initialize the start x and y of the box. If it misses the target (ie, if _droptarget returns nothing), the box will return to its starting coordinates. That could be cool! I bought Colin Moock's [b]ActionScript the Definative Guide[/b] - if you are teaching Flash and trying to get a grasp on Flash5 ActionScript, this book is superb. Really. No other word. And - if you have trouble getting to sleep at night - well, three of four pages generally does it for me! :)
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »