Jump to content
Search Community

ngrinchenko last won the day on November 25 2012

ngrinchenko had the most liked content!

ngrinchenko

Members
  • Posts

    124
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by ngrinchenko

  1. I am working on a set up where a lot of items animate to the stage from alpha = 0. So I don't work with an empty screen in front of me I need to see all the items in the final stage of animation, i.e. I set alpha=1 when I see them on the stage. Thus I am using TweenMax.from rather than TweenMax.to method. What I am presently animating is an mc comprised from several mc buttons with their own animation. In order to animate that comprised mc what is better to use alpha or autoAlpha? Here is my full line of code: TweenMax.from(comprised_mc, 1.5, {autoAlpha:0, delay:1.5});
  2. Thanks a lot. I can't believe I did not realize it on my own. I appreciate your help and support of your product...
  3. Makes total sense, however strange. Out of my lack of understanding I used the same erroneous wet up in the test file and it worked just fine. Out of curiosity why did it work? The attached file name is "TestForFade-DEL.fla.zip" The name of the attached file with major errors which need to be resolved is "acolyte31D_TEST.fla.zip" On that file now is only one image coming up which needs to be clicked, it brings a user to a troubled labeled section where that blinking occurs. To test again it is better to restart the file.
  4. Hi Carl, Wanted to came back to the suggestion you have made earlier. Unfortunately it is a foreign concept to me. I would like to grasp it and apply to my site. Are there any samples or tutorials on this principle of building the site which you could recommend or send me a link to? I started with my flash practice by typing a google search on how properly to built a flash site, it brought me to a lot of you tube videos. None of them I saw was something like you described. The best way I summarized at that moment was to brake the site into sections and label them (as it makes easier to move things around) and try to dynamically load as much stuff as possible. And of course now I am redoing the site with as much greensock features as possible. Previously I used native flash time line tweening which unfortunately resulted in a horrible performance...
  5. Please take a look at the attached file. I cleared the rest of the file which is not pertaining the described problem. Once the site loads you will see an image collage assembled on the screen. I numbered the images on which I have tried a couple of different things. Image 1: Has this code executing TweenMax.from(CR_btnGrp, 1.5, {autoAlpha:0}); It appears to be blinking on the screen and then executing the command. Image 2: I have tried the following code IS_btnGrp.alpha = 0; TweenMax.from(IS_btnGrp, 1.5, {autoAlpha:0}); However this way the entire IS_btnGrp is disaapearing and never comes back from alpha = 0 Image 3: Has slightly different code (to no effect) where I replaced autoAlpha to alpha IE_btnGrp.alpha = 0; TweenLite.from(IE_btnGrp, 0.5, {alpha:0}); greesock is being loaded in the frame 7 in the "products" section. import com.greensock.*; import com.greensock.easing.*; I made a separate small test file and everything works fine even with one line of code TweenMax.from(CR_btnGrp, 2.5, {autoAlpha:0}); OOps, I was given a message that "You are not permitted to upload this kind of file" while trying to upload a 176K .fla file. What kind of files would you like me to upload so you can take a look?
  6. Oh, wow, thats cool, it works..... but with the same glitch. First the whole CR_btnGrp abruptly appears then dissapears without any transition, and then your cool effect works. Cool effect, but still have the same problem of the CR_btnGrp making an unscheduled appearance....
  7. Thanks for your reply. Unfortunately I tried CR_btnGrp.alpha=0; wit no results {startAt:{alpha:0}} did not seem to work either The MC CR_btnGrp is comprised by uniting a bunch of buttons mcs, shape and static text fields. It still works in the outside testing document, where I copy/pasted the whole instance of CR_btnGrp. What could be wrong while it is in the original document, if I commented out the rest of the code?
  8. I nave a seemingly simple code. I checked on a separate file and it works fine. I can not figure out why it would have a bug in the main more complex flash file. The code is located on a labeled section. On that particular label I commented out the rest of the code leaving only this: stop(); import com.greensock.*; import com.greensock.easing.*; CR_btnGrp.autoAlpha = 0; TweenMax.from(CR_btnGrp, 1.5, {autoAlpha:0}); so this grouped mc called CR_btnGrp would come up at alpha= 100% and then in a split of a second go to alpha= 0% and execute the TweenMax assigned command. What can I do to make it appear at alpha= 0%?
  9. Thanks Carl, Everything works now. You are awesome, what I did was completely illogical. Thanks for willing to spend time to figure out my mistakes.... Best Regards, Nikolai
  10. Hi Carl, Appreciate you are willing to delve into this issue. Tracing revealed that when I try to load a different SWF second time around it is still the first one which is being loaded. I.e first time I load an SWF I have a trace URL of this SWF, when second time I try to load a different SWF with a different URL the first string is still being traced.
  11. I can not figure out a proper coding to remove a loded SWF from the stage. Here is my set up. I have a layout segmented into labeled section. In the section labeled "products" I have a layout consisting of product images acting as buttons which bring a user to another labeled section "prdctsPopUps" In the "prdctsPopUps" section I have placed an instance of LoaderMax placed into an mc container. Placing LoaderMax into an mc container automatically resolved an issue of clearing loaded SWFs from stage when I come back to "products" section. I specified the variable in the "products" section with the following set up: var sourceVar_ProductsPopUps:String; function onClickSumix1PopUp(event:MouseEvent):void { sourceVar_ProductsPopUps="prdcts_popups/sumix1-popup_tl.swf"; gotoAndPlay("prdctsPopUps"); } So each button has its own "....swf" URL and they all open fine and I can come back to "products" section without any issues. However inside the swf (which loads through LoaderMax which is placed into an mc) there are other buttons which bring a user to labeled section "xyz". Which also functions properly. It opens as it is supposed to be and without any previously loaded "...swf" on the stage. At the labeled section "xyz" there is a limited set of buttons repeating from section "products" which has to bring a user back to the same set up in the "prdctsPopUps" labeled section and open a corresponding "...swf" . However only the last opened "...swf" will appear in that section. Effectively the one which was originally opened from the "prdctsPopUps" section and not the one which was supposed to be opened from the "xyz" section. I can not understand why it would work from one labeled section and not from another. I can not figure out on which section which code/function needed to be placed. Here is the set up from a button from the "xyz" section whcih supposed to bring a user to the same "prdctsPopUps" section but to load a different "...swf" var sourceVar_ProductsPopUps_fromXYZ:String; function onClick_floralytePopUp_fromXYZ(event:MouseEvent) :void { sourceVar_ProductsPopUps_fromXYZ="prdcts_popups/floralyte-popup_tl.swf"; gotoAndPlay("prdctsPopUps"); } Here is the code set up for the LoaderMax from the "prdctsPopUps" section: var loaderProductPopUps:SWFLoader = new SWFLoader(sourceVar_ProductsPopUps, { estimatedBytes:5000, container:holderMovieClip, onProgress:progressHandler, onComplete:completeHandler, centerRegistration:true, alpha:1, scaleMode:"none", width:540, height:730, crop:true, autoPlay:false }); function progressHandler(event:LoaderEvent):void{ progressBarPopUp_mc.gradientbarPopUp_mc.scaleX = loaderProductPopUps.progress; } function completeHandler(event:LoaderEvent):void{ var loadedImage:ContentDisplay = event.target.content; TweenMax.to(progressBarPopUp_mc, 1.5, {alpha:0, scaleX:0.25, scaleY:0.25}); } loaderProductPopUps.load(); Is there something which needs to be imported, or specific function needs to be specified in a specific labeled section?
  12. Thanks, Carl. It does get easier. I started with my small steps searching the web and have to say your tutorials on snorkl.tv provided a great help. I find them the most concise and easy to follow. At my level it is crucial that it seems you make sure even a beginner can follow your tutorials. I think it allows for a lot more people to be introduced to flash programming and greensock platforms in particular and grants confidence on keeping at it. As you can see I skipped some fundamentals and have a sporadic knowledge with gaping basic chasms. It seems to me I can do such cool things, I go further, and then get baffled on some basic stuff. Some books I have tried are based on assumption that people come prepared with a certain level of skill and knowledge and then the book would wow with all the awesome code and techniques which is way above my level. So it is discouraging. Since I have a luxury of you looking at my stuff and be familiar with my level I would like to ask you to recommend a book or few as I was not able to find a good one.
  13. Hi Carl, Thanks for the suggesting that there should be a scale somewhere on the container clip. It exactly what it was. Somehow it was a scale set in the transform options. Once everything set to 100% everything looks as it should be. As for unloading the SWF I would like to make sure I implemented your code properly. Somehow I got this idea that the code: if(loaderProductPopUps){ loaderProductPopUps.unload() } Has to be located on the same frame as the LoaderMax which made the unloading immediate so I ended up with an empty screen. Once I put this line of code on other sections to which a user navigate from the section with the LoaderMax, everything works. It does seem a bit cumbersome that the same code has to be implemented repeatedly throughout the site, i.e. on as many sections as to which a user can navigate from the page with the LoaderMax. So just wanted to make sure if I was supposed to implement the "clearing the loaded SWF from the stage" code in the same frame as the LoaderMax? I understand, it is getting convoluted. If I will not be able to resolve it I will start a new thread with just one direct question. As the last follow up I wanted to ask you on the proper implementing of your code only. The code you have provided is: if(loaderProductPopUps){ loaderProductPopUps.unload() } Presently it works as if it unloads the content of "loaderProductsPopUps" right away. Could you please let me know if any specific handle, variable or any other type of command has to be implemented in order for the unloading to take a place only when it is needed, i.e. when I leave the section with the "loaderProductsPopUps"? Here is the entire code located on the frame with the LoaderMax: import com.greensock.*; import com.greensock.loading.*; import com.greensock.events.LoaderEvent; import com.greensock.loading.display.*; progressBarPopUp_mc.gradientbarPopUp_mc.scaleX = 0; var loaderProductPopUps:SWFLoader = new SWFLoader(sourceVar_ProductsPopUps, { estimatedBytes:5000, container:this, onProgress:progressHandler, onComplete:completeHandler, centerRegistration:true, alpha:1, scaleMode:"none", width:540, height:690, crop:true, autoPlay:false }); function progressHandler(event:LoaderEvent):void{ progressBarPopUp_mc.gradientbarPopUp_mc.scaleX = loaderProductPopUps.progress; } function completeHandler(event:LoaderEvent):void{ var loadedImage:ContentDisplay = event.target.content; TweenMax.to(progressBarPopUp_mc, 1.5, {alpha:0, scaleX:0.25, scaleY:0.25}); } loaderProductPopUps.load(); if(loaderProductPopUps){ loaderProductPopUps.unload() }
  14. Hey ya mate, Your suggestion to use the movie clip container just works. Surprisingly (to me) just the fact that I am placing all my loaded SWF into a movie clip container automatically solved the problem of removing the loaded SWF from stage. It just does. But movie clip container gives me another issue, all my SWF's are stretched vertically. I tried a few things which made sense to me but none of them worked and all of the SWFs loaded are still stretched vertically. Additional issue. If I am applying your original code while (holderMovieClip.numChildren > 0) { holderMovieClip.removeChildAt(0); } which I place at the same frame after the LoaderMax so the entire code looks like this: var loaderProductPopUps:SWFLoader = new SWFLoader(sourceVar_ProductsPopUps, //the value of sourceVar_ProductsPopUps allows to load mulitple SWFs from the products page. { estimatedBytes:5000, container:holderMovieClip, onProgress:progressHandler, onComplete:completeHandler, centerRegistration:true, alpha:1, scaleMode:"none", width:540, height:690, crop:true, autoPlay:false }); function progressHandler(event:LoaderEvent):void{ progressBarPopUp_mc.gradientbarPopUp_mc.scaleX = loaderProductPopUps.progress; } function completeHandler(event:LoaderEvent):void{ var loadedImage:ContentDisplay = event.target.content; TweenMax.to(progressBarPopUp_mc, 1.5, {alpha:0, scaleX:0.25, scaleY:0.25}); } loaderProductPopUps.load(); /////////////////////////////////// while (holderMovieClip.numChildren > 0) { holderMovieClip.removeChildAt(0); } It seems to unload the SWFs right away.... so I end up with an empty screen. Do I place the code in the right place? Do I have to create some other handle or variable which executes the code when it is needed? Carl, I was not able to use your code as well. It seems to unload the loaded SWF immediately, so I end up with an empty screen. Here is the code you have provided located at the end of my LoaderMax contractor: var loaderProductPopUps:SWFLoader = new SWFLoader(sourceVar_ProductsPopUps, //the value of sourceVar_ProductsPopUps allows to load mulitple SWFs from the products page. { estimatedBytes:5000, container:holderMovieClip, onProgress:progressHandler, onComplete:completeHandler, centerRegistration:true, alpha:1, scaleMode:"none", width:540, height:690, crop:true, autoPlay:false }); function progressHandler(event:LoaderEvent):void{ progressBarPopUp_mc.gradientbarPopUp_mc.scaleX = loaderProductPopUps.progress; } function completeHandler(event:LoaderEvent):void{ var loadedImage:ContentDisplay = event.target.content; //TweenMax.to(loadedImage, 1.5, {alpha:1, scaleX:1, scaleY:1});//only need this line if corresponding values are changed in SWF loader constructor TweenMax.to(progressBarPopUp_mc, 1.5, {alpha:0, scaleX:0.25, scaleY:0.25}); } loaderProductPopUps.load(); /////////////////////////////////// if(loaderProductPopUps){ loaderProductPopUps.unload() } It is all located on one frame. Do I place the code in the right place? Do I have to create some other handle or variable which executes the code when it is needed?
  15. Ahh, what a satisfaction - it works now! I can not believe I was so close to the solution. I tried a few things and did not realize I had to take quotation marks off the myURL variable. Thanks a lot for your help!
  16. Thanks, I like the streamline idea that I can have one LoaderMax for a bunch of loading SWF's rather then creating individual ones and then having my timeline being broken into additional number of labeled sections where I would place individual LoaderMax instances. I'll settle with the current set up and alter the individual SWF's so things don't fly from the top. Not to overuse your help I would like to ask for a code sample to implement the line: UILoader_ProductsPopUps.source = sourceVar_ProductsPopUps; I can not figure out where to put it and where to replace it in my LoaderMax set up. Here is the complete code for the LoaderMax var loaderProductPopUps:SWFLoader = new SWFLoader("prdcts_popups/sumix1-popup_tl.swf", { estimatedBytes:5000, container:this, onProgress:progressHandler, onComplete:completeHandler, //centerRegistration:true, x:-260, y:-320, //no need for this is if used: centerRegistration:true, alpha:1, scaleMode:"none", //scaleX:0, scaleY:0, vAlign:"top", width:520, height:690,//scales proportionally but I need to cut off the edges crop:true, autoPlay:false }); function progressHandler(event:LoaderEvent):void{ progressBarPopUp_mc.gradientbarPopUp_mc.scaleX = loaderProductPopUps.progress; } function completeHandler(event:LoaderEvent):void{ var loadedImage:ContentDisplay = event.target.content; TweenMax.to(loadedImage, 1.5, {alpha:1, scaleX:1, scaleY:1}); TweenMax.to(progressBarPopUp_mc, 1.5, {alpha:0, scaleX:0.25, scaleY:0.25}); } loaderProductPopUps.load(); How exactly do I replace the current URL line "prdcts_popups/sumix1-popup_tl.swf"?
  17. Not exactly the case. My LoaderMax SWF stays on the stage even if I move to another label, and then another label and so on... I am at the beginning stage of my learning with AS3 and GreenSock, so sometimes obvious things are not obvious to me I implemented the code provided by Zync but it throughs the errors Here is my complete code var loaderProductPopUps:SWFLoader = new SWFLoader("prdcts_popups/sumix1-popup_tl.swf", { estimatedBytes:5000, container:this, onProgress:progressHandler, onComplete:completeHandler, //centerRegistration:true, x:-260, y:-320, //no need for this is if used: centerRegistration:true, alpha:1, scaleMode:"none", //scaleX:0, scaleY:0, vAlign:"top", width:520, height:690,//scales proportionally but I need to cut off the edges crop:true, autoPlay:false }); function progressHandler(event:LoaderEvent):void{ progressBarPopUp_mc.gradientbarPopUp_mc.scaleX = loaderProductPopUps.progress; } function completeHandler(event:LoaderEvent):void{ var loadedImage:ContentDisplay = event.target.content; TweenMax.to(loadedImage, 1.5, {alpha:1, scaleX:1, scaleY:1}); TweenMax.to(progressBarPopUp_mc, 1.5, {alpha:0, scaleX:0.25, scaleY:0.25}); } loaderProductPopUps.load(); What would be a full line to implement the loaderProductPopUps.unload(); line of code. Also does it go on the same frame in the main time line where the LoadeMax instance is placed or into each individual loaded SWF?
  18. Thnx, good to know that I can decipher the right thing...
  19. My Set Up:LoaderMax is the placement for various individual SWFs. Each time it loads a unique URL depending on which button is clicked from the products page. If I navigate from the labeled section with LoaderMax the SWF which was just loaded is still on the page, even-though I navigated to a different labeled section. What would be a code to clean it off the stage?
  20. Great, thanks! Looks like the cropping has worked. One thing I am not sure about. I noticed I can not crop it if I do not specify both height and width. I am trying to load various SWF into the same frame with the LoaderMax. All my loading SWFs share the same width but vary in height. So I figured to specify an extra large height so it will accommodate whatever might come up later on. Not sure if it is a right trick? var loaderProductPopUps:SWFLoader = new SWFLoader("prdcts_popups/sumix1-popup_tl.swf", { estimatedBytes:3000, container:this, onProgress:progressHandler, onComplete:completeHandler, centerRegistration:true, alpha:1, scaleMode:"none", width:520, height:1500,//make it a large # to accommodate various heights of SWFs crop:true, autoPlay:false }); I like that the SWFs will always be positioned in the center if I use the "centerRegistration:true" However there are object which fly to the stage from the top. Looks like I will not be able to crop them since I have specified an extra large height. This way on the shorter SWF objects which move onto stage from the top will be visible, i.e. I can not crop from the top only? I figured out that i can do it if I omit "centerRegistration:true" and use "x:-260, y:-320, " values in combination with "vAlign:"top"" I am not happy with the above solution as I would like the content of LoaderMax (SWFs) to be always positioned in the center of the stage. Here is the question: (My Set Up:LoaderMax is the placement for various individual SWFs. Each time it loads a unique URL depending on which button is clicked from the products page. ) Can I have an SWF with various heights to be always positioned in the middle of the stage and to be always cut off on the top and sides. (sides are working because all of the SWFs have the same widths). Now I understand it will not be possible for heights because there are two conflicting parameters: a set number is being thrown off by a variable. Variable: I want it to be positioned in the center of the stage. Set number: top can not be set to a specific number since the heights of individual SWFs are variables Is there a way around it? --- Targeting parent swf from a loaded swf worked. For some reason it is less by one ".parent" if I use LoaderMax vs. UILoader For my future reference I was not able to figure out where to add ".parent" in your sample code. Here is a sample of my working code: appImgBtns_mc.BubbleOasis_btn.addEventListener(MouseEvent.CLICK, onClick_PlayApplications_fromBubbleOasis); function onClick_PlayApplications_fromBubbleOasis(event:MouseEvent) :void { MovieClip(parent.parent.parent).gotoAndPlay("underConstruction"); } Here is what you have provided and I am not sure where extra ".parent" has to go or be taken away from? Or maybe I inserted it incorrectly into the function of the "onClick_..." appImgBtns_mc.BubbleOasis_btn.addEventListener(MouseEvent.CLICK, onClick_PlayApplications_fromBubbleOasis); function onClick_PlayApplications_fromBubbleOasis(event:MouseEvent) :void { var parentMovie:MovieClip = this.parent.parent.root as MovieClip; parentMovie.gotoAndPlay("underConstruction"); } --- I can not figure out where to insert the line loaderProductPopUps.url = sourceVar_ProductsPopUps Here is my entire code for the LoaderMax, where would it go exactly? var loaderProductPopUps:SWFLoader = new SWFLoader("prdcts_popups/sumix1-popup_tl.swf", { estimatedBytes:5000, container:this, onProgress:progressHandler, onComplete:completeHandler, //centerRegistration:true, x:-260, y:-320, //no need for this is if used: centerRegistration:true, alpha:1, scaleMode:"none", //scaleX:0, scaleY:0, vAlign:"top", width:520, height:690,//scales proportionally but I need to cut off the edges crop:true, autoPlay:false }); I tried a few variations with the line "prdcts_popups/sumix1-popup_tl.swf" but it did not work out for me.
  21. Seems like it comes onto screeen as alpha:1 then goes to alpha:0 and tweens as specified to alpha:1 again I tested the same code in a brand new Flash file created just for testing and it works. I can not figure out what messes it up on my more complex time line? IS_btnGrp.alpha = 0; TweenLite.to(IS_btnGrp, 1.5, {alpha:1}); here is the entire code on that frame: stop(); import com.greensock.*; import com.greensock.easing.*; ////////////////////////// // makes a hand cursor appear over a mc acting as a button IS_btnGrp.buttonMode = true; IS_btnGrp.useHandCursor = true; IS_btnGrp.alpha = 0; TweenLite.to(IS_btnGrp, 1.5, {alpha:.5}); //////////////////////////FloraLyte_btn IS_btnGrp.floraLyte_btn.FloraLyte_ON.alpha = 0; var floraLyte_btn_Tween:TweenLite = TweenLite.to(IS_btnGrp.floraLyte_btn.FloraLyte_ON, .5, {alpha:1, paused:true}); IS_btnGrp.floraLyte_btn.addEventListener(MouseEvent.ROLL_OVER, overHandler_floralytePopUp_fromAppIS); IS_btnGrp.floraLyte_btn.addEventListener(MouseEvent.ROLL_OUT, outHandler_floralytePopUp_fromAppIS); IS_btnGrp.floraLyte_btn.addEventListener(MouseEvent.CLICK, onClick_floralytePopUp_fromAppIS); function onClick_floralytePopUp_fromAppIS(event:MouseEvent) :void { gotoAndPlay("floralytepp"); } function overHandler_floralytePopUp_fromAppIS(e:MouseEvent):void{ floraLyte_btn_Tween.play(); trace("you rolled over me"); } function outHandler_floralytePopUp_fromAppIS(e:MouseEvent):void{ floraLyte_btn_Tween.reverse(); trace("you rolled off me"); } //////////////////////////FloraLytell_btn IS_btnGrp.floralytell_btn.FloraLytell_ON.alpha = 0; var floralytellPopUp_fromAppIS_Tween:TweenLite = TweenLite.to(IS_btnGrp.floralytell_btn.FloraLytell_ON, .5, {alpha:1, paused:true}); IS_btnGrp.floralytell_btn.addEventListener(MouseEvent.ROLL_OVER, overHandler_floralytellPopUp_fromAppIS); IS_btnGrp.floralytell_btn.addEventListener(MouseEvent.ROLL_OUT, outHandler_floralytellPopUp_fromAppIS); function overHandler_floralytellPopUp_fromAppIS(e:MouseEvent):void{ floralytellPopUp_fromAppIS_Tween.play(); trace("you rolled over me"); } function outHandler_floralytellPopUp_fromAppIS(e:MouseEvent):void{ floralytellPopUp_fromAppIS_Tween.reverse(); trace("you rolled off me"); } IS_btnGrp.floralytell_btn.addEventListener(MouseEvent.CLICK, onClick_floralytellPopUp_fromAppIS); function onClick_floralytellPopUp_fromAppIS(event:MouseEvent) :void { gotoAndPlay("floralyte2pp"); }
  22. I based my SWFLoader on Carl's example of the Image Loader with some extra reading from GreenSock help material. Even it my novice level everything works nice and easy. However there are some extra steps I would like to accomplish. So here is "my" code: import com.greensock.*; import com.greensock.loading.*; import com.greensock.events.LoaderEvent; import com.greensock.loading.display.*; //makes sure that none of the barPopUp_mc is showing progressBarPopUp_mc.gradientbarPopUp_mc.scaleX = 0; var loaderProductPopUps:SWFLoader = new SWFLoader("prdcts_popups/sumix1-popup_tl.swf", { estimatedBytes:3000, container:this, onProgress:progressHandler, onComplete:completeHandler, centerRegistration:true, alpha:.5, scaleX:0, scaleY:0, //width:200, height:100,//scales proportionally but I need to cut off the edges autoPlay:false }); function progressHandler(event:LoaderEvent):void{ progressBarPopUp_mc.gradientbarPopUp_mc.scaleX = loaderProductPopUps.progress; } function completeHandler(event:LoaderEvent):void{ var loadedImage:ContentDisplay = event.target.content; TweenMax.to(loadedImage, 1.5, {alpha:1, scaleX:1, scaleY:1}); TweenMax.to(progressBarPopUp_mc, 1.5, {alpha:0, scaleX:0.5, scaleY:0.5}); } loaderProductPopUps.load(); Here is what I would like to accomplish: 1. I have constructed my SWF with some extra images, and graphic shapes which help me to structure the layout and some images are off the stage because I expect my client to change his mind and ask me to add them up, so I just keep them there till the final O.K. (as not to go through all the mc renaming and importing. So, I would like to know if it is possible to crop a visible area in the SWFLoader, making sure that only the intended part of my SWF is shown? 2. I have UILoader and SWFLoader loading the same SWF side by side for my comparison. Same buttons located inside the loaded SWF will work from the UILoader but will not work from SWFLoader. Here is my code for the buttons: appImgBtns_mc.BubbleOasis_btn.addEventListener(MouseEvent.CLICK, onClick_PlayApplications_fromBubbleOasis); function onClick_PlayApplications_fromBubbleOasis(event:MouseEvent) :void { MovieClip(parent.parent.parent.parent).gotoAndPlay("underConstruction"); } This is an error I get when I click on a button from SWFLoader: TypeError: Error #1034: Type Coercion failed: cannot convert flash.display::Stage@473fa191 to flash.display.MovieClip. at sumix1_fla::MainTimeline/onClick_PlayApplications_fromTowerSpectaculaire_SFL1() "sumix1_fla" is the beginning of the name of my loaded SWF file 3. Lastly I set up the UILoader so it take a "var" from all the product buttons. Here is the code from the products page: var sourceVar_ProductsPopUps:String; function onClickSumix1PopUp(event:MouseEvent):void { sourceVar_ProductsPopUps="prdcts_popups/sumix1-popup_tl.swf"; gotoAndPlay("prdctsPopUps"); } Here is the code for the UILoader located on the "prdctsPopUps" label UILoader_ProductsPopUps.source = sourceVar_ProductsPopUps; How do I assign a name to SWFLoader so it can take same var from my products page for all the melee of the product buttons?
  23. Thanks, Carl. Your help and answers are always valuable to me. Even if they don't resolve my issues directly your steering in the right direction provides a lot of help.
  24. This is great, exactly what I need. It would be better for my understanding of what I am implementing if there is a tutorial which guides me on building this image scroll from ground up. Is there such a thing for this LoaderMax based image scroll which you have forwarded to me?
  25. I would like to find out if it is possible to build the horizontal image scroller with LoaderMax vs. UILoader. Please let me know if there is a tutorial on how to build a horizontal image scroller (probably with an xml file) using green sock features
×
×
  • Create New...