…of course, I got paid good money on the project, money which I 2 years later quickly passed back to the IRS (wtf?). Regardless, it was a project I did, and needed functionality for and successfully implemented. Would it have been better to have MC’s(get it?) integration kit back then? Yep; switch statements with fscommand and watches on _root blow when dealing with AS2 and trying to be OOP.
We have a need for Fileupload in our current project. Remembering my pains of the past, I quickly downloaded their kit to see if it’d integrate into our workflow better, and low and behold yes. I can’t get it to work in an ARP command (I think because commands are local variables, kept around only by the activation object, and this is causing issues…?), but it works great in our main class.
One problem, though, is the Wiki docs currently have the FlashTag write to the document. This ends up replacing your current webpage with the Flash embedding. Since my team is mainly Flash, we managed to figure out a better way (which to a web-head, I’m sure there’s an even better way, but this way works pimp).
We load the Flash into a div tag instead, which I’ve done many times in the past to better control positioning and styles. So, while the Wiki (currently) says this:
To put it in a div tag instead, we did:
myDiv = document.getElementById("flash_div");
myDiv.innerHTML = tag.toString(); </script>
And the div looks like:
<div id="flash_div" style="width: 600px; height: 600px;"></div>
It works damn good; thanks guys!