Jump to content
Search Community

Sakar

Members
  • Posts

    11
  • Joined

  • Last visited

Posts posted by Sakar

  1. Thanks for your help
     
    All GSAP and JS are loaded inside the <head> tag.

    It is hard to show all the code, but I found a solution,
    of making a loader - after that everything works fine.

     

        <script>
            $(window).load(function(){
              $('#home_loader').fadeOut(1000);  
            });
        </script>
    
    #home_loader {
    	position: fixed;
    	width:100%;
    	height: 100%;
    	background-color: #F23A9D;
    	text-align: center;
    	top:0px;
    	left:0px;
    	z-index: 25;
    	display:table;
    	overflow:hidden;
    }
    
    #preloaderImage {
        display: block;
        margin-top: 30%;
    }
    
    <div id="home_loader">
            <span id="preloaderImage"><img src="img/preloader.gif"/></span>
          </div>
    
  2. Hi Carl..!!

    I don't like my previous reply :unsure:

     

    I should very thank you for the code and the idea.

     

    My first code, was a sample of my project.

    Forgot to say that "originaly" MovieClip is inside 2 mcs from the root.

    Also it's on the second scene of the flash movie.

     

    After that, I make a new fla with posted code, and it works!!!!

     

    But not inside my project

     

    Any idea?

     

    Also thanks for the attached files.

  3. Hello.!

    GreenSock

    :mrgreen:_ :geek:_ :ugeek:_ :ph34r:

     

    I have two layers.

    On bottom layer, I have several buttons,

    on top layer, I have a shape inside "test" MovieClip

     

    import com.greensock.*;
    import com.greensock.easing.*;
    
    TweenMax.to(test, 0, {dropShadowFilter:{color:0x000000, alpha:0.6, blurX:5, blurY:5, strength:1, angle:135, distance:4, inner:true, hideObject:true}});
    

     

    This code works very nice

    but I can't have access at the buttons of bottom layer.

     

    How to complete hide the "test"? - stay visible the inner shadow and access bottom layer buttons? :roll:

     

    I was testing various properties with no chance :cry:

    Hope there is a solution :D

     

    Thanks

    Sakar

  4. Reorient the swfs lines inside the xml and cut some unnecessary from it, is a bit better.

     

    Let's say we have an (almost) empty swf, used "as a loader" for xml.

    From the xml, we start loading first, the Main.swf (All buttons - and empty pages there)

    and then, loading all the others swfs to be placed inside the empty pages.

     

    This code didn't work inside the Main.swf

     

    import com.greensock.*;
    import com.greensock.loading.*;
    import com.greensock.events.LoaderEvent;
    import com.greensock.loading.display.*;
    import flash.display.Sprite;
    import flash.display.MovieClip;
    
    LoaderMax.activate([imageLoader, SWFLoader]);
    
    tst.buttonMode = true;
    tst.addEventListener(MouseEvent.CLICK, tstClick);
    
    function tstClick(e:MouseEvent):void{
    LoaderMax.getLoader("mous").load();
    }
    

     

    Something is missing. (maybe the xml path)

     

    Before all of that, I was tried to put the code from your tutorial to the Main.swf

    but I get a lot of errors. That's why I use the empty swf as a loader for everything else.

     

    Now, URLRequests as I said at previous message, are still remain inside the Main.swf

    I'm afraid that I make a double load of my files.

     

    Thanks again.

    Sakar

  5. Thanks for your very fast reply Carl !

     

    This script works and it’s very nice.

    Your tutorial is the best way I can find for now.

    But loading a big website, I see it’s not the right way to load everything at start.

     

    I was start building my website before I meet Greensock LoaderMax.

    When I need to load some swf, I use URLRequest and load swf inside a Movieclip.

    200 Different URLRequests inside 200 different Mcs.

     

    After that I realize that the loading process loads everything on “background” is boring for visitors to wait.

    Every URLRequest loads too slow because all other URLRequests is been loaded at the same time.

     

    So, your way and my way, think is not the perfect choice for my website.

    What do you think?

     

    Is there any way to force start and complete loading the particular swf only when request?

    I don’t know what to do about it. And have no LoaderMax skills

     

    All I know is ,all that 200 swf files needs a better download process.

    Total size is 30MB and its too much heavy, loading all, at first page.

    I feel so bad about that.

     

    Hope to find a better solution.

     

    Thanks

    Sakar

  6. Hello GreenSock!

     

    Congrats for your Amazing job.

    I’m really a first timer with AS3, Greensock and have no skills with programming.

     

    I just made a huge personal flash website and I was stacked with the LoaderMax and XMLLoader.

    Never made it work. (Need a lot of studying)

     

    But this tutorial helps me like a charm: (thanks to Carl)

    http://www.snorkl.tv...-the-xmlloader/

     

     

    From the XML file, I load with succeed, the Main swf plus 200 swf files.

    Main swf loaded at x:0 y:0 and

    all other swf files at x:3000 and y:3000

    Just far away from the stage. Everything load and work ok, but

    Loading 200 files on the stage makes fps to 2-5/sec

     

    How can I remove all loaded swf from the stage, except from the Main swf ???

     

    I use the same actionscript and xml from Carl's tutorial.!

     

    Thanks

    Sakar

×
×
  • Create New...