I’m trying to stick a Youtube into a Flash swf call. Easy enough, eh? Here is the way to do it. I massaged several variations of it. It was day’s end, I was tired, and the code finally clicked in place. I got to do the victory dance: getting out of the chair and scrounging something more nutritious than pickle chips.
The Youtube was sized correctly, landed in the right spot on my stage, and it played beautifully. TOO BEAUTIFULLY. The blasted Youtube wouldn’t disappear when I jumped to another part/page of my timeline. I gave it a day of rest, hoping that the solution would magically appear in a dream. No such luck.
I tried the “turn off the Youtube” fixes suggested by everyone on that thread (the yt destroy call). That worked….NOT. If I didn’t immediately follow the destroy with a load, the thing would hang forever, as if in an infinite loop. I gave up on that path, and decided I’d stream FLVs directly from my site. That was something I wanted to avoid because of the potential for a bandwidth problem.
I have a nice template for a FLV player. There must be something inherently odd about handling sound, because this developer forgets to close the sound when I close the player. The sound stayed on til I migrated to the next FLV. At least this movieclip sound turns off when I moved to a different page. I’ll have to dig into the ActionScript more.
That’s another one of my new acquisitions. I’ve been trying to avoid having to learn ActionScript 2, but I was forced to play with it while failing to shoehorn a Youtube into my Flash. Imagine how much more productive I could be if I actually learned this stuff from the top down, instead of sideways-in. One of these days I’ll get me ActionScript for Dummies. ‘
I’ve been boggle-eyed from playing with this. I could use a good break about now before I break everything to pieces.