FORUMS: list search recent posts

Actionscript problem - movie

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Hayley Clare
Actionscript problem - movie
on Jun 16, 2009 at 9:33:36 am

HI, I have these instructions to input a video, but the video plays twice (once with sound then once without), I need it just to play the once. Can anyone help?



File Size: 1024 x 576px
Rendered as a .FLV and then imported to Flash **Read Important first if Old Player**
(File > Import > Import Video)
Embed the FLV to the timeline
Publish (Old Player) (New Player)
(File > Publish Settings)
Format: SWF
Flash: Action Script 3, MP3 Audio Stream 128kbps.
(File > Publish Settings)
Format: SWF
Flash: Action Script 2, MP3 Audio Stream 128kbps.

-------------------------------------------------------------------------------------------------------

**Important** Action Script code needed
** On timeline you need two layers, called ‘content’ and ‘action’
** You will then need to add a movieclip to the content layer called ‘content’
** Import FLV and embed inside the content movie clip
** Insert a new layer inside the move clip (content) called ‘actions’

**Add the action script to the last frame:
_parent.iamDone();
stop();
**Go back to the main timeline and add the action script to the ‘action’ layer:
import mx.transitions.* ;
import mx.transitions.easing.* ;
import mx.events.*;
import mx.utils.Delegate;


var myFade:Tween;
function intro() {
_root._level4.showLogo();
}

function fadeMeOut(target,time){
myFade = new Tween(target, "_alpha", Strong.easeIn, 100, 0, time, true);
myFade.onMotionFinished = Delegate.create(this, onFadeMeOutEnd);
}
function outro() {
_root._level4.hideLogo();
}
function onFadeMeOutEnd(){

finishMeOff();
delete myFade;
}

function iamDone(){
fadeMeOut(this, 3);

}
function iamDone(){
//fadeMeOut(this, 3);
_root.eventBroadcaster.dispatchEvent({type:'__MODULE', target:this, message:'COMPLETE', time:getTimer()});
//dispatchEvent({type:'__MODULE', target:this, message:'COMPLETE', time:getTimer()});
}


function finishMeOff(){
trace("Finishing me Off");

dispatchEvent({type:'__MODULE', target:this, message:'COMPLETE', time:getTimer()});
}



Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]