Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Supporting Technologies > HTML and JavaScript

Reply
 
Thread Tools Rate Thread Display Modes
Old 09-27-2004, 05:37 PM   #1
Mtnclimbers
Registered User
 
Join Date: Sep 2004
Posts: 2
Default Passing Parms from Hyperlink to Flash.swf

I want to use Hyperlink to invoke a .swf and pass parms to it.
I am somewhat knowledge in HTML and Flash but I quess not enough to figure this out. Instead of Hyperlink, I could use flash buttons but still not do not know how to pass the parms to .swf.
Mtnclimbers is offline   Reply With Quote
Old 09-27-2004, 05:53 PM   #2
tg
done
 
Join Date: Jun 2001
Location: portland, or
Posts: 8,048
Default

you could pass it thru the querystring, or use the flashVars paremeter in your html object/embed tags.
__________________
tg
---
what the hell was i thinking?
tg is offline   Reply With Quote
Old 09-27-2004, 06:19 PM   #3
Mtnclimbers
Registered User
 
Join Date: Sep 2004
Posts: 2
Default

How do I use hyperlink and object/embed tags?

This invoked the .swf file but I am not sure how to get the embed/tags included.

<a href="slide_show.swf">Photos
Sept 1 - 7, 2004</a>


The following is what I what to invoke and pass to slide_show.swf


<script language="JavaScript">
document.write('<OBJECT classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"');
document.write(' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"');
document.write(' WIDTH="800" HEIGHT="657"');
document.write(' id="slideshow" ALIGN="center">');
document.write(' <PARAM NAME=movie VALUE="slide_show.swf">');
document.write(' <PARAM NAME=quality VALUE=best>');
document.write(' <PARAM NAME=salign VALUE=LT>');
document.write(' <PARAM NAME=scale VALUE=noscale>');
document.write(' <PARAM NAME=bgcolor VALUE=#FFFFFF>');
document.write(' <PARAM NAME=FlashVars VALUE="border=0x000000&delay=2&images=images/P2004245.jpg,images/P2004246.jpg,images/P2004247.jpg,images/P2004248.jpg,images/P2004249.jpg">');
document.write(' <EMBED src="slideshow.swf" quality=best scale=noscale salign=LT bgcolor=#FFFFFF ALIGN="center" NAME="slide_show"');
document.write(' WIDTH="800" HEIGHT="657"');
document.write(' FlashVars="border=0x000000&delay=2&images=images/P2004245.jpg,images/P2004246.jpg,images/P2004247.jpg,images/P2004248.jpg,images/P2004249.jpg"');
document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">');
document.write(' </EMBED></OBJECT>');
document.write(' ');
</script>

Last edited by Mtnclimbers; 09-27-2004 at 06:35 PM..
Mtnclimbers is offline   Reply With Quote
Old 09-27-2004, 06:33 PM   #4
tg
done
 
Join Date: Jun 2001
Location: portland, or
Posts: 8,048
Default

when you publish flash as html it will create a html page with <object> and <embed> tags. these are what embed the flash into your html page. with object you can use the <param> tag to add the flashvars element.

so you would have <object ......><param name="flashvars" value="myVariabeName=myvariablevalue">
</object>
<embed ..... flashvars="myvariablename=myvariablevalue"...>

something like that.... cant quite remember right now.
do a search on macromedias site for 'flashvars'.
__________________
tg
---
what the hell was i thinking?
tg is offline   Reply With Quote
Old 10-18-2005, 09:04 PM   #5
osu9400
Registered User
 
Join Date: Oct 2005
Posts: 1
Default

Where did you find the slideshow flash util you are talking about? I would like to try it also.
osu9400 is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:24 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.