Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > General > Animation and Effects

Reply
 
Thread Tools Rate Thread Display Modes
Old 05-08-2001, 06:58 AM   #1
Jablonski Leszek
Registered User
 
Join Date: May 2001
Location: Katowice, Poland
Posts: 28
Default

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
Jablonski Leszek is offline   Reply With Quote
Old 05-09-2001, 06:52 AM   #2
Jesse
Administrator
 
Jesse's Avatar
 
Join Date: Nov 2000
Location: Australia
Posts: 8,612
Default

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.
Jesse is online now   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

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


All times are GMT. The time now is 06:58 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.