Alright, I've figured out Events, and the new way to handle buttons in AS3.0. So now I'm on to the next step for this podcast player application, and once again here I am in need of some help. Before I go any further, you can DOWNLOAD the source .FLA and the currently exported .SWF from my server --
http://www.theuprock.com/archive/podcastFiles.zip
Because I'm personally a visual learner, I felt the need to make a visual diagram of the properties, in hopes that it would generate interest, and get some people on board willing to help me figure this out. So, here's your visual diagram!
HERE ARE THE SOURCE .FLA and .SWF FILES:
http://www.theuprock.com/archive/podcastFiles.zip
Here are the final goals for the project that I need some guidance in figuring out:
1. The "Dynamically Driven List And Built From XML". I've read some stuff and seen some examples on this one, but to be honest, I really want to get this figured out once and for all and build it myself, instead of just copying and pasting someone else's module into my file. How does this work? I am guessing something like this. I put a blank movie clip on the stage, define it's size parameter and instantiate it with an instance name, and then put a mask over it to fit into the window area of the application, right? So after that, I need to basically use the XML data to BUILD the list. This list will be ever-growing too as we release more and more podcasts. So for now we'll launch the podcast player with like four or five episodes, but as it grows, I want it to remain dynamic and be built in a way that lets it expand as more content is added. I played around with it a little, read some tutorials, read my Moock book some more, and still can't figure out how to generate new dynamic text fields for each title instance in my XML. I'm guessing I need to use a for{} loop first to determine the size of the list? Then after that, what do I need to do in order to actually BUILD the list with AS?
2. The "Scrollpane Component". This is the part that really baffles me. Logically, I understand how it should work, but as far as enacting it, and making it happen, I'm utterly confused. The part that's tripping up my logic of how this could work is controlling the masked area. I don't want the scroll speed to be super-fast as a result of the masked content box being triple the size of the scrollbar itself.
3. The "Download Currently Playing .MP3". This is probably the easiest part of my question. I want the user to be able to click the arrow, and it will download the currently playing .MP3 onto their computer. Simple as that, but I'm not sure how to broadcast the currently playing .MP3's URL to Flash, so that it always knows which episode is playing.
4. The "getBytesLoaded(); ???". I am still unsure of how to do a timeclock with colons like that with Flash math. Can someone point me in the right direction, or give me the right search terms to be Googling to learn more about this?
5. The "Playhead" Stuff. Last but not least, I think this part I've pretty much got figured out, but I'm having issues figuring out how to make the orange tic draggable in accordance with the loaded .MP3's timeline.
I know that's a LOT to ask, but I also know you guys are really accommodating around here when it comes to giving out tips and pointing people in the right direction. I don't expect anyone to solve all these issues for me, but any assistance you can give would be highly appreciated. Thanks in advance, and I hope to hear from you guys soon.