Jump to content
Search Community

Gary Horsman

Members
  • Posts

    32
  • Joined

  • Last visited

Everything posted by Gary Horsman

  1. Thanks Zync. While scanning around, I did notice that those instance names were missing. When I added them, the animation worked perfectly. Thanks a million! One more issue, though. I'm not sure if this is a greensock issue. I uploaded the AS2 SWF with all the animations to our company Flash server. Then I open up a container file which is used for discrete downloads of SWFs. Pardon me if you're already familiar with this, but in order to stay under the 40 Kb limit imposed on Flash ads, we use a container SWF to import the animated SWF from our server. That keeps the file small (cheating, I know). The container SWF has all the clickTag scripts and other scripts for debugging and adapting to different Flash ad publishers. When I test the container SWF with the import of the animated SWF, I get that darned Security Sandbox Violation, saying the imported SWF is trying to access the SWF I'm testing locally on my hard drive. I know the solution is to add the System.security.allowDomain() method with the domain written as the argument. Problem is that the container SWF already has this script in place. The error only pops up with the SWF that was animated with the greensock tweening library. I've tested with other SWFs and no error is triggered. Is there an issue with your methodology when it comes to cross-domain access that might prompt this error? Why isn't the script in our container SWF working to avoid this? This is the last leg in my pursuit to forever rid myself of the obligation to work in the timeline just to make my Flash ads work with these publishers' antiquated specs. The container FLA is here if you'd like to look over it. The animated SWF is already posted to our Flash server. http://dl.dropbox.com/u/4289569/janeeyr ... st_con.fla
  2. Spoke a little too soon. I believe I followed the basic structure of the file you sent me, by placing all the elements inside its own MovieClip instance and then linking to an external ActionScript file. But when I test it, it doesn't work. All the elements are just sitting on the stage doing nothing. Maybe I messed up somewhere. Could it have something to do with the classpath? I see from your file that you work in Windows. I'm on a Mac and I'm not sure where the classes are for AS2 on my hard drive. I'm working with Flash CS5. Could that be the issue? Or maybe there's something wrong with the linkage to the external AS file? I'm attaching the FLA and AS files so you can take a look and see what I've done wrong. Thanks! http://dl.dropbox.com/u/4289569/janeeyre_test.zip
  3. Looking over your files really helped me understand the method. I apologize if the post turned out more to be about implementing external AS files in AS2 rather than a real discussion about the Greensock libraries. But it really puts everything into context for me. And its great that you have that button on the other layer where I can plug in the clickTag script for my own purposes. I think this was just what I needed. I appreciate your help. I'm just hoping the web publishers will accept my files when they're done. Much thanks!
  4. Thanks for your quick reply and the sample files. I'm going to look this over in detail and get back to you.
  5. When I first started learning ActionScript, the advice I received was to start in version 3.0. It is indeed a better implementation and far more efficient to work with. But now my understanding of AS2 is fairly rudimentary, since I skipped over it. This is a problem since I need to publish some Flash web banners that are compatible with clickTAG tracking that works in AS2 only. With AS3, it's so easy to centralize all the code in one place to control everything on the stage. But if I need to work with AS2, what would be the most efficient strategy for doing this? As far as I understand, in order to tween an object with scripting, the AS code needs to be added to the object itself, not in an external frame on a separate layer. Do I need to put all my objects on the stage on one layer or each on their own layer and separately control them each with their own ActionScript code scattered around the timeline? Is that the best way? I've looked through these forums, but it's not clear how to best make this a pain-free process. Where does the code go? Where do the objects go? Do I hide them until their time to show up in the sequence of animations? Do I use delays to make each animated sequence play in succession? Should I use onComplete callbacks to make them play one after the other? Any basic explanations for strategies would be appreciated. Thanks!
  6. I had a feeling it was simple. Again, I was over-thinking the problem. I originally tried to organize them separately in timelines. Thanks. Terrific product and a quick response, by the way. Really getting back into Flash with Greensock. Amazing!
  7. I'm sure this is pretty basic, but I've been having a hard time finding an answer for this anywhere. In Flash, if you wanted to create a looping MovieClip, you'd tween an object and create a symbol. For example, a rotating wheel. Now if I wanted to make that wheel move on the stage while rotating, say from left to right in a straight line, I would tween the MovieClip which already has its own looping timeline. So if I apply a TweenLite/Max to a MovieClip object to make it yoyo or repeat a property transformation, what's the syntax to tween it with another TweenLite/Max method? I've fiddled with the overwrite properties and tried to manipulate it with TimelineLite/Max, but nothing works. Here's what I've tried last time. I'm just trying make a figure (bonhomme) rock back and forth and move in a straight line across the stage at the same time. var walkTween:TweenMax = TweenMax.to(bonhomme1, 0.5, {repeat:-1, yoyo:true, rotation:20, ease:Linear.easeNone}); TweenMax.to(walkTween, 5, {x:"200"}); I receive this error: ReferenceError: Error #1069: Property x not found on com.greensock.TweenMax and there is no default value. at com.greensock::TweenLite/init() at com.greensock::TweenMax/init() at com.greensock::TweenMax/renderTime() at com.greensock.core::SimpleTimeline/renderTime() at com.greensock::TweenLite$/updateAll() I'll bet there's a straightforward answer, but no matter where I search, I come up empty. I appreciate any help.
×
×
  • Create New...