| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: May 2001
Location: Katowice, Poland
Posts: 28
|
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 |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Nov 2000
Location: Australia
Posts: 8,612
|
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
__________________
Cheers Jesse Stratford ActionScript.org Cofounder Email: presented in this way to stop spam-bots: My email is composed of my first name (jesse) followed by my last name (stratford) followed by @ followed by actionscript.org Please don't email or PM me Flash questions, that's what the Forums are for! ![]() Please don't rely on me reading my PMs either. Email me about important stuff. |
|
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Circle Collisions tutorial modification | dodgie | ActionScript 1.0 (and below) | 4 | 06-03-2002 09:10 PM |
| More help with circle collisions, please | skippy | ActionScript 1.0 (and below) | 0 | 02-06-2002 11:35 PM |
| Circle Collisions | Metrov 8 | ActionScript 1.0 (and below) | 2 | 12-18-2000 07:17 PM |