Jump to content
GreenSock

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

Sakar

Members
  • Posts

    11
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

Recent Profile Visitors

4,233 profile views

Sakar's Achievements

0

Reputation

  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. I just give my first try to JS gsap & html Jumped from actionscript Animating is nice and fun and work perfect here topic. When I upload to my server, I realise a problem. It first load all images and text and then ...starting the animation. Is there any method to load first and then start the animation? *All scripts are loaded inside head tag Thanks
  3. Hi Carl..!! I don't like my previous reply 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.
  4. It's not worked for me. Also I import import flash.ui.Mouse; import flash.display.MovieClip; import flash.events.*; and still the same.
  5. TweenMax.allTo(cookies, 0, {autoAlpha:1});

  6. Hello.! GreenSock _ _ _ 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? I was testing various properties with no chance Hope there is a solution Thanks Sakar
  7. I didn't defining the container. I don't know how to do that. If it's loaded from xml file, why its not being placed on the stage.? By the way I don't have the time now to experiment more with that. I'll start a new post for any of my new questions You really help me a lot. I appreciate that Thanks Sakar
  8. 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
  9. I didn't get that. What do you mean: "...as long as you know the name or url of the SWFLoader" how can I fire that from the Main swf.? Main.swf = the first loaded swf from xml and had all the buttons inside. Thanks Sakar
  10. 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
  11. 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
×