Flash Games
 FAQ   Search   Memberlist   Usergroups   Register  Profile   Log in to check your private messages   Log in 


Open a new, sized window from FLASH



 

Post new topic   Reply to topic  
   DEVPPL Forum Index -> Flash Forum
View previous topic :: View next topic  
Author Message
reed682



Joined: 13 Dec 2004
Posts: 16
Location: Florida

PostPosted: Tue Mar 08, 2005 3:58 pm    Post subject: Open a new, sized window from FLASH Reply with quote

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.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    DEVPPL Forum Index -> Flash Forum All times are GMT + 1 Hour
Page 1 of 1

 
 
Welcome to DEVPPL.com
You are not logged in, which means that you can't post in the forums.
Click here to Register

If you are a current member here on DEVPPL, please login below:

User: Pass:
Log me on automatically each visit:

 


Powered by phpBB © 2001, 2005 phpBB Group - Modified by DEVPPL

Flash Games - Sitemap