Quantcast
Channel: Adobe Community : All Content - Adobe Animate CC - General
Viewing all articles
Browse latest Browse all 13519

Flash CC, export video w/AS & sound

$
0
0

Hi, I have 2 frames in the Stage.

 

Frame 1 has a movieclip with an animation inside, it loops.

 

Also, I have this code:

 

import flash.media.Sound;

import flash.media.SoundChannel;

import flash.events.Event;

 

 

var sound:Sound = new Music();

var soundChannel:SoundChannel = sound.play(0,1);

soundChannel.addEventListener(Event.SOUND_COMPLETE, complete);

stop();

function complete(event:Event):void

{

          play();

}

 

Frame 2: just this code:

stop();

 


If I export it as a SWF, it will play my song, show my animation looping and at the end of the song will reach and stop on frame 2.

 

If I try to export this as a Video to upload it to youtube, the video is just 2 seconds long, no sound at all.
If I export it setting a time limit instead of "when final frame is reached"... it captures the animation but no sound at all.

 

Should I use Flash CS6? or am I doing something wrong?


Viewing all articles
Browse latest Browse all 13519

Trending Articles