File: YES YOU ARE.swf-(1.07 MB, 665x574, Loop)
[_] /r/ help inside rtard 01/03/22(Mon)14:28:38 No.3478099
Is there a way to make symbols variable in AS3? I want the user to select one of lets say 4
static images in the first frame and then the image they select would be used in the actual
animation in the following frames. I tried to put all 4 images into the frames of one movie clip
symbol and have the movie clip gotoAndStop on whatever image was selected but I can't seem to
pass the variable established outside the clip to the clip itself.
If none of this makes sense I can try to clarify further and in case it wasn't obvious I have no
idea what I'm doing.
>> [_] Anonymous 01/03/22(Mon)17:10:55 No.3478100
>>3478099
how about you make 4 movie clips named image1 image2 image 3 image 4 and
on their first frame you put stop();
in the main timeline you add listeners and functions to these movie clips
Image1.addEventListener(MouseEvent.CLICK, Image1Function);
function Image1Function(event:MouseEvent) :void
{
Image1.gotoAndPlay(2);
}
this will make the animation play in the Image1 movie clip after you click on the image
>> [_] rtard 01/03/22(Mon)19:28:48 No.3478101
>>3478100
I think I understand the idea here but I'm not quite sure if it would work. To expand on my
example I'd like it to be like a character select screen in the first frame or 2, you'd pick 2
characters and the rest of the frames would have those 2 specific images used in the video. I'm
not sure how to search for what I need to do, I keep coming up with tutorials on how variables
work but none quite address what I'm trying to do
>> [_] Anonymous 01/04/22(Tue)08:43:59 No.3478112
>>3478101
yeah you're gonna need to implement some switches for the character selection and limit it to
choose from only 2 and then add condition ("if") for each character
god helps you if you want to combine them
>> [_] Chainsawman 01/04/22(Tue)21:49:00 No.3478136
>>3478099
Me neither, what about meowy?
>>3478112
>>3478100
Incredibly helpful, thank you...
>IT WAS A DEVIL WITH A CHAINSAW LODGED IN IT'S HEAD!