Jump to content
Search Community

Search the Community

Showing results for tags 'loaderMax Loading'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • GreenSock Forums
    • GSAP
    • Banner Animation
    • Jobs & Freelance
  • Flash / ActionScript Archive
    • GSAP (Flash)
    • Loading (Flash)
    • TransformManager (Flash)

Product Groups

  • Club GreenSock
  • TransformManager
  • Supercharge

Categories

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Personal Website


Twitter


CodePen


Company Website


Location


Interests

Found 1 result

  1. As a result of fixing a bug(large video's delayed loading in chrome) by upgrading to the latest version of GreenSock I have now introduced a second bug where additional flv loads in an xml sheet do not play. If I use the old GreenSock environment they all play with no problems unless of course an flv is large and then i have the original bug back. The current calling script is enclosed and the symptom can be seen at http://www.facebook....121837131257077 by searching for and clicking on video test20 which plays 1 image and then should play 2 consecutive flv's in the player. These are :- http://videocastit.c...df6e5a160/1.flv and the second which does not play. (I have checked the xml which is all working in older version of greensocks.. http://videocastit.c...df6e5a160/2.flv I have tried a 1000 permutations in the enclosed script to fix this bug but to no avail. The script however works with older version of Greensocks. Please can you help. Paul. xml script is http://videocastit.com/images/tmp/2091/17c7047e6784107dc00d504df6e5a160/banner.xml Calling script for Maxloader is as follows.... package fh{ import flash.display.*; import flash.net.URLRequest; import flash.net.URLLoader; import flash.net.navigateToURL; import flash.errors.IOError; import flash.events.IOErrorEvent; import flash.events.*; import flash.utils.*; import flash.events.TimerEvent; import flash.events.FocusEvent; import flash.utils.*; import flash.net.*; import com.greensock.loading.*; import com.greensock.loading.display.*; import com.greensock.*; import com.greensock.events.LoaderEvent; import com.greensock.TweenLite; public class fhvideo extends Sprite { public var video:VideoLoader; //the object which will have the player loaded to //private var loader:Loader; //the loader which will load the player private var src:String; //the video's id private var __width:Number; private var __height:Number; private var startSec:Number; public var loaded:Boolean = false; public var error:Number=0; public var oldvolume:Number = 0; public var volumechanger:Object = new Object; public var cont:MovieClip = new MovieClip(); private var queue:LoaderMax = new LoaderMax({allowMalformedURL:true }); public var ismuted:Boolean; function fhvideo(SRC:String,dwidth:Number, dheight:Number, startat:Number, quality:String) { src=SRC; __width = dwidth; __height = dheight; startSec = startat; //addChild(cont); addChild(cont); if (SRC.length>0) createVideo(); } public function init(SRC:String,dwidth:Number, dheight:Number, startat:Number, quality:String):void { src=SRC; __width = dwidth; __height = dheight; startSec = startat; createVideo(); } private function onPlayerError(event:Event):void { error=-99; } //onInit:function(){ error=18}, private function createVideo():void { video = new VideoLoader(src, {onInit:function(){ error=18}, name:"myVideo", container:cont, width:__width, height:__height, bufferTime:5, noCache:true, scaleMode:"proportionalInside", bgColor:0x000000, autoAdjustBuffer:false, bufferMode:true, estimatedBytes:70000}); //video.unload(); //start loading //video.load(); //queue.prepend(video); queue.append(video); //LoaderMax.prioritize("myVideo"); queue.load(); } public function setStage(__width:Number, __height:Number) { cont.width= __width; cont.height= __height; } public function destroy():void { // DESTROY ALL THE PART OF THE VIDEO try{stop();} catch(error:IOErrorEvent) { } catch(error:TypeError) {} catch(error:Error) {} finally {} try{ var obj = cont.getChildAt(0); cont.removeChild(DisplayObject(obj)); obj=null; queue.remove(video); queue.empty(); video.dispose(); video=null; } catch(error:IOErrorEvent) { } catch(error:TypeError) {} catch(error:Error) {} finally {} } public function getTime():Number { return video.videoTime; } public function getDuration():Number { return video.duration; } public function setPlaybackQuality(quality:String) { } private function onPlayerStateChange(evt:Event) { error=18; } public function getProgress():Number { return getTime()/getDuration(); } public function getBuffer():Number { return queue.bytesLoaded / queue.bytesTotal; } public function play():void { video.playVideo(); } public function pause():void { video.pauseVideo(); } public function stop():void { video.pauseVideo(); } public function gotoAndPlay(time:Number) { video.gotoVideoTime(time,true); //play(); } public function gotoAndStop(time:Number) { video.gotoVideoTime(time,false); pause(); } public function mute() { try{oldvolume = video.volume;} catch(error:IOErrorEvent) { } catch(error:TypeError) {} catch(error:Error) {} finally {} try{video.volume=0;} catch(error:IOErrorEvent) { } catch(error:TypeError) {} catch(error:Error) {} finally {} } public function unMute() { try{video.volume=1;} catch(error:IOErrorEvent) { } catch(error:TypeError) {} catch(error:Error) {} finally {} } public function volume(_vol:Number) { try{video.volume=_vol;} catch(error:IOErrorEvent) { } catch(error:TypeError) {} catch(error:Error) {} finally {} } public function getVolume():Number { var vv=0; try{vv= video.volume;} catch(error:IOErrorEvent) { } catch(error:TypeError) {} catch(error:Error) {} finally {} return vv; } public function state():String { /* case -1: unstarted case 0 : ended case 1 : playing; case 2 : pauses; */ var state=-1; if (video.videoPaused) state=2; if (!video.videoPaused) state=1; if (video.playProgress==1) state=0; return state; } private function onPlayerReady(event:Event):void { //video = loader.content; //sets the player //video.setSize(__width, __height); //sets the display size //mute(); //video.loadVideoById(id,startSec); //loads the video by the id //loaded = true; pause(); } } }
×
×
  • Create New...