when object is remove then it can't create again
hi there problem can't understand why happening
when user send 1 string video class creates object request, if again user send same request can't create object.
see www.fltech.in/tab2
1) click on product,
2) guy stands , ask
3) after youtube video appear <skip that>
4) see form
5) fill form or can leave click on close button,
6) click on same product click last time <<< error here
here video class
///////////////////////////////////
package code {
import flash.display.movieclip;
import code.walktv;
import code.walkcamera;
import code.walklaptop;
import code.walkphone;
public class allvideos extends movieclip{
private var video:movieclip
public function allvideos() {
}
public function playvideo(str:string):void{ <<<this function plays videos
if(str=='tv'){
video=new walktv()
addchild(video)
video.x=502;
video.y=-51;
}else if(str=='phone'){
video=new walkphone()
addchild(video)
video.x=425
video.y=-67
}else if(str=='camera'){
video=new walkcamera()
addchild(video)
video.x=503
video.y=-48
}else if(str=='laptop'){
video=new walklaptop()
addchild(video)
video.x=500
video.y=-84
}
}
public function continuevideo(){
video.play()
}
public function stopvideo():void{
video.stop()
removechild(video)
movieclip(parent).gotoandstop('reset')
}
}
}
rewind video , play it
More discussions in ActionScript 3
adobe
Comments
Post a Comment