Jump to content
GreenSock

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

a-ok

Members
  • Posts

    15
  • Joined

  • Last visited

a-ok's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Sorry I've been extra stupid (and I forgot all about this thread). I was getting the error when testing the site through Flash and not through a browser so it was able to load someSwf.swf but produced an error when loading someSwf.swf?cat=3
  2. Thanks but I need the query string to be sent to the file that's being loaded. It looks like I'll have to make a function that parses the query string and creates an URLrequest out of it.
  3. Let's say I have an url 'products.swf?cat=1' or any other that's beyond my control to change - I just get the URL. How do I load it using SWFloader?
  4. Just another question please - is there a way to find the container that I set for SWFloader? Say from LoaderEvent?
  5. Yup, that was it, I'm the king of stupid. What confused me is that I was able to change alpha, x and other properties yet not to play and stop the video. Anyway, thanks for your help.
  6. Thanks but when I replace var firstchild = itemArray[currentItem].getChildAt(0); firstchild.gotoAndStop(2); with var firstchild = itemArray[currentItem].getChildAt(0); firstchild.rawContent.gotoAndStop(2); I get: TypeError: Error #1009: Cannot access a property or method of a null object reference. trace(firstchild); //returns [object ContentDisplay] trace(firstchild.rawContent); //returns null firstchild.alpha = 0.5; //fades the loaded SWF correctly
  7. var firstchild = itemArray[currentItem].getChildAt(0); firstchild.gotoAndStop(2); reports the following error: ReferenceError: Error #1069: Property gotoAndStop not found on com.greensock.loading.display.ContentDisplay and there is no default value. itemArray[currentItem] was set as a container for a SWFloader but itemArray[currentItem].getChildAt(0) is not a MovieClip but something called ContentDisplay. I want to control whatever's at getChildAt(0) as a MovieClip, how do I do that? I tried casting it as MovieClip() but it doesn't work. Thanks
  8. That's a bit too much to ask as I've never had problems with masks until this motionBlur stuff and I don't have the time to change this (will it work on animated/scripted masks?). GreenSock should make it clear that this feature is broken in some cases (in my case in all cases) especially since they're charging $50 for the motionBlur plugin.
  9. Pretty much all my content is masked so this is useless to me.
  10. Why isn't this working? import com.greensock.*; import com.greensock.plugins.*; TweenPlugin.activate([MotionBlurPlugin]); TweenLite.from(sub31, 0.2, {x:sub31.x+50, motionBlur:true, alpha:0, delay: 0}); TweenLite.from(sub32, 0.2, {x:sub32.x+50, motionBlur:true, alpha:0, delay: 0.1}); I get the following error many times. What could be the problem?
  11. Yes, it's ok now, thanks. I read about methods unload() and dispose() but due to my poor grasp of AS3 basics I didn't know how / where to use it. So much about learning as I go...
  12. Another little thing: I have a menu with several items, each of which loads one swf into a movieclip called container. However, if a menu item is clicked while a swf is loading then both SWFs start loading at the same time (twice as slow). I'm sure this is useful in many cases but I'd like whatever was previously loading to be discarded. How do I do that? function loaderflow(e:Event):void { if (gvc.vars.loadthisnow!=loadswf) { loadswf = gvc.vars.loadthisnow; trace("Now loading "+loadswf); var i:int = this.container.numChildren; while (--i > -1) { this.container.removeChildAt(i);} var loader:SWFLoader = new SWFLoader(loadswf, {container:this.container, onComplete:completeHandler}); loader.load(); function completeHandler(event:LoaderEvent):void { TweenLite.to(container, 1, {alpha: 1}); } } } Thanks
  13. Yeah, I got to the half of the second video where he says "The display of loaded assets is simplified by optionally wrapping content in an class instance that extends a native display object." and then I turned it off because I don't know what that means. Besides I never learned anything by actually listening to someone, it would be nice to have a text tutorial. That worked, thanks. I'm used to AS2 where it's loadMovie(url,target) and when you do it again it replaces the previously loaded movie. LoaderMax adds a child to the container and I didn't know how to remove it. removeChild(), it's so obvious now. Yeah but when I load something else into that same object it gets added in front of it instead of replacing it. Yeah thanks, that's all I needed.
  14. Now I really don't understand what's going on. Your example doesn't work for me - nothing happens. I want to load a swf INTO a movie clip called container that is already on the timeline. In doing so I want to replace whatever other content that movie clip has. When I load something else into that movie clip, I want it to replace the previous content. var loader:SWFLoader = new SWFLoader(loadswf, {estimatedBytes:1024*1024, container:this.container, onComplete:completeHandler}); loader.load(); function completeHandler(event:LoaderEvent):void { container = event.target.rawContent; // this is probably what's wrong but I don't know how to put a loaded clip into an existing clip on the timeline TweenLite.to(container, 1, {alpha: 1}); } This is so annoying, in AS2 I can do everything I want but in AS3 I can't even get my head around the simplest things. Some progress...
  15. I'm new to AS3 and LoaderMax and I don't know how to access the loaded swf. function loadthisnow(loadswf:String):void { var contentloader:LoaderMax = new LoaderMax({name:"contentLoader",onProgress:progressHandler,onComplete:completeHandler,onError:errorHandler}); contentloader.append(new SWFLoader(loadswf,{name:loadswf,estimatedBytes:1024*1024,container:this.container})); contentloader.load(); } And the loaded swf appears but how do I do stuff to it? I can do stuff to this.container but how do I access the loaded swf? I ask this because when I load other content it just appears in front of the previously loaded content so I want to be able to delete the previously loaded swf or move it or something. There is a blurb in the documentation about empty, dispose or something but it's too short and doesn't have examples. Thanks.
×