Jump to content
GreenSock

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

lwmirkk

Members
  • Content Count

    11
  • Joined

  • Last visited

Posts posted by lwmirkk

  1. Hi! :)

     

    If I use multiple times without a variable reference

    //var myVar = TweenLite.delayedCall();
    TweenLite.delayedCall();

     

    If I do not call the .kill(), it will increase my memory?

     

    Or the delayedCall() have an onComplete() Event to be able to kill() after the calling.?

     

    I use the delayedCall() in a loop multiple times with different parameters...

     

    Thanks a lot.

  2. On 3/19/2018 at 12:54 AM, GreenSock said:

    Sorry, @lwmirkk, I don't entirely understand the question and I can't think of any way that dispose() could be forced to free memory more slowly (that seems quite undesirable actually). Also, for the record, the AS3 tools haven't been actively supported for years but you're totally welcome to use them. Cheers!

     

    Hi again @Carl and @GreenSock?

     

    I'm thinking about this question, and this may work:?

     

    var myLoader = Loader();.... //example, but would be any Greensock loader - Loading a huge 4k video
    
    //today
    myLoader.dispose(true); //framerate drops for some frames because the content is huge.
    
    //this would do the dispose "slowly"?
    myLoader.unload();
    setTimeout(function(){
      myLoader.dispose();//"true" - probably it is not necessary
    },5000);

     

    Thanks again and sorry for the old thread.

  3. Hi!

     

    Does anyone use Greensock in Desktop app? (Haxe, React, Flex...)?

     

    I'm using it in AS3 / Adobe Air.

    But because of the non-update of GreenSock in AS3, I'm thinking to port my App to Haxe to use the GreenSock HTML5/JS version, but I don't know how much it will be possible or fluid like the GreenSock AS3 version.

     

    The GreenSock HTML5 seems to be very good in websites, but using it in Desktop App Chromium (Haxe, ReactJS, Flex...). It is so good like AS3 native version?

     

    Thanks a lot. :)

  4. I want to extend the time of the timeline exactly in the current item, but without pausing, just extend the total duration.
    When I use myTimeline.totalDuration ( myTimeline.totalDuration () + 10 ) not works.

     

    The timeline continues with the current duration...

     

    My example code:

    trace(myTimeline.totalDuration()); //20
    
    myTimeline.totalDuration( myTimeline.totalDuration() + 10 );
    
    trace(myTimeline.totalDuration()); //20
    //the final result should be 30... not?

     

  5. On 4/9/2018 at 2:54 PM, Carl said:

    Hi lwmirkk,

     

    Sorry but we really don't have a lot of time to be supporting the old AS3 loader stuff.

    From looking at your code it looks like you are thinking that the mySwfLoader has a TextField on it called "item1".

     

    mySwfLoader.item1.text = 'TEST THIS';    

     

    I'm gussing item1 is in the actual swf you loaded so try targeting the rawContent of the SWFLoader like

     

    mySwfLoader.rawContent.item1.text = 'TEST THIS';    

     

    https://greensock.com/asdocs/com/greensock/loading/core/DisplayObjectLoader.html#rawContent

     

     

     

    Thanks a lot Carl. ?

  6. On 03/08/2016 at 2:15 PM, Carl said:

    Ok. The example you just provided showed how to update variables (or text in a TextField) after the swf is loaded.

    What do you need to do differently?

     

    Hi Carl,  sorry for this old thread, but I am not able to pass arguments to my SWF by loader. Can you help me please?

     

    My AS3 code:

    var mySwfLoader:SWFLoader = new SWFLoader(path, {name:'swf', container:this, width:stage.stageWidth, height:stage.stageHeight, alpha:0, bgColor:"0x000000", autoDispose:false, onComplete:function(event:LoaderEvent){
    	mySwfLoader.item1.text = 'TEST THIS';	
    	timeline.add(TweenLite.fromTo(event.target.content, 2, {alpha:0, ease: Power0.easeOut}, {alpha:1, ease: Power0.easeOut}),"+="+1);
    }
    });

     

    My .FLA and .SWF to test this:

    https://www.dropbox.com/sh/ecihnnzgsvpw8dr/AABQuLXV9aXfWgxeVJb8gZ9Ia?dl=0

     

    The SWF is loaded and showed correctly, but I can not change the text of the SWF.

     

    Thanks a lot Carl. :)

  7. Hi! :-D

     

    I have two videos on the timeline:

    After some seconds of the playing of the second video, it calls dispose() of the first one.

    But the dispose free the memory from the first one so fast that the play of the second video gives a small "bottleneck" in playback at the time of the dispose().

    A "bottleneck" of half a second, but ideally it would not "bottleneck" anything and the playback would be 100% fluid. 

     

    Is there a way of the dispose() free the memory more slowly?

     

    Thanks a lot.

×