Jump to content
GreenSock

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

lewispeel

Members
  • Posts

    7
  • Joined

  • Last visited

Profile Information

  • Gender
    Male
  • Location
    London, UK

lewispeel's Achievements

0

Reputation

  1. Ah ok, I did give that a try in TweenLite.js but I got an error saying 'to' method didn't exist - looked like the Object returned when calling TweenLite only has a few static properties and 'activate' method. I'll play around with it and see if I can get it working. Thanks, Lewis
  2. Hi, Strange question maybe...but I'm wondering if it's possible to use GSAP without a browser. I know it's geared towards animating CSS properties etc. But I'm developing an application, written in JavaScript, which runs without the need for a browser. I've written my own animation library so far (which does the job) but it would be nice to be able to leverage all the cool features Jack has implemented. So my question is...is it possible or should I forget GSAP and continue to write my own. Thanks
  3. Ahh my bad, I was using the SWC I downloaded from; http://www.greensock.com/loadermax/ (the link in the top right) and assumed it was the latest. I'm now seeing event.data! Thanks Jack
  4. I'm using 1.9 - that's the latest version right?
  5. Hmm, I seem to be getting a null value for event.data. Here's a very basic example... package { import com.greensock.events.LoaderEvent; import com.greensock.loading.DataLoader; import com.greensock.loading.LoaderMax; import com.greensock.loading.data.DataLoaderVars; import flash.display.Sprite; import flash.net.URLRequest; public class Spike extends Sprite { private var requestQueue:LoaderMax; private var loaderVars:DataLoaderVars; public function Spike() { requestQueue = new LoaderMax({ name : "SpikeQueue", maxConnections : 20 }); loaderVars = new DataLoaderVars({ autoDispose : true, format : "text", onHTTPStatus : onHTTPStatusHandler, onComplete : onCompleteHandler, onFail : onFailHandler }); makeRequest(); } private function makeRequest():void { var request:URLRequest = new URLRequest( "http://search.twitter.com/search.json?q=greensock" ); var loader:DataLoader = new DataLoader( request, loaderVars ); requestQueue.append(loader); requestQueue.load(); } private function onHTTPStatusHandler( event : LoaderEvent ):void { var loader:DataLoader = DataLoader( event.currentTarget ); trace( "onHTTPStatusHandler" ); trace( "loader.httpStatus = " + loader.httpStatus ); trace( "event.data = " + event.data ); } private function onCompleteHandler( event : LoaderEvent ):void { trace( "onCompleteHandler" ); } private function onFailHandler( event : LoaderEvent ):void { trace( "onFailHandler" ); } } }
  6. Ah ok, that's fine...I'm using AIR and have no intention of targeting a browser. I was hoping to make use of the 'onHTTPStatus' event handler shortcut in DataLoaderVars and grab them from the LoaderEvent. Thanks for the speedy reply Jack. Keep up the good work!!
  7. Hi, Is there a way to grab the response headers from the LoaderEvent? Thanks, Lewis
×