Jump to content
GreenSock

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

Hanti

Members
  • Content Count

    6
  • Joined

  • Last visited

Community Reputation

0 Newbie

About Hanti

  • Rank
    Newbie
  1. If you remove the code that queue.unload(), the other swfs are loaded but they are behind the home.swf (loaded via LoaderMax). If you change x of loader_child to 120 you can see them. I wait for your news! Thanks Carl!
  2. Hi Carl and thanks again for your help! I have rewritten the code with SelfLoader but I know you can do better... I would like to ask you a few things: - When I click on a button I unload the queue of LoaderMax, is the right thing to do? - Why the total_bar seems to start loading from the middle of the line? Is there a way to have a more linear animation? - Why I receive "progress: 0" when I click on a button? This is contained in progressHandler() and not in child_progressHandler() This is a files link: http://we.tl/RshuyeKD0F Thanks! package { import flash.display.
  3. Hi Carl, thanks for your help! I'm sorry but maybe I did not understand, I should do it on main.swf or should I create another swf file (for example index.swf) that loads the main.swf and home.swf? I would like to load main.swf and home.swf on a different progress bar from "progress_mc"... This is what I would do: Do you show me an example? Thanks for your time Carl!
  4. Hello! I have a swf "main.swf" with four button that loads four external swf. When I open "main.swf" load the first swf "home.swf" import com.greensock.*; import com.greensock.loading.SWFLoader; import com.greensock.events.LoaderEvent; import flash.events.MouseEvent; var loader:SWFLoader = new SWFLoader("home.swf",{onInit:initHandler, onProgress:progressHandler, onComplete:completeHandler, container:this}); var swf = new Array(home,about,contact,works); for (var i:int=0; i<swf.length; i++) { swf[i].addEventListener(MouseEvent.CLICK, openSwf); } function openSwf(e:MouseEvent): vo
  5. Hi Carl! Thank for your reply! I implement your code with the progress bar, is correct? Or you could do better? I'm a student and I would like to learn to use loaderMax for loading a site section (by external swf). import com.greensock.*; import com.greensock.loading.SWFLoader; import com.greensock.events.LoaderEvent; import flash.events.MouseEvent; var loader:SWFLoader = new SWFLoader("swf1.swf",{onInit:initHandler, onProgress:progressHandler, onComplete:completeHandler, container:this}); var swf = new Array(swf1,swf2); for (var i:int=0; i<swf.length; i++) { swf[i].addEventListener
  6. Hi people! Help me please! I have this package code for a section menù. I have on the stage 4 menù item (name:swf1,swf2,swf3,swf4) and have one progress bar (name:progress_mc). I have in the folder "swf" 4 swf (name:swf1,swf2,swf3,swf4). I start with load swf and then when I click on one of the buttons load the swf corresponding (by the istance name). I would like to implement this code whit LoaderMax for load/unload this external swf and mark the progress bar. But I can not do! someone can help me? Tnx! package { import flash.events.MouseEvent; impor
×