| goodgraph 2006-04-27, 10:39 pm |
| I have a very, very, very basic understanding of actionscript and javascript
(enough to make me a danger)... What I need to do is make my flash navigation,
buttons "on (release)," open a new html page and play the corresponding frame
in the swf file. I have called macromedia and they pointed me to a tech note.
http://www.macromedia.com/cfusion/k...d=tn_15683#ftjc I
can't make the leap from making an input box to making a button open a link and
play a frame. (Again basic knowledge... Like a rollover in javascript, a
gotoAndPlay.... that kind of basic). Before this I was attempting to do this in
actionscript and HTML. Now I am lost and don't know if there is a way to
continue on my path or do I need to go down the fscommand path. Attached is the
code I am working with. Any help would be appreciated... If I could send fresh
baked cookies through my browser for some help, I would...
In the HTML page I have this
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#
version=7,0,0,0" width="784" height="375" id="GPS-Menu" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="GPS-Menu.swf?button=academics" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="../GPS-Menu.swf?button=academics" quality="high" bgcolor="#ffffff"
width="784" height="375" name="GPS-Menu" align="middle"
allowScriptAccess="sameDomain" type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
This is the code I have in frame 1 of the flash file
if (button == "gps_home") {
gotoAndPlay("H");
}
if (button == "faqs") {
gotoAndPlay("FAQ");
}
if (button == "development") {
gotoAndPlay("DV");
}
if (button == "training") {
gotoAndPlay("TR");
}
if (button == "staff_profiles") {
gotoAndPlay("SP");
}
if (button == "gs_home") {
gotoAndPlay("gs_home");
}
if (button == "your_child") {
gotoAndPlay("YCP");
}
if (button == "academics") {
gotoAndPlay("AC");
}
if (button == "athletics") {
gotoAndPlay("AT");
}
if (button == "fine_arts") {
gotoAndPlay("FA");
}
if (button == "equestrian") {
gotoAndPlay("EQ");
}
if (button == "calendars") {
gotoAndPlay("CA");
}
if (button == "events") {
gotoAndPlay("EV");
}
if (button == "as_weekends") {
gotoAndPlay("AW");
}
if (button == "v_fieldtrips") {
gotoAndPlay("VFT");
}
if (button == "summer_camp") {
gotoAndPlay("SC");
}
if (button == "activities_video") {
gotoAndPlay("AV");
}
this is the code I have on the frames where the corresponding movies are set
to play (each address is different for each topic)
stop();
getURL("http://www.gooddesignusa.com/gps/academica/index.html", "_self");
This is the code I have on the buttons (changes for each button)
on (release) {
gotoAndPlay (35);
set (button, academics);
}
I have stops set at the end of each sections movie
stop();
|