Recent posts by kahootbird on Kongregate

Subscribe to Recent posts by kahootbird on Kongregate

avatar for kahootbird kahootbird 3 posts
Flag Post

Topic: Game Programming / external swf removeChild not stopping audio

I’ve ran into an issue I’d like a second opinion on. I’m trying to get a cutscene to play for a game intro but when removeChild is called the audio continues.

Basically this code creates a new instance of an swf then stops it at a certain frame
[code]
public function intro(event:Event):void
{
//Reset to begin with in case event called again.
if (timer > 120)
timer = 0;

if (scene_exists == false)
{
scenes0 = new scene1();
scenes0.looping = false;
addChild(cutscenes0);
scene_exists = true;
}

if (timer == 120)
{
scenes0.stop();
SoundMixer.stopAll();
scene_exists = false;
removeChild(cutscenes0);
scenes0 = null;
scenes = 0;
timer = 0;
removeEventListener(Event.ENTER_FRAME, play_intro);
//Do other stuff();
}
timer++;
}
[/code]
I’ve tried .stop with no luck. SoundMixer.stopAll(); stops all sounds but eventually the .swf file loops and the sounds start back. A loader might but one solution but I really need the animation embedded.

Another weird thing is I’ve used code real similar to this for cutscenes before and it works for a different swf with only modifying the frame counter (timer).

 
avatar for kahootbird kahootbird 3 posts
Flag Post

Topic: Game Programming / FlashDevelop Embed Loop

You need to embed inside a .swc file. I’m unsure how to do this inside FlashDevelop, there is probably a way. It can be done via command line with Flex or with later versions of Flash.

 
avatar for kahootbird kahootbird 3 posts
Flag Post

Topic: Collaborations / List of Available Talent

My name is Ronnie, I am over 18.

A game I made, “Panda stole my wallet” can be found in my profile which is the latest example of my best work. My website: www.kahootbird.com Youtube channel: http://www.youtube.com/kahootbird

I recently completed a semester of Advanced Java Programming and am skilled in C and Actionscript

I am primarily a programmer, though also basic artist, and animator. I can also add simple cutscenes to any game. I am available for paid projects or profit-share work (if the collaboration seems reasonable enough that it may go somewhere.)