4 sure. We had some luck with a javascript window where we would drag the file but the problem was the only real way to know where the file was going to be (if the plan was to keep a reference to it) was to camp on the library xml files and those get rewritten when iTunes closes or music is imported (or cover-art is downloaded, etc,etc). Remember, you can ask iTunes to organize your library into a common tree and that killed our attempts to try to persist our own reference in Air. The Flex XML parser isn¹t completely happy with the iTunes library XML format so we ended up breaking the XML up and creating a track-only document but it was pretty fragile as there were so many ways to blow up the xml. KFB
On 5/26/09 8:13 AM, "Paul BH" <[email protected]> wrote: > > > > > > Hey Kevin, > thanks for this. Its a shame I can't get a reference to the file so I can work > with it. > > cheers > > Paul > > On Tue, May 26, 2009 at 11:03 AM, Kevin F. Benz <[email protected]> wrote: >> >> >> >> >> >> The clipboard in AIR is text only. It¹s not going to work for a binary file. >> I have asked Adobe about binary clipboard support and I don¹t expect it >> anytime soon. It¹s pretty dicey working with the iTunes library anyway since >> iTunes will move files around to balance it¹s directory tree (unless you plan >> on duplicating the file which isn¹t a great idea either). >> >> >> On 5/26/09 7:54 AM, "paulbhoston" <[email protected] >> <http://[email protected]> > wrote: >> >>> >>> >>> >>> >>> >>> Hi there, >>> I've been trying to drag a song from itunes into my app, but the clipboard >>> (in AIR) doesn't seem to have any format acceptable to AIR. Does anyone have >>> any idea how to overcome this? >>> >>> thanks! >>> >>> >>> >>> >>> >> >> Kevin F. Benz >> [email protected] <http://[email protected]> 425-785-7100 >> http://www.kbenz.com >> >> "We can't solve problems by using the same kind of thinking we used when we >> created them" - Albert Einstein >> >> >> > > > > >> > > Kevin F. Benz > [email protected] 425-785-7100 > http://www.kbenz.com > > "We can't solve problems by using the same kind of thinking we used when we > created them" - Albert Einstein >

