if you i understanded well all you want is to use the button has it was =
a normal link as uyo do in HTML...
so you use the getURL command and using the flash reference manual, =
select the buttom (the name dosen't matter, at least in this case), open =
the action script window and right this code:
on (release){ //----> event
getURL(url [, window [, "variables"]]); // ---> url (the file... a =
swf or a htm with an embeded swf)=20
//----> =
window (the window u want)
//----> =
"variables" (whatever data u nead to pass)
}
eg:
on(release){
getURL(file.htm,_blank); ----> in other window
}
on(release){
getURL(file.htm,_self); -----> in the same window
}
on(release){
getURL(file.htm,me); ------> in the window caled "me" (if already =
opened)
}
if you want to make a pop-up tipe window, you can also use a litle of =
javascrip... like
use a fuction on the html file that has the embeded swf:
after the tag <BODY> :
<script language=3D"JavaScript">=20
function openNewWindow(URLtoOpen, windowName, windowFeatures) {
newWindow=3Dwindow.open(URLtoOpen, windowName, windowFeatures);
}
</script>
and on the buttom:
on (release) {
=
getURL("javascript:openNewWindow'file.htm','name','height=3D300,width=3D4=
00,toolbar=3Dno,scrollbars=3Dno')");
}
if you want to load other swf movies in to the same flash player movies =
you have to use the loadMovie or loadMovieNum commands, but for that =
youi must first read something about paths and Levels in flash
hope that solves some problems...
[quoted text, click to view] "Jimmy Mc" <webforumsuser@macromedia.com> wrote in message =
news:ci5bg4$7cg$1@forums.macromedia.com...
> i am making a website in flash..=20
>=20
> i have an instance of a button called=20
>=20
> prices_btn=20
>=20
> when the user clicks the button, i want another flash file to load up =
(i.e=20
> another swf file..in another window)=20
>=20
> anyone know the ActionScript for this...=20
>=20
> assuming both flash movies are in the same directory...=20
>=20
>=20
> any help would be greatly appreciated
>=20
> Jimmy :)