Jump to content
Search Community

Search the Community

Showing results for tags 'videoloader type object array'.

  • 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. I have ten videos that I want to play, pause,scale up, change volume and unload. I created ten vars representing each video. EXAMPLE: var sterling1:VideoLoader = new VideoLoader(“assets/sterling1.mp4”,{name:”sterling1”, container:this, onProgress:progressHandler, onComplete:completeHandler, autoplay:false}); I have ten MCs representing each video, each one with an ID. EXAMPLE: sterlingButs.sterling1.ID = “sterling1”; I created a function called playVid that I want to use to play the videos. function playVid(event:MouseEvent):void { targetMovie=event.target.ID; trace("targetMovie "+targetMovie); VARIABLE_HERE.load(); choreoButs.gotoAndStop("none"); sterlingButs.gotoAndStop("one"); break; ETC… I also have functions representing Rewind, Forward, scaleUp, and ScaleBack. EXAMPLE: controls.RewBut.addEventListener(MouseEvent.CLICK,RewVidHandler); function RewVidHandler(event:MouseEvent):void { trace("Fwd"); trace(VARIABLE_HERE.videoTime); VARIABLE_HERE.gotoVideoTime(VARIABLE_HERE.videoTime-5); I can’t seem to figure out how to cast the variable I get when clicking the button into the VideoLoader instance name. Sorry if this seems too basic, but I just have a hard time with data types.
×
×
  • Create New...