-
Hi guys,
I have a problem here and I'd like to get your advice.
I have a standalone cd-rom application and I want to launch jpeg files dynamically from the projector.
I'm trying to make a photo album which loads external thumbnails (.jpg) and when you click on it, it launches a new browser window with the full-size image.
The problem is that I want to set the new browser window's size inside flash.
I tried to do it with the getUrl function but it's not working:
bigPhoto = "photos/" + _root.currentPhoto + ".jpg";
getURL ("javascript:NewWindow=window.open(bigPhoto,'newWi n','width=400,height=400'); NewWindow.focus(); void(0);");
I suppose standalone player cannot pass variables through JavaScript.
Do you know if there is any way to fix this?
Thanx in advance,
Elias.
-
you bigPhoto should not be put this way....
It should be
"...open('" + bigPhoto + "','new...."
Didnt test your statement though...
-
You are correct... There isn't any Javascript support from the projector as it is not a web browser.
There isn't really any work around for that although some projector enhancers can open a browser and what not.
However if you are using the MX projector it can display JPEG simply by loading them into the level or MC you want. This is done exactly like loading a SWF except you are working with JPGS.
-
The statement should have been the way you said so as the browser to understand the bigPhoto variable, but I have two different problems now.
The first is that when I push the button I have two browser windows, one of them has the settings I declared in the statement and the other is a normal browser window.
The second and more important problem is that browser cannot understand bigPhoto variable as a local path and it tries to find the url on the internet.
So, do you think is there any other way to open the photo in a new window?
thanx
Originally posted by Justmade
you bigPhoto should not be put this way....
It should be
"...open('" + bigPhoto + "','new...."
Didnt test your statement though...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|