Jump to content
GreenSock

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

UbiAssassin

ShockinglyGreen
  • Content Count

    46
  • Joined

  • Last visited

Everything posted by UbiAssassin

  1. @Carl That is exactly the video that I stumbled across and it was an eye opener. The first thing that I thought of was all of the duplicated animation calls in heavy switch case usages to manipulate the 3D models, materials and matching 2D shapes. I was able to just nest it all into 4 RegisterEffect functions like this one: gsap.registerEffect({ name: "FlashPlateTweenEngine", effect: (targets, config) => { let tlFlashPlateTweenControl = gsap.timeline(); tlFlashPlateTweenControl.set(targets, { x: config.x, y: config.y }) .to(targets, .25, { autoAlpha: 1 }) .to(targets,
  2. Hello everyone :) I have been way to busy over the last year to really put much effort into my ongoing website project due to my work. I hopped on since I started my holiday vacation, got the latest Club Greensock files (GSAP 3) and I have to thank you for gsap.effects and the smooth nature of how they can be injected into Timeline structures!!! I had started animation grid of material and 3D model fades, scale and transition animations along with some basic photoShop graphic elements that fade, flicker and transition with the models and their materials a little over a
  3. Oh sweet! Thanks Jack! I figured that it was something simple that I was completely overlooking.
  4. Hello everyone! It has been way to long. I am in the process of re-creating my website from the ground up in in Visual Studio 2017, using Bootstrap. I just purchased the Shockingly Green Membership to really start making my site shine from the beginning. My first issue, and I am sorry if it is a common one, is that a number of my statements are now erroring out at runtime. I really wish the Visual Studio compiler could find these errors during compile and before debugging, but at least we have runtime debugging Specifically, none of my pre-defined Ease var
  5. No problem Carl I am glad to help when I can! I will put together a small project that preloads a model, then loads it into a content page and finally applies textures dynamically. I will probably have some time this weekend to put it together. -Cheers
  6. So I thought about this a bit and I think it would be far more useful if I explained my end of project workflow from 3DsMax to Flash and why I felt the need to use switches in the last bit of my code. So I will start with my end of modeling workflow: 1. Separate the main mesh into layers using the 3DsMax Layer Tool according to my needs. I might want to animate specific parts of the model in my website code or apply unique textures to each different part of the mesh. 2. Go through each mesh layer and make sure that the smoothing groups are set up well and re-build them if they are no
  7. Hello Everyone and Happy New year! I have been fully re-working my website using Greensock (Flash) to leverage the Starling Away3D framework. I have found that many people ask the same questions about how to use the incredible power of the Greensock code to take care of the loading of Starling and Away3D assets: Here are some code examples from the Preloader ClassFile: 1. LoaderMax loader that queues and loads a 3DSMax (Obj) model, myModel, for a second Content Classfile: //======================================================== //*** Variable declarations for Main Loader.**
  8. Hello everyone, I am sorry that this is offtopic and not specific to Greensock, but I get a lot of great help and responses here, so I thought I would try My problem is that I shuffle my array of 16 images and then pick from that array to place an image on a thumbplate. It works perfectly most of the time. Sometimes, however, one of the already loaded images gets removed from the array and therefore removed from its image plate during another shuffle pass. I am loading images on to 6 plates, so the shuffle runs 6 times. Here is my shuffle code: public function shuffleArray(inpu
  9. After some toying I found my answer!!! public function findTheImage(e:MouseEvent):void { trace("Check for ImageA"); var currentScreenImageOnA:DisplayObject = ScreenButtonA.getChildAt(1); trace(currentScreenImageOnA.name); trace(screenImageA); trace(screenImageB); trace(screenImageC); trace(screenImageD); trace(screenImageE); trace(screenImageF); if (currentScreenImageOnA.name == "AssassImageSA") { navigateToURL(new URLRequest("http://levelforge.com/images/WebsiteFlash10/AssassinsCreedIII_A.png")); } if (currentScreenImageOnA.name == "AssassImageSB") {
  10. Cool, thank you for the quick reply. I do have both class files and the test movie that I could send to you if you want to see all of it together? Sadly my explanations of what is going on are probably quite limiting. My main problem is that I don't have the best way to load images onto my thumbPlates. If I try and run that PickFromArray function without the shuffle, it will only load an image onto one instance called to the stage and spit null errors for the other instances called. I am just not as clear on array usage as I should be >.<. I would also rather keep these class files separ
  11. Ok after a bit more work I have everything working except for one thing. I am using this function to try and find the image that was loaded into child level 1 of the thumbnail (Level 0 = backplate, level 1 = randomly loaded thumbnail, level 2 = mouse detection plates). Once found it is compared to all 6 image variables. Itis supposed to be = to one and then fire off the correct link: public function findTheImage(e:MouseEvent):void { trace("Check for ImageA"); var currentScreenImageOnA:DisplayObject = ScreenButtonA.getChildAt(1); trace(currentScreenImageOnA); if (currentScreenImageOn
  12. Thanks a bunch. It was not actually that yours does not do what I am after. I was just already trying the other option, so I finished my test. I am going to try yours next time I dig into it actually since my attempt is a bit on the tweaky half-functional side. Thanks again and I will tell you how it works out
  13. I actually don't have access to the transformAroundCenter code yet, but I am trying something that is showing promise: public function ScreenButtonScript() { // This is the base button image. trace("Load the Base Image"); addChildAt(screenBase, 0); screenBase.centerRegistration = true; screenBase.alpha = 1; // This is the right hitbox on top of the base button image. hitRight.x = 30; hitRight.y = -5; addChildAt(hitRight, 1); hitRight.alpha = 1; // This is the topright hitbox on top of the base button image. hitTopRight.x = 30; hitTopRight.y = -30; addChildAt(hitTopRight, 1); hitTop
  14. Thank you very much! I will poke around with this. I really appreciate your time
  15. Has anyone ever tried to create a button that transform adjusts to the position of the mousecursor as you mouseOver it? I am looking to create the same basic effect as the Dell Stage app buttons: I already have a couple of buttons that react to mouseOver in one direction, but they do not adjust in real-time to the exact cursor position as you move over the button in one direction or the other. Here is my code that does the simple transform in one direction: private function buttonReactOver(e:MouseEvent):void { TweenMax.to(this, .5, {z: -15}); TweenMax.to(this, .5, {rotat
  16. Hello again I have yet another question concerning what sticks around in memory and has to be forcefully cleaned and what gets flushed auto-magically under the hood. I recently stumbled upon the beauty of dispatchEvents trying to find a way to communicate from my NavButton ClassFile to the Main Class file for my website. My basic setup is as follows: NavButton.as Button with definitions and eventlistener watching for someone to click on the button Public Function onButtonClick with a dispatchEvent inside. Main.as EventListener for dispatchEvent from Public Button Funct
  17. Thanks man. You are awesome! One of the class files attached directly to objects in the library of my main flash movie must have been the culprit. I took all of my class files, xml files, and flash source files and moved them into a new folder on my desktop. I then re-downloaded V12 of the greensock files and dumped that into the new folder. Opened up, tested, and re-saved everything, flushed all of the files out of my host site, and re-uploaded. BOOM! All good. I am not sure what I missed, but cleaning house did it hehe.
  18. Thanks for the quick response! I will take a look in there, but the error in the LevelforgeImageBackdrop is I think just one of the functions that cleans the image and then puts another in its place. The very first time that runs it throws that error, and then never again because there is something there. I will look at it anyway. The other one is going to be harder for me to find I think: VerifyError: Error #1053: Illegal override of killProps in com.greensock.plugins.AutoAlphaPlugin. I will do what I can to find it tomorrow. Thanks! I sent my main class file to you in an IM. If y
  19. Hello everyone, I have an incredibly odd problem. I finally moved all of my new website files into the main section of my host domain out of the (WebsiteFlash10) test folder. I made a lot of changes to my class files, but I tested my whole site locally and everything worked without issue. Most of the recent changes were in the conversion of my site from V11 to V12, but that is definitely not the problem. The other thing that I did was add a little XML news section, which is older and not converted to greensock code. The problem I am having though is that when I try to load my website o
  20. Awesome, I was hoping that was the case. Thanks a lot for the quick reply
  21. Hello again I have been looking through and implementing some of the new additions offered in V.12 and I started going through my class files and setting up kill calls for all of the functions after I complete them. The following is an example: private function killAllTitleActions():void { trace("Clean up the Title and Grid Actions"); TweenMax.killTweensOf(loadHomeSymbol); TweenMax.killTweensOf(loadLevelTitle); TweenMax.killTweensOf(loadTitleLineA); TweenMax.killTweensOf(loadTitleLineB); TweenMax.killTweensOf(loadHomeTitle); TweenMax.killTweensOf(buildGridHome); T
  22. Not a problem. Thanks for the reply and fix. I am going through the process of converting what I have done so far for my website from V11 to V12. This issue was popping up in a number of my class files, so it will be nice to solve them all in one shot Love this stuff guys! Thanks for all of the hard work!!
  23. Good afternoon everyone! I have several chunks of code that worked without issue in the V.11 release, but are now spitting an Implicit Coercion of a value of type com.greensock.easing:BounceIn to an unrelated type Function. Here is one of those lines: TweenMax.fromTo(announceTitle, 2, {autoAlpha: 0}, {autoAlpha: 1, ease: RoughEase.create(1, 11, true, Bounce.easeIn, "none", false)}); I assume I just missed one of the changes in the list of things that I need to update concerning eases? I have tried re-arranging this code and even making a var using my desired RoughEa
  24. Excellent! Thanks so much for the reply. I really enjoy knowing how the wheels turn behind things and one of my main reasons and drives for re-building my site from scratch is to have a much more efficient setup.
  25. Hello, I wanted to pick some brains and learn a bit more about cleaning up after myself in my code. I am re-building my website from scratch using AS3 and a lot less timeline driven animations. I really have been loving digging into TweenMax and LoaderMax, but I think that I am still quite uneducated about how to optimize performance and make sure that I am coding in the most efficient manner. My current setup includes a main movie with a main class file. The main class file contains the preloader code and animations that load a number of external swfs, various button and animation sou
×