[ home ] [ site / arch ] [ pony / oat / anon ] [ rp / art ]

/oat/ - Off Topic

The OT board for chatting, /oat/meal, socializing serials, and random topics.
Name
Email
Subject
Comment
File
Flags
Password (For file deletion.)

Site maintenance in progress! Posts made now may be lost.

Ponychan-MLPchan Merger >>>/site/15219

File: 1429642825972.gif (1.34 MB, 250x198, giphy.gif)

TFW You can't find the bug in your code Sersys!CyQeb5KTDM 3267025

import flash.events.MouseEvent;
//Start button mouse in-out effect
stop();
start_btn.addEventListener(MouseEvent.MOUSE_OVER, starthover_fn);
start_btn.addEventListener(MouseEvent.MOUSE_UP, playflash_fn);
function starthover_fn(event:MouseEvent){
start_btn.gotoAndStop(2);
start_btn.removeEventListener(MouseEvent.MOUSE_OVER, starthover_fn);
start_btn.addEventListener(MouseEvent.MOUSE_OUT, starthoverout_fn);
}
function starthoverout_fn(event:MouseEvent){
start_btn.gotoAndStop(1);
start_btn.removeEventListener(MouseEvent.MOUSE_OUT,starthoverout_fn);
start_btn.addEventListener(MouseEvent.MOUSE_OVER, starthover_fn);
}
function playflash_fn(event:MouseEvent){
start_btn.removeEventListener(MouseEvent.MOUSE_UP, playflash_fn);
gotoAndPlay(1,"Scene 1");
}
//skip to action button
skipout_btn.gotoAndStop(15);
skipout_btn.addEventListener(MouseEvent.MOUSE_OVER, expandskip_fn);
var debug2_cnt:Number = new Number (0);//debug

function expandskip_fn(event:MouseEvent){
trace("expand", debug2_cnt);//debug
debug2_cnt=debug2_cnt+1;//debug
skipout_btn.gotoAndPlay(skipout_btn.currentFrame-31);
skipout_btn.test_obj.gotoAndStop(2);
skipout_btn.removeEventListener(MouseEvent.MOUSE_OVER, expandskip_fn);
skipout_btn.addEventListener(MouseEvent.MOUSE_OUT, collapseskip_fn);
skipout_btn.e1_btn.addEventListener(MouseEvent.MOUSE_UP, playfuck1_fn);
skipout_btn.e2_btn.addEventListener(MouseEvent.MOUSE_UP, playfuck2_fn);
}
function collapseskip_fn(event:MouseEvent){
skipout_btn.gotoAndPlay(skipout_btn.currentFrame-31);
skipout_btn.test_obj.gotoAndStop(1);
skipout_btn.removeEventListener(MouseEvent.MOUSE_OUT, collapseskip_fn);
skipout_btn.addEventListener(MouseEvent.MOUSE_OVER, expandskip_fn);
skipout_btn.e1_btn.removeEventListener(MouseEvent.MOUSE_UP, playfuck1_fn);
skipout_btn.e2_btn.removeEventListener(MouseEvent.MOUSE_UP, playfuck2_fn);
}

function playfuck1_fn(event:MouseEvent){
skipout_btn.removeEventListener(MouseEvent.MOUSE_OUT, collapseskip_fn);
skipout_btn.skipin_btn.removeEventListener(MouseEvent.MOUSE_OVER, expandskip_fn);
skipout_btn.e1_btn.removeEventListener(MouseEvent.MOUSE_UP, playfuck1_fn);
skipout_btn.e2_btn.removeEventListener(MouseEvent.MOUSE_UP, playfuck2_fn);
gotoAndPlay(1,"Scene 9");
}

AAAAAAAAAAAAAAARGGGGGGGGGGGGGHHHH feugfjewv0s9t5yrubswe4oizucn0rp3zsuvr5b4oswyutc4onry48zvobtsgfe4rtc

Fuck

3267344

File: 1429648305637.jpg (84.24 KB, 1024x574, Zoe-Trent-image-zoe-trent-3656…)

>>3267025
I don’t know much about flash or coding but from my limited experience in the field, wouldn't you have to define the "function playfuck1_fn" BEFORE you used it? I dunno if it's still like that, but it seems like you've called the function before you defined it.

Sersys!CyQeb5KTDM 3267352

File: 1429648623757.png (1.7 MB, 1100x1250, rainbow dash tea pot head.png)

>>3267344
Thanks but the problem is not there. It's about mouse event detection. The issue rises before the script could get as far as executing the "playfuck1_fn".

I really should give my functions appropriate names.

Sersys!CyQeb5KTDM 3267354

>>3267344
By the way, I just posted this here out of pure rage. I was hoping it would get derailed...

3267361

File: 1429649079142.jpg (11.88 KB, 237x200, 1428691460582.jpg)

>>3267352
My last experience with coding was fucking around on a MUD using C so my experience is incredibly limited.

Am I to assume that when you type something like "gotoAndStop(1)" that stops the current function and goes to that line?

Cause if so, all your gotoAndStop(2); 's are refrencing a notation.

I doubt that's the problem but it's the best I can come up with.

Sersys!CyQeb5KTDM 3267370

File: 1429649434002.jpg (66.65 KB, 786x1017, wheel rainbow dash.jpg)

>>3267361
Uh no, and the pasted code is just a class out of context. In AS3 gotoAndPlay(n) is a reference to the n timeline frame in the GUI. You won't be able to find the bug because you can't see the symbols and child timelines. Sorry I got technical on you.

3267377

File: 1429649757798.png (84.31 KB, 297x295, zoe_5014.png)

>>3267370
Oh. Well, I tried. Macil may be able to help you out. He's a wiz with shit like this.

3267387

File: 1429650104795.jpg (45.21 KB, 570x420, sad_zoe_trent____by_monsterhig…)

>>3267370
Oh, and uh... I'm sorry for all the shit I gave you before. I was overly stressed out and took things way more personally than I should have back then. I just want you to know.

Sersys!CyQeb5KTDM 3267395

File: 1429650298325.gif (604.88 KB, 500x500, tumblr_mltnwdRkZU1rhgrubo1_500…)

>>3267387
You don't have anything to apologize for. It was fun.

Sersys!CyQeb5KTDM 3267466

File: 1429651653300.png (178.95 KB, 826x966, party_favor_didn_t_listen__by_…)

>>3267361
>something like "gotoAndStop(1)"
I found the bug.
It was on frame 1.
I put a symbol on the wrong layer.
How did you do that?

3267535

File: 1429652879796.jpg (301.08 KB, 1280x720, S01E08_-_I_am_Zoe.JPG)

>>3267466
Magic!

Sersys!CyQeb5KTDM 3267540

File: 1429652946376.png (236.84 KB, 1024x768, the_derpy_duck_by_fooleraid-d7…)

>>3267535
Seems legit

3267611

File: 1429654515866.jpg (11.88 KB, 237x200, 1428691460582.jpg)

>>3267540
I'm very good at knowing things I don't know. It's kind of a gift.


Delete Post [ ]
[ home ] [ site / arch ] [ pony / oat / anon ] [ rp / art ]