FORUMS: list search recent posts

AS2 Generate Embed Code?

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Beckie Hawk
AS2 Generate Embed Code?
on Oct 1, 2009 at 7:06:14 pm

I've looked everywhere for an answer to this question. I hope someone here can help me.

I have built a web site that has a video gallery. The gallery has a button where the site visitor can "share" a link to the video and the URL to the video is dynamically generated based on the information passed to the Flash from an xml file.

Ok, what I need to do is change the code that generates the URL into code that generates "object" and "embed" tags so the visitor can copy and paste it into their own web site.

The AS I'm using to generate the URL is:
function video_play(num) {
my_video.flv_path = video_ary[num];
my_video.flv_auto = auto;
my_video.flv_info = more_info_ary[num];
var _data = menu_xml.firstChild.childNodes[cur_menu].childNodes[1].childNodes[0].nodeValue;
trace(_data)
my_video.flv_share = http_path+"video.html?data="+_data+"&flvID="+cur_list
}


Is it possible to alter this code so it generates the embed tag instead of a URL? If so, what do I need to do to change it?

Thanks for your help.


bhawk


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]