JavaScript and flash 8 publish

Hi there,
I am trying to close a browser window and am able to do so by
using either of the attached code without changing the security
settings of the player. I have to go to security settings and
choose the options "always allow" and also browse to the file that
I am trying to execute the code. I am publishing in flash 8. Is
there a way to by bass the security settings or is there a
different way to execute this code with out having to alter the
security settings?
Thanks dee

<param name="allowScriptAccess" value="always" />
Ah....I see put this in html and it works perfect.

Similar Messages

  • Actionscript 2 and Flash Publish Settings

    Hi Everyone,
    I have posted a couple questions as of late and received fantastic support from other members (Thanks K-Glad).
    I do have what I'm assuming to be a basic question however I cannot find an answer for it.
    I added some login script to a page as listed below.
    stop();
    eval("$version");
    appname="mikesapp"
    loadVariablesNum("http://bars.bevinco.com/mike/newlogin.php", 0, "POST");
    //This verifys the users status and forwards them to the portion of the website they are authorized to access. Frame 100 = Regional Access, Frame 200 = Franchise Access, Frame 300 = Employee Access and Frame 400 = Denied Access and Back Button
    this.onEnterFrame = function () {
        if(_root.checklog == 100){
            _root.gotoAndStop(5);
        if(_root.checklog == 200){
            _root.gotoAndStop(10);
        if(_root.checklog == 300){
            _root.gotoAndStop(15);
        if(_root.checklog == 999){
            _root.gotoAndStop(20);
    My Question
    When testing this movie, I found that it was not moving to the section of the flash file that is relative to their "authorization level". I.E. I manually had my PHP echo back to flash, advising that REGIONAL ACCESS was used therefore it should be move this user to FRAME 5 of the file.
    I found that it was staying stuck on the first frame and not moving beyond the 1st frame which I thought had something to do with the stop(); that is listed at the top of the actionscript.
    However, when I changed the FLASH PUBLISH settings from Flash Player 8 to Flash Player 6, it works flawlessly.
    I attempted to publish using Flash 7 however it appears FLASH 6 is as high as I can go without loosing it's functionality.
    I'm curious WHY and will this limit our users from using the site if they have a lower version of Flash installed on their CPU?
    I have attached the project FLA file and the PHP file, being used on the server to manually tell this file that a REGIONAL has signed in or someone with "100" level status.
    As always, thanks in advance to anyone that has taken the time to read this post.
    Cheers,
    Mike

    checklog is a string (even though it looks like a number to you).  flash 6 allowed quite a bit more code sloppiness than later versions.  so, it's very common for users to find publishing for fp6 works, while publishing for fp's higher breaks their code.
    you should use:
    this.onEnterFrame = function () {
        if(_root.checklog == "100"){
    delete this.onEnterFrame
            _root.gotoAndStop(5);
        if(_root.checklog == "200"){
    delete this.onEnterFrame
            _root.gotoAndStop(10);
        if(_root.checklog == "300"){
    delete this.onEnterFrame
            _root.gotoAndStop(15);
        if(_root.checklog == "999"){
    delete this.onEnterFrame
            _root.gotoAndStop(20);

  • Why does my Preview(SWF) execute javascript, and my published SWF does not?

    I've discovered that in my project, if I run it as a preview in SWF mode, it executes the javascript on step enter.  If I publish the project and produce SWF output, then run {project_name}.htm, but I get no javascript events.  Any isea what I may be doing wrong?

    See this post:
    http://www.infosemantics.com.au/adobe-captivate-troubleshooting/how-to-set-up-flash-global -security
    Note the section that tells you about needing to set the published folder location as a trusted location in Flash Global Security if you want JavaScript to work.

  • Javascript and Flash Forms

    I am trying to do some Javascript with a Flash Form and it is
    failing. I have a field with a value in the field name so I dont
    have to use labels. I know with Javascript that onFocus, the field
    will clear. Is that possible in a Flash Form.
    Don

    Use actionscript, like so
    <cfinput type="Text" name="txt_box" value="Initial Value"
    onFocus="txt_box.text=''">
    For readability the onFocus is
    " txt_box.text = ' ' "
    Ken

  • Javascript and Flash (defining variables properly)

    OK, I'm curious if from flash can you call client side
    JavaScript functions that exist outside the flash?
    I'm trying to get something to work (there's another post
    about it on here) but when I click the submit button, it doesn't
    seem to be trying to call the javascript function with the
    information I have the flash module collecting... any
    ideas/help?

    Well, now I have it working somewhat, but the variables I've
    defined along the way aren't being passed through. I guess my new
    question would be how to properly define the variable and collect
    the information as the user goes through, then call it into the
    function at the end when they click the submit button.
    Example... right now I have people click their selection and
    the button is supposed to collect that variable selection and send
    them on to their next selection option:
    on (release) {
    a="Bare";
    //Movieclip GotoAndPlay Behavior
    this.gotoAndPlay("37");
    //End Behavior
    Then they do that a few more times with different options...
    At the end, when they click submit, this is what happens:
    on (release) {
    var strProductCode = "'" + a + "','" + b + "', '" + c + "',
    '" + d + "'";
    var strJavaScriptCall = "javascript:SubmitCustomBoot(" +
    strProductCode + ");";
    getURL(strJavaScriptCall);
    But the info going to the cart is missing the variables.
    Obviously, I'm not getting those collected properly.
    Ideas??? :)

  • Issues with JavaScript and Flash in Mozilla

    I'm wondering if any of you have seen this, and if there's a
    fix?
    I have flash content that plays in both IE and Mozilla (read:
    NS, FF), and I am able to send it commands to play, stop,
    gotoFrame, etc. However, while in IE I am able to access
    percentLoaded() from the flash object, in Mozilla, the javaScript
    simply hangs. No errors, no crashes. Just stops. The rest of the
    browser (and new javascript events) continue to function.. but the
    original javascript is halted, like it's waiting for a response
    that never comes. I have noted other methods where I am expecting
    to get something /back/ from Flash also not working. Ideas?
    Much thanks,
    -Bez

    You're welcome.
    The only workarounds to this problem is going back to Safari 4,
    You can revert to 4.0.5, instructions here.
    http://appletoolbox.com/2010/06/downgrade-from-safari-5-0-to-safari-4-0-5/

  • Javascript and Flash

    I am trying to create a pop up window from flash using
    javascript. I got this code but I keep getting an error message.
    Can anyone tell me what's wrong with this?
    Any help greatly appreciated.
    article.onRelease = function() {
    getURL("javascript:NewWindow=window.open('scans/phagArticle.jpg','newWin','width=895,heigh t=1210,left=0,top=0,
    toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No');
    NewWindow.focus();
    void(0);", _blank);

    TaylorTay619,
    >I am trying to create a pop up window from flash using
    > javascript. I got this code but I keep getting an error
    > message.
    What's the error message you're getting?
    David Stiller
    Adobe Community Expert
    Dev blog,
    http://www.quip.net/blog/
    "Luck is the residue of good design."

  • Javascript and Flash AC fix

    I'm in the process of upgrading an older site with Flash
    content and have run into an issue with the Active Content 'fix'
    script.
    I have a Flash movie that pauses on load and only plays when
    the user clicks an HTML page button which triggers the Play()
    action via JS.
    If I allow DW8 to implement the AC code fix, this then
    prevents the Flash movie from responding to the JS event.
    Can anyone please advise what changes I should make to my JS
    code in order to target the movie correctly with the AC fix
    implemented?
    My current JS event code is as follows (which works OK
    without the AC fix):
    onClick="window.document.myMovie.Play();"
    All advice gratefully received!

    Use actionscript, like so
    <cfinput type="Text" name="txt_box" value="Initial Value"
    onFocus="txt_box.text=''">
    For readability the onFocus is
    " txt_box.text = ' ' "
    Ken

  • Javascript and Flash method works on Firefox?

    Hi all. I saw an example where you can you a movieobject and
    the TGotoLabel() method to jump to a specif flash label through an
    html. It works in IE, but it doesn't in Firefox. Is this supported
    in Firefox at all, or what should I do.
    Thanks!

    This is what you should see under "plugins" in Opera:
    Make sure Flash Player is listed and enabled.
    It comes from the same place as the plug-in for Firefox, so one won't work if the other doesn't.
    If that doesn't work, try a clean install. http://forums.adobe.com/message/4041846

  • JavaScript and PS CS6: Performance issue

    Hi folks
    I have to admit we are stuck in our development: We have written a Phothoshop Plugin unsing extensive JavaScript and Flash Panels / Action Script.
    The Javascripts would, eg. select a given layer. When running the Javascript in PS CS5 or 5.1 everything is smooth and snappy but we've noticed, that the same JavaScript running in PS CS6 takes up to 300% more time.
    Does anyone having observed the same performance issues?
    Would it be faster to address the specific layers by their native Layer ID's rather than their names?
    Why is there such a performance slow down with the same JavaScripts / ActionScript-FlashPanel between CS5 and CS6?
    We have already contacted [email protected] (we are solution partner silver) but they do not start acting if you are using your own JavaScripts....
    You are our last hope :-( 
    I can send you some of the code but I don't want it to be publicly exposed here.
    Thanks in advance,
    Andrash

    Hi, since nobody bothers to answer we might have to find out ourselfs.
    Maybe it is caused by the way we address layers throug the script?
    Which method are you using?
    Are you addressing the layers directly or are you just cicling throug an array of layers?
    Are you pointing for the layers by their native ID or rather their layer names?
    How do you trigger the script: by another script? From a flash panel (Flex / Action Script)?
    We are using Flash Panels to start the script. The script simply calls a layer by it's name (a numerical ID that we apply to the layer). The script shall look up that specific layer and check if there is some content on the layer. We created a logger to see where the heavy amount of time is consumed and it seems, that it is while jumping to the layer.
    In CS5 that was all a matter of a split second. Now in CS6 it takes a couple of seconds (4sec.). We asked ADOBE Techsupport for help, but they didn't even bother to look at the problem since we are working with self written code (as every developer does.....?!?!). I wonder what techsupport is good for if not answering techical problems like this one.
    I hope that, with your answers we might circle in the cause of the problem!
    Cheers,
    Andreas

  • About how javascript and actionscript exchange data

    I am a new one to Flex,
    my system need web page(html) exchange data with Flash(flex),
    because the data is not only a value, so need define a
    strucure to transfer the data.
    i dont know which type of data usually worked between
    javascript and action script?
    hopecan get some suggestion.
    is the xml object can be used here?
    hope can get detail suggestion.
    some example would be great!
    thanks!
    bellow is my project status:
    I have use write a simple program to success exchange data
    between flex(actionscript) and html(javascript),
    now i need design some structure to transfer data between
    action script and javascript.
    in my project:
    there is some text areas in html page, and other text areas
    in flash,
    we called text areas in html page is groupA text areas
    text areas in flash is groupB text areas.
    each textarea in GroupA has a corrosponding textarea in
    GroupB.
    1.
    when a textarea's text changed(this textarea is in
    groupA/GroupB)
    the corrosponding textarea's text must change
    inmidietely(textarea in GrroupB/GroupA)
    2.when falsh add a new textarea, html page must add a
    corrosponding textarea.

    HI!
    Not sure where are you stuck with this, if you already have
    been able to comunicate with javascript and flash it measn you
    already have used the external interface and you should know you
    can send any kind of data to flash, this includes XML or even
    serialized objects.
    I haven't test how big the data you can send to or from
    javascript can be, but what i've done sofar works pretty good with
    any value.
    If you are not using the externalInterface but the old
    fscommand() then you should read the external interface
    documentation:
    http://livedocs.adobe.com/flex/2/langref/flash/external/package-detail.html

  • About how javascript and onscript exchange data

    I am a new one to Flex,
    my system need web page(html) exchange data with Flash(flex),
    because the data is not only a value, so need define a
    strucure to transfer the data.
    i dont know which type of data usually worked between
    javascript and action script?
    hopecan get some suggestion.
    is the xml object can be used here?
    hope can get detail suggestion.
    some example would be great!
    thanks!
    bellow is my project status:
    I have use write a simple program to success exchange data
    between flex(actionscript) and html(javascript),
    now i need design some structure to transfer data between
    action script and javascript.
    in my project:
    there is some text areas in html page, and other text areas
    in flash,
    we called text areas in html page is groupA text areas
    text areas in flash is groupB text areas.
    each textarea in GroupA has a corrosponding textarea in
    GroupB.
    1.
    when a textarea's text changed(this textarea is in
    groupA/GroupB)
    the corrosponding textarea's text must change
    inmidietely(textarea in GrroupB/GroupA)
    2.when falsh add a new textarea, html page must add a
    corrosponding textarea.

    HI!
    Not sure where are you stuck with this, if you already have
    been able to comunicate with javascript and flash it measn you
    already have used the external interface and you should know you
    can send any kind of data to flash, this includes XML or even
    serialized objects.
    I haven't test how big the data you can send to or from
    javascript can be, but what i've done sofar works pretty good with
    any value.
    If you are not using the externalInterface but the old
    fscommand() then you should read the external interface
    documentation:
    http://livedocs.adobe.com/flex/2/langref/flash/external/package-detail.html

  • Publishing Videos and Flash PDFs

    How to publish a PDF with videos and flash within the file?

    If the media is embedded in the pages in InDesign you can export directly - choose Export > Adobe PDF (Interactive), and on the dialog box ensure that "buttons and media" is set to "include all".
    If you want to add the media after conversion, you can do it using Acrobat Pro, and the Flash/Video tool.

  • If WDA will be able to call a Flash island, and Flash can call javascript

    In this thread here:
    How would/should you invoke a javascriptable applet from WDA or WDJ?
    Thomas said that an upcoming release of WDA will let WDA call Flash "islands".
    Since this link:
    http://www.adobe.com/devnet/flash/articles/external_interface.html
    says that Flash can invoke javascript,  won't it be possible for WDA to call an applet indirectly by calling Flash and letting Flash call the applet ?
    djh

    Anton -
    I asked Thomas Stout to describe exactly what he's doing with Flex and JMol, and I'm posting his response just to be sure that there is no way (other than the portal) of duplicating what he is doing using WDA.
    Here's his response:
    Backend (linux):
    - we have a "database" of crystal structures in flat-file directories (for example,
    weekly rsync's from the PDB)
    - we parse those with perl scripts into an XML table with tagged data that we
    feel is relevant
    Flex:
    - the Flex app is constructed to load that XML file and display the data in a
    table.  We exported that code from Flex into an HTML table, which provided
    the basic page with a Flash movie of the Flex app embedded (See the attached
    screenshot from a development version of our web page: it's the horizontal
    rectangle at the top of the page).
    webpage:
    - we then built of the Jmol functionality into the lower half of this web page.  The
    table entries at the top are sortable on any column and filterable via the text
    box.  Once a line in the table is selected, the "Load" button passes the
    accompanying structure to the Jmol applet and all of the Jmol "tools" become
    active in the lower half of the page.   There is no communication in the reverse
    direction (can't think of why you would want to!).
    - BTW, the web page does not use "frames" -- I'm personally opposed to them --
    but it is all constructed within a table.  The Flash movie is in a table cell that
    spans two columns, the Jmol app is down a row and in the left hand (wider) cell,
    while the selectable links on the right are all in the right-hand cell.  The page is
    an amusing gmisch of HTML, javascript and JmolScript all fighting it out
    together.....    :)

  • Swf increase size mystery publishing into Flash 8 and Flash CS4

    Hello,
    i discovered recently that a swf build with Flash 8 IDE, published for Flash Player 8 get a different size when published with Flash CS4 IDE.
    You can reproduce that effect with all sort of swf.
    I did a report for each publish (same .fla into Flash 8 IDE and Flash CS4 IDE)
    The result was : all vector graphics, all fonts, all bitmaps, all actionscript code increased
    From test.fla, i did one key frame with :
    - a dynamic TextField with some simple chars in it = "Test Chars",
    - a simple shape with brush tool
    - and one movieclip with an ordinary circle
    Size report from Flash 8 :
    test.swf Rapport sur l'animation
    Image #    Image octets    Total octets    Séquence
          1          14419          14419    Séquence 1 (Image d'exportation des classes AS 2.0)
    Séquence                        Forme octets    Texte octets    ActionScript octets
    Séquence 1                           86           132                     0
    Symbole                       Forme octets    Texte octets    ActionScript octets
    clip_circle                           69             0                     0
    Nom de la police                 octets        Caractères   
    Arial                         14056     !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxy z{|}~ˆ˜–—‘’‚“”„†‡•…‰‹›€™
    Size report from Flash CS4 :
    test.swf Rapport sur l'animation
    Image #    Image octets    Total octets    Séquence
          1          18932          18932    Séquence 1 (Image d'exportation des classes AS 2.0)
    Séquence                        Forme octets    Texte octets    ActionScript octets
    Séquence 1                          103           174                     0
    Symbole                       Forme octets    Texte octets    ActionScript octets
    clip_circle                           91             0                     0
    Nom de la police                 octets        Caractères   
    ArialMT                       18467     !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxy z{|}~ˆ˜–—‘’‚“”„†‡•…‰‹›€™
    Does somebody knows something about this strange phenomen ?

    Didn't look at the file size of the FLA, just the SWF as I didn't even necessarily resave the CS4 as CS6. No edits were made, I tried it with a simple open and publish just to make sure I wasn't doing anything to change the file and the resulting file was heavier (kb).
    I looked through the size reports and saw that while image compression was better in the CS6 version, the fonts were all heavier than they were in the CS4 version and this put it over the 40kb limit.

Maybe you are looking for