Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 05-24-2004, 01:18 PM   #1
sprite
sprite
 
Join Date: May 2004
Location: London
Posts: 6
Default Cyan please HELP!! The PERFECT POPUP????

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="+loca tion+",directories="+directories+",status="+status +",menubar="+menubar+",scrollbars="+scrollbars+",r esizable="+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
sprite is offline   Reply With Quote
Old 05-24-2004, 01:21 PM   #2
McGiver
Goldmember
 
McGiver's Avatar
 
Join Date: Feb 2003
Location: bavaria in germany
Posts: 1,627
Default

lol, come here and help Cyan
(btw.: he prefers CyanBlue or CB)
McGiver is offline   Reply With Quote
Old 05-24-2004, 01:45 PM   #3
sprite
sprite
 
Join Date: May 2004
Location: London
Posts: 6
Default Sorry I meant CyanBlue

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
sprite is offline   Reply With Quote
Old 05-25-2004, 01:20 AM   #4
oldnewbie
Banned by AS.org Staff
 
Join Date: Mar 2002
Posts: 10,533
Default

http://www.flash-db.com/PopUp/
oldnewbie is offline   Reply With Quote
Old 05-25-2004, 04:28 AM   #5
farafiro
Addicted To FLASH
 
farafiro's Avatar
 
Join Date: Dec 2001
Location: Egyptian in UAE
Posts: 12,436
Send a message via MSN to farafiro Send a message via Yahoo to farafiro
Default

Cyan, Cyan
I do remember this name??
who is him McGiver??
__________________
‚€* GOD Is Near ‚€*
Questions Don't PM for Questions . Thanks
An eye for an eye, make the whole world blind
_____________________________________________GHANDI
farafiro is offline   Reply With Quote
Old 05-25-2004, 07:58 AM   #6
CyanBlue
Super Moderator
 
CyanBlue's Avatar
 
Join Date: Jan 2002
Location: Centreville, VA
Posts: 26,666
Default

Um... I have no idea... Who's that???

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...
__________________
CyanBlue / Jason Je / Macromedia Certified Flash Developer & Designer
http://CyanBlue.FlashVacuum.com
http://www.FlashVacuum.com
http://tutorials.FlashVacuum.com

Do NOT PM, Email or Call me... Your question belongs right in this forum...
CyanBlue is offline   Reply With Quote
Old 05-25-2004, 08:07 AM   #7
farafiro
Addicted To FLASH
 
farafiro's Avatar
 
Join Date: Dec 2001
Location: Egyptian in UAE
Posts: 12,436
Send a message via MSN to farafiro Send a message via Yahoo to farafiro
Default

Quote:
Originally Posted by CyanBlue
Yo, McGiver... Don't you know that I hate people who call me CB or Cyan??? I hate them...
why CYAAAAAAAAAAAAAAAAAAAAN
__________________
‚€* GOD Is Near ‚€*
Questions Don't PM for Questions . Thanks
An eye for an eye, make the whole world blind
_____________________________________________GHANDI
farafiro is offline   Reply With Quote
Old 05-25-2004, 08:18 AM   #8
CyanBlue
Super Moderator
 
CyanBlue's Avatar
 
Join Date: Jan 2002
Location: Centreville, VA
Posts: 26,666
Default

Um... Do you want me send out my puppies again to track your down and lick you till you are soaked in their ****s???
__________________
CyanBlue / Jason Je / Macromedia Certified Flash Developer & Designer
http://CyanBlue.FlashVacuum.com
http://www.FlashVacuum.com
http://tutorials.FlashVacuum.com

Do NOT PM, Email or Call me... Your question belongs right in this forum...
CyanBlue is offline   Reply With Quote
Old 05-25-2004, 08:27 AM   #9
farafiro
Addicted To FLASH
 
farafiro's Avatar
 
Join Date: Dec 2001
Location: Egyptian in UAE
Posts: 12,436
Send a message via MSN to farafiro Send a message via Yahoo to farafiro
Default

lol
no u can't for
1) dogs like me
2) I eat dogs
__________________
‚€* GOD Is Near ‚€*
Questions Don't PM for Questions . Thanks
An eye for an eye, make the whole world blind
_____________________________________________GHANDI
farafiro is offline   Reply With Quote
Old 05-25-2004, 08:29 AM   #10
CyanBlue
Super Moderator
 
CyanBlue's Avatar
 
Join Date: Jan 2002
Location: Centreville, VA
Posts: 26,666
Default

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...
__________________
CyanBlue / Jason Je / Macromedia Certified Flash Developer & Designer
http://CyanBlue.FlashVacuum.com
http://www.FlashVacuum.com
http://tutorials.FlashVacuum.com

Do NOT PM, Email or Call me... Your question belongs right in this forum...
CyanBlue is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:31 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.