A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: [RESOLVED] external swf controls need help,please

  1. #1
    Senior Member
    Join Date
    May 2016
    Posts
    451

    resolved [RESOLVED] external swf controls need help,please

    hi all

    i am in swishmax 25 frame per sec actionscript 2

    I created a project to control the external video, I made all the buttons like play, previous, and next, but what I could not do was to control the video by using the scroll.

    1- I need code to move the scroll while playing the video

    2- I need to move the video when I move the scroll manually.

    3- I need code to write the current time of the video and the total time




    PHP Code:
    onSelfEvent (load) {
        var 
    my_loader:MovieClipLoader = new MovieClipLoader();
    my_loader.loadClip("myswf.swf"this);
    var 
    mclListener:Object = new Object();
    my_loader.addListener(mclListener);
    my_loader.onLoadComplete = function(target:MovieClip) { 
         
    target.gotoAndPlay (1)
         
    trace(target._totalframes)// total frames of my swf      
       
    target.onEnterFrame = function () {        
    if(
    target._currentframe==target._totalframes){
                   
    target.gotoAndStop(1);                                                           
              } 
           }    
        }    


  2. #2
    Senior Member
    Join Date
    May 2016
    Posts
    451
    solved


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center