Javascript Pop Up Function for Flash 8

Hi there,
I have searched and found many articles on a Javascript
triggered pop up browser window but when I seem to translate them
into the new version of Flash 8 all functionality seems to fly out
the window. Any ideas on how I can approach this? I have tested the
scripts in Flash MX and they work fine but Flash 8? Hmmmmm.... Are
there any scripts available that would help me out?
Cheers,
Simon.

Are you attempting to use javascript to open a file?
I just want to make sure I understand....
If that is what you want to achieve, try this
getURL"javascript:NewWindow=window.open('somefile.html','newWin','fullscreen=Yes');NewWind ow.focus();void(0);");
Hope this helps
Doug

Similar Messages

  • Using variable in function for FLASH video

    I have a webpage that uses PHP to pull a variable from a
    MySQL database.
    I would like to use that variable to tell my flash component
    what flash video to play. I cant seem to figure out how to place
    the variable in the function call to make it work.
    Also...The main page is in the root directory of my site with
    all my flash videos in a subfolder. I can't seem to get the videos
    to play on my main page unless they are in the same directory. I
    even tried to simply 'include' the movie into my existing page and
    it doesn't work.
    Any idea on either of these issues?
    (Is this even the correct forum area for this? I am new to
    using FLASH for this stuff)

    Thanks for the advice!
    Turns out I believe my answer lies in PHP, but I will check
    out the LoadVars help in FLASH too!
    Andrew

  • Javascript function for validating string for length

    hi all,
    i am having a string whose datatype is CHAR in the database and length is 7 .
    can any one help me with the javascript validation code(function) for this?
    regards and thanks in advance

    sigh Another user to the ignore list. :)You should see this thread
    http://forum.java.sun.com/thread.jspa?threadID=632908&tstart=0ram.

  • Using Javascript Functions with Flash 8

    I wanted to know how to integrate Javascript functions with
    Flash 8 created swf files. I assume this would be done using
    ActionScript, I know some ActionScript but am not as familiar with
    it as to be able to integrate other programming languages with it.
    I'd like to be able to call other programming language functions
    with my swf files.
    The particular case I'm working on now is to be able to open
    Pop-Up windows for display of web items from within links written
    in ActionScript in a swf file. In other words, have the user click
    a link in a Flash movie and open a window using a Javascript
    window.open function that would be called. I would like the window
    to contain more flash movies that contained further links to
    functions. If any one could offer up some advice or point me to a
    few tutorials and how tos on how to get the Flash part of this done
    I'd appreciate it.
    In a broader scope, a seemless workflow linking Flash output
    files to outside scripting and programming functions would be nice
    to know if anyone has links or input on where I can read up on
    this.
    Thanks

    myButton.onRelease = function () {
    getURL("javascript:myFunc('myVars')");
    }

  • Calling a function in Flash via JavaScript

    My project is in Flash CS3 ActionScript 2. I am using
    JavaScript elements in my project that are called within Flash. The
    following code placed on frame 1 of my main timeline goes to frame
    2 and displays the JavaScript element = that works. Here's the
    code;
    HS_Film_Button.onRelease = function ()
    gotoAndStop(2);
    flash.external.ExternalInterface.call("firehs");
    Now when on frame 2, I want the JavaScript "close button" in
    the element to go to frame 1 on my Flash main timeline. Right now
    what it does is closing itself in frame 2 of my Flash page, so I
    added a flash button in there to go to frame 1. Thus the need to
    double click to finally end up on frame 1. But I want the
    JavaScript element to do that in the first place!
    The real issue here is that the JavaScript element was once
    on my main single frame timeline but its performance (display speed
    and such) was greatly affected by my Flash Time and Date and Frame
    rate calculations. This JavaScript element is based on miliseconds
    and I suspect that my Flash file is based in seconds and that my
    Flash calculations are grabbed by the Browser and directing my
    JavaScript element.....Hey I am getting lost I hope you kind of see
    what I mean. Anyways, if I could just get rid of frame 2 all
    together and have some kind of coding that would eighther have
    Flash calculate in miliseconds rather than seconds????? to match my
    JavaScript one.... Or codify JavaScript so that when called it
    would take over and tell the Browser to change its calculations
    rates?
    If you wish please have a look at the Forum topic postings
    where all of this is evolving with questions examples and
    answers....This link gets you right in the posting.
    Highslide
    JS Forum
    This is where Flash meets JavaScript! I need help please.
    Kind Regards
    Pierre

    Hi, Since your reply I have been trying to follow your
    direction and found a couple of things,
    My flash site is based on the AC_FL_RunContent JS file
    not the
    <object classid= ..............>
    <param name="allowScriptAccess" value="
    sameDomain" /> which element in bold should probably be
    repalced by "always" for the externalinterface addCallback() to
    work properly. The question being what code I have to ad to the
    AC_FL_RunContent JS file for allowScriptAccess.......
    quote:
    ExternalInterface is similar in functionality to the
    CallFrame() method but is more flexible and more generally
    applicable. ExternalInterface is the preferred method for
    JavaScript–ActionScript communication in Flash Player 8 and
    later.
    So I see I could use externalinterface addCallFrame() for
    achieving Javascript to ActionScript communication ; when
    Javascript close button is pressed Flash goes to frame 1........
    The latest hint I got from Highslide JS was to add the
    following in the Head section;
    <script type="text/javascript">
    hs.Expander.prototype.onBeforeClose = function (sender) {
    return confirm("Do you really want to close this nice
    image?");
    </script>
    The line in bold should be the code to call to go to frame 1
    in Flash and the onBeforeClose should probably be onAfterClose.
    Anyways, I am completely lost in space = could you really hep
    me out with this code by code and where to put those exact
    codes.....please
    Pierre

  • How to use destination function for javascript

    Hi,
    I used javascript:var a = window.open('OA.jsp?page=/oracle/apps/cdar/admin/brandupload/webui/SupportPG&retainAM=Y&OARF=printable', 'a','height=500,width=900,menubar=yes,toolbar=yes,location=yes'); a.focus(); in destination URL property, it can work to popup another window.
    But I want to setup a Oracle function for this javascript, and use Destination FUNC property on the button to popup window. But it can not work after I setup a SSWA jsp function with WEB HTML.
    Could some one help this?
    Thanks,
    Eileen

    Eileen,
    How are you adding the OA function ? I have also tried destination url property but not the destination function.Probably you should do sth like this :
    In ProcessRequest :-
    <OABean> <var name> = (<OABean>)webBean.findChildRecursive("<Bean Id>");
    <var name>.setOnClick("javascript:window.open ('OA.jsp?OAFunc=<funcName>','new','height=550,width=850,status=yes,scrollbars=yes,toolbar=no,menubar=no,location=no' );
    OABean is the bean on click of which the page should open like a hyperlink or sth like that.
    Hope this helps.

  • Calling a javascript function from Flash

    Maybe someone out there can help?
    I'm trying to set a variable in AS3 and then use an event to call that variable.  The links are set in an xml file.  I have it working with hyperlinks using navigateToURL, but it's not doing exactly what I want.   What I want is to use flash to call the link in the xml file.  That link will target a javascript function. There is no need to open a new window.  I'm trying to target a particular div on the page.   Here's what I have so far:
    import flash.net.navigateToURL;
    import com.flashloaded.as3.PhotoFlowEvent;
    function eventHandler (eo:PhotoFlowEvent):void {
    var request:URLRequest = new URLRequest(eo.data.link);
    navigateToURL (request,"_self");
    <?xml version="1.0" encoding="utf-8"?>
    <photos path="images/">
       <photo name="photo1" url="1.png" link="javascript:loadContentA();">This is photo 1</photo>
    </photos>
    I'm thinking there must be a way to set the variable and then use ExternalInterface in flash to do the rest of the work?
    any help is greatly appreciated!    Cheers!

    <script type="text/javascript">
    function loadContentA(elementSelector, sourceUrl) {
        $("#mainContent").load("ad01.html");
    </script>
    <?xml version="1.0" encoding="utf-8"?>
    <photos path="images/">
       <photo name="photo1" url="1.png" link="javascript:loadContentA();"></photo>
    </photos>
    import flash.net.navigateToURL;
    import com.flashloaded.as3.PhotoFlowEvent;
    function eventHandler (eo:PhotoFlowEvent):void {
    var request:URLRequest = new URLRequest(eo.data.link);
    navigateToURL (request,"_self");
    photoflow.addEventListener (PhotoFlowEvent.CLICK_SELECTED, eventHandler);

  • Forum for Flash Javascript API

    I think there should be created a Forum dealing with
    questions to the
    Flash Javascript API
    regards Mads

    Thanks for responding, mclem
    I was trying to put it in a .fla, but apparently you can't do
    that, it seems that I have to use jsfl files. I'll be able to find
    all the support I need in the help files now, thanks ;)

  • Declaring Callback Functions in CSXS Extension (for Flash)

    A few features offered in Flash's scripting language are handful of event listeners you can attach to Flash that will in tern call any associated JSFL function you've attached to them while Flash is running. You can then listen for events like "documentNew", "documentChange", "mouseMove", etc.
    JSFL Code Would Look Something Like this:
    fl.addEventListener("documentOpened", myDocumentOpenedHandler);
    function myDocumentOpenedHandler()
         swfObject.call("callBackFunction_InsideFlashPanel");
    My swfPanel registers a callback function, "callBackFunction_InsideFlashPanel" which would handle the event inside the panel.
    This is a way of ensuring my Panel is notified when a change takes place in Flash.
    Adobe has an article about it here:
           http://help.adobe.com/en_US/Flash/10.0_ExtendingFlash/WS4B030CF7-0681-47e3-9E2C-9A6D799980 AA.html
    My question is, how should this be implemented in a CS Extension using the CS SDK?
    Thanks,
    Clint G.

    Right. The whole point of the question is if is possible to
    dynamically declare functions for use as callbacks.
    For example, in the standard loading functions, you register
    a callback like this:
    var load:Loader = new Loader();
    var req:URLRequest = new URLRequest(swf);
    load.contentLoaderInfo.addEventListener(Event.COMPLETE,
    swfloadcallback);
    load.load(req);
    function swfloadcallback(e:Event):void
    The problem with the standard callback function is that I
    can't add additional arguments to it. For example, I couldn't have
    swfloadcallback take in an additional argument (for example the
    index of the swf I'm trying to load). What I'm wondering is if in
    actionscript 3 it's possible to dynamically declare callbacks such
    that I only have to write the code once, but in essence I am adding
    additional parameters to the callback.
    Hence the example I listed above. What I was trying to
    accomplish there was basically dynamically creating callbacks that
    understood which index to insert the loaded image into. But clearly
    that example doesn't work.

  • Once latest Firefox 24 version uploaded, some sites visited get pop up that Adobe Flash Player 11.8 r800 has stopped working

    Once latest Firefox 24 version uploaded, some sites visited get pop up that Adobe Flash Player 11.8 r800 has stopped working. Have tried following and none work:
    - reinstalled latest Shockwave Flash software, uninstalled and reinstalled with clean wipes
    - downgraded Flash to previous version
    - disabled hardware acceleration
    Only when I disable Javascript in Firefox will the error stop but then no Flash application will work.
    This is clearly a Firefox issue with the latest version. The previous version was using the latest Flash and there was no issue.
    Below you will see I am using older version of Flash as I was testing previous, but same issue when I go the latest verison.
    Please fix in an update.

    Well that solution failed ... lasted for almost a day. The crashing of Flash is back.
    You asked for the last crash reports IDs. Here they are:
    Report ID Date Submitted
    bp-74a2105f-95b2-44c6-a3ce-6080a2130922 9/22/2013 6:30 PM
    2b1418a2-9130-41b8-ad45-7b0c7c5799fa 9/22/2013 6:28 PM
    3f669215-e63b-4a80-b926-a7af6caadff3 9/22/2013 6:28 PM
    d1260e01-29ff-4b9e-8d84-f46347854883 9/22/2013 6:28 PM
    ee94ddb7-c130-4be5-826a-27864fd9dc5f 9/22/2013 6:28 PM
    0e439cc8-7726-45b1-9592-0e0f60813487 9/22/2013 6:27 PM
    e0f26c40-3a64-4144-830e-2e426b69d0ae 9/21/2013 10:58 AM
    50260dbf-fff7-4518-a913-cae470b35275 9/21/2013 10:06 AM
    3abb5866-549c-4914-875a-ea8002ebdf9a 9/21/2013 9:17 AM
    4631361e-586e-40b2-be27-6ee0f285c6ba 9/21/2013 9:17 AM
    ac1ab223-72c6-4a70-83f0-9605176692fb 9/21/2013 9:16 AM
    e10631f5-73f2-4abc-8e1d-f2435485692f 9/21/2013 8:55 AM
    c2170bae-9fcf-40b3-9bc3-fd50f30435c8 9/21/2013 8:55 AM
    a4b84ae5-df28-4b04-890a-385063f4d64f 9/21/2013 8:55 AM
    d259a5fb-816f-450d-8e69-5609dbb3cfd9 9/21/2013 8:55 AM
    5533b8b3-c142-4f6c-a03d-c946fb8f8e7b 9/21/2013 8:55 AM
    9f2d0ec1-8ca2-4aff-ab9c-fb9ad7c4fc89 9/21/2013 8:55 AM
    53359919-dcae-48fe-acdd-108b77902995 9/21/2013 8:55 AM
    0b9d01c2-5e18-49d3-a60d-f1aea2b2c5c5 9/21/2013 8:54 AM
    5bcbe7f2-a84a-44c7-9a92-ae690867cbf5 9/21/2013 8:54 AM
    d1ff341e-1a09-47fa-8163-3e38305900a3 9/21/2013 8:54 AM
    02ed03f0-fc38-407a-a6a4-dee9760bd6c1 9/21/2013 8:51 AM
    bf5bf7b3-6b32-40d0-beff-5073a778c1cb 9/21/2013 8:51 AM
    4c05ed25-2b7a-4629-baa7-ae53492a0615 9/21/2013 8:50 AM
    308d29da-4ee2-4c64-9c2e-0c7e1b3cce4a 9/21/2013 6:34 AM
    0c88a307-5188-4552-ad0d-f8e43b92d5be 9/20/2013 8:21 PM
    970d729c-3983-4e54-84dd-5b7480cdc98a 9/20/2013 8:06 PM
    99249e90-50aa-49a1-90ce-3e265be8f12d 9/20/2013 8:06 PM
    01e6da16-62a2-4831-8a4d-dfbdab902960 9/20/2013 8:06 PM
    00915b0d-a2d3-4064-bc71-bb057d3ccd07 9/20/2013 8:05 PM
    807a7067-26b4-4d81-b7de-741cbd7e61b1 9/20/2013 8:05 PM
    42183f5a-1dad-4ba6-a5b9-0fdd7908e7d4 9/20/2013 8:05 PM
    94ec2c84-9682-4c2e-8e65-8a6c543f641f 9/20/2013 8:05 PM
    cf49a900-8d4f-42e7-857b-1b0ed3e6fb63 9/20/2013 8:05 PM
    096985f6-3891-4e07-9a76-8f83fbe2ae4c 9/20/2013 8:05 PM
    b304ef41-5f12-49a1-890f-39d4cd9c395c 9/20/2013 8:05 PM
    bcd20f7c-7758-4351-9684-ce83b0db7b54 9/20/2013 8:05 PM
    d951b817-2929-4c34-b4d7-86b3dadb9e00 9/20/2013 8:05 PM
    42005efc-e6b7-4bf1-8138-78590476b211 9/20/2013 8:05 PM
    f37bb2f3-e2a3-42cf-b3c6-86ca850a3445 9/20/2013 8:05 PM
    58a02f80-c572-49f8-b023-40cda308f061 9/20/2013 8:05 PM
    1d0f1c10-5d04-4eea-8cc9-e6880398ba33 9/20/2013 8:04 PM
    78e6ad14-263d-4bd1-a7e4-237476fee087 9/20/2013 8:04 PM
    738c4975-1e89-4bd2-8d5d-a6336e8d0433 9/20/2013 8:04 PM
    91e3554b-1e57-43a8-941b-ae45d83188a4 9/20/2013 8:04 PM
    b6ca8464-1f68-4b60-bc7c-a2839d89873d 9/20/2013 8:01 PM
    147917b2-c103-4652-b451-c0060420dbd4 9/20/2013 8:01 PM
    0efe83bc-3b51-4277-b3c4-52681353991e 9/20/2013 8:00 PM
    f30ccb64-d30f-4008-b2bf-c5a05892a2bb 9/20/2013 8:00 PM
    78d2cf02-c6be-491f-b635-3351564e9e87 9/20/2013 8:00 PM
    59b8f856-0871-444b-951a-259ecdeb7a55 9/20/2013 7:46 PM
    5a55368b-c4b0-4749-a525-9e3b0e0b5c77 9/20/2013 7:46 PM
    9908020e-8ffd-4cda-9f08-00504f1a92f1 9/20/2013 7:45 PM
    39188099-14a1-4b92-8f1f-9b91c6f327ce 9/20/2013 7:44 PM
    5947da0f-1ca1-42c4-aefd-ff694106a1fb 9/20/2013 7:00 PM
    149bf847-49cc-4e20-9f13-c05b70254831 9/20/2013 7:00 PM
    2779f49e-e661-4aa9-a9f8-f55dedd14636 9/20/2013 6:56 PM
    d47ae06f-e16c-4ec8-a89b-09789459be03 9/20/2013 6:56 PM
    c96831d5-873b-4919-92bb-4f5db245fed6 9/20/2013 6:56 PM
    7883324a-9b42-47c1-9395-6e4055dcef47 9/20/2013 6:56 PM
    d4884978-96b5-45c1-bdef-f51b433dd831 9/20/2013 6:53 PM
    b9f607a3-25c1-472b-b2ce-608701a7df51 9/20/2013 6:53 PM
    c7c8c35b-e979-4f3b-a098-9be3500adf47 9/20/2013 6:53 PM
    56f60bac-25a0-4084-85e4-fbc13888bec3 9/20/2013 6:53 PM
    6faa1de6-3920-48c5-b673-bca5745a0a66 9/20/2013 6:52 PM
    75546d4b-f69a-44b4-9797-54fd32ae4c67 9/20/2013 6:52 PM
    71356057-ea52-4e20-9793-32066fa6dad7 9/20/2013 6:50 PM
    989fd9de-af33-422e-829f-f997106333be 9/20/2013 6:50 PM
    0681131b-d654-40e1-9713-3f3ac6db02f4 9/20/2013 6:48 PM
    2d905a57-5e64-460b-82ea-c724e2f8c309 9/20/2013 6:48 PM
    7ffde588-6ae9-4b3f-8c76-4993755423c8 9/20/2013 6:46 PM
    bf2977cc-f656-467e-908e-142470de8061 9/20/2013 6:46 PM
    dc970b58-a713-4858-b320-ba1ce358c306 9/20/2013 6:46 PM
    5c67fd1d-30b4-4a7e-860a-7f3059f898db 9/20/2013 6:46 PM
    58a6b249-78e4-4bb3-8492-c0a5c866949b 9/20/2013 6:45 PM
    8e4790d3-90d4-421a-a55b-f60f99ace272 9/20/2013 12:42 PM
    b4268318-3927-4af6-a5ca-e2ae5268893b 9/20/2013 12:42 PM
    9da41b68-c8ae-46fd-8181-008539f833b3 9/19/2013 7:59 PM
    a46b1264-c894-480c-8224-11d5cfac3fab 9/19/2013 6:24 PM
    77cf633a-b313-4000-a6d0-53882260642a 9/19/2013 6:21 PM
    0bd2638b-f611-4a7b-a4d8-216ec298cf85 9/19/2013 6:21 PM
    8b28160e-7429-4203-a72d-32c55a534043 9/19/2013 6:20 PM
    bf6fc56c-ffe6-4719-922e-72efcf9db068 9/19/2013 6:11 PM
    7e1cfb5f-dcb6-4b0c-b7c8-6c671cd5131f 9/19/2013 4:53 PM
    20614c50-b83a-4626-a6d5-674a99263427 9/19/2013 4:53 PM
    3c7f3686-4f67-4b6d-bf43-0869fbb3df7f 9/19/2013 4:53 PM
    ac853979-38a1-4df1-8560-ef962eb22a78 9/19/2013 4:50 PM
    2ea06b53-4be1-45f1-a960-351a31835c48 9/19/2013 4:50 PM
    fa6ec690-8510-491f-af91-9c2014ca0ca3 9/19/2013 4:50 PM
    709246ed-85a5-46e7-b307-46358aaa57ba 9/19/2013 4:50 PM
    b1c8dd7d-53d1-430c-b94f-b622d496dc7b 9/19/2013 4:49 PM
    87dba4e1-6a7f-4597-88e2-e3015796e597 9/19/2013 8:19 AM
    63b37cc7-e646-4859-b1fc-4c836968e254 9/19/2013 8:19 AM
    0e42c62b-4321-4d0a-bafd-5417ad9773bf 9/19/2013 8:19 AM
    0b106e0b-a246-4635-85d2-fd4b382de303 9/19/2013 8:18 AM
    a94146c9-ebf4-4723-83f1-642d235d08eb 9/19/2013 8:18 AM
    5ade9d5b-16bc-4e4c-813d-55ab3cc411ea 9/19/2013 8:17 AM
    96877cb4-ce19-4277-a393-715fabcc2f5b 9/19/2013 8:13 AM
    d98a430e-17e7-4d8a-9efd-c8a7f6f11f9a 9/19/2013 8:13 AM
    f933dc3d-eeb3-47cd-a4a7-bfcae34b7c1b 9/19/2013 8:02 AM
    f3923670-ad9b-4eab-9e8a-5b1630cdd09c 9/19/2013 8:01 AM
    6186a938-f5be-4f6e-b74e-656793215143 9/19/2013 8:01 AM
    2691ded4-5677-4314-b25f-2c0d26cab0d8 9/19/2013 8:01 AM
    14ebabee-b689-4b03-a28e-d8ce812915b7 9/19/2013 8:01 AM
    499bb320-7fc8-4c81-9796-ee480d5f89bc 9/19/2013 8:01 AM
    7007816b-043c-4b58-8866-a36f99b20928 9/19/2013 8:01 AM
    cd15784d-4be4-43c0-aedc-bbe9b7402b5a 9/19/2013 8:01 AM
    1a3a82e1-115f-466f-bfbb-b0390138a1d0 9/19/2013 8:00 AM
    573a82db-d942-42f0-8fe5-d99f22d6dcf7 9/19/2013 8:00 AM
    1ec33167-98fd-461a-b3d2-40972ba6d618 9/19/2013 8:00 AM
    ee023223-3c5f-4c33-b794-5dc7a7a8aad5 9/19/2013 8:00 AM
    9133f620-b233-4e3a-83d2-5a22a56d9736 9/19/2013 8:00 AM
    8d34f790-812f-4a22-8697-721b809ef007 9/19/2013 8:00 AM
    289e09c8-62ee-4b52-8f4d-4423b42e5bca 9/19/2013 8:00 AM
    b7a86e9a-231b-4516-992a-91e58ba0f475 9/19/2013 8:00 AM
    0460b9d3-a66e-4c46-b224-003f84e7058c 9/19/2013 8:00 AM
    b323588c-d433-4b12-b714-775fade866cc 9/19/2013 8:00 AM
    b906cf1b-0c52-4804-9d5a-43d90e1f3430 9/19/2013 8:00 AM
    9ccf7d3e-0880-404b-8ad3-86cbbe5af73b 9/19/2013 6:44 AM
    811567dd-5cd1-475d-af77-0e9ae02241e1 9/19/2013 6:38 AM

  • Ajax for Flash in IE problem

    Currently I'm doing a project that requires to deploy ajax
    with a Flash object. I use the fscommand for Flash to communicate
    with javascript in order to do the Ajax.
    I create a flash file name ask.fla. In the file I make a
    button and add the script for it like this:
    on(press)
    fscommand ("send_var", 1);
    I have read in the manual of Flash how to make flash
    communicate with javascript, and I have configure the publish
    setting of HTML file to run "Flash with FSCommand" .
    I have another 2 files namely: ask.php and ask_get.php.
    The content of the ask.php file is:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml"
    xml:lang="en" lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    <title>ask</title>
    </head>
    <body bgcolor="#ffffff"
    onload="makeRequest('ask_get.php','?test=10');">
    <script language="JavaScript">
    <!--
    var isInternetExplorer =
    navigator.appName.indexOf("Microsoft") != -1;
    // Handle all the FSCommand messages in a Flash movie.
    function ask_DoFSCommand(command, args) {
    var askObj = isInternetExplorer ? document.all.ask :
    document.ask;
    alert("HELLO");
    var http_request = false;
    function makeRequest(url, parameters) {
    http_request = false;
    if (window.XMLHttpRequest) { // Mozilla, Safari,...
    http_request = new XMLHttpRequest();
    if (http_request.overrideMimeType) {
    http_request.overrideMimeType('text/html');
    } else if (window.ActiveXObject) { // IE
    try {
    http_request = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
    try {
    http_request = new ActiveXObject("Microsoft.XMLHTTP");
    } catch (e) {}
    if (!http_request) {
    alert('Cannot create XMLHTTP instance');
    return false;
    http_request.onreadystatechange = alertContents;
    http_request.open('GET', url + parameters, true);
    http_request.send(null);
    function alertContents() {
    if (http_request.readyState == 4) {
    if (http_request.status == 200) {
    result = http_request.responseText;
    document.getElementById('myspan').innerHTML = result ;
    } else {
    alert('There was a problem with the request.');
    if (navigator.appName &&
    navigator.appName.indexOf("Microsoft") != -1 &&
    navigator.userAgent.indexOf("Windows") != -1 &&
    navigator.userAgent.indexOf("Windows 3.1") == -1) {
    document.write('<script language=\"VBScript\"\>\n');
    document.write('On Error Resume Next\n');
    document.write('Sub ask_FSCommand(ByVal command, ByVal
    args)\n');
    document.write(' Call ask_DoFSCommand(command, args)\n');
    document.write('End Sub\n');
    document.write('</script\>\n');
    //-->
    </script>
    <!--url's used in the movie-->
    <!--text used in the movie-->
    <div name="myspan" id="myspan"></div>
    </body>
    </html>
    The content of the ask_get.php is:
    <object
    classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="
    http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
    id="ask" width="462" height="410" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="movie" value="ask.swf" /><param
    name="quality" value="high" /><param name="bgcolor"
    value="#ffffff" /><embed src="ask.swf" quality="high"
    bgcolor="#ffffff" width="462" height="410" swLiveConnect=true
    id="ask" name="ask" align="middle" allowScriptAccess="sameDomain"
    type="application/x-shockwave-flash" pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    />
    </object>
    The purpose of the two file is that when the file ask.php is
    called, the code in the even <body onload> will call the
    makeRequest function, which replate the <div name="myspan"
    id="myspan"> with the code in the file ask_get.php, so that the
    flash object is embed indirectly in the file.(but it will be shown,
    and some how I use it to make the ajax for the page).
    When I run the file ask.php in my webserver in Mozilla
    FireFox, it run well, the flash file can call the javascript
    function, but when I run the file ask.php in IE, the flash file can
    not do anything, it can not call the javascript function.
    You can check this by running the file ask.php in both
    FireFox and IE in your webserver (IIS or Apache).
    If the code to embed the swf object in php file is written
    directly in the very php file the swf object can contact with
    javascript very well and correctly
    , as you can test it by running the file ask1.php in both IE
    and FireFox in your webserver (IIS or Apache) , when you click the
    button, it will show you the message "HELLO" which is call from a
    javascript function.
    Here is the code of the file ask1.php, which embed the flash
    object directly in the php file and it works well in both FireFox
    and IE:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml"
    xml:lang="en" lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    <title>ask</title>
    </head>
    <body bgcolor="#ffffff"
    onload="makeRequest('ask_get.php','?test=10');">
    <script language="JavaScript">
    <!--
    var isInternetExplorer =
    navigator.appName.indexOf("Microsoft") != -1;
    function ask_DoFSCommand(command, args) {
    var askObj = isInternetExplorer ? document.all.ask :
    document.ask;
    alert("HELLO");
    if (navigator.appName &&
    navigator.appName.indexOf("Microsoft") != -1 &&
    navigator.userAgent.indexOf("Windows") != -1 &&
    navigator.userAgent.indexOf("Windows 3.1") == -1) {
    document.write('<script language=\"VBScript\"\>\n');
    document.write('On Error Resume Next\n');
    document.write('Sub ask_FSCommand(ByVal command, ByVal
    args)\n');
    document.write(' Call ask_DoFSCommand(command, args)\n');
    document.write('End Sub\n');
    document.write('</script\>\n');
    //-->
    </script>
    <object
    classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="
    http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
    id="ask" width="462" height="410" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="movie" value="ask.swf" /><param
    name="quality" value="high" /><param name="bgcolor"
    value="#ffffff" /><embed src="ask.swf" quality="high"
    bgcolor="#ffffff" width="462" height="410" swLiveConnect=true
    id="ask" name="ask" align="middle" allowScriptAccess="sameDomain"
    type="application/x-shockwave-flash" pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    />
    </object>
    </body>
    </html>
    The problem is when I call an object by replacing the <div
    id=...> with the code for the flash object from the ask_get.php
    file, only FireFox can call the javascript but IE does not.
    So anyone who know the reason why, please tell me. Thank you
    very much.

    Be sure your HTML wrapper is embedding the flash object correctly in IE. In all other browsers it can be embedded as an object of a specific type. IE has always required a separate install of an activeX with a certain CLSID.
    Look up SWFObject and use that to embed your SWF to be sure that it's being embedded properly for each browser, or use the HTML generated by flash and make sure your publish settings that you have "FSCommand" selected in the drop-down so flash can talk to the browser.

  • Something similar to lightbox for flash?

    Hi all,
    I'm searching something similar to the lightbox effect in javascript, but for flash.
    I already tried succesfully "flash lightbox v2" (http://blog.alancurtis.it/tag/flash/) but I'm searching something native for flash, without javascript.
    Is there something usefull around?
    TIA
    tony

    Lightbox like functionality in Flash is very basic and native to it. It is as simple as creating a displayobject, putting images on its display list and creating some transition effect with tween engine. But this requires knowledge of ActionScript.
    You can also do this these things on timeline manually.
    Because it is so basic, you, perhaps will not find any tutorials. Even beginner's level of Flash skills enables one to develop this kind of functionality.

  • Pop-up error on flash pages

    My OPS - Windows XP SP2
    My Browser - IE Explorer 6
    My ISP - Road Runner High Speed
    My Macromedia Flash Player Version - 8.0.24.0
    ISSUE:
    I am receiving a small popup error as certain web pages that
    use flash are loading up ... not all flash pages, but some,
    including my homepage which is "www.rr.com"
    The popup appears briefly, only as the page is being loaded,
    and it reads as follows ... "Press SPACE BAR or ENTER to activate
    and use this control"
    After a second or two the page is fully loaded and the popup
    quickly disappears, however there is a broken-lined box which
    surrounds the flash section of the page and if I enter that section
    {flash} with my cursor I receive a similar message which reads ....
    "Click to activate and use this control"
    Only if I left click my mouse or hit SPACE or ENTER on my
    keyboard can I access the flash sections of said page ... so for
    example, if I were attepmting to access a flash link on said page I
    would need to left click twice, once to "activate and use the
    control" and one to access the link ... or I could hit my SPACE BAR
    or ENTER prior to clicking the flash link and then it will be
    activate, thus only one left click on the link will suffice
    I have also encounted this same popup at the mcafee homepage
    ... us.mcafee.com ... when I push my cursor into a flash section of
    the page I receive the same small popup, "Click to activate and use
    this control"
    I have been a flash user for quite some time, on this very
    same PC, same OPS, same Browser, same ISP, and I've even had the
    updated version of flash player for at least a month {8.0.24.0},
    yet this trouble has appeared out of the blue only two days ago and
    I cannot fix it
    I have tried a number of fixes ... I have even used the
    uninstall utility for flash player as provided by your website, and
    uninstalled my browser, then reinstalled both to no avail, same
    issue continues to occur on certain flash pages {but not all},
    including my homepage
    PLEASE HELP
    Thanks You,
    Dobermite

    Here's the fix!!
    Change your flash objects(embed) to external files that use
    javascript to write the tag. Like so
    var oeTags = '<object classid="clsid
    27cdb6e-ae6d-11cf-96b8-444553540000" codebase="
    http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
    width="812" height="565" >'
    + '<param name="allowScriptAccess" value="sameDomain"
    />'
    + '<param name="movie" value="dyna_main.swf"
    /><param name="quality" value="high" /><embed
    src="dyna_main.swf" quality="high" width="812" height="565"
    allowScriptAccess="sameDomain" type="application/x-shockwave-flash"
    pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    />'
    + '</object>';
    document.write(oeTags);
    name the page whatever.js
    on you htm page include it with a script tag, like so
    <script src="/whatever.js"></script>
    It works

  • "the activex control for flash player could not be registered" - Solutions Roundup

    I recently ran into this problem on my computer:
    http://at32.s3.amazonaws.com/flash_install_problems2.jpg
    I am a Flash developer (as in I write SWFs, I don't work for Adobe).  and when I updated IE to 10.2, "the activex control for flash player could not be registered".  Since I am a developer, I also have Firefox and Chrome installed, with Flash running without problems.  For a long time now, Internet Explorer has used a different version (ActiveX) to the other browsers, which use plugins.  I am a strong supporter of Flash, it's great to develop with and has a very wide feature set which is growing all the time, unlike fixed technologies/standards.  However, the weakest part is the install process - I don't understand why their is a Download Manager.  Google Chrome does it's best (so far) by managing the install/update process entirely in the background.  Anyway, it was in my best interest to try and get to the bottom of this.
    For the record, on the problem machine I have Windows 7 with IE8, but I have seen almost  identical symptoms with IE9, Windows XP SP3, as well as various  iterations of Flash Player (10.0, 10.1, 10.2 and even some final  editions of version 9).
    First I tried the standard support here:
    http://kb2.adobe.com/cps/191/tn_19166.html
    Basically, doing the manual uninstall and manual install of the latest version (without using the download manager, or have IE open).  This did not work.  I also tried the Microsoft "subinacl" program, together with "reset_fp10.bat".  This didn't work either.  However, you should try all of these things first before progressing further.
    A quick note about people who had tried running the following at a command prompt: "secedit /configure /cfg %windir%\repair\secsetup.inf /db secsetup.sdb /verbose"
    I didn't do this, because on investigating further it didn't seem to work with Windows 7, only Windows XP, Windows 2000 or Windows 2003 - though there was a few threads where this had fixed the problem for some users.
    For my solution, it is recommended you use the manual uninstall / installers, so you should have them downloaded ready to use.
    I then heard about problems with permissions in the registry with the key: HKEY_LOCAL_MACHINE\Software\Classes\shockwaveflash.shockwave
    So I opened regedit.exe (start - run - typed "regedit.exe"), navigated to the key and sure enough, I couldn't open it - permission denied - even though I had an administrator account.  If for some reason, you can access this key (and any subkeys), then it's likely the following fix will not resolve the problem.
    I then done further diagnosis, by using Process Monitor to try and install Flash Player, and I got the following:
    http://at32.s3.amazonaws.com/flash_install_problems.gif
    This shows all the access denied errors the Flash Player install was experiencing when trying to write to the registry key.  This confirmed that this was the problem.  I only stress this because several people said it was unwise to tinker with the registry.  Though this is common advice, this is the only known fix for this precise problem at present, since you need to manually adjust the permissions yourself.  I don't know who is at fault here - Microsoft or Adobe - but let's just get Flash fixed...
    The solution:
    Firstly, you may want to backup your registry, or the exact key.  I didn't do this so I've provided no instructions on how to, but it is recommended for the paranoid.  Also make sure as much software is closed down as possible - browsers, IM software, any junk in your system tray. As way of example, I happened to have "BBC iPlayer" installed and running in the background which uses Adobe AIR and Flash Player, so I exited that too.
    1) Open regedit (start - run - type "regedit.exe").  You may need to right click on it and select "Run As Administrator", but I didn't as my account was already administrator.
    2) Navigate to the key. HKEY_LOCAL_MACHINE\Software\Classes\shockwaveflash.shockwave
    Click on it to confirm that you cannot access it (you will get an error) - if their are no problems - this probably isn't the cause of your issues.
    3) Right click on it and click Permissions, and ignore any message that may pop up.
    4) Under "Group or Usernames" click "Add".  Type your account name name, or "Administrators" in the box, then "Check Names" to format it correctly, then Ok.
    5) Now on the next screen click the checkbox to enable Full Control (this will also automatically enable "Read" permission too).
    6) Click Advanced, then the "Owner" tab at the top.  You will see that their is no "Current Owner".  This is what we will now fix.
    7) Click on your name to change the owner to (I went for Administrators).  Also enable the checkbox entitled "Replace Owner on subcontainers and objects".  Then click Ok.  You will get an error message, which you can try clicking Retry to, but hit Cancel - this is not a problem.
    8) Click Ok a couple of times and this part of your registry is now fixed.
    9) Now it's a simple case of running the manual Flash uninstall program, then finally the manual Flash installer (for Active X - not the Firefox/Chrome plugin versions).  To my surprise, after a couple of days looking into this - I finally had a solution and Flash in IE once more.  If you are using Firefox too you may find Flash is no longer installed their (the uninstaller removed it).  In this case just install via the Adobe site or try to watch a video on You Tube and you will be prompted or linked to the install.
    Hope this provides a good round up of the possible solutions to this problem.  Hopefully Microsoft or Adobe can find out what causes this issue in the first place so we don't have to go down this route for much longer.  Chrome's implementation of Flash shows how effortlessly things can work!

    They will stay on the screen.  However, Process Monitor is only intended for advanced users.  It is recommended that users try to navigate to the troublesome registry key using regedit, and see if they can access it or not without an error.  This is far easier than trying to use Process Monitor, which is very complicated.
    I used Process Monitor to confirm that it was just that key which was causing the problem, and not others.  Process Monitor is not to be confused with the new Resource Monitor which is accessible via Task Manager in Windows 7 (and possibly Vista).  If you must experiment (and Process Monitor is very useful for diagnosing many deep-level problems if you know what you're looking for) Process Monitor can be downloaded from here:
    http://technet.microsoft.com/en-us/sysinternals/bb896645
    It replaces the older Sysinternals "FileMon" and "RegMon".  For those interested in the technical side, I had to setup a number of filters to be able to get the results display as in the screenshot.  First of all to just show Registry events.  Then to just show events from the manual Flash activeX installer executable.  The I added a filter to show only non-successfull results.  And finally, for the purposes of the screenshot, added a filter to just show those with "Access Denied", since other non-critical errors are also picked up due to missing keys because installation has not yet been fully completed I guess.   When experimenting, most of these filters were applied using the "is not" boolean logic, which will make sense if you experiment with the program.
    Without adding any filters, it picks up so many events (hundreds per second) that it's otherwise unusable.  e.g. 40,000 events within the first few seconds of opening the program. For this reason, I recommend simply using Regedit to diagnose the problem with the particular Flash registry key.

  • Display of javascript pop-up messages in NLS

    Does anyone have experience with the following condition?
    Display problems will occur on javascript pop-up messages if using English O/S Browser while the language preference for the user is set for another local language.
    Pop-up messages become unreadable as a result. We are trying to come up with a solution to avoid this.

    Ummm - I don't think you'll get much help for JavaScript here, as it is no relation to Java.

Maybe you are looking for