View Full Version : Actionscript conflict
Jennifer
July 17th, 2002, 01:58 PM
I have successfully recreated several movies from the Actionscript tutorials:
"Random Motion Tutorial" and
"Springs: Elasticity, Physics, and Flash MX"
I have now created a movie that calls these 2 movies so they can play together in an interface. The problem is that they somehow conflict with each other. They are fine when they play on their own. But, when they are both called from one movie to play, they somehow are conflicting with each other even though they are separate movies. It seems as if the some of the clips from one movie are acting like the clips from the other movie. Could it be that the movies both use "this"? If so, is there a work around to keep each movie talking to itself only?
Any ideas? Thanks!
telekinesis
July 17th, 2002, 02:37 PM
I never really thought about that and I'll go and check it out myself but it shouldn't be a problem with using 'this' but it may be having a trouble with identical instances. I'll update later with new info that I find out on the subject and thanks for bringing it up!
Jennifer
July 17th, 2002, 02:43 PM
Thanks Dan. Let me know if you would like to see the code or the .swf. I will post it. Thanks!
telekinesis
July 17th, 2002, 02:49 PM
It would be good to see the bug in effect so you think you could post a link to exactly what you are talking about. I looked at your site...looks very nice and professional, you should post in the 'Site Check' forum so that you can be awarded site of the week! I'm a moderator and I would for sure vote for it. Back to the subject, so when you say that the 2 movies are bugging each other out do you mean movie clips or a .swf movie file? If you want you can email me the .fla and I can do a quick fix on it and email it back:
dan@macromotive.com
pom
July 17th, 2002, 02:51 PM
OK, so 2 things :
1. Supra wrote a bunch of prototypes in his tutorial. I did too, but I had some trouble to make them work. I'm not Supra... It had something to do with the keyword this. indeed. Maybe I didn't correct everything.
2. The random motion tutorial is the most complex fla I have seen, and every attempt to modify or use it has miserably failed so far.
In other words, no idea what the problem is.
An advice tough : try to load into level, there won't be conflicts between variables then (I think).
pom :asian:
pom
July 17th, 2002, 02:54 PM
Originally posted by dan4885
I looked at your site...looks very nice and professional, you should post in the 'Site Check' forum so that you can be awarded site of the week!
I can do a quick fix on it and email it back[/email] First one : totally agree. Nice job.
Second one : I'd like to see that, Dan ! :P
pom :asian:
telekinesis
July 17th, 2002, 03:00 PM
You think I can't script in Flash?
pom
July 17th, 2002, 03:07 PM
Not at all, Dan. It's just that it's some very serious stuff. I don't think it's going to be a 'quick fix', even though you're a very good scripter... I mean I lost hours on that fla, and still couldn't make it do what I wanted it to do :-\ I couldn't make it do anything, actually...
pom :asian:
telekinesis
July 17th, 2002, 03:12 PM
I know :P and by quick fix I meant I was going to load into separate levels, it usually fixes things for me when I use prototypes!
pom
July 17th, 2002, 03:16 PM
We'll see. But it looks like the decent thing to do. :P
pom :asian:
Jennifer
July 17th, 2002, 04:36 PM
Thanks for the compliment on the site!
Here are the files:
This works fine:
http://www.carve.com/test/random.html
This also works fine:
http://www.carve.com/test/buttons.html
But, put them together and things mess up:
http://www.carve.com/test/test.html
Here are the .fla files. Any ideas would be appriciated!
http://www.carve.com/test/test.ZIP
Thank you!!!
telekinesis
July 17th, 2002, 04:54 PM
I'll see what I can do but I am sure I will figure something out and then I will post up an updated .zip file on my domain for you to download!
sbeener
July 17th, 2002, 08:44 PM
they both define a MovieClip prototype named move. you'll have to rename one of them.
there maybe other conflicts, that was just the first one i noticed.
pom
July 18th, 2002, 01:25 AM
Why is your prototype taking over mine and not the contrary :*(
Life is unfair sometimes...
pom :asian:
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.