Jump to content

Search In
  • More options...
Find results that contain...
Find results in...


  • Posts

  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

alex_s's Achievements



  1. Solved! Typically solved shortly after posting! For those interested I set the BackgroundColor to transparent! /rolleyes
  2. Given the coffeescript: $('.main-hero .bx-wrapper .bx-next').hover( (e) -> TweenLite.to('.main-hero .bx-wrapper .bx-next', 1, {backgroundColor:"#eeeeee", opacity: 0.5, ease:Power3.easeOut}) ,(e) -> TweenLite.to('.main-hero .bx-wrapper .bx-next', 1, {backgroundColor:"#ffffff", opacity: 1, ease:Power3.easeOut})}) I was wondering if its possible to clear the backgroundColor? setting it to white is not ideal for me. Many thanks! Alex
  3. I've had some progress with a hint from this thread (viewtopic.php?f=6&t=4469&p=20961) videoLoader = new VideoLoader(filename, {onComplete:videoComplete, autoPlay:true}); sv.attachNetStream(videoLoader.netStream); videoLoader.load(); I would still like advice on best practice1 Perhaps we could have an entry in the Tips&Tricks section for the proper handling of StageVideo? ps. Any advice on how to control the playing of NetStream manually? videoLoader.playVideo(); doesn't work, and videoLoader.netStream.play(); expects a parameter (the file name) which I haven't found in there yet.
  4. Hi, does anyone have any idea's for best practice to use a VideoLoader with StageVideo? Roughly speaking at the moment I've got: videoLoader = new VideoLoader(filename, {onComplete:videoComplete, autoPlay:false}); videoLoader.load(); but when the loader is complete: private function videoComplete(e:LoaderEvent):void { //ns.play( ); } I'm not sure how to attached the loaded video to the NetStream driving the StageVideo? Many Thanks, Alex
  5. Hi Jack, Roberts technique works fine (thanks Robert), but would it not be possible to add an extra event that would be fired for this situation? Alex
  6. Thanks for the tip off Robert, I'll try your technique and report back. I have used shared objects in the past to make a note that the content is cached and skip the % animation. Jack, take my client mini site: http://www.next.co.uk/babyboutique/ whether you agree flash is a suitable solution for this or not, but the client uses these mini pages a lot. The mini pages act as a hub linking to product sections elsewhere in the site, so after clicking to view a product, if they hit back on the browser having to sit through the % animation (in this case the cubes) is counter to a nice experience. If you would have any pointers for extending the classes etc. I would be happy to work through a clean (ish) solution. Will let you know on the success of my efforts, perhaps Roberts technique will work best. regards, Alex
  7. I have a preloader swf that uses loaderMax to load settings and assets for a main swf (also an asset) If a user clicks a link from the movie and the browser is redirected to a new address (_self) when they click back, the preloader move plays through its sequence again (albeit quickly) Have we got a way to skip the pre-loader completly once the content has been cached? many thanks, Alex
  8. Hi Jack, thanks for the reply. I removed the nesting (a side effect of copying your example), and found the solution! ..I had to upgrade to the latest version due to a flciker at teh start. And these magic words helped me. To be fair it was in the API, but your guidance helped me! ..hope it helps anyone else! THIS ISNT THE ORDER THE METHODS WERE USED, just a dump for anyone looking to copy/paste some commands! ldrVideo = LoaderMax.getLoader("video_intro") as VideoLoader; ldrVideo.content.alpha = 0; ldrVideo.addEventListener(VideoLoader.VIDEO_COMPLETE, ldrVideoComplete); addChildAt(vl.content,1); ldrVideo.pauseVideo(); vl.content.alpha = 1; vl.gotoVideoTime(0, true);
  9. Not having much luck. My project preloader swf looks like so: (shortened onComplete) public function Preloader() { // set visibility //movMain.movBook.visible = false; //we know the XML contains ImageLoader, SWFLoader, DataLoader, and MP3Loader data, so we need to activate those classes once in the swf so that the XMLLoader can recognize them. LoaderMax.activate([imageLoader, SWFLoader, DataLoader, MP3Loader, VideoLoader]); //create an XMLLoader loader = new XMLLoader("settings.xml", {name:"xmlDoc", requireWithRoot:this.root, estimatedBytes:1400}); //Or you could put the XMLLoader into a LoaderMax. Create one first... queue = new LoaderMax({name:"mainQueue", onProgress:progressHandler, onComplete:completeHandler, onError:errorHandler, onInit:initHandler}); //append the XMLLoader and several other loaders queue.append(loader); //begin loading queue.load(); var format:TextFormat = new TextFormat(); format.letterSpacing = 31; function progressHandler(event:LoaderEvent):void { //trace("progress: " + event.target.progress*100); if(event.target.progress*100 < 99){ movCubes.txtProgress.text = String(Math.round(event.target.progress*100)); movCubes.txtProgress.setTextFormat(format); }else if(event.target.progress*100 > 99){ movCubes.txtProgress.text = "99"; movCubes.txtProgress.setTextFormat(format); } } // I shortened this, but it goes through and loads assets into the main swf. function completeHandler(event:LoaderEvent):void { var imageEnter:ContentDisplay = LoaderMax.getContent("img_enter"); var imageTopPanel:ContentDisplay = LoaderMax.getContent("img_top_panel"); var videoIntro:ContentDisplay = LoaderMax.getContent("video_intro"); etc etc } And my settings.xml file like so (again shortened) <?xml version="1.0" encoding="iso-8859-1"?> etc etc at the moment, if I use: addChild(videoIntro); the video plays, but I want more control, like pause at the start, an oncomplete handler etc. I couldn't get the init listener to work as you mentioned. Can you help? thanks, Alex
  10. Thanks for the reply, you've given me a lead, hopefully the breakthrough will help. I'll post my success/failure here.
  11. Hi Mr Greensock\any other helpfull forum user, Like the work you've done with LoaderMax, I'm having a problem with the complete handler on a loaded FLV. I've searched the forum, the solution at: viewtopic.php?f=6&t=3019&p=11437&hilit=video#p11437 doesnt help. I'm loading a settings.xml file that coudl change location, and this loads all the assets for the project. So I cant use the VideoLoader like so var vl:VideoLoader = new VideoLoader("video.flv", {name:"video", container:this, autoPlay:true}); vl.addEventListener(VideoLoader.VIDEO_COMPLETE, test); function test(event:Event):void { trace("DONE"); } ...as its brought in like so: var videoIntro:ContentDisplay = LoaderMax.getContent("video_intro"); how do I handle the video above? access the raw content? many thanks in advance. Alex