reed682

Joined: 13 Dec 2004 Posts: 16 Location: Florida
|
Posted: Tue Mar 08, 2005 3:58 pm Post subject: Open a new, sized window from FLASH |
|
|
OK, here is the problem...
I am working for a client who is doing a small photo gallery in their site. Basically a forward and back button. I am loading the images dynamically buy having a variable "_root.pic" and then adding to that number plus one every click. Ok, "_root.pic" is located on the root because I have several things in movie clips and it makes them all able to find it.
The brilliant idea i had was that since the pictures are small the viewer should have the option of seeing them bigger...so I have a magnifying glass button with a getURL action that uses Java Script.
| Code: |
on (release) {
getURL("javascript:window.open('images/image0' + _root.pic + '.jpg', 'blank', 'toolbar=no,scrollbars=no,resizable=no,menubar=no,status=no,directories=no,location=no, width=500, height=669')");
} |
The problem is, since when I call the variable "_root.pic"...since I want to get the correct enlarged picture...from it's _root position the button does nothing, yet when I don't give the correct path to the variable "pic" it pops open the window correctly (sized right, no scroll bars, etc.) but it says, that where the "pic" variable should be, "undefined".
I can't seem to use _root when using this Java Scripting...what can I do? Is there a more FLASH friendly open window code that will work with my variable? Please help. Thanks. |
|