Zync last won the day on December 26 2012

Zync had the most liked content!


  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by Zync

  1. hey ya mate. Not sure if this is too late. But you can try tunnelling up from your child swf. trace(this.parent) trace(this.parent.parent) trace(this.parent.parent.parent) See what hits. Also try adding Monster Debugger to your child swf and run the companion app to see what it outputs. Might be easier than blind tracing. http://demonsters.nl/nl/projects/monsterdebugger/
  2. Hi All, Just wondering if anyone has any good tips or know of any good apps either online or offline that can help with the layout of webbanners which can them be palmed off to animating with greensock. Flash did a great job with layout and then animating with greensock in a sweet little package but times are changing. Just wondering what people use to layout their banners with now?
  3. Zync

    Banner Layout Workflow

    How do you integrate Greensock with Edge Animate? I like the edge timeline but I just find greensock much more flexible for making changes quickly, like changing the timing of everything is a lifesaver, I'll never go back to timeline just for that feature alone.
  4. Zync

    Banner Layout Workflow

    Hi Joe_midi, No I haven't really heard or tried Google Web Designer much. If it does what you say and just creates css with html and does the css for you that would be amazing. How does it fare with video? Will definitely look into that now.
  5. Zync

    Banner Layout Workflow

    Hi Somnamblst, I've tried Adobe Edge before but the way it selects elements seems really obscure to me. Wish I could use it just for layout and then animate with greensock. Is that possible without including the Edge bloat scripts? I'm actually using Flash still and the Canvas document to make ads at the moment. And while it's working well for layout, just wondering if there was a quicker way out there. It's great for positioning things quickly and then having all your movieclips accessible with exportRoot. Theres a little bit of refactoring, stitching it up with a network like Sizmek but so far so good. I don't think it will work for all ad types though like expandables. And thanks ihatetomatoes, was looking for a more visual way of placing elements though without script though. To me that seems to be the biggest bottleneck in the entire pipeline, manually positioning things with css. Not to mention I have a few non-codey people in the office here who want to tweak layout things to an mind numbing extent.
  6. Zync

    Using movieclip as motion path

    YOu can do this somewhat at dev time, not at runtime as far as I'm aware of though. Save this into a JSFL file, and do a run command from within flash with a shape selected. Your milage may vary but it should get you the points of an object. var vertices = fl.getDocumentDOM().selection[0].vertices; //getting the points and trace them for(var i = 0; i < vertices.length; ++i) { fl.trace(vertices[i].x + "," + vertices[i].y); }
  7. Zync

    Load PDF file

    Hey mate, Directly loading a PDF is not possible in Flash for a multitude of reasons. There are some other options however if you only working with Flash. PDF2SWF: http://www.swftools.org/ Converts a PDF document to SWF pages which you can use in oyur app. Havn't tried this one personally but you might get some milage out of it. If however you are using Adobe AIR, you can load your PDF into a HTML Container and then assuming the system that is running your app has adobe reader installed. It should render the PDF. var request:URLRequest = new URLRequest("mydoc.pdf"); pdf = new HTMLLoader(); pdf.load(request); container.addChild(pdf);
  8. Zync

    LoaderMax delay?

    Dang it, bet me to it while I was typing Jack:P
  9. Zync

    LoaderMax delay?

    Hey mate, Something like this should work for you: public class Main extends MovieClip { private var lm:LoaderMax; public function Main():void { //Setup Loadermax instance and set a onChildComplete event for when a lm = new LoaderMax( { onChildComplete:childDone } ) //Add files to Loadermax Queue lm.append(new SWFLoader("myFile1.swf", { container:this } )); lm.append(new SWFLoader("myFile2.swf", { container:this } )); lm.append(new SWFLoader("myFile3.swf", { container:this } )); lm.append(new SWFLoader("myFile4.swf", { container:this } )); //Of course load the queue lm.load(); } private function childDone(e:LoaderEvent):void { //pause the loading lm.pause(); //Wait for 2 sec then resume loading TweenLite.delayedCall(2, resumeLoad); trace("done") } private function resumeLoad():void { lm.resume() } }
  10. Zync

    Greensock To Animated GIF

    Yeah best pipeline I've found using Adobe Creative Cloud is to render the video from Flash CC (even if it's scripted, it works well now and they updated Flash CS6 to do the same) then bring the video into Adobe Media Encoder CC and select Animated Gif from the presets. Crop, cut and edit and render from there.
  11. Zync

    ImageLoader issue

    Just kidding, we're going to need to see some actual code to help you diagnose the problem not just the error output
  12. Zync

    ImageLoader issue

    Hey ya mate, Theres ya problem: undefined
  13. Zync

    TweenLite tweening Kerning?

    G'day mate, There might be an easier way but this should work for you: import com.greensock.TweenLite; var f:TextFormat = new TextFormat(); //Change the letterspacing TweenLite.to(f,5,{letterSpacing:6, onUpdate:applyKern}) //Dont forget to apply the kern on update function applyKern() { myTextField.setTextFormat(f); } kernIt.zip
  14. Zync

    rotation values and TimelineMax infinite repeat

    Hey ya mate, Don't really need Timeline Max for this. This should work for you too. import com.greensock.TweenLite; moveIt() function moveIt() { TweenLite.to(box1,1,{rotation:"+=15"}) TweenLite.to(box2,1,{rotation:"-=15", delay:1, onComplete:function(){moveIt()}}) } rotate.zip
  15. Don't know where else to put this post (Learning materials forums maybe, if we had one?) But thank you guys! Just checked my email this morning and wanted to say a huge Kudos for listening to the feedback and making the seminar your doing in New York available online for us all. If you got no idea what I'm talking about, today Greensock email : Upcoming events Our very own Carl Schooff will be leading a free 2-hour seminar about GSAP in NYC on January 28. Due to popular demand, he'll also be doing a similar presentation online (for those who simply can't make it to NYC) February 12.
  16. Zync

    Memory leak when using VideoLoader?

    Hey mate, Do you know what phase the memory leak occurs? Like before loading the list of file, after loading, before playing the first video, after playing a couple of videos. Maybe setup a few road blocks and test gradually?
  17. Zync

    Dynamically Assign urlOrRequest

    G'day mate, Unless I'm mistaken, I think LoaderMax is just for including other loaders and then loading them in that way. Instead of using a loaderMax instance, if all your are doing is loading in SWF's you could just use a SWFLoader and change and load the url that way. Something along the lines of this should work: //First create an instance of your SWF Loader var swf:SWFLoader = new SWFLoader("", { container:yourSWFContainer } ); //Then in your case statements set the url swf.url = "pathToYourSWF.swf"; //Then after your case statement load the swf content swf.load();
  18. Zync

    TweenMax from an External Class

    Hey ya mate, Took a look at your files but yeah like I said its more a logic / organisation problem than a tweening one. Here's an updated sample using your assets and a single doucment class. Code is pretty much the same as before too. Maybe that works for ya. mapShowHide.zip
  19. Ah nice one. That's a great workflow for what I need. Cheers. And yeah I do like the option to write javascript direction in the actions window too. But I guess int he end just the familar layout design and tools will make it worthwhile.
  20. G'day all, Now this is not really a Greensock question specifically but it does relate. If anyone has fired up Flash CC in the last day or so you would have seen a new option to create a HTML5 Canvas option. As far as I have tested this is really awesome and the action panel changes over to a javscript editor and you'll free to timeline animate just as you normally would too for complex animations. However I'm trying to in use the TweenMax CDN library in there somewhere but I'm not too sure where to put in and in what syntax. Any JS pro shed a little light on importing external library's with the lastest Flash CC HTML5 Canvas update? Cheers, -Z
  21. Zync

    TweenMax from an External Class

    Hey mate, Attached is a sample. Not quite sure why you need 2 classes but heres a sample using a document class. Basically break down all the major functionality into little pieces and then go from there. Hopefully it does what I think you want it to do. Toggling a larger map and a mini map based on clicks. package { import com.greensock.*; import com.greensock.easing.*; import com.greensock.TweenMax; import flash.display.MovieClip; import flash.display.Sprite; import flash.events.Event; import flash.events.MouseEvent; public class Main extends MovieClip { public var miniMap:Sprite; public var bigMap:Sprite; public function Main() { addEventListener(Event.ADDED_TO_STAGE, onAdd); } private function onAdd(e:Event):void { removeEventListener(Event.ADDED_TO_STAGE, onAdd); // miniMap.addEventListener(MouseEvent.CLICK, miniMapCLick); bigMap.addEventListener(MouseEvent.CLICK, bigMapClick); // //Initalize but use 0 time to set it immediately hideBigMap(0); showMiniMap(0); } private function miniMapCLick(e:MouseEvent):void { //When the minimap is clicked hideMiniMap() showBigMap(); } private function bigMapClick(e:MouseEvent):void { //When the big map is clicked showMiniMap(); hideBigMap(); } //Break it down into small function that you can call upon logically and easily private function hideBigMap(time:Number = 0.5) { TweenMax.to(bigMap, time, { y: -100, alpha:0 } ); } private function showBigMap(time:Number = 0.5) { TweenMax.to(bigMap, time, { y: 50, alpha:1 } ); } private function hideMiniMap(time:Number = 0.5) { TweenMax.to(miniMap, time, { y: -100, alpha:0 } ); } private function showMiniMap(time:Number = 0.5) { TweenMax.to(miniMap, time, { y: -10, alpha:1 } ); } } } mapProb.zip
  22. Hey ya Carl, Ah cheers for that video mate, hadn't seen that one yet. Well I got it to work but it seems a little hacky. Would prefer to import the full TweenMax Library from the CDN but I just copied and pasted the full JS code for TweenMax in frame one and then Animated like just you usually would. Works perfectly! One little cavet is that oyu have to target objects on the stage explictly starting with this however. I don't think this is a Greensock issue though I think its just a scoping thing with JS. TweenMax.to(this.circ,1,{x:400, yoyo:true, repeat:-1});
  23. Zync

    Add vars to ImageLoader

    G'day mate, You can add and access custom user properties using the following method: public function Main() { var il:ImageLoader = new ImageLoader("myImage.png",new ImageLoaderVars() .name("myImage") .container(stage) .onComplete(loadedImage) .prop("lalala", "myValue")); //Use the prop method of imageloader vars to add a property. name , value il.load() } private function loadedImage(e:LoaderEvent):void { var vars:Object = ImageLoader(e.currentTarget).vars; //access your custom variable name now trace(vars.lalala); } Or if you prefer a more inline approach instead of the ImageLoaderVars: public function Main() { //Or if you prefer inline var il:ImageLoader = new ImageLoader("myImage.png", { name:"myImage", container:stage, onComplete:loadedImage, lalala: "myValue2"} ); il.load() } private function loadedImage(e:LoaderEvent):void { var vars:Object = ImageLoader(e.currentTarget).vars; //access your custom variable name now trace(vars.lalala); //traces myValue2 }
  24. Hey guys. Sorry files are here. Dunno where they went on server move. Hope that helps. http://zyncinteractive.com.au/tutorials/LoaderMaxGalleryTutAssets.zip And the final Sources files for the completed project: http://zyncinteractive.com.au/tutorials/LoaderMaxGalleryFINALSource.zip
  25. What does File.userDirectory trace out? And does it have a .url property too? What does that send out.