Forum Home
Press F1
 
Thread ID: 67583 2006-03-31 17:50:00 Problem with Flash... TiJay (6055) Press F1
Post ID Timestamp Content User
442539 2006-03-31 17:50:00 Does anyone here know much about coding flash and ActionScript 2.0? I'm trying to create a webpage using flash, and everything worked, until I started making it idiot proof (the difference between 30 lines of code and 300 lines of code) If anyone here has any idea of flash, this is the code I have set up for button 1 (named ball1)...

_root.timeline_mc.ball1.onRollOver = function() {
if (timeline_mc.move_var == 0) {
if (timeline_mc.ball1_var == 1) {
timeline_mc.gotoAndPlay("_1over1");
}
if (timeline_mc.ball2_var == 1) {
timeline_mc.gotoAndPlay("_2over1");
}
if (timeline_mc.ball3_var == 1) {
timeline_mc.gotoAndPlay("_3over1");
}
if (timeline_mc.ball4_var == 1) {
timeline_mc.gotoAndPlay("_4over1");
}
if (timeline_mc.ball5_var == 1) {
timeline_mc.gotoAndPlay("_5over1");
}
if (timeline_mc.ball6_var == 1) {
timeline_mc.gotoAndPlay("_6over1");
}
if (timeline_mc.ball1_var == 0 &&
timeline_mc.ball2_var == 0 &&
timeline_mc.ball3_var == 0 &&
timeline_mc.ball4_var == 0 &&
timeline_mc.ball5_var == 0 &&
timeline_mc.ball6_var == 0) {
timeline_mc.gotoAndPlay("_over1");
}
}
};
_root.timeline_mc.ball1.onRollOut = function() {
if (timeline_mc.move_var == 0) {
if (timeline_mc.ball1_var == 1) {
timeline_mc.gotoAndPlay("_1out1");
}
if (timeline_mc.ball2_var == 1) {
timeline_mc.gotoAndPlay("_2out1");
}
if (timeline_mc.ball3_var == 1) {
timeline_mc.gotoAndPlay("_3out1");
}
if (timeline_mc.ball4_var == 1) {
timeline_mc.gotoAndPlay("_4out1");
}
if (timeline_mc.ball5_var == 1) {
timeline_mc.gotoAndPlay("_5out1");
}
if (timeline_mc.ball6_var == 1) {
timeline_mc.gotoAndPlay("_6out1");
}
if (timeline_mc.ball1_var == 0 &&
timeline_mc.ball2_var == 0 &&
timeline_mc.ball3_var == 0 &&
timeline_mc.ball4_var == 0 &&
timeline_mc.ball5_var == 0 &&
timeline_mc.ball6_var == 0) {
timeline_mc.gotoAndPlay("_out1");
}
}
};
_root.timeline_mc.ball1.onRelease = function() {
if (timeline_mc.move_var == 0) {
if (timeline_mc.ball1_var == 1) {
timeline_mc.gotoAndStop("_big1");
}
if (timeline_mc.ball2_var == 1) {
timeline_mc.gotoAndPlay("_2re1");
}
if (timeline_mc.ball3_var == 1) {
timeline_mc.gotoAndPlay("_3re1");
}
if (timeline_mc.ball4_var == 1) {
timeline_mc.gotoAndPlay("_4re1");
}
if (timeline_mc.ball5_var == 1) {
timeline_mc.gotoAndPlay("_5re1");
}
if (timeline_mc.ball6_var == 1) {
timeline_mc.gotoAndPlay("_6re1");
}
if (timeline_mc.ball1_var == 0 &&
timeline_mc.ball2_var == 0 &&
timeline_mc.ball3_var == 0 &&
timeline_mc.ball4_var == 0 &&
timeline_mc.ball5_var == 0 &&
timeline_mc.ball6_var == 0) {
timeline_mc.gotoAndPlay("_release1");
}
}
};



now, button's 1-6 are all the same code, I've read over the script time and time again, checked all the labels, and checked the target paths...if anyone can see a problem I have overlooked here, PLEASE let me know...

For my first question on this forum in a long time, I gotta make it a fun one o.0
TiJay (6055)
442540 2006-03-31 19:36:00 I guess I'm alone on this :P TiJay (6055)
442541 2006-03-31 20:37:00 Coding with flash is a specialised area. Posting at 4.50am local time (NZ) and then expecting an answer within two hours is pushing it a little :rolleyes:. If you don't get a bite within 24 hours, then bump your thread as someone with this experience may of missed it first time. :) Jen (38)
442542 2006-03-31 20:41:00 kk :P I've just been stuck on this problem for a while...getting kinda anxious to find a fix :P TiJay (6055)
442543 2006-03-31 20:42:00 I guess I'm alone on this :P
At this time on Saturday morning, yes, most definitely. It's only 7:40am here right now. :lol:
FoxyMX (5)
442544 2006-03-31 20:43:00 Whoa...yea, that hole 'Ocean' thing really screws me up with my times...it's 3PM Friday, here...lol TiJay (6055)
442545 2006-04-01 01:16:00 Whoa...yea, that hole 'Ocean' thing really screws me up with my times...it's 3PM Friday, here...lol

LOL :D

** bump **
stu161204 (123)
442546 2006-04-03 16:22:00 Bump..at what, 3:30AM Y'alls time...maybe i'll get lucky and someone who knows flash would have a years supply of Jolt Cola (that would last a week) and see this... TiJay (6055)
442547 2006-04-03 17:47:00 The universal problem with Flash is... that people use it :p Greg (193)
442548 2006-04-03 20:27:00 The universal problem with Flash is... that people use it :p

Now for my problem...:P
TiJay (6055)
1 2