GetURL sizeable?
I was owndering if you can make the new window that opens
with:
on (release) {
getURL ("example.pdf", "_blank");
fullscreen?
I would like the pdf to open in a fullscreen browser window.
How can I do that?
Thanks
There are many tutorials about doing this in Javascript -
which is where you'll actually need do this. You can call the
javascript function you make from flash using ExternalInterface -
which I try to force everyone to use - or getURL() -the old
fashioned way.
On most machines, however, .pdf files will open in full
screen (in acrobat reader). At least, in the environments I work
in.
Similar Messages
-
GetUrl won't open in same window?
Hello,
I am creating a website with a flash menu on each page. I am using getUrl code to target each page but I can't seem to get the pages to open in the same window. If I use '_new' or '_blank' the pages open in a new window as they should but if I use '_self' or '_top' nothing happens.
Any help is much appreciated. Thanks!
Code: AS3
aboutBtn.buttonMode = true;
aboutBtn.addEventListener(MouseEvent.CLICK, callAbout);
function callAbout(e:MouseEvent):void{
var url:String = "about.html";
var request:URLRequest = new URLRequest(url);
try {
navigateToURL(request, '_self');
} catch (e:Error) {
trace("Error occurred!");I think I have the right code this time but it's still not working. I tried it on a Mac and it works fine but it is no working on PC (Windows). Any idea why?
Thanks,
Dan
aboutBtn.buttonMode = true;
aboutBtn.addEventListener(MouseEvent.CLICK, callAbout);
function callAbout(e:MouseEvent):void{
var link:URLRequest = new URLRequest("about.html");
navigateToURL(link, '_self'); -
GETURL is not working in flash player 9.0.124.0.
Dear Friends,
My swf and my html are in different domain so i got a issue
in GETURL function , It is not working in flash player 9.0.124.0.
in IE browser so that i add one parameter like allowScriptAccess
=always then its working fine.but my question is what will happed
if they will introduce any new flash version in future please tell
me what is the permanent solution for this issue.
ThanksThere is no way to know what will change in the future. This
is the solution that works now. It will probably remain in place
for the reasonable future. -
Automatically getURL at the end of a movie?
I’ve been using Swift3D to create a splash page.
I’ve imported the movie into Flash and worked out how to
[stop();’] my movie from repeating. At the end of the movie I
want it to another webpage in the same window.
I’ve tried adding the getURL script in the last frame
of my movie but I get this error in the output window:
**Error** Symbol=movie.swf, layer=Layer 1, frame=59:Line 1:
')' or ',' expected
getURL(http:/www.mysite.com/);
The movie plays but the [stop();’] action is ignored
and the movie continues to loop. I’ve tried putting the
getURL before and after the [stop();’] action but I get the
same error.
So what am I doing wrong? I’m really new to this.
Trying to learn DremWeaver at the same time and my head is fried.
Can someone help?
Many thanks in advance.
sThanks Rapatski & dzedward it works but I now get an
error saying that Flash Player has stopped a potentially unsafe
operation. The following local application on your computer or
network is trying to communicate with this internet-enabled
location.
Is this just because I’m testing the file on my local
desktop? Will this error go away when I upload my files to a
server? Or is there a way of changing the security settings in my
Flash movie? -
Using getURL to access network files
I am working on an Intranet site and I need a button in Flash
to open a file that's on our network share. I know about the getURL
function and use it often to link to HTML files that are on the
same server as the web files, but I don't know how to use getURL to
open external files on the network:
example:
on (release) {
getURL("page1.html", "_blank");
page1.html is located on the webserver but contains a link to
\\server1\share1\document1.doc (server1 is a different server on
our network)
I want to eliminate the middle man and link directly to
document1.doc, but I don't know how to do that with getURL since
document1.doc is not on the webserver.
Thanks for any advice.I don't believe you can like directly to this file on your
network because of the security features built into flash which
will not allow network access such as this. -
GetURL works on exe but not html
Hi -
I published my project out as a Mac Projector, PC exe, and
html and burned it onto a CD. I didn’t want to use autorun so
I instructed the PC user to launch either the exe or html. Every
thing worked fine except the btn that opens a browser and web page
with a getURL command.
When the user viewed the project using the exe, the btn with
getURL worked. When the user viewed using the html, the same btn
did not work...no browser, no webpage. On the Mac side the btn
worked when viewed on the Projector or html.
What caused this broken link on the PC side and how can I fix
it?
TIA your input,
J2Yes this is a known problem.
Use JWeb
its free
http://jweb.flashjester.com
Regards
FlashJester Support Team
e. - [email protected]
w. -
http://www.flashjester.com
There is a very fine line between "hobby" and
"mental illness." -
Im making a flash banner that opens link in a new Window.
getURL("bla bla", "_blank");
In explorer everything works fine but in Firefox its not
working, it blocks
popups.
Is there a way that i can open link without using external
javascript?!
Or open the link in new tab?!?
Is there such command in flash?!
thankscircumventing popup blockers is not an actionscript issue and
can't be solved in flash alone. -
GetURL not working when swf is loaded into another swf
Ok, I need some help for something relatively simple which
for some reason I've not been able to find any information on at
all?
Hopefully it will be something easy to fix.
Essentially I have the following:
my main movie "Home.swf"
another movie "Sub.swf"
I've loaded "Sub.swf" into "Home.swf" via an empty movieclip.
Within "Sub.swf" I have some links which when clicked call
getURL and open a HTML page in the browser.
But for some reason the getURL isn't working and I believe
its because the getURL is called from a loaded movie within
"Home.swf".
I've tried changing the actionscript to:
_root.getURL('/mypage.html');
_parent.getURL('/mypage.html');
but neither (_root / _parent) seems to work?
Need help here please.
Many thanks.
Kind regards,
M.Hi kglad,
Yes the button is definitely firing ok.
In the "Sub.swf" movie, on the second frame of the timeline
(the first frame is some preloader code) there is the following
code:
imgMC.mascara.onPress = function() {
//trace('mc[activo] = ' + mc[activo]);
switch(mc[activo])
case _level0.imgMC.MC0:
trace('0 - ' + mc[activo])
break;
case _level0.imgMC.MC1:
trace('1 - ' + mc[activo])
break;
case _level0.imgMC.MC2:
trace('2 - ' + mc[activo])
break;
case _level0.imgMC.MC3:
trace('3 - ' + mc[activo])
break;
case _level0.imgMC.MC4:
trace('4 - ' + mc[activo])
break;
case _level0.imgMC.MC5:
trace('5 - ' + mc[activo])
break;
If I run this movie in Flash (ctrl-enter) then the trace
works fine.
But the trace stops working when I run the main "Home.swf"
movie in Flash (ctrl-enter) when the "Sub.swf" is loaded into an
empty movie clip.
And when I change the trace for a getURL and test in a
browser it still doesn't work?
What do you reckon?
Thanks.
M. -
2/21/08 Update:
There is a technote covering these two issues.
"getURL and navigateToURL issues with Flash Player 9.0.115.0
ActiveX control"
http://www.adobe.com/go/kb403072
As of today we have two open bugs specific to Flash Player
9.0.115.0 ActiveX control and the use of getURL("javascript:...")
syntax..
I will be writing a technote describing the workarounds today
or tomorrow, but I wanted to share some of my testing with the
community so you can see what the story is.
Issue one:
getURL("javascript:blah()") failing when the content is local
to a drive or cd or dvd. This is a legit bug, not a problem with
FlashPlayer trust.
This post does not describe issueone , but you -can- use the
source FLA's to test issue one.
Issue two:
getURL("javascript") failing with live content if the HTML
and SWF are in separate domains. IE6 and IE7 only.
ExternalInterface has been successful as a workaround for
that as well (in my tests at least...)
At this point I cannot provide an ETA on any fixes, though I
am pushing hard for these to be addressed in the next planned
update (no, i cannot tell you when that is, sorry).
OK now for my testing.
Each test uses the same SWF setup, but the javascript and
html change as necessary. The results of –my- testing are
below each link.
All my tests are with Flash Player 9.0.115.0. As most on the
thread surely know these bugs were injected in the 9.0.115.0
development process and do not appear in 9.0.47.0....
There are four tests in each version (top to bottom)
-- button 1: getURL
-- button 2: externalInterface passing a string via a
variable, which is caught by javascript in the HTML page
-- button 3: fscommand
-- button 4: externalInterface calling 'window.open' directly
with no in-page javascript
-- Buttons 1 through 3 (top to bottom) fire an alert, put
some text into the debug text box in the SWF and open a new window.
-- Button 4 only opens a new window, puts some text into the
debug text box, but no alert (because it’s a direct call to
window.open)
Scenario 1:
HTML and SWF in same domain, no frames
The original AS2 version:
http://www.bentimagemedia.com/escalations/cs3_getURL/getURL_AS2.html
FireFox OSX – all pass
FireFox XP – all pass
IE6 XP – all pass
IE7 Vista - all pass
The AS3 version:
http://www.bentimagemedia.com/escalations/cs3_getURL/getURL_AS3.html
FireFox OSX – all pass
FireFox XP – all pass
IE6 XP – all pass
IE7 Vista - all pass
Scenario 2:
HTML and SWF in same domain, frameset, calls going to same
frames – this setup has two horizontal frames with the AS2
version of the SWF in the top, the AS3 version in the bottom.
http://www.bentimagemedia.com/escalations/cs3_getURL/frames/getURL_frames.html
FireFox OSX – all pass
FireFox XP – all pass
IE6 XP – all pass
IE7 Vista - all pass
Scenario 3: (THIS IS ISSUE TWO ABOVE)
HTML and SWF on different domains, calls going to the same
frames – same swf’s, same setup with modified HTML. The
HTML lives on bentimagemedia, but the SWF’s are embedded from
supportflash.com
http://www.bentimagemedia.com/escalations/cs3_getURL/frames_crossdomain/getURL_frames_cros sdomain.html
FireFox OSX – all pass
FireFox XP - all pass
IE6 XP – Button 1 getURL("javascript"...) fires
function, but does not open new window.
- all other buttons pass
IE7 Vista - Button 1 getURL("javascript...) fires function,
no new window same as IE6.
-- all other buttons passWe are currently using Adobe Flash player 9 on Windows XP operating system. We would like to know if Vulnerabilities in Adobe Flash Player 6 Provided in Windows XP, could Allow Remote Code Execution mentioned in Microsoft Security Advisory (979267), is resolved in Flash Player 9? For more details on vulnerability please refer "Microsoft Security Advisory (979267)". I have been wondering for the answers from a week and I have even logged the same in forum which fetch me no result. Could you let me know regarding this.
Since we have security related issue with this please consider this call at high priority.
~
Satu28 -
GetURL problem in Internet Explorer 7 RC1
I'm doing the following in Internet Explorer 7 RC1:
_root.getURL("foo.html", "_target");
However, it always loads in the current window, and not a new
one. Has anyone else been experiencing this in the new IE release?
I've checked my IE config settings, but still can't get it to work.
Thanks!clint108 wrote:
> I'm doing the following in Internet Explorer RC1:
>
>
> _root.getURL("foo.html", "_target");
>
> However, it always loads in the current window, and not
a new one. Has anyone
> else been experiencing this in the new IE release? I've
checked my IE config
> settings, but still can't get it to work.
_target is not HTML parameter :) it returns the target path
of the instance.
Also, getURL is not confine to timeline so there should be no
_root it the action path.
Just use getURL("foo.html", "_blank"); if you like to open
new window
Best Regards
Urami
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami> -
GetURL(javascript) not working in flash player 9
This action works well in flash player 8 but it doesnt in
flash player 9 can someone please help me, its very urgent.
getURL(javascript:openNewWindow('
http://www.macromedia.com','thewin',
'height=400,width=400,toolbar=no,scrollbars=yes'));DazFaz wrote:
> if looks as though you have missed off the speach marks
from within the call:
>
> getURL("javascript:openNewWindow('
http://www.macromedia.com','thewin','height=40
> 0,width=400,toolbar=no,scrollbars=yes')");
One more note tho, it's good to void the request after you
make the window call.
getURL
("javascript:n_name=window.open('PAGE.htm','thewin','width=400,height=400,scrollbars=yes' );void(0);");
*** VOID
Void returns nothing.
Have you ever seen pop up windows that say [object] in them?
well that's because the function that made those windows had
a return
value that was an 'object'...
Void is use to take the result that some function returns and
discard it.
Some people do window.open(...);void(0); or
void(window.open(..)); - does not
really matter tho .....but it's good practice to use it .
Also, no need to set NO parameters. By default all are set to
NO, you only
define the one you need to be set to YES.
Best Regards
Urami
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami> -
GETURL not working in exported movie
I hate to beat a dead horse but I'm at my wit's end. I've
tried everything I have read online and it still doesn't work...
I have created a keyframe at the end of my flash with...
getURL("www.blahblahblah.ca/underconstruction.html");
I export the flash and then in my web page builder I add a
flash to the main site www.blahblahblah.ca/index.html
the flash plays wonderfully but then the next page doesn't
load.
all I want to do is have a webpage come up AFTER the flash
plays.
somebody please help !!!!make sure you put
http:// before www.blahblahblah.ca/index.html
maybe thats why it doesn't work -
Do Flash getURL links work when SWF is embedded in Director?
I’ve got a simple test rig that says no, the links
won’t work. Anybody get this to work?
My test rig has two buttons in Flash, one gets a pdf from a
remote server, the other opens a local PDF on my hard drive.
When played from the Flash player the local link works fine,
the remote link looks like it would work if I were willing to
change my security settings and restart.
When embedded in Director both links are inactive.
And, although this is not terribly relevant, when the SWF is
played remotely through a browser, the remote link worksYour Flash .swf is expecting to be housed in an HTML doc, and
so a getURL function is trying to reach out to the browser. When
you import your .swf into a Director movie, that Director movie is
taking the place of the browser window. So your function fails to
reach a browser. This is compounded if you are playing the .swf
from a Director projector as there's no browser immediately
available.
There is a simple solution. You can use the on getURL
me,string function in Director to intercept the url.
So, if your Flash movie has something like this:
myButton.onRelease = function() {
getURL("www.disney.com",_blank);
Then in your Director movie, write a behavior something like
this:
property thisSprite
on beginSprite me
thisSprite = me.spriteNum
end
on getURL me,link,target
gotoNetPage link,target
end
Then attach that behavior to the Flash sprite. -
Geturl or ExternalInterface does not work in Firefox 2.0
This works in IE7:
on (release) {
var callJas:String = 'javascript:abrir_faleconnosco()';
getURL(callJas);
But when using the same html with flash in Firefox, the Flash
never makes the call to the javascript function. I tried also with
button_1.onRelease =function(){
ExternalInterface.call("window.open","
http://www.adobe.com", "win",
"height=200,width=300,toolbar=no,scrollbars=yes");}
But again works in IE7 but not in Firefox 2.
In the publishing i changed the local playback security to
access network only to see if it made any difference.
Can any one help me?Is there any chance that you have Javascript disabled in
Firefox? -
GetURL is triggered when animation loops
I created a simple animation that needs to have a button on one segment of the animation. I created a button with a action of getURL in AS3, the problem I am haing is that every time the animation loops from the first frame it triggers the button and the new page I requested pops up. How can I stop this from happening automatically?
If you show the code you used and explain where you put it, then someone may be able to help.
getURL is not AS3 code, it is AS2, so more is wrong with your design than you probably anticipate. If it is an AS3 file and you use AS2 code you will get an error message.
Maybe you are looking for
-
Is it possible to install Forms and Reports 11.1.1.2.0 without Weblogic
is it possible to install Forms and Reports 11.1.1.2.0 without Web logic ?
-
New process in LR 4.2 RC for Leica M Monochrom?
There is a message when importing DNG files shot with a Leica M Monochrom with LR 4.2 RC indicating some new process is implemented for the camera and prompted the user for update? What new process is implemented in this regard? does LR4.2RC turn off
-
Vista not recognizing IPhone as camera....
Well, my IPhone and Vista worked fine a couple days ago but now, Windows doesn't recognize IPhone as a camera, so i can't get my pictures off it as easily. http://sleekupload.com/uploads/untitled_83.jpg The link above is Vista trying to install drive
-
dear all,we have added to keyfigures to inventory cube expiry date and manufacturing date. add populating the keyfigures by routines in bf update rules. but the problem is the keyfigure values are not constantly displaying even tough present in the c
-
Comcast email and Outlook 2007
After multiple tries I have been unable to get Outlook 2007 to work with Comcast. I have tried everything. Please advise. Thank you