Jump to content
Search Community

pol

Members
  • Posts

    26
  • Joined

  • Last visited

Everything posted by pol

  1. Then me as well... baffled. If I see that behavior again, I'll pay close attention and get back to you. Thanks for all your help and responsive attention. Have a good holiday.
  2. On the greensock home/js page (http://www.greensock.com/gsap-js/) there is the "Download JS" button on the upper right. I used that in the same browser before I opened the site, and that's when I saw the behavior for which I shared the screenshot. I don't know if the two are linked, but that's all I was sharing. (I may have used the download GSAP button in the upper left as well?) Hope that clarifies!
  3. Thanks Jack and Carl. I restarted firefox, ran it again and also found no errors. It appears whatever was happening was an artifact, possibly from using the Greensock downloader (Does that use Flash)? Anyway, like you, I was dumfounded seeing actionscript errors on a javascript runtime. I thought I was going crazy! Thanks again and happy Thanksgiving, Pol
  4. I'm getting an actionscript error on the console but i'm doing an HTML5 simple javascript tween.to. screenshot of error attached. see all files in action here-> http://polklein.com/gs
  5. Got it working! Thanks for updating the CSS plugin, I really appreciate it. One note and one more question: Question: How do I change the animation step size (meaning the frame rate so to speak, or the interval at which the animation is updated), so I can lower the processing burden on older and less efficient browsers such as IE? (also if you happen to know for Jquery, that would also be a bonus) Note: I did need the browser-specific CSS for IE and older other browsers (wouldn't work without)
  6. You're amazing, thank you so much! I'll address all of those and re-download and get back to you with the results.
  7. Hi, First - thanks so much for making this javascript framework! I've been trying to get an animation going in IE7/8 that I got to work on all other browsers using your framework, but it doesn't function properly in those browsers. You can see it in action here: http://neu14.com/transitions/print/index2.html I'm also attaching my files -> see index2.html (that one uses greensock). Thanks for any thoughts! Pol PS: I'm unclear if I need the CSS plugin for rotation or opacity or not since they both can be numeric? (I used it, but not sure if it was needed) animation.zip
  8. One more thing - What imports are required for this? I'm getting an error when I use e:LoaderEvent (can't convert type to LoaderEvent)?
  9. Thank you! I wasn't able to determine that from the documentation... Much appreciated, Pol
  10. Hi, I can't seem to find in the docs how to write the syntax for a VideoLoader.VIDEO_COMPLETE event. The events listed in the docs don't specify this event (only the constant itself) and when I run the following code I get an error that it can't convert LoaderEvent to VideoLoader (when the function videoComplete() is called): import com.greensock.loading.*; import com.greensock.events.*; var video:VideoLoader; stop(); function loadVideoAndPause():void { video = new VideoLoader("video/pol.flv",{autoPlay:false,volume:0}); video.addEventListener(VideoLoader.VIDEO_COMPLETE,videoComplete,false,0,true); video.load(); addChild(video.content); } function videoComplete(e:VideoLoader):void { video.gotoVideoTime(0,false,true); dispatchEvent(new Event("complete")); } Thanks for any help!
  11. Thank you Greensock! This is super helpful and a great explanation. Thank you for taking the time to be so thorough in your response. I'm excited to try and get this code working. If I have any code issues, I may post again on this thread with my code for a bit more help. In appreciation, Pol
  12. Hi! I was able to re-generate the same problem (after unload(), starts loading again(?) and breaks). I've packaged up the simple test-FLA and related swfs for you to look at....? NOTE: I've commented out the offending line // que.unload(); so you can see it working without. It also works fine with que.dispose(); but not unload()? The problem is that my sample file (with 3 swfs) is greater than 1MB. Is there another way I can get it to you? And can I do so without posting it for everyone (as there are some proprietary SWFs in there)? Thanks a bunch, Pol
  13. Hi I have a simple question. I want to load sets of SWFs that go together so I can control the priority in sets, as follows (I'm showing 2 sets, but there will actually be more): set 1 (prioritized): SWF-A (prioritized), SWF-B set 2: SWF-C (prioritized), SWF-D I know how to create sets 1 and 2 in code. But I don't know how to then create a next-level (higher level) queue so that I can prioritize one set over another set dynamically? Does that make sense? Any pointers on how to code this? Here is my best guess, but I'm concerned if this code below is adding the same loaders to 2 queues or is doing what I intend, or even if it is coded correctly? var que1:LoaderMax = new LoaderMax({name:"Que1",onComplete:que1Complete,onError:que1Error}); que1.append(new SWFLoader("swfA.swf",{...})); que1.append(new SWFLoader("swfB.swf",{...})); que1.prioritize("swfA",true); var que2:LoaderMax = new LoaderMax({name:"Que2",onComplete:que2Complete,onError:que2Error}); que2.append(new SWFLoader("swfC.swf",{...})); que2.append(new SWFLoader("swfD.swf",{...})); que2.prioritize("swfC",true); var mainQue:LoaderMax = new LoaderMax({name:"MainQue",onComplete:mainQueComplete,onError:mainQueError}); mainQue.append(que1); (?) mainQue.append(que2); (?) mainQue.prioritize("que1",true); (?) mainQue.load (?)
  14. Oh good, you found this code. It's good to hear that it worked perfectly for you with your mc's. I'll be getting back to this portion of the project tonight and tomorrow and will take a second look. If I don't find the problem in my own code, I'll try to re-create it as you say in a simple FLA (which I already created the other day to begin testing that module). So I'll keep you informed of my progress. I'm pretty sure the issue is on my end as well... unless I created some very unusual context (even so, probably on my end). I originally asked because I didn't know if that's what unload was supposed to do and I just didn't understand the paradigm (or maybe I was using it incorrectly)? Thanks so much. I truly appreciate your focus and assistance! Pol
  15. Oh! Thank you... that clarifies a lot. Now I understand the difference between dispose and unload. I really appreciate that. My target audience is computers (as I don't have a phone app version yet). So it will be laptops and desktops with a minimum of 1G RAM. My core target audience will have higher end hardware. Any thoughts on whether a few MBs loaded will be inconsequential rather than loading and unloading? Thanks, Pol
  16. Thank you. I'll post an example if I can re-create the behavior. I should be back to that part of the project tomorrow. In the mean-time. I have a very basic question that will help me a lot: 1. What is the advantage of loading and unloading a SWF each time it is used versus just keeping it in memory after the first load? I have SWFs that are around 1MB in size and they are used on an intermittent basis. Is that 1MB an issue for memory usage? What kind of memory usage ranges should I be weary of before I more aggressively unload SWFs that I loaded rather than leaving them in memory? 2. Could you clear up which of the methods totally removes each of the following: (unload, dispose(true), etc) a. Removes the loader completely and frees the memory affiliated with it -- but not the SWF (or item) loaded? b. Removes the loader completely and frees the memory affiliated with BOTH the loader and the SWF (or item) loaded? - How would I code (a) and how would I code (? Thank you so much. Your assistance is making a big difference for me, Pol
  17. Thank you. This helps a lot. Two questions: 1. What is the advantage of re-using a loader? (unload vs dispose) - ie how much resources are taken up re-instating a new loader? 2. When I used unload on a MaxLoader loading 3 SWFs, it oddly began loading the same 3 SWFs all over again? Is that what it's supposed to do, and if so, what would clarify why for me to better understand the paradigm? Thanks so much, Pol
  18. Hi - Anyone know of a nifty way to preLoad the browser Cache? I have 3 SWfs which I will load and unload into movieclips as needed (for good memory management). But, I'd love to preload the browser cache (not my main movie) with all 3 so that when I do load them, they load quickly. Does that make sense? Thanks, Pol
  19. Thanks. Actually the only line that is giving me the issue is: que.unload(); Everything else works like a charm (all the loading). Interestingly, when I replace que.unload with que.dispose, it also works perfectly. I'll copy the errors and the latest code again below for the unload scenario if that helps? What I notice on the unload is that it seems to start loading again immediately and that's when the error happens? Not sure why? (see below).. Thank you! Print Loading: 9% Print Loading: 18% Print Loading: 27% Print Loading: 36% Print Loading: 45% Print Loading: 54% Print Loading: 63% Print Loading: 72% Print Loading: 81% Print Loading: 90% Print Loading: 99% Print Loading: 99% Digital Loading: 9% Digital Loading: 18% Digital Loading: 27% Digital Loading: 36% Digital Loading: 45% Digital Loading: 54% Digital Loading: 63% Digital Loading: 72% Digital Loading: 80% Digital Loading: 100% swfIllusionsDigital is complete! Print Loading: 100% swfIllusionsPrint is complete! Contact Loading: 9% Contact Loading: 18% Contact Loading: 27% Contact Loading: 36% Contact Loading: 45% Contact Loading: 54% Contact Loading: 63% Contact Loading: 72% Contact Loading: 81% Contact Loading: 84% Contact Loading: 100% swfIllusionsContact is complete! unloading que Contact Loading: 0% TypeError: Error #1009: Cannot access a property or method of a null object reference. at MethodInfo-1309() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at com.greensock.loading.core::LoaderCore/_dump() at com.greensock.loading.core::LoaderItem/_dump() at com.greensock.loading.core::DisplayObjectLoader/_dump() at com.greensock.loading::SWFLoader/_dump() at com.greensock.loading.core::LoaderCore/unload() at com.greensock.loading::LoaderMax/_dump() at com.greensock.loading.core::LoaderCore/unload() at MethodInfo-1311() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at com.greensock.loading.core::LoaderCore/_completeHandler() at com.greensock.loading::LoaderMax/_loadNext() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at com.greensock.loading.core::LoaderCore/_completeHandler() at com.greensock.loading::SWFLoader/_completeHandler() Digital Loading: 0% TypeError: Error #1009: Cannot access a property or method of a null object reference. at MethodInfo-1309() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at com.greensock.loading.core::LoaderCore/_dump() at com.greensock.loading.core::LoaderItem/_dump() at com.greensock.loading.core::DisplayObjectLoader/_dump() at com.greensock.loading::SWFLoader/_dump() at com.greensock.loading.core::LoaderCore/unload() at com.greensock.loading::LoaderMax/_dump() at com.greensock.loading.core::LoaderCore/unload() at MethodInfo-1311() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at com.greensock.loading.core::LoaderCore/_completeHandler() at com.greensock.loading::LoaderMax/_loadNext() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at com.greensock.loading.core::LoaderCore/_completeHandler() at com.greensock.loading::SWFLoader/_completeHandler() Print Loading: 0% TypeError: Error #1009: Cannot access a property or method of a null object reference. at MethodInfo-1309() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at com.greensock.loading.core::LoaderCore/_dump() at com.greensock.loading.core::LoaderItem/_dump() at com.greensock.loading.core::DisplayObjectLoader/_dump() at com.greensock.loading::SWFLoader/_dump() at com.greensock.loading.core::LoaderCore/unload() at com.greensock.loading::LoaderMax/_dump() at com.greensock.loading.core::LoaderCore/unload() at MethodInfo-1311() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at com.greensock.loading.core::LoaderCore/_completeHandler() at com.greensock.loading::LoaderMax/_loadNext() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at com.greensock.loading.core::LoaderCore/_completeHandler() at com.greensock.loading::SWFLoader/_completeHandler() And the code that is generating this: function moduleLoader():void { var que:LoaderMax = new LoaderMax({name:"illusionsQue",onComplete:queComplete,onError:queError}); que.append(new SWFLoader("swf/illusions-print.swf",{name:"swfIllusionsPrint",estimatedBytes:725722,onProgress:illusionsProgress,onComplete:illusionsComplete})); que.append(new SWFLoader("swf/illusions-digital.swf",{name:"swfIllusionsDigital",estimatedBytes:725722,onProgress:illusionsProgress,onComplete:illusionsComplete})); que.append(new SWFLoader("swf/illusions-contact.swf",{name:"swfIllusionsContact",estimatedBytes:725722,onProgress:illusionsProgress,onComplete:illusionsComplete})); LoaderMax.prioritize("swfIllusionsPrint",false); que.load(); function illusionsProgress(e:LoaderEvent):void { var pg:String = e.target.name.replace("swfIllusions",""); var progressTxt:String = String(new uint(Math.round(e.target.progress*100)) + "%"); trace(pg," Loading: ",progressTxt); mcBg.mcMenu.pageProgress[pg].text = progressTxt; } function illusionsComplete(e:LoaderEvent):void { var pg:String = e.target.name.replace("swfIllusions",""); mcIllusions[pg] = LoaderMax.getContent(e.target.name).rawContent as MovieClip; mcIllusions[pg].x = 490; mcIllusions[pg].y = 100; illusionsReady[pg] = true; mcBg.mcMenu.updatePageStatus(pg); trace(e.target.name + " is complete!"); } function queComplete(e:LoaderEvent):void { trace("unloading que"); que.unload(); } function queError(e:LoaderEvent):void { trace("error occured with " + e.target + ": " + e.text); } }
  20. Thanks this helps. The "memory issue" was that only one of the movieclips was active or existent on the timeline at one time, so all three were never bogging down resources at one time. In my current pre-loading scenario, all 3 are pre-loaded and it seems to bog down resources. I don't know how to pre-load into a MovieClip that is yet on stage? If I could magically do that, I think I would be fine? Two questions: 1. Is there a way to load something into a MovieClip that is in the library but not yet rendered on an active frame? 2. Should unload or dispose be called after each load is complete? Thank you!
  21. I tried unloading LoaderMax using an onComplete and I am getting a bunch of null object reference errors, runtime. Here is my code: var que:LoaderMax = new LoaderMax({name:"illusionsQue",onComplete:queComplete,onError:queError}); que.append(new SWFLoader("swf/illusions-print.swf",{name:"swfIllusionsPrint",estimatedBytes:725722,onProgress:illusionsProgress,onComplete:illusionsComplete})); que.append(new SWFLoader("swf/illusions-digital.swf",{name:"swfIllusionsDigital",estimatedBytes:725722,onProgress:illusionsProgress,onComplete:illusionsComplete})); que.append(new SWFLoader("swf/illusions-contact.swf",{name:"swfIllusionsContact",estimatedBytes:725722,onProgress:illusionsProgress,onComplete:illusionsComplete})); LoaderMax.prioritize("swfIllusionsPrint",false); que.load(); function illusionsProgress(e:LoaderEvent):void { var pg:String = e.target.name.replace("swfIllusions",""); var progressTxt:String = String(new uint(Math.round(e.target.progress*100)) + "%"); trace(pg," Loading: ",progressTxt); mcBg.mcMenu.pageProgress[pg].text = progressTxt; } function illusionsComplete(e:LoaderEvent):void { var pg:String = e.target.name.replace("swfIllusions",""); mcIllusions[pg] = LoaderMax.getContent(e.target.name).rawContent as MovieClip; mcIllusions[pg].x = 490; mcIllusions[pg].y = 100; illusionsReady[pg] = true; mcBg.mcMenu.updatePageStatus(pg); trace(e.target.name + " is complete!"); } function queComplete(e:LoaderEvent):void { que.unload(); trace("unloading que"); } function queError(e:LoaderEvent):void { trace("error occured with " + e.target + ": " + e.text); } }
  22. Hi Asseb, I searched through your posts, but didn't spot anything substantive. I'm familiar with unloading and cleaning up. There isn't much in these to cleanup (no event listeners, no audio, no video, just images and animation which is already stopped). I suppose what you are saying is that I should reload these each time their corresponding webpage is selected? That seems like a lot of loading and unloading. There is no other way? I ask because when they were part of the same movie, on each page's timeline, the memory issue wasn't there. So where do they go when they are just sitting in the library? That can't be emulated after loading? Thanks a bunch, Pol
  23. I'm using LoaderMax to load 3 SWFs. After they are loaded, I want to essentially store them in separate movieclips that are rendered on the timeline at different times, so that memory resources are preserved. Is there a way to unload the loader and keep the loaded SWFs (essentially like a library symbol) - embedded in separate website page movieclips on the timeline, so that when the website changes pages by changing frames, the loaded SWF that goes with the old page is freed from memory without having to reload it again the next time the page is rendered? Does that make sense? Thanks so much, Pol
  24. Hi Greensock, Thank you so kindly for replying. I understand what you are saying and have a follow-up question to make sure that I'm getting the paradigm: So would this be correct, if what I am after is the "MovieClip(root)" of the loaded SWF: (?) myMovieClip = LoaderMax.getContent("swfIllusionsPrint").rawContent as MovieClip; (?) Thanks kindly! Pol
×
×
  • Create New...