Jawnee
08-20-2008, 03:42 AM
Hello everyone! I'm currently in the process of building my first flash site and it's coming along fairly well. The general flash stuff (creating event driven interface animations and the like) are making sense and I've managed to figure out how to parse XML feeds from blogger, youtube, and picasa (thanks to some help from these forums) so my site's content stays fresh and up to date. The one question I have right now, and I can't seem to find a clear answer to it anywhere is whether or not it's possible to embed an external SWF file inside a dynamic text field... and if not... how in the world I could work around this.
A little background on the situation:
So right now I have a page that shows youtube content and it works fine. Initially I was just going to read the rss feed from youtube and build an embed statement to display the movie using HTML inside a dynamic text field but yesterday I couldn't get that to work. After several hours of poking around on here and google I found a youtube as3.0 class to help me get the source FLV for my movies which I now stream directly to a movie object on the stage. It works, and at this point being as new to flash as I am, working is what makes me happy. I can make it pretty later.
But today as I started working on the picture page of my site I'm stuck with the same initial problem I had yesterday. I'm going for simplicity which I can expand on later. So I simply parse the feed from picasa (containing my gallery information) drop that into an array of generic objects and populate a combo box with the choices. My goal was to allow users to select a gallery out of the combo box and since picasa already provides me with a nice little slideshow by default, rather than recreate the wheel I thought I'd merely embed their slideshow for my gallery into a dynamic text field and come back later to make the page more personalized / functional.
Well naturally this still isn't working. I cannot get the swf embedded in the dynamic text box and at this point I don't think it's possible. Furthermore, I can't seem to find any documentation on a source FLV for these shows. In fact, I'm beginning to think no such FLV exists and the shows are just built on the fly (would make sense). According to the livedocs here:
http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00000922.html
It would seem that neither the embed or the object tag are supported and thus, neither of my embed solutions below will work.
<embed type="application/x-shockwave-flash" src="http://picasaweb.google.com/s/c/bin/slideshow.swf"width="400" height="267"
flashvars="host=picasaweb.google.com&RGB=0x000000&feed=http%3A%2F%2Fpicasaweb.google.com%2Fdata%2Ffe ed%2Fapi%2Fuser%2Fjawnee%2Falbumid%2F5144458076124 071505%3Fkind%3Dphoto%26alt%3Drss"
pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>
<object type="application/x-shockwave-flash" data="http://picasaweb.google.com/s/c/bin/slideshow.swf" width="400" height="267">
<param name="movie" value="http://picasaweb.google.com/s/c/bin/slideshow.swf">
<param name="flashvars" value="host=picasaweb.google.com&RGB=0x000000&feed=http%3A%2F%2Fpicasaweb.google.com%2Fdata%2Ffe ed%2Fapi%2Fuser%2Fjawnee%2Falbumid%2F5144458076124 071505%3Fkind%3Dphoto%26alt%3Drss">
<param name="pluginspage" value="http://www.macromedia.com/go/getflashplayer">
</object>
At this point I'm open to any advice you guys might have. It's starting to look like I'm going to have to build something elaborate from scratch. It's worth noting that I use the UILoader currently on my main flash page to load content for subpages, these subpages being swf files. But when I try to do this with a swf located somewhere other than my harddisk it doesn't do anything.
A little background on the situation:
So right now I have a page that shows youtube content and it works fine. Initially I was just going to read the rss feed from youtube and build an embed statement to display the movie using HTML inside a dynamic text field but yesterday I couldn't get that to work. After several hours of poking around on here and google I found a youtube as3.0 class to help me get the source FLV for my movies which I now stream directly to a movie object on the stage. It works, and at this point being as new to flash as I am, working is what makes me happy. I can make it pretty later.
But today as I started working on the picture page of my site I'm stuck with the same initial problem I had yesterday. I'm going for simplicity which I can expand on later. So I simply parse the feed from picasa (containing my gallery information) drop that into an array of generic objects and populate a combo box with the choices. My goal was to allow users to select a gallery out of the combo box and since picasa already provides me with a nice little slideshow by default, rather than recreate the wheel I thought I'd merely embed their slideshow for my gallery into a dynamic text field and come back later to make the page more personalized / functional.
Well naturally this still isn't working. I cannot get the swf embedded in the dynamic text box and at this point I don't think it's possible. Furthermore, I can't seem to find any documentation on a source FLV for these shows. In fact, I'm beginning to think no such FLV exists and the shows are just built on the fly (would make sense). According to the livedocs here:
http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00000922.html
It would seem that neither the embed or the object tag are supported and thus, neither of my embed solutions below will work.
<embed type="application/x-shockwave-flash" src="http://picasaweb.google.com/s/c/bin/slideshow.swf"width="400" height="267"
flashvars="host=picasaweb.google.com&RGB=0x000000&feed=http%3A%2F%2Fpicasaweb.google.com%2Fdata%2Ffe ed%2Fapi%2Fuser%2Fjawnee%2Falbumid%2F5144458076124 071505%3Fkind%3Dphoto%26alt%3Drss"
pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>
<object type="application/x-shockwave-flash" data="http://picasaweb.google.com/s/c/bin/slideshow.swf" width="400" height="267">
<param name="movie" value="http://picasaweb.google.com/s/c/bin/slideshow.swf">
<param name="flashvars" value="host=picasaweb.google.com&RGB=0x000000&feed=http%3A%2F%2Fpicasaweb.google.com%2Fdata%2Ffe ed%2Fapi%2Fuser%2Fjawnee%2Falbumid%2F5144458076124 071505%3Fkind%3Dphoto%26alt%3Drss">
<param name="pluginspage" value="http://www.macromedia.com/go/getflashplayer">
</object>
At this point I'm open to any advice you guys might have. It's starting to look like I'm going to have to build something elaborate from scratch. It's worth noting that I use the UILoader currently on my main flash page to load content for subpages, these subpages being swf files. But when I try to do this with a swf located somewhere other than my harddisk it doesn't do anything.