PDA

View Full Version : Cyan please HELP!! The PERFECT POPUP????


sprite
05-24-2004, 01:18 PM
Hi Guys

I'm looking to create a popup which opens a "template" html page with an image placeholder. This way you should be able to send a variable from the swf and open up the same html page each time but the image would change as you change the variable from the flash button.

Basically I have flash page containing various thumbnails and when clicked, each one will open a larger version, but I dont want to make a html page for each one so rather 'send' the filename to the html page if this is possible??

there is a similar topic at a java script forum here:

http://www.webmasterworld.com/forum91/725.htm

I was given this:

<html>

<head>
<title>Image viewer</title>
<script>
function loader(){
var my_pic = document.location.search.substring(1);
document.pic1.src = my_pic;
}
</script>
</head>

<body onload="loader()">
<img src="http://www.weav.co.uk/dj/dressing/" name="pic1">
</body>

</html>

but dont really know how to get it all to work.




This is on my button

on (press) {
// customize the window that gets opened
// 0 equals NO.
// 1 equals YES.
address = "myimage.jpg";
target_winName = "popup";
width = 300;
height = 451;
toolbar = 0;
location = 0;
directories = 0;
status = 0;
menubar = 0;
scrollbars = 0;
resizable = 0;
// sends data back to the function
openWinCentre(address, target_winName, width, height, toolbar, location, directories, status, menubar, scrollbars, resizable);
}




and this is on the timeline:

Movieclip.prototype.openWinCentre = function(url, winName, w, h, toolbar, location, directories, status, menubar, scrollbars, resizable) {
getURL("javascript:myWin = window.open('"+url+"','"+winName+"','"+"width="+w+",height="+h+",toolbar="+toolbar+",location="+location+",directories="+directories+",status="+status+",menubar="+menubar+",scrollbars="+scrollbars+",resizable="+resizable+",top='+((screen.height/2)-("+h/2+"))+',left='+((screen.width/2)-("+w/2+"))+'"+"')}else{myWin.focus();};void(0);");
};


I just basically want the swf file to decide which jpeg is to be loaded into the popup.html.

HELP!!!!!!

Sprite

McGiver
05-24-2004, 01:21 PM
lol, come here and help Cyan :D
(btw.: he prefers CyanBlue or CB)

sprite
05-24-2004, 01:45 PM
This is also some other code I ve worked on but nothing works!

on (release) {
getURL("window.open ('popup.html?'+filedesc, 'newwindow', config='height=300,width=451, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, directories=no, status=no'); ");
}

Someone please help!

Sprite

oldnewbie
05-25-2004, 01:20 AM
http://www.flash-db.com/PopUp/

farafiro
05-25-2004, 04:28 AM
Cyan, Cyan
I do remember this name??
who is him McGiver??

CyanBlue
05-25-2004, 07:58 AM
Um... I have no idea... Who's that??? :D

Hey, sprite... Your best bet is to follow the link that oldnewbie gave you...
That's gotta make things whole lot easier for you... ;)

Yo, McGiver... Don't you know that I hate people who call me CB or Cyan??? I hate them... :( :p

farafiro
05-25-2004, 08:07 AM
Yo, McGiver... Don't you know that I hate people who call me CB or Cyan??? I hate them... :( :p
why CYAAAAAAAAAAAAAAAAAAAAN

CyanBlue
05-25-2004, 08:18 AM
Um... Do you want me send out my puppies again to track your down and lick you till you are soaked in their ****s??? :D

farafiro
05-25-2004, 08:27 AM
lol
no u can't for
1) dogs like me
2) I eat dogs :eek:

CyanBlue
05-25-2004, 08:29 AM
Let me send you lots of them then... :)

Seriously though... I don't like it because I don't want to be called what I am not... I don't think that's nice... :(

farafiro
05-25-2004, 08:40 AM
huh
okey, as u seriously say,.... Cyan

CyanBlue
05-25-2004, 09:11 AM
I think it's time for you to go to sleep... :p

McGiver
05-25-2004, 11:47 AM
hmm, a lot going on since I checked it last.
I already knw you hated cyan
didn't know you also hate CB.















...well, I think I can live with Cy too :D

CyanBlue
05-25-2004, 11:50 AM
Well... It's just that I hate people calling me in the wrong name especially when they don't know me at all... That's all... (Not pointing to anybody in particular...)

If somebody who knows me call me 'stupid moron', I know he doesn't really mean it... (He'd been dead already if he really meant it... :D) But if somebody who I do not know me call me like that, then that's different story, right??? I know it is not the best way to compare it but it goes similar... :(