AS 3.0 - using ExternalInterface.call to open a .pdf

Hi - using Flash - AS 3.0:
I am trying to use ExternalInterface.call to open a .pdf file - but it is not working - nothing is happening...
   ExternalInterface.call ("window.open","diagrams/v1/crh.pdf", "WindowName", params);
but this line DOES work - call an .html file to open.
   ExternalInterface.call ("window.open","m5_quiz/v1/quiz.html", "WindowName", params);
I can't find any information that says this should or shouldn't work - it seems to me it should open it.
To get around this - I have been using 'navigateToURL' to open the pdf file - but that triggers the pop-up blocker - using the External Interface call does not.
Any help/ideas?
Thanks,
Lisa

I agree - that code - if it opens an html should open a pdf - but it doesn't.  And I don't know why..
Why is the code screwy?  Could I do it better another way?
Thanks

Similar Messages

  • When using safari, trying to open a PDF it open's in black

    when using safari, trying to open a PDF it open's in black.
    I just had genius bar remove OS and then reinstall. It still wont open PDF. If I use chrome all is well.

    Check this link:
    http://reviews.cnet.com/8301-13727_7-57489866-263/incompatible-pdf-viewer-may-ca use-problems-in-mountain-lion/
    Cheers,

  • ? When I try to use Adobe reader or open a PDF file

    I get the Error "Invalid plugin detected Adobe will quit" How do I fix this?

    In that case, you might try this forum: http://forums.adobe.com/community/acrobat/acrobat_windows This one covers a different Adobe product.
    What it sounds like is that one of the helper programs that reader uses, called plug-ins, isn't working. If you've recently added a plug-in, you might try removing it. Otherwise, I would be inclined to uninstall reader and reinstall the latest version.

  • How to use iCloud Drive for opening a pdf file in iphone

    Hello,
    I would like to know if I need some app for opening a file pdf in iCloud.
    I put several pdf file in iCloud but, I can not read it
    how I should to do?
    Thank you very much, Luis

    luisfromarg wrote:
    Hello,
    I would like to know if I need some app for opening a file pdf in iCloud.
    I put several pdf file in iCloud but, I can not read it
    how I should to do?
    Thank you very much, Luis
    There are thousands of apps for that.
    Try Adobe Reader.

  • ExternalInterface.call() problem

    Hi,
    My first problem was the random activation of the pop up
    blocker in Fierfox when I use navigateToURL("url", "_blank").
    I found a solution
    there,
    but unfortunaly this solution didn't work for me.
    The solution is to use ExternalInterface.call for opening a
    new window without the popup blocker, but I cannot use the solution
    if I don't put in my HTML page <param name="allowScriptAccess"
    value="always" />. If I don't put this parametre I cannot use
    ExternalInterface.call.
    You'll say, why you don't put this parametre? It's because a
    lot of person use this application, and they are able to integrate
    it into there web site, unfortunaly I cannot control if they put
    the parametre allowScriptAccess.
    So I'd like to know if it's possible to use
    ExternalInterface.call without the parametre.
    Thanks
    Matthieu

    quote:
    Originally posted by:
    mattL_75_13
    Nobody has an axe of search ??
    I will trade you for a Sword of Reply

  • CairngormCommand - EventHandler - ExternalInterface - HTMLPopup - window.opener == null !!!

    Hey,
    I stumbled over a strange behavior... First I thought it's the PopUpBlocker
    I successfully implemented the payPalFlex solution. Only difference is, that I need to create a OrderHeader Entity before calling the PayPal-PopUp Window.
    So if I cancel the PayPal process and want to make the callback via. JavaScript to Flex (it's the onCancel part...)  the window.opener is null?! So I am already searching about 5 hours to find out what happened there. I think it's because I am not running in the main thread anymore.
    (I already tried to implement this with a changeWatcher and the Cairngorm successHandler Pattern...)
    Do you have a clue what's the Problem?
    Thanks!!!!
    some code out of my cart:
    // this gets called from button "Pay with PayPal"
    private function doPayWithPayPal(event:Event):void {
            // first create the OrderHeader
         var orderHeader:EOrderHeader = new EOrderHeader();
         orderHeader.id = 0;                    
         orderHeader.orderNumber = 0;               
         orderHeader.customerID = 0;                
         orderHeader.giftCodeID = 0;
         orderHeader.shipmentTypeID = 0;
         orderHeader.fulfillmentFlag = 'F';
         orderHeader.dateOrderDate = new Date();          
         orderHeader.orderTotal = sumOrder;
            // dispatch event to create orderHeader on Server
         var orderHeaderEvent:OrderHeaderEvent = new OrderHeaderEvent(OrderHeaderEvent.SAVE_ORDER_HEADER);
         orderHeaderEvent.orderHeader = orderHeader;
            orderHeaderEvent.successHandler = orderHeaderSaved;
         orderHeaderEvent.dispatch();
    protected function orderHeaderSaved():void {
         if( AdminModel.getInstance().returnedOrderHeader == null ) {
              Alert.show("Error!!!");
         var orderID:Number = AdminModel.getInstance().returnedOrderHeader.id;
         var requestURL:String = "remote/payPalFlex/startPaymentFlex.php";
         ExternalInterface.call('window.open','about:blank',
              'myWindow','height=500,width=900,toolbar=no,scrollbars=yes' );
         var url:URLRequest = new URLRequest("remote/payPalFlex/startPaymentFlex.php");
         url.data = new URLVariables();
         var obj:URLVariables = new URLVariables();
         url.data.useAs = orderID;
         url.method = "GET";
         navigateToURL(url,"DomainStickersWindow");
    in cancle.php:
    <html>
    <head>
    <title>PayPal PHP API Response</title>
    <script type="text/javascript">
         function doCancel() {
              window.opener.window.document.getElementById('index').doCancel();
              window.close();
    </script>
    </head>
    <body>
      You canceled, close to go back to the shop blablabl...
    <a href="javascript:doCancel()">ZurŸck zum Shop</a>
    </body>
    </html>

    Not solved yet but it seems to be a Safari specific Problem.

  • ExternalInterface.call('scroll',0,0) not working in chrome

    My application has a requirement that if the user is in the bottom of the page and clicks on any link which in turn opens a flex popup, it will take the user to the top of the application as popup opens on the top (as per requirement). For this i have used ExternalInterface.call('scroll',0,0); which works perfectly for every browser except google chrome. in chrome when user clicks it takes the user to the top but doesnt opens any popup, once user clicks on browser scrollbar and moves slightly then the pop up opens.
    Need a solution for this.
    Thanks in advance.

    Maybe chrome needs to get focus, if so instead of calling the scroll call
    another JS  function which scrolls and sets the focus on some html element in
    the browser. Not sure if it will work but you can give it a try.
    C

  • Problem with ExternalInterface.call and Internet Explorer

    Hi, I´m developing a site, (
    www.gen-studio.com/avelart2
    ), and I´m using a swf to display a set of thumbs that when
    clicked show an item and its description on the browser, those
    items might be images or video, everything works fine with the
    images.
    And actually it works fine with the videos too, when using
    Firefox, but when I test the page on Internet explorer it just
    doesn’t work!
    On principle let me describe how it´s supposed to work,
    a thumbnail when clicked sends an id number to javaScript using
    ExternalInterface.call(“myFunction”,myId); -I´m
    using AS3 for the swf´s-
    the javaScript file has already loaded (ever since$(
    document).ready) a XML file which uses to match the id with a file
    and the description, if the item to show it´s a video, then it
    creates a variable which holds a string with the proper html to
    embed a swf (a swf movie player that resides just next to the HTML
    file), when loaded, the swf movie player uses
    ExternalInterface.call() to ask for the source of the video that
    has to play, and that function is as follows:
    setVideo: function(){
    alert("hola");
    return comun.miVideo;
    (The alert(“hola”); is just to test that the
    function is being called), which it is, but it returns null as a
    value instead of the proper string, and this happens only on
    internet Explorer, but works correctly on Firefox.
    I´ve been reading all day about the subject and found a
    few interesting things, which though have made me narrow my
    problem, they haven´t just provided me with a solution, what I
    found so far:
    -I must have in account flash security issues: Checked (my
    actionScript follows:)
    import fl.video.*;
    import flash.external.ExternalInterface;
    flash.system.Security.allowDomain("*");
    var vid:FLVPlayback = this.miPlayer;
    vid.source =
    flash.external.ExternalInterface.call("comun.setVideo");
    -ExternalInterface and Internet explorer don´t work
    properly when tested locally: Checked (I have a server on my PC and
    I´m testing the site as well in the above direction).
    -The object tag holding the swf must have a proper id
    attribute: Checked.
    -It´s super important the way the object tag is formed:
    Checked, and I also tested the tag separately (I put it directly in
    the HTML instead of adding it via javaScript) and it worked as
    expected in both Firefox and Internet Explorer, which leads me to
    believe:
    -I read somewhere that if you add the object tag by using
    innerHTML or appendChild, returning values from javaScript to swf
    won´t work, but I couldn´t find an explanation nor a
    solution.
    Well, as I said now I´ve been looking all day for an
    answer, so I really hope you can help me or give me some advice on
    the subject, thank you so much for your time!

    Hi! it solved itself !! (nahh, I wish), but it indeed had a
    solution, it was something quite simple, and I don´t really
    understand why it was not working in the first place, but here is
    the thing:
    I´m learning jquery and this is the first proyect
    I´m officially using it, so I was using
    $('#myDIV').append("string"); to embed the swf, (and it was working
    perfectly on Firefox), so since I had narrowed my problem to those
    lines, I decided to try some good-old-fashioned-javaScript and
    changed it for: var myDiv =
    document.getElementById('thatParticularDiv'); myDiv.innerHTML =
    ('string'); and it worked both in Firefox and IE !!!!!! :)
    I´m quite happy about it, and if someone knows
    what´s the issue with my jquery approach I would love to hear
    it. THANKS !!

  • ExternalInterface.call not working

    ***Flash CS4 -published to AS3.0 and Player  10***
    I am having a problem using ExternalInterface.call to a javascript  function. I have used this method many times in many places and at some  point during this project, it was working, but now it stalls my Flash  file when executed.
    I have the function:
    var initialize=function(){
    ExternalInterface.call("SCOInitialize");
    statusTxt.text="initializing";
    On my html page, there is a SCOInitialize function that works perfectly  if I call it via the html page:
    <body onLoad="SCOInitialize()">
    </body>
    When I make the call using flash...
    initialize();
    ...the Flash file just gets hung up and it actually wont execute the  second line of code in the function: statusTxt.text="initializing";
    What is the deal? I can't for the life of me figure out why it won't  work anymore!!!
    Also, I have checked to see if the ExternalInterface is available, and  it returns "true".

    I am testing locally using an HTML file that virtualizes an LMS. I have used is many times in the past. I originally used javascript that I normally create for these circumstances that always worked in the past, then switched to trying to use the Javascript that Flash created. In either case, the call to the Initialization function onLoad from the HTML page itself worked fine, both actually having different Function names, but perform the same function, while the ExternalInterface call to both fails.

  • ExternalInterface.call() does not work normally since flash player 11.8.800.168

    Problem Description:
    korean character crash when using ExternalInterface.call(funcName, args)
         funcName : alpha-numeric
         args : include korean characters
    Steps to Reproduce:
    <flex source>
    private function handleRequest(val):void {
         ExternalInterface.call("processRequest", "가나다라");
    <javascript source>
    function processRequest(param) {
         alert(param); //does not display korean characters
    Actual Result:
         媛&#128;?섎떎??
    Expected Result:
         가나다라
    Any Workarounds:
    Nothing !!
    OS : Windows7 Pro 64bit(korean)
    Flex Builder : 3.0
    Flash Player : 11.8.800.168 ActiveX
    Browser : IE10
    WAS : WebLogic 8.1, 12g, Tomcat 5,6,7
    Chrome : 29.0.1547.66 m <== Good
    FireFox : 23.0.1 <== Good

    Same problem here! With the exact same version.
    Problems on IE.
    Chrome and FF OK

  • Resizing div height using ExternalInterface makes window jump in safari

    I only notice this problem in safari, no other browser.
    My application loads in modules as it needs them and changes the height of the HTML div that contains the movie, I do this using ExternalInterface.call. (This is because scrolling in flex/flash is downright awful, I like the scrollbar in the browser to work).
    However, If I load in a module and inside of that module I change the external interfaces height, I find that the flash movie seems to jump down then jump back up about 150-200 pixels.
    I want the movie to just stay anchored to the top of the div, no matter what the size of the div is. How can I enforce that policy on the player?
    I have tried align: "t" and salign: "t" in the movies params, but I'm not exactly sure what that did as it still jumped down.

    hey, thanks for the direction. I'm guessing that when i styled the attribute, any existing css style for the object still overrid the attribute styling.
    Here is a simple version of my solution:
    <code>
    function autoWide (myID, minWide) {
    var targetA = document.getElementById(myID);
    var currWidth = self.innerWidth;
    if (currWidth < minWide) {
    targetA.style.width = minWide;
    else {
    targetA.style.width = '100%';
    </code>
    If anyone else is interested the innerwidth method doesn't work in all browsers, here is a link to an explaination.
    http://www.quirksmode.org/viewport/compatibility.html
    thanks again.
    G5   Mac OS X (10.4.6)  

  • ExternalInterface.call URL string limit

    I am using ExternalInterface.call and i found out that
    recursive calling will not work .........and passing all the data
    in one call
    is also giving me a problem with string limits...........ANY
    IDEAS please?

    Yes. Make a function in JavaScript that uses the
    "GetVariable" method.
    (READ HERE:
    http://www.adobe.com/support/flash/publishexport/scriptingwithflash/scriptingwithflash_03. html
    ...and call it from the external interface. Put your 'string
    data content' in a variable and read it from JavaScript.

  • ExternalInterface.call across domains?

    I'm using ExternalInterface.call in a swf file to call a
    javascript in the html container. The swf file is located in a
    different domain than the html container. Everything works fine if
    all files are within the same root directory, but as soon as I
    reference the swf file located in the other domain, the call stops
    working! What am I missing?
    swf file has this in frame 1:
    import flash.external.ExternalInterface;
    function clickListener(eventObj:Object):Void {
    ExternalInterface.call("sendToResponseForm");
    swf file has this on mc instance tracked as button:
    on(press){
    clickListener();
    html file/container has this in <head> tag:
    <script type="text/javascript">
    function sendToResponseForm(){
    window.location = "my.other.html.file";
    </script>
    html file has this embedded:
    <object
    classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"
    width="700" height="550">
    <param name="movie" value="
    http://www.otherdomain.com/vid/my.SWFFile.swf"
    />
    <param name="quality" value="high" />
    <embed src="
    http://www.otherdomain.com/vid/my.SWFFile.swf"
    quality="high" pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    type="application/x-shockwave-flash" width="700"
    height="550"></embed>
    </object>
    Hopefully, that's enough for you to chew on. Like I said if
    swf and html are in the same domain, it works. Just as soon as I
    point to second domain for swf file source it stops working.
    thanks
    deke

    Here's my mistake -- the swf file was fine and actually
    worked in IE6/IE7 but wouldn't work in Firefox. The process of
    including the swf file in the HTML was flawed. I originally
    published the HTML using Dreamweaver to write the <object> in
    the code. What fixed the problem was I published the swf file using
    Flash to a desktop folder which produced a javascript file
    (AC_RunActiveContent.js), the swf file and the HTML. The javascript
    dynamically determines which browser was being used and which
    player plugin was required. The script ultimately loads/writes the
    embed or object for the swf file appropriately for the content
    environment and everything communicates properly. It didn't have
    anything to do with cross domain communication at all.
    The main challenge was updating the Flash HTML/Javascript to
    use the proper swf resource which was located on a different server
    and move the js file to the appropriate directory updating the link
    in the HTML accordingly. My only concern was the added overhead of
    an external javascript source. But, at least I'm not concerned with
    whether it works or not anymore.
    Hope this helps somebody.
    deke

  • How do I open a PDF posted in safari with another program....Isn't there an "open in" option?

    I am using my iPad for school in conjunction with D2L. When professors upload documents to the website (mostly using Adobe) I can open the PDF but only the first page of the document comes up. I have adobe reader on my I pad and the instructions say to click on the "open in" tab and chose adobe reader. However, I have yet to find an open in tab. I have several apps on my iPad including adobe reader, pages and good reader. Please help me find a way to read through these documents.
    Thanks!!!!!!!

    iBooks functions as a decent PDF reader.  Install iBooks and you should see it as an option in 'Open in' of Safari.
    Good luck.

  • Opening a pdf file through form 10g

    Dear all,
    I have requirement to open a pdf file through my form application.
    Ho will i do this?
    What is the procedure to do this??
    Please help me.
    Regards

    Can you tell me where the pdf can be found. Through a webserver or inside the database or is the pdf somewhere else?
    If the pdf is available through an url you could use web.show_document which can open the url/pdf document in a new browser window.
    If the pdf is inside the database you could download the pdf to the client using webutil and then open the pdf document using a host command.
    If the pdf is inside the database or by a url you can also use a forms bean. I've used forms bean bean to unload a pdf from the database and show it inside the forms application. Most important when using a forms bean is that the bean component can show all the fonts which are used inside the pdf. There are some free solutions which can not show i.e. bar codes. The are also some paid components which will do the trick.
    Regards,
    Mark

Maybe you are looking for

  • Iomega external hard drive 500gb no longer recognised on yosemite

    Hi, few days ago just upgrade my ios to yosemite and now I can't mount my external hardrive iomega, I can see it on disk utility but can't mount. what can i do? ios yosemite 10.10.1 MacBook (13-inch, Aluminum, Late 2008) Thanks!

  • How do I put an iPhoto slideshow onto a DVD?

    I need to put the iPhoto slideshow on a DVD. How do I do that?

  • Suddenly unable to sync iPad

    Hello all. I've had my iPad for 11 days now. Up til now, I have had no problem syncing it with iTunes on my PC (Windows Vista Home Premium). Today when I connected the iPad to the PC, iTunes started as normal and recognized the iPad. However, instead

  • Video editing problem in PS CC 2014

    I'm editing a video in PS CC 2014.  When I hit the play button to review my clips, it just jumps to the end of the timeline.  I have "Enable Timeline shortcut keys" checked, and if I hit the space bar it does the same thing.  Never had this happen in

  • Palm Tungsten E2 and Mac 10.3.9

    I am getting a Palm Tungsten E2. What issues should I be aware of when trying to use it with iSync/OS 10.3.9? I plan on using it to keep my calendar and contacts handy, for the most part. Also, I foresee upgrading to a new computer within 6 months- w