getURL issue

  • ilyawizard
  • Proficient
  • Proficient
  • ilyawizard
  • Posts: 413

Post 3+ Months Ago

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.
  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Posts: 1828
  • Loc: In the Great White North

Post 3+ Months Ago

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
  • ilyawizard
  • Posts: 413

Post 3+ Months Ago

Sorry about the confusion. I need the size of the window be specific size.
  • zhaojany
  • Student
  • Student
  • User avatar
  • Posts: 79

Post 3+ Months Ago

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

the URL should be the full address and "http://" is necessary.
  • zhaojany
  • Student
  • Student
  • User avatar
  • Posts: 79

Post 3+ Months Ago

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
  • ilyawizard
  • Posts: 413

Post 3+ Months Ago

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
  • Posts: 778
  • Loc: In the heart of California, Fresno.

Post 3+ Months Ago

I am almost certain flash can open a window to a specific size.
  • Belk Media Group
  • Graphic Monk
  • Professor
  • User avatar
  • Posts: 778
  • Loc: In the heart of California, Fresno.

Post 3+ Months Ago

Here ya go I found this.

http://www.actionscript.org/forums/archive/index.php3/t-58604.html
  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Posts: 1828
  • Loc: In the Great White North

Post 3+ Months Ago

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
  • ilyawizard
  • Posts: 413

Post 3+ Months Ago

[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
  • Posts: 275

Post 3+ Months Ago

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.

:)
  • gddwms
  • Born
  • Born
  • gddwms
  • Posts: 1

Post 3+ Months Ago

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 15 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
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.