PDA

View Full Version : Circle Collisions


Jablonski Leszek
05-08-2001, 05:58 AM
I analysed the CircleCollisions.fla file with the tutorial on actionscript.org website. I wanted to export it as a Flash 5.0 "swf" file but I failed. I do not know which part of the code should be changed so that this animation works in Flash version 5. I suspect it is the part (in frame 2 of the "circle" instance):
If (ymov="")
{....
Flash 5 changed it into:
If (Number(ymove)==Number(""))
{....
... but neither this nor any other modifications work and the programme does not seem to meet the initial condition ymove=="". How to solve this problem?
Thank you.
Leszek

Jesse
05-09-2001, 05:52 AM
This is the first time I've seen Flash 5's code changer engine screw up. Basically FlashJunkie has given a case where if a variable doesn't exist you should do certain actions, but because Flash has automatically put Number() around this non-existant variable, you get an error... This code works:

if (ymov == null) {

Cheers

Jesse

Keywords: Circle Collision Tutorial Flash 5 Publish