Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by jwiley

  1. Thanks Jack. I need to clear both the tweens and objects (captions). The clear() was what I was after. I have a Array that the objects were kept in. I'll cycle through that to remove them before I clear that too. Love this suite. Cheers
  2. I need to remove series of captions I have put on a timeline to replace them with the same captions with a different language pointer. .kill() ? .remove()?? Thanks,Jim
  3. Thanks Carl. I have my video queue completing out of the expected order. Fix it in one spot then it breaks in another. vids[mcV] is a VideoLoader '[object VidTest5]' (Video/captions.flv) Back to the tracing the flow. I am going to have to fix the sequence first.
  4. I am trying to set the beginning and ending time with of the video for use in the TimelineMax TL with the GASP v12 version. CS5 Player 10 (10.3 for use with Director) I put it here because I don't think it makes any difference which version is used. I had played and got the video (a month ago when I last worked on this) to play using frames but the audio was choppy. I believe it was keyframe sync issues. And now my files are external too. Here's a couple of variations of the single line of code that I tried. TL.append(TweenMax.fromTo(vids[mcV], (vids[mcV].duration()), {playProgress:0}, {playProgress:1} )); (gets: TypeError: Error #1006: value is not a function.) TL.append(TweenMax.fromTo(vids[mcV], (vids[mcV].duration()), {time:0}, {time:vids[mcV].duration()})); Don't remember if I need to the VideoLoader.content route or I am just missing it. I will be loading a Text Display MC's, Video, MC, Video, etc. The TL linked to a scrubber will give my template users a chance to add captions - (30 plus languages using strings). The timeswill be displayed by the scrubber. Now Audio, Video and Captions can all be syncronized and handled in one way using TimelineMax. At least this is my plan. Thanks, Jim
  5. Hi All, I have multiple FLV's in the FLA's Library. They are also in MC's in the Library. Can LoaderMax be used to play these FLV's with Audio? I am using TimeLineMax to display text pages between the videos. A slider component with scrub the movie. Using a basic movieclip as a container has Audio issues. Thanks, Jim
  6. Hi, Flash AS3 GS v.11 I am trying to play MC's that contain video in between displays of text only. I have made 3 frame based movies to represent the FLV's embedded into the MC's. I need to play the whole thing backwards and forward. I will have a slide control. Some versions will have TL labels. I am just modeling this to understand the behaviors so I can model the most used versions my non-programmer's who will add captions to the FLA. The movies will be named in sequence in the libray (nice for 'For loop'). The captions and all other text will be Strings from the localization Strings panel. The SWF will have a slider control with time display. I will use addCallback to change text on a MC textfield and change the alpha with a Tweenlite to make it visible or not. The time and framerates do not match. Old flash issue. I need MC to stop on the last frame - not stop early or late so transitions work Using labels is not working as I expect. Do I create TL nested movieclips? Can I mix frame control (nested TL) and time control (main TL)? import com.greensock.*; import com.greensock.easing.*; import flash.display.MovieClip; import fl.controls.Button; import flash.events.Event; import flash.events.MouseEvent; var first_btn:Button;// = new Button; var second_btn:Button;// = new Button; var third_btn:Button;// = new Button; var play_btn:Button;// = new Button; var stop_btn:Button;// = new Button; first_btn.addEventListener(MouseEvent.CLICK, goToHandler); second_btn.addEventListener(MouseEvent.CLICK, goToHandler); third_btn.addEventListener(MouseEvent.CLICK, goToHandler); play_btn.addEventListener(MouseEvent.CLICK, playHandler); stop_btn.addEventListener(MouseEvent.CLICK, stopHandler); var mc:Array = new Array; mc[0]= new MC2 as MovieClip; mc[1]= new MC3 as MovieClip; mc[2]= new MC4 as MovieClip; var timeLine:TimelineMax=new TimelineMax({paused:true,onComplete:done});//paused:true, timeLine.addLabel("first", timeLine.duration); timeLine.addCallback(addMovieFromLibrary,0.5, [(mc[0])]); timeLine.addLabel("second", timeLine.duration); timeLine.addCallback(addMovieFromLibrary,0.5, [(mc[1])]); timeLine.addLabel("third", timeLine.duration); timeLine.addCallback(addMovieFromLibrary,0.5, [(mc[2])]); function done():void{ trace ("done"); } function addMovieFromLibrary(mc:MovieClip){ mc.stop(); mc.x = 16; mc.y = 16; mc.alpha = 0; addChild(mc); timeLine.append(TweenMax.to(mc, 0.5, {alpha:1})); timeLine.addCallback(mcPlay,0,[mc]); timeLine.append(TweenLite.delayedCall((mc.totalFrames/stage.frameRate), removeMovie,[mc]), -0.25); } function removeMovie(mc:MovieClip){ timeLine.append(TweenMax.to(mc, 0.5, {alpha:0}), -0.25); mc.stop(); removeChild(mc); trace("Remove Child Next"); } function mcPlay(mc:MovieClip){ mc.play(); } function goToHandler(e:MouseEvent):void{ trace(e.target.label); timeLine.gotoAndPlay(e.target.label); } function playHandler(e:MouseEvent):void{ trace(e.target.label); timeLine.play(); } function stopHandler(e:MouseEvent):void{ trace(e.target.label); timeLine.stop(); } Test_main_timeLine-gs.zip
  7. Thanks guys, I will look up delayCall for a clue in the structure. Carl love your instruction videos. If I waited 30 min., you would have gotten me started on the road to making this work. Thanks again, Jim
  8. I modified Line 12 to: timeLine.addCallback(addMovieFromLibrary,1, [(mc[0])]); Hi Again, I had to remove the function call parameters from the 'addCallback' 1st param and put it into the 3rd param as a array item. The doc are extremely vague for this one. A couple of posts earlier gave me the clue enough for trial and error testing. I did not try to reverse enginner you code. Do I need to go to v12 ??? What would my code look like for functions with multiple param's? or a string of tweenmax's or even nested TimeleineMax's? I am creating a series of instruction movies. They are in the form of: Title/Intro state, play movie, Instruction page , play movie, another Instruction page, play movie, ... ... , End instruction movie sequence. After this is done, I add slider controls and time display assist in adding time captions to be added/removed. I will even have to make a tutorial and a template for internal use and maybe modify it for an online tutorial too. It will help me with understanding my non/lite programmers that will have to use the template I make from this project. Love this code suite. love the accessories. Thanks, Jim Wiley
  9. Here's what I have seen in the doc's: //call myFunction when the "virtual playhead" travels past the 1.5-second point. myTimeline.addCallback(myFunction, 1.5); //add a tween to the beginning of the timeline, pushing all the other existing tweens back in time myTimeline.prepend(new TweenLite(mc, 1, {tint:0xFF0000})); Here's my code: import com.greensock.*; import com.greensock.easing.*; import flash.display.MovieClip; //MovieClip FLV Videos from Library var mc:Array = new Array; mc[0]= new MC1 as MovieClip; mc[1]= new MC2 as MovieClip; mc[2]= new MC2 as MovieClip; var timeLine:TimelineMax=new TimelineMax({onComplete:done}); timeLine.addLabel("first", timeLine.duration); timeLine.addCallback(addMovieFromLibrary(mc[0]),1); function done():void{ trace ("done"); } function addMovieFromLibrary(mc:MovieClip){ addChild(mc); } I get this output: Error: Cannot tween a null object. at com.greensock::TweenLite() at com.greensock::TimelineMax/addCallback() at Test_main_timeLine_fla::MainTimeline/frame1()