Jump to content


  • Posts

  • Joined

  • Last visited

XXNephilim's Achievements



  1. @hddimensions Here are CS4 files - sorry but CS5 didn't let me save it as CS3 Hope this helps!
  2. What can I say Carl... Regardless of my messy mock-up / code you achieved EXACTLY what I am after - so MANY thanks for this!!!!! Love you and your work on Snorkl TV! Keep it up and all the best!
  3. Hi all, Fairly new to AS3 as well as GreenSock tools so I have been struggling with this problem for couple of days now without success. Basically, what I wish to achieve is very simple (in theory!) - I have simple, two seconds long, Tween action assigned to MOUSE DOWN while 'navigation to a different frame' is assigned to MOUSE CLICK via SWF Address. Now, I wish to delay MOUSE CLICK action (navigation to a different frame) for the duration of MOUSE DOWN tween (two seconds)... I was thinking that TweenMax.delayedCall would do the trick - but it is no go (at least the way I did it)... I am attaching quick and simple mock-up of the particular problem with hope someone can help me out Please note: I haven't included com / greensock folder into the zip file so to fire up the project you should add it yourself. Please help if you can and many thanks in advance!
  4. Very good point and sorry for not thinking about this one! I am quite busy right now but I will do my best to re-post the project as lower CS version asap... Not sure if I can save it as CS3 though - CS4 should be no problem however.
  5. Hi Jack - thanks again! "this doesn't quite work as imagined" is exactly as what you explained, quote: "The way it works now, your swfs are added to the stage as soon as they load (each one independently)." I want to preload them all beforehand and only when loading of all SWFs is finished I wish to display them on the stage... So yes, it sounds like your suggestion of adding them manually via addChild() is something I have to play with next! Best of luck to me!
  6. Hi Jack! Sorry about confusion! Also, I know this thread is super long but I thought it is better to have one long thread dealing with newbie questions and issues rather than clogging the forums with god knows how many - this way all advanced users can simply ignore it while all GS newbies can hopefully learn something from it Anyway, ignore my previous post since I managed to solve the issue by using 2nd suggestion from your previous post - so, all is good now - many thanks! By testing my Learning The Basics project this morning I accidentally discovered something odd with my simple preloader bar... Basically, if I test the movie using Simulate Download with very low download speeds, simple preloader bar seams not to be working properly Here is the code I used in the project: // LoaderMax Self + 2 External SWFs var queue:LoaderMax = new LoaderMax({onProgress:progressHandler,onComplete:completeHandler}); queue.append( new SelfLoader(this) ); var main1:SWFLoader = new SWFLoader("testloading1.swf",{name:"main1",container:this,width:1000,height:670,scaleMode:"proportionalOutside",crop:true}); var main2:SWFLoader = new SWFLoader("testloading2.swf",{name:"main2",container:this,width:1000,height:670,scaleMode:"proportionalOutside",crop:true}); queue.append( main1 ); queue.append( main2 ); queue.load(); // Simple Preloader Bar - PROBLEM! function progressHandler(event:LoaderEvent):void { progress_mc.progressBar_mc.scaleX = event.target.progress; trace("progress: " + event.target.progress); } function completeHandler(event:LoaderEvent):void { progress_mc.visible = false; trace(event.target + " complete"); } What I wish to achieve is very simple! - preloader bar should indicate loading of all 3 parts (self + 2 external SWFs) and when loading is finished preloader bar should disappear and all 3 elements (main swf + 2 external ones) would become visible... At the moment, either due to my crap code or bug in Flash simulate download, this doesn't quite work as imagined... so I am wondering what have I done wrong (if anything). I am attaching latest version of the project just in case
  7. Awesome, thanks a lot Jack! LoaderMax.getContent() works perfectly! I just have one minor problem now and it is related to stage buttons... Before, instead of LoaderMax, I used SWFLoader so it was easy to reference stage button action with code like this: addChild(button1); button1.addEventListener(MouseEvent.CLICK, btnClick); function btnClick(event:MouseEvent):void { if (loader.progress == 1) { loader.rawContent.gotoAndStop("frame2"); } } Of course, this doesn't work anymore... Question is what do I need to type instead of 'loader.progress' and 'loader.rawContent' in order to make my button work as before? As reminder, this button should interact with 2nd externally loaded SWF via LoaderMax: queue.append( new SWFLoader("testloading2.swf",{name:"main2",container:this,width:1000,height:670,scaleMode:"proportionalOutside",crop:true}) ); I am sure this is something extremely simple, but I just can't figure out how to 'reference' / address / call externally loaded SWF when loaded via LoaderMax :s Help would be mega appreciated!
  8. Hi Jack! Many many many thanks again for your efforts! I have fixed issue with the simple preloader bar - it is positioning on the stage as well as working perfectly now - no problem there anymore However, I am still lost with LoaderMax queue and attaching preloaded SWFs to the relevant Liquid Areas... :s To avoid the confusion let me repeat what I wish to do once again. Effect I want to achieve, for the time being, is EXACTLY the same as per attached ZIP file in my previous post - meaning positioning and scaling of all elements, including external SWFs should remain identical... Only difference is that I wish to preload 2 external SWFs straight away... So, instead of doing this: var la2:LiquidArea = new LiquidArea(this, 0, 0, 1000, 670); var loader:SWFLoader = new SWFLoader("testloading1.swf", {name:"main1", container:this, width:1000, height:670, scaleMode:"proportionalOutside", crop:true}); loader.load(); la2.attach(loader.content, ScaleMode.PROPORTIONAL_OUTSIDE); var la3:LiquidArea = new LiquidArea(this, 0, 0, 1000, 670); var loader2:SWFLoader = new SWFLoader("testloading2.swf", {name:"main2", container:this, width:1000, height:670, scaleMode:"proportionalInside", crop:true}); loader2.load(); la3.attach(loader2.content, ScaleMode.PROPORTIONAL_INSIDE); Now, I wish to do the same but via LoaderMax and queue.append... So, I have done this: var queue:LoaderMax = new LoaderMax({onProgress:progressHandler, onComplete:completeHandler}); queue.append( new SelfLoader(this) ); queue.append( new SWFLoader("testloading1.swf",{name:"main1",container:this,width:1000,height:670,scaleMode:"proportionalOutside",crop:true}) ); queue.append( new SWFLoader("testloading2.swf",{name:"main2",container:this,width:1000,height:670,scaleMode:"proportionalOutside",crop:true}) ); queue.load(); This appears to be working fine when it comes down to LOADING but issue and question is how do I attach that 2 SWFs to my LAs so they position and scale in exactly the same way as before... I have tried doing this straight after queue.load(): var loader1:SWFLoader = new SWFLoader("testloading1.swf", {name:"main1", container:this, width:1000, height:670, scaleMode:"proportionalOutside", crop:true}); var la2:LiquidArea = new LiquidArea(this, 0, 0, 1000, 670); la2.attach(loader1.content, ScaleMode.PROPORTIONAL_OUTSIDE); But with this, scaling doesn't work anymore... Also why do I need to repeat SWFLoader command / parameters if they are already there under: queue.append( new SWFLoader("testloading1.swf",{name:"main1",container:this,width:1000,height:670,scaleMode:"proportionalOutside",crop:true}) ); I hope this is not too confusing
  9. Hi all! After being busy with couple of projects I am now back to 'learning the GS basics'... This post will include couple of things: - ZIP file with latest 'learning the basics' files - Question on how to solve some loading issues... So lets start with the ZIP file first and list the things it includes so far: - making resizable image background (so it fills your entire browser window) - pinning a movie clip / button to certain part of the stage - loading external resizable SWF with OFF STAGE animation - very basic TweenLite script - attaching listener / command to the pinned button so it interacts with externally loaded SWF - NEW animated side menu that shows / hides on mouse over - NEW button inside the menu that controls timeline of externally loaded SWF - NEW for all Slide Show Pro / Thumb Grid users there is a good news! Using this files you can load your albums / portfolios and have it fully resizable. I haven't included FLA with SSP / TG instances, however, if you open testloading2.fla and replace my image with Slide Show Pro and / or Thumb Grid it will load, work, position and scale perfectly inside your main movie! Hope this ZIP file will help some GreenSock newcomers... Now, lets move to the next step and issue which will deal exclusively with LoaderMax... If you download provided ZIP file you will see that things are working perfectly - no problem there - however, what if we want to control loading as well as appearance order of all the elements!?!?! I presume we will need to use LoaderMax, queue / append and on complete commands - question of course is how do we do this exactly!?!?! To be perfectly clear what I am after, this is what I want to achieve / learn next (in chronological order): 1. adding simple, overall, preloader bar - ideally this one should preload all 3 SWFs - main movie (test.swf) as well as 2 external ones (testloadig1.swf and testloading2.swf) 2. when preloading of all 3 movies is done I would like things to happen in chronological order: a) main movie elements (background and menu) to fade in only when point 'a' above is executed (fade tween finished) I wish for testloading1.swf to kick in c) I also wish to delay appearance of testloading2.swf for couple of seconds as well (basically allowing animation from testloading1.swf to finish first) and if possible make it fade in too Please help and lets make this ZIP file help others! UPDATE: I have made tiny progress with this one but still totally lost... Basically I have figured out that this approach sounds best (correct me if I am wrong): var queue:LoaderMax = new LoaderMax({onProgress:progressHandler, onComplete:completeHandler}); queue.append( new SelfLoader(this) ); queue.append( ...append 1st swf... ); queue.append( ...append 2nd swf... ); queue.load(); Bu how do I attach 2 preloaded external SWFs to my Liquid Areas !?!?! I have also created basic preloader bar, placed it on the stage and used this: function progressHandler(event:LoaderEvent):void { myProgressBar.scaleX = event.target.progress; } But, how do I fix it in the centre of the stage ? (don't forget that this is liquid project!) Uh... UPDATE 2: I have included new version of ZIP file with latest efforts (they are commented out for now until we find the right way how to deal with this issue)
  10. Jack, you are slowly but surely becoming my idol! Thank you so much for your help - things are becoming clearer all the time and as they are my love for Flash and GreenSock is growing exponentially! I honestly thought that I need to make 'blank MCs' if I was to load external SWFs - hence what I did in my files... But now, looking and playing around with your version, I can see that I don't need any MC and that I can load any SWF just by attaching it to X and Y... I must say that initially I was little bit confused with your code - first you "ruined" scaling of my image background - and then you commented out this part: /* if the subloaded swf has content that exceeds the 1000x670 LiquidArea and you want the LiquidArea * to crop it as though it ignores everything outside that 1000x670 area, then you need to set the * LiquidArea.attach() "crop" and "calculateVisible" parameters to true like this: * la.attach(loader.content, ScaleMode.PROPORTIONAL_OUTSIDE, AlignMode.CENTER, AlignMode.CENTER, true, 0, 999999999, 0, 999999999, true); */ Yet in your code I can not see you doing it (at least I can't see "calculateVisable" anywhere unless it is set by default somehow)... !?!?!?!? var la:LiquidArea = new LiquidArea(this, 0, 0, 1000, 670); var loader:SWFLoader = new SWFLoader("testloading1.swf", {name:"main1", container:this, width:1000, height:670, scaleMode:"proportionalOutside", crop:true}); loader.load(); la.attach(loader.content, ScaleMode.PROPORTIONAL_OUTSIDE); In any case - after couple of confusions and head scratches it is all working as intended and not only that but my UNDERSTANDING (which is most important!) of how everything works has gone up quite a bit... I have already successfully implemented 2nd external SWF - this time with SSP (slide show pro) and ThumbGrid - which is, using the same script, scaling and positioning perfectly! All that posts and threads on the net about GreenSock not playing nicely with SSP are obviously rubbish Soon I will post updated learning files with SSP / ThumbGrid and hopefully few other things (and I am sure few more questions on 'how this or that works') Thank you once again Jack - you are the best!
  11. Hi all So here we are with 'learning the basics' files! For someone who is just joining this thread idea behind it is to cover the basics of GS tools including layout, tweening, loading etc... If you are intermediate or advanced user simply ignore it (although help with it all would be appreciated!) if you are beginner, specially if you are beginner coming from AS2 background !!!, you might find it helpful... Currently file includes following basics (including one problem that needs to be solved): - making resizable image background (so it fills your entire browser window) - pinning a movie clip / button to certain part of the stage - loading external resizable SWF with OFF STAGE animation - very basic TweenLite script - attaching listener / command to the pinned button so it interacts with externally loaded SWF Regarding the problem, you will see it straight away when you fire up main SWF called 'test' - basically, it loads external SWF no problem but it doesn't position itself correctly (almost like crop:true command is ignored) - however, it fixes itself as soon as we resize the movie clip. Idea is for animation to start from bottom of the frame and move towards the middle... Few things to note: 1. Since we have moved from initial topic of this thread I will rename it to something appropriate... 2. ZIP file attached does NOT include com.greensock folder(s) since certain parts of it are for 'club members only' - meaning you need to put it in the folder yourself... 3. Supplied FLA files are CS5 4. I am using Mac / Leopard - this should be irrelevant really but hey... 5. Attached file is still far away from being finished 'learning exercise' so expect some updates as we go along 6. Finally, ignore the aesthetics, this is simple LEARNING exercise not a design lesson... All the best and thanks in advance!
  12. Thanks again Jack! Just spent half an hour with this one and while it is almost there it still isn't right. By the way that code is nested inside the blank movie clip - maybe that's why I am having some conflicts!? Meh... I'll go through all of this again over weekend and hopefully figure out what's going on - if not I'll just post my learning exercise with hope of some help. So simple yet so complicated >_<
  13. Jack thanks for your patience and help! Yes, you are right, I never called 'update' nor did I 'wait' for a clip to load before attaching Now I just have to figure out how to do that exactly... In fact, I would LOVE to learn both methods - 'update' and 'wait before attaching'! Here is my code so far that deals with loading external SWF into blank MC (it also features listener for a button on the main stage) import com.greensock.*; import com.greensock.loading.*; import com.greensock.events.LoaderEvent; var child:MovieClip; var loader:SWFLoader = new SWFLoader("testloading3.swf",{name:"main1", container:this, width:1000, height:670, scaleMode:"proportionalOutside", crop:Boolean, x:0, y:0, onComplete:completeHandler}); loader.load(); function completeHandler(event:LoaderEvent):void { child = loader.rawContent; } MovieClip(root).button1.addEventListener(MouseEvent.CLICK, btnClick); function btnClick(event:MouseEvent):void { if (child != null) { child.gotoAndStop("frame2"); } } Now where exactly do I call update command and how!? Also how do I 'wait' for loading to finish before attaching movie clip? I am going through docs with best of my abilities... but hmmm
  14. Jack - MANY thanks! All works perfectly and my understanding of how your tools function is increasing on daily bases! One rather BIZARRE problem however... I'll try to explain it using words but my feeling is that I will need to post my work files for this one... OK, so on my 'main' SWF I am using ONE SINGLE frame with currently 5 layers - top one with the code and remaining 4 below with background image, button, and two empty MCs which are loading external SWFs... Bizarre problems are as follows: 1. If I leave my 'main' SWF as is - with the single frame - my externally loaded SWFs are appearing on the screen ONLY if I resize browser or test movie window inside the Flash. One mega important thing to note here is that performance of externally loaded SWFs is SUPERB in this case!!! No slow downs or any other problem... Only problem, as already said, is that I need literally just to touch the size of the window for missing SWF's to appear... Now... 2. If I add few frames to my 'main' time line - externally loaded SWFs are now appearing on the screen straight away (as I want them to) - HOWEVER - performance of SWFs suffers huge blow... Animation is choppy etc... What on earth is going on... Obviously, I wish that externally loaded SWFs appear on the screen straight away (as per point 2) and to perform without hiccups (as per point 1) - question is how and what am I doing wrong... Let me know if this sounds way too insane and I will post my learning files... Many thanks in advance!
  15. I was (and still am) in almost exactly the same position as you are - I am coming from AS2 background and am super new to GreenSock tools My suggestion is to keep an eye on this thread: viewtopic.php?f=3&t=3641 Not only that I am trying to cover basics of LiquidStage and LiquidArea there but also some Tweening, Loading and Navigation basics too... Soon I will post the full learning exercise I am doing for all the newbies like two of us to have a look at