TheToob
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by TheToob
-
-
Hi Greensock,about the swf autoplay: that indeed clarifies things! Thank you for taking your time to answer this question, really appreciate it!
Thanks also for the code sample, I see how I can control the timing when something is loaded. But about the "I have little control over the behavior of the loaded content' -part: I did not put that quite right, I find it hard to do so in English , I guess what I meant to say is something more like, when I call getLoader("item1") for instance, and that item is a videofile , I would like to use that source in my videoplayer class, while I have an other class(view) for swf and image files. How do I determine the type of file so I can call the appropriate classes I wrote (about to write) ? (the point is, I don't know when what file will be next, because the XML is going to be dynamic)
-
Hello, first of all I loved greensock before and now I discovered the LoaderMax classes, I continue to do so!
I understand the basic idea of the LoaderMax class. It automatically discovers wether to load a swf, video or image. Brilliant! Then I found out you can manually set up different types of loaders. I can see why that is helpfully if you already know what content type is going to be loaded. Now my 'problem'.
I'm creating my portfoliowebsite. There's a bunch of thumbs, and every thumb has a full image, or a swf file, or a video file linked to it. I found out using loaderMax I have little control over the behavior of the loaded content (ie: my swf file plays even when it's not visible). So I imagine I'd use SWF loader when the xml node contains a swf, and the VideoLoader when the xml node contains a videofile. How do I set this up best? My XML looks like this (shortened)
I first load mainThumbs and onComplete i start loading fullContent.
How do I determine the content type of each xml node to alternatively create a VideoLoader or SWFLoader or ImageLoader next? Is that even a good approach to start with!?
Basic understanding, how to set this up
in Loading (Flash)
Posted
I found out I can get something close to what I think I need, but then again, I can't do anything with it really, so here's what I'm doing:
I set up a trace in _childCompleteHandler
Trace:
There you go! It says ImageLoader(3x) and SWFLoader, I needed that, but I can't access it as a value it self... I must be thinking completely wrong here, I'm not the only one using dynamic content via xml, and I see no others struggling with this...