getURL issue

  • ilyawizard
  • Proficient
  • Proficient
  • No Avatar
  • Joined: Oct 24, 2004
  • Posts: 413
  • Status: Offline

Post May 23rd, 2007, 8:47 am

I have an ad that is supposed to open two URLs. The first one is:
getURL(clickTAG, "_self");
clicTAG is a variable that takes a value of URL.
The second one is:
getURL("www.somesite.com","_blank");
I need http://www.somesite.com be a specific size. I've tried many javascipt codes but nothing helped. Any ideas? Thanks.
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post May 23rd, 2007, 8:47 am

  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Joined: Jul 11, 2005
  • Posts: 1828
  • Loc: In the Great White North
  • Status: Offline

Post May 23rd, 2007, 8:28 pm

you mean you want the font to be a specific size? or the button to be a size? How are you defining size in relation to a url?
  • ilyawizard
  • Proficient
  • Proficient
  • No Avatar
  • Joined: Oct 24, 2004
  • Posts: 413
  • Status: Offline

Post May 24th, 2007, 6:33 am

Sorry about the confusion. I need the size of the window be specific size.
  • zhaojany
  • Student
  • Student
  • User avatar
  • Joined: Aug 03, 2006
  • Posts: 78
  • Status: Offline

Post May 24th, 2007, 6:37 am

getURL("http://www.somesite.com","_blank")

the URL should be the full address and "http://" is necessary.
  • zhaojany
  • Student
  • Student
  • User avatar
  • Joined: Aug 03, 2006
  • Posts: 78
  • Status: Offline

Post May 24th, 2007, 6:41 am

oh the point is the size of the window. i'm sure that flash can't do it.

maybe you can call a javascript function instead of the URL.And leave the rest of things to javascript
  • ilyawizard
  • Proficient
  • Proficient
  • No Avatar
  • Joined: Oct 24, 2004
  • Posts: 413
  • Status: Offline

Post May 24th, 2007, 8:19 am

That's what I'm doing. I'm using javascript to set the size, but for some reason flash doesn't work very well with javascript. I'm calling previosly stated js function in flash, and it doesn't work.

<script>
function openWin(){
...
}
</script>

and the following code is in flash:

getURL("javascript:openWin()");
  • Belk Media Group
  • Graphic Monk
  • Professor
  • User avatar
  • Joined: Jan 12, 2005
  • Posts: 778
  • Loc: In the heart of California, Fresno.
  • Status: Offline

Post May 24th, 2007, 2:52 pm

I am almost certain flash can open a window to a specific size.
http://www.JamesBelk.com Stay Tuned for the new era in Belk Media Design
  • Belk Media Group
  • Graphic Monk
  • Professor
  • User avatar
  • Joined: Jan 12, 2005
  • Posts: 778
  • Loc: In the heart of California, Fresno.
  • Status: Offline

Post May 24th, 2007, 3:15 pm

Here ya go I found this.

http://www.actionscript.org/forums/archive/index.php3/t-58604.html
http://www.JamesBelk.com Stay Tuned for the new era in Belk Media Design
  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Joined: Jul 11, 2005
  • Posts: 1828
  • Loc: In the Great White North
  • Status: Offline

Post May 24th, 2007, 3:33 pm

since your doing this with a banner and you don't know what page it will be on (thats up to the publisher, like pointroll to decide) you can't call a javascript thats on the same page as your swf.

the code above may not even work because of the pass through controls that most publishers have in place. Instead I would recommend making a special page for the getURL to target. Have that page resize its own window and then redirect you on to the correct url in the already sized window.
  • ilyawizard
  • Proficient
  • Proficient
  • No Avatar
  • Joined: Oct 24, 2004
  • Posts: 413
  • Status: Offline

Post May 25th, 2007, 8:13 am

[quote="OriginNO_II"]Here ya go I found this.

[url]http://www.actionscript.org/forums/archive/index.php3/t-58604.html[/url][/quote]

Thanks a lot for the link, but it doesn't work for me with 2 links poped up. And the example you gave me still uses javascript. There's no pure flash solution to this problem. Anyway opening in a temporary URL and redirecting is one of the best solutions. The other solution would be making a query variable like http://www.site.com?openNew=true, and on a targeted site make a script if openNew=true then open a new window using javascript. Thanks to everyone for helping.
  • montyt
  • Proficient
  • Proficient
  • User avatar
  • Joined: Apr 27, 2007
  • Posts: 275
  • Status: Offline

Post May 31st, 2007, 11:33 pm

try this code
Code: [ Select ]
on(release){
getURL("http://www.somesite.com ","_blank");
}
  1. on(release){
  2. getURL("http://www.somesite.com ","_blank");
  3. }


this code will for u to getURL . But before that u have to upload ur swf file to the Adobe site, Just have to go through the "Global Security Settings panel" of the Adobe

abt the fixed size of the popup from the flash. may be u need to use the javaScript.

:)
http://shankarthapa.wordpress.com/
  • gddwms
  • Born
  • Born
  • No Avatar
  • Joined: Mar 18, 2007
  • Posts: 1
  • Status: Offline

Post June 2nd, 2007, 3:45 pm

Try this:

javascript will pop up your ad.

getURL ("javascript:NewWindow=window.open('http://www.somesite.com','newWin','width=766,height=431,left=10,top=20,toolbar=Yes,scrollbars=Yes,status=No,resizable=Yes,fullscreen=No');NewWindow.focus();");

greeting cards
dogs :P

Post Information

  • Total Posts in this topic: 12 posts
  • Users browsing this forum: No registered users and 54 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.