As2 fscommand not working

Basically I want to use fscommand to write a local file. I think there may be some issues -- 
variable = "1235";
path = "file.txt";
fscommand ("save", path);
textbox1.text = "HI"; //just so i know it is getting to this point.
One, does this work on vista? I am running vista so that may be why its not working.
Two, I also heard rumors about it not working in IE7 or higher, is that true?
Three, I also have read that it only works when running the swf file in flash projector, is that true?

If I understand you correctly, I think the 'shared object' might be what you need.
The AS2 Language Reference in F8 starts off like this:
"The SharedObject class is used to read and store limited amounts of data on a user's computer. Shared objects offer real-time data sharing between objects that are persistent on the user's computer. Local shared objects are similar to browser cookies. ....."
hope that helps.

Similar Messages

  • Flash, AS2 fscommand not working

    hi,
    I have a flash application working fine in a html page. i want to add javascript interaction.
    I see that i have to use fscommand . when i compile and execute my flash application inside flash CS4 and test it directly from the generation directory (D:\dev\flash\myApp), it work find.
    If i copy my project directory in another directory (D:\dev\flash\release\myApp), it's not working.
    I don't understand why !
    I never reach the javascript code.
    Thanks for your help.

    If I understand you correctly, I think the 'shared object' might be what you need.
    The AS2 Language Reference in F8 starts off like this:
    "The SharedObject class is used to read and store limited amounts of data on a user's computer. Shared objects offer real-time data sharing between objects that are persistent on the user's computer. Local shared objects are similar to browser cookies. ....."
    hope that helps.

  • Flash 8 AS2 coding not working

    We have an application that creates a page turner type of
    documents. We have a player to put it all together but one of our
    client wants to import this in Presenter.
    We created a "loader" type of swf to load the application and
    kept the rest of the player, trimmed down, but we have issue with
    the "flipping page" feature. It use the flash.display.BitmapData
    package that comes in Flash 8, but it looks like it is not working.
    The content is not redrawn to the curve, the image is tiled in the
    area it is supposed to fill. We had this problem once when the
    player we had was compiled in Flash 7.
    Is it possible that the flash version that Presenter use is
    not 8? Even if the documentation say that Flash 8 is the minimum to
    view the content. Is there a workaround or update to F8 in the
    pipes?

    Your not the only one who is having troble with flash. I here
    to find help with the same situation. My friend has installed
    version 9 and can't view anything on the internet that uses flash.
    But the other account user can. Whats up. All internet options are
    the same...

  • As2 form not working within action scripts

    this script is working on online but when i put this code within my project action scripts, its not working,,,
    stop();
    System.useCodepage = true;
    send_btn.onRelease = function() {
        my_vars = new LoadVars();
        my_vars.sender = email_box.text;
        my_vars.subject = subject_box.text;
        my_vars.message = message_box.text;
        if (my_vars.sender != "" and my_vars.subject != "" and my_vars.message != "") {
            my_vars.sendAndLoad("mailer.php", my_vars, "POST");
            gotoAndStop(72);
        } else {
            error_clip.gotoAndPlay(72);
        my_vars.onLoad = function() {
            gotoAndStop(73);
    email_box.onSetFocus = subject_box.onSetFocus=message_box.onSetFocus=function () {
        if (error_clip._currentframe != 1) {
            error_clip.gotoAndPlay(6);

    Are you testing on a server?  If not, do you have PHP installed to support trying to call upon a PHP file?

  • Can not get two AS2 scrollers to work on same page.

    Hi.
    I really like this particular scroller I used at the bottom of the page here:
    http://steamandclean.com
    Now I need to use two instances of it side by side on another page and can not get it to work.
    I have tried:
    Having same code twice in frame 1 unchangend.
    Having two instances of all the code but with renamed variables and instance names throughout the code.
    Having each scroller in their own movie clip and then add them both to the scene.
    Having a master fla with the background and importing two separate swfs with each their own scroller - they work independantly but when they import to the same page one of them will not work.
    Here is the AS2 I am using:
    Left scroller:
    fscommand("allowscale", "true");
    bar.useHandCursor = dragger.useHandCursor=false;
    space = 20;
    friction = 0.9;
    speed = 4;
    y = dragger._y;
    top = main._y;
    bottom = main._y+mask_mc._height-main._height-space;
    dragger.onPress = function() {
              drag = true;
              this.startDrag(false, this._x, this._parent.y, this._x, this._parent.y+this._parent.bar._height-this._height);
              scrollEase();
    dragger.onMouseUp = function() {
              this.stopDrag();
              drag = false;
    bar.onPress = function() {
              drag = true;
              if (this._parent._ymouse>this._y+this._height-this._parent.dragger._height) {
                        this._parent.dragger._y = this._parent._ymouse;
                        this._parent.dragger._y = this._y+this._height-this._parent.dragger._height;
              } else {
                        this._parent.dragger._y = this._parent._ymouse;
              scrollEase();
    bar.onMouseUp = function() {
              drag = false;
    moveDragger = function (d) {
              if ((dragger._y == y+bar._height-dragger._height && d == 1) || (dragger._y == y && d == -1)) {
                        clearInterval(myInterval);
              } else {
                        dragger._y += d;
                        scrollEase();
                        updateAfterEvent();
    up_btn.onPress = function() {
              myInterval = setInterval(moveDragger, 18, -1);
    down_btn.onPress = function() {
              myInterval = setInterval(moveDragger, 18, 1);
    up_btn.onMouseUp = down_btn.onMouseUp=function () {
              clearInterval(myInterval);
    MovieClip.prototype.scrollEase = function() {
              dragger.onEnterFrame = function() {
                        if (Math.abs(dy) == 0 && drag == false) {
                                  delete this.onEnterFrame;
                        r = (this._y-y)/(bar._height-this._height);
                        dy = Math.round((((top-(top-bottom)*r)-main._y)/speed)*friction);
                        main._y += dy;
    Right scroller
    fscommand("allowscale", "true");
    bar2.useHandCursor = dragger2.useHandCursor=false;
    space = 20;
    friction = 0.9;
    speed = 4;
    y = dragger2._y;
    top = main2._y;
    bottom = main2._y+mask_mc._height-main2._height-space;
    dragger2.onPress = function() {
              drag = true;
              this.startDrag(false, this._x, this._parent.y, this._x, this._parent.y+this._parent.bar2._height-this._height);
              scrollEase();
    dragger2.onMouseUp = function() {
              this.stopDrag();
              drag = false;
    bar2.onPress = function() {
              drag = true;
              if (this._parent._ymouse>this._y+this._height-this._parent.dragger2._height) {
                        this._parent.dragger2._y = this._parent._ymouse;
                        this._parent.dragger2._y = this._y+this._height-this._parent.dragger2._height;
              } else {
                        this._parent.dragger2._y = this._parent._ymouse;
              scrollEase();
    bar2.onMouseUp = function() {
              drag = false;
    movedragger2 = function (d) {
              if ((dragger2._y == y+bar2._height-dragger2._height && d == 1) || (dragger2._y == y && d == -1)) {
                        clearInterval(myInterval);
              } else {
                        dragger2._y += d;
                        scrollEase();
                        updateAfterEvent();
    up_btn2.onPress = function() {
              myInterval = setInterval(movedragger2, 18, -1);
    down_btn2.onPress = function() {
              myInterval = setInterval(movedragger2, 18, 1);
    up_btn2.onMouseUp = down_btn2.onMouseUp=function () {
              clearInterval(myInterval);
    MovieClip.prototype.scrollEase = function() {
              dragger2.onEnterFrame = function() {
                        if (Math.abs(dy) == 0 && drag == false) {
                                  delete this.onEnterFrame;
                        r = (this._y-y)/(bar2._height-this._height);
                        dy = Math.round((((top-(top-bottom)*r)-main2._y)/speed)*friction);
                        main2._y += dy;
    If needed I can upload the fla files, but I see no option to attach a file
    Thank you on beforehand!
    ggaarde

    You should only have one set of code, forget the second set you created.  You could even have just one movieclip where you load the "main" portion into it dynamically.  But for the moment I expect you will create one movieclip using your first set of code, replacing the last function....
    MovieClip.prototype.scrollEase = function() {
              dragger2.onEnterFrame = function() {
                        if (Math.abs(dy) == 0 && drag == false) {
                                  delete this.onEnterFrame;
                        r = (this._y-y)/(bar2._height-this._height);
                        dy = Math.round((((top-(top-bottom)*r)-main2._y)/speed)*friction);
                        main2._y += dy;
    with what I showed in the last posting.
    For the second scroller movieclip just create a copy of the first one in the library and only change whatever content goes into the "main" movieclip.
    Afterwards challenge..... If you want to have just one movieclip that you use for both then you could create the two content sections as movieclips in the library and use the attachMovie function to load each one in to its own scroller.

  • Captivate 4 AS2 Text Entry Box not working with Flash Player 11

    I am having issues with text entry boxes not working at all in flash 11. I am using Captivate 4 and exporting an AS2 swf. When you get to the slide you can type but you cannot see anything nor does the button or keystroke to move on. Also there is no cursor. Any ideas?

    You said it is not working with Flash 11, so does that mean you tested with previous version and that worked?
    While publishing choose Flash player as 9 and publish that, verify if that plays in a compatible web browser.
    AS 2 is a legacy scripting, it has been said not too be supported with even Flash Player 10 --
    http://help.adobe.com/en_US/AS2LCR/Flash_10.0/help.html?content=Part2_AS2_LangRef_1.html
    I believe if you switch back to version 9 while publish your project, it should work.
    Thanks,
    Anjaneai

  • Fscommand is not working when opening PDF document in browser with Acrobat 9, why?

    We embedded a flash application in PDF using screen annotation. In the flash we use fscommand to call methods available in AcroJS.  In acrobat reader 9, if we view the document in Internet Explorer, we receive a security sandbox violation message saying that it cannot make fscommand calls to <unknown> (allowScriptAccess is ). But when we open the document in Firefox, it works fine.

    Have a read of this article on the web:
    http://www.actionscript.org/resources/articles/99/1/FS-Command-JavaScript-Library/Page1.ht ml
    The part that caught my eye was the following:
    "...These methods will not work with Internet Explorer on Macs. This lack of functionality is a brower issue with communication with plugins and cannot be resolved by anyone except MicroSoft. "
    I wonder if the same is true for Windows?
    Sabian

  • AS2 button actions not working

    I've created a dropdown menu movie clip, and I want the various buttons in the dropdowns to link to various Scenes.
    When I test the movie the dropdown menus perform as intended, and the buttons appear to have rollover states, but they do not link to my additional Scenes.
    I have gone into the movie clip containing the buttons, and given the buttons instace names, and then added the following AS2 script to go to the next scene, but it does not work:
    displayB_btn.onRelease=function() {
        gotoAndStop("Scene 2",1);
    In a nutshell, I cannot move beyond Scene 1.
    I have tried making the instances movie clips rather than buttons, but that has created its own problems.
    Hope someone can help.
    Thanks in advance.

    in as2, do not use scenes for navigation and do not use the goto functions.
    use frame labels and use the goto methods:
    _root.gotoAndStop("scene2_frame1");

  • Fscommand and swf in web browser not working

    Hi,
    I am trying to open one flash projector exe file from web browser swf file but it is not working.
    When I tried calling the fscommand("exec", "myapplication.bat") and fscommand("exec", "myapplication.exe") from projector exe flash file then it works fine.
    I just want to know the supportabilities of fscommand in as3 using Flash Proffessional CS5.
    Please suggest.
    Best regards,

    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/system/package.ht ml
    The line that matters: None of the commands are available in web players.
    On the web use ExternalInterface to run JavaScript on the page - not sure you'll have much luck with exec though.

  • Fscommand(fullscreen...not working

    i am trying to use the fscammand("fullscreen", ture); to make
    myvideo adjust to the user's resolution and it is not working. the
    site is mortgagemaestro.net.
    anybody know what to do?

    elmson wrote:
    > thanks for the reply..
    > yup i spelled everything right, i have seen pages do
    this so i think it can be done in flash... anybody know?
    fscommand FullScreen is STRICTLY for desktop use and has no
    apply to browser.
    In browser you need to use old, regular Javascript full
    screen function.
    Regards
    Urami
    Happy New Year guys - all the best there is in the 2006
    <urami>
    http://www.Flashfugitive.com
    </urami>
    <web junk free>
    http://www.firefox.com
    </web junk free>

  • Tabindex not working in contact form (AS2)

    Hey everyone,
    I have a contact form on my site for which the text inputs are  created via AS2. This works fine but I cannot get the tabbing to work  (or even have any effect) no matter what I do. I have a menu that  sometimes displays at the top, sometimes on the left and sometimes at  the bottom. If it's at the top or bottom then the form tabbing works  fine, however if it's down the side then when i tab from  contact_namefield it goes to the 8th menu option, then the 9th menu  option, then contact_emailfield then contact_messagefield. Similarly if i  tab from the top of the menu it's goes down sequentially to menu option  7, then to contact_namefield, then menu option 8, then menu option 9  then contact_emailfield then contact_messagefield. I cannot for the life  of me work out how to change this, I would rather avoid setting  tabenabled=false for every other element on the page (as i'd still like  these to be tabbed), but either way I don't think this will fix it as  the tabindexes i've specified seem to be having no affect at all, no  matter what values i put in (even if i reverse them) the tab order is  always exactly the same. I am using the following code and would be so  grateful if anyone could point out what i'm doing wrong as I can't for  the life of me figure it out!
    var currfont=_root.textfont; var inputcol = "0x" + _root.textcolour;
    var my_fmt:TextFormat = new TextFormat();
    my_fmt.bold = false;
    my_fmt.font = "Arial";
    my_fmt.color = inputcol; createTextField("contact_namefield", getNextHighestDepth(),112.6, 29, 174, 20);
    contact_namefield.wordWrap = true;
    contact_namefield.multiline = false;
    contact_namefield.border = true;
    contact_namefield.borderColor = inputcol;
    contact_namefield.type = "input";
    contact_namefield.setNewTextFormat(my_fmt);
    contact_namefield.text = "";
    contact_namefield.tabEnabled=true;
    contact_namefield.tabindex = 0; createTextField("contact_emailfield", getNextHighestDepth(),112.6, 74, 174, 20);
    contact_emailfield.wordWrap = true;
    contact_emailfield.multiline = false;
    contact_emailfield.border = true;
    contact_emailfield.borderColor = inputcol;
    contact_emailfield.type = "input";
    contact_emailfield.setNewTextFormat(my_fmt);
    contact_emailfield.text = "";
    contact_emailfield.tabEnabled=true;
    contact_emailfield.tabindex = 1; createTextField("contact_messagefield", getNextHighestDepth(),112.6, 120.3, 174, 125.6);
    contact_messagefield.wordWrap = true;
    contact_messagefield.multiline = false;
    contact_messagefield.border = true;
    contact_messagefield.borderColor = inputcol;
    contact_messagefield.type = "input";
    contact_messagefield.setNewTextFormat(my_fmt);
    contact_messagefield.text = "";
    contact_messagefield.tabEnabled=true;
    contact_messagefield.tabindex = 2;
    Thanks so much for your help as ever everyone,
    Dave

    assign a tabIndex for each object that's tabEnabled.

  • [as2] Class is not working

    Hi.
    I have two levels one for "movie1.swf" the other "movie2.swf",
    movie1 is on level 0, movie2 is on level 1.
    I made a class "MySound", a class that extends the Sound class.
    The problem is that I tried to use MySound class on movie2 and is not working.
    It only works when I use MySound class on level 0.
    Why?
    Other thing.
    The Sound class constructor function has a parameter "target" use to
    point to a object. I think it is use to setVolume and other things.
    How can I use the same method?
    I´ve tried to setVolume with my class ("MySound"), once for each
    sound and it worked for both, I mean, example, I have sounds "s1"
    and "s2", I tried to set the volume of s1 to 50 and s2 to 0 like this:
    s1.setVolume(50)
    s2.setVolume(0)
    But, both sounds volume were setted to 0.
    How can I use the same method of targeting an object so the setVolume
    works properly in MySound class?
    Note:
    MySound class has no constructor function declared, so I thought it could
    work the same as Sound class.
    How can I use setVolume method in MySound class?
    The main reason I´m making a MySound class is because in MySound class I have methods that pauses and resumes the current sound object.
    I know I can make it directly through script with Sound class, but with MySound class it gets better to write script to work with sounds.
    So I can just use s1.pause() s1.resume(), instead of creating a variable each time for each sound object.
    Any help?
    Thanks

    hi
    I had put auto-start=true in server.xml .then also it is not working.
    when I redeploy my ear,the startup class is invoked,but when i restart the
    server it does'nt
    gaj

  • In some pc ActionScript not working even after running the .SWF or .EXE, what may be the problem ?

    In my flash project i am using ActionScript to get FULLScreen and mouse hide action. I hv already used the AS3 in Adobe Flash CC and AS2 in Adobe Flash CS6.  All my files are working well, both .SWF and .EXE (projector..) . But the client is saying in his pc the Full SCREEN and Mouse hide is not working. I instructed to update the flash player plugins, still they are getting the same issue. What is the matter pls any one guide us. My code is in the first frame of Flash file which is mention below.
    /*AS2 code*/
    fscommand("fullscreen","true");
    Mouse.hide();
    /*AS3 code*/
    stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;
    stage.scaleMode = StageScaleMode.SHOW_ALL;
    Mouse.hide();

    Hi all, few days ago the client told , one of the project file (.SWF and .EXE) showing full screen. Again day before yesterday the client again said, all the project files working Full Screen and Mouse hide action. Still i do know such happens ? if any technical issue is behind its problem than anyone pls inform me. However it is running well in their PC now.

  • Barcode report is not working in linux

    hi,
    i am running the report using the barcode, which is running perfectly in the windows server - i meant in the report builder.
    but when i try run the same report in linux server through application, i am getting the below mentioned error:
    Terminated with error:
    REP-1401: 'beforereport': Fatal PL/SQL error occurred. ORA-39565: Message 39565 not found; product=RDBMS; facility=ORA
    below mentioned is the code written in beforereport trigger:
    globals.barcode_to_use := BarCodeConstants.BAR_CODE_128;
    globals.bcobj := barcodemaker.new();
    i have include the jar file path /ora/u01/oracle/v101/ds1/reports/jlib/oraclebarcode.jar both in class path and report_path, but still its not working.
    any one had solve this issue?...pls help me out
    for you info:
    CLASSPATH=/ora/u01/oracle/v101/ds1/j2ee/OC4J_BI_Forms/applications/formsapp/formsweb/WEB-INF/lib/frmsrv.jar:/ora/u01/oracle/v101/ds1/jlib/repository.jar:/ora/u01/oracle/v101/ds1/jlib/ldapjclnt10.jar:/ora/u01/oracle/v101/ds1/jlib/debugger.jar:/ora/u01/oracle/v101/ds1/jlib/ewt3.jar:/ora/u01/oracle/v101/ds1/jlib/share.jar:/ora/u01/oracle/v101/ds1/jlib/utj.jar:/ora/u01/oracle/v101/ds1/jlib/zrclient.jar:/ora/u01/oracle/v101/ds1/reports/jlib/rwrun.jar:/ora/u01/oracle/v101/ds1/forms/java/frmwebutil.jar:/ora/u01/oracle/v101/ds1/reports/jlib/oraclebarcode.jar
    RW=$ORACLE_HOME/reports; export RW
    REPORTS_PATH=$ORACLE_HOME/reports/templates:$ORACLE_HOME/reports/samples/demo:$ORACLE_HOME/reports/integ:$ORACLE_HOME/reports/printers:${REPORTS_PATH}; export REPORTS_PATH
    REPORTS_TMP=/tmp; export REPORTS_TMP
    REPORTS_NO_DUMMY_PRINTER=TRUE; export REPORTS_NO_DUMMY_PRINTER
    REPORTS_TAGLIB_URI=/WEB-INF/lib/reports_tld.jar; export REPORTS_TAGLIB_URI
    REPORTS_CLASSPATH=$ORACLE_HOME/reports/jlib/rwbuilder.jar:$ORACLE_HOME/reports/jlib/rwrun.jar:$ORACLE_HOME/jlib/zrclient.jar:$ORACLE_HOME/j2ee/home/oc4j.jar:$ORACLE_HOME/j2ee/home/lib/ojsp.jar:$ORACLE_HOME/reports/jlib/oraclebarcode.jar; export REPORTS_CLASSPATH
    repserver.conf file setting:
    <engine id="rwEng" class="oracle.reports.engine.EngineImpl" initEngine="1" maxEngine="1" minEngine="0" engLife="50" maxIdle="30" callbackTimeOut="90000" jvmOptions="-Xms512m -Xmx512m" classPath="/ora/u01/oracle/v101/ds1/reports/jlib/oraclebarcode.jar">
    <property name="sourceDir" value="/ora/u02/oraadmin/config/as2/app_qits_run"/>
    <property name="tempDir" value="/ora/u02/oraadmin/config/as2/app_qits_tmp"/>
    </engine>
    <engine id="rwURLEng" class="oracle.reports.urlengine.URLEngineImpl" initEngine="1" maxEngine="1" minEngine="0" engLife="50" maxIdle="30" callbackTimeOut="60000" classPath="/ora/u01/oracle/v101/ds1/reports/jlib/oraclebarcode.jar"/>
    thanks
    renjish

    Hello,
    The first step if to find the PL/SQL line causing the error in 'cf_1formula':
    create a procedure Trace in your Reports : (modify the line trace_file := Text_IO.Fopen('d:\temp\rep_trace.txt', 'A'); to adapt the filename to your system)
    PROCEDURE Trace (trace_string in varchar2) IS
    trace_file Text_IO.File_Type;
    BEGIN
    trace_file := Text_IO.Fopen('d:\temp\rep_trace.txt', 'A');
    Text_IO.Put_Line(trace_file, trace_string);
    Text_IO.Fclose (trace_file);
    END;
    Then, add some calls to this procedure in the program unit 'cf_1formula'
    trace('Before line 1';
    <PL/SQL code of line 1>
    trace('Before line 2';
    <PL/SQL code of line 2>
    trace('Before line 3';
    <PL/SQL code of line 3>
    Excecute the Reports and find in the file 'd:\temp\rep_trace.txt' the last line executed.
    Regards

  • Simple button script not working

    I am using AS2 and need help figuring out why this simple button script is not working:
    stop();
    buttonWS1.onRelease = function(){
                        gotoAndStop("Stage1and2_Boss",4);
    buttonWS2.onRelease = function(){
                        nextFrame();
    //end
    My buttons are the square letter-puzzles below. They are images that I converted to "symbols" (specifically, buttons). I put their names as above (buttonWS1, buttonWS2, etc.) in the "instance names" boxes.
    I have no idea what is going on. Please help!

    Hi -
    1. Yes, buttonWS2 is the instance name
    2. The only code attached to it is the code I pasted above.
    3. onRelease does not execute because my trace statement does not appear in the output
    Here is the modified code for buttonWS2:
    buttonWS2.onRelease = function(){
                        trace("clicked!");
                        nextFrame();
    Question: It shouldn't matter if I have commented-out code within that set of codes should it?:
    buttonWS2.onRelease = function(){
              //if (puzzleschosenarray[0] == 2 || puzzleschosenarray[1] == 2) {
              // cannot be chosen -- make button non-functional
              //else{
                        //puzzleschosenarray[roundnumber-1] = 2;
                        trace("clicked!");
                        nextFrame();

Maybe you are looking for

  • Date Range and Null Values

    Post Author: mrae CA Forum: Formula I want to pull up data that have been completed for the month, but also want to include null values.  I did the following but didn't work. (isnull({wrhwr.date_completed}) or {wrhwr.date_completed} => 4/1/2008 12:00

  • Why can't I upload photos from my Macbook pro to my iphone 5

    I can't find a way to upload photos from my Macbook pro to my iphone 5

  • Problem in istalling 11g express edition

    I have successfully istaled oracle 11g express edition.When I pressing start database an error is displaying "windows cannot find 'http://127.0.0.1:%HTTPPORT%apex/f?p==4950'.Make sure you typed the name correctly and try again'". And there is no opti

  • Error return from xmlparserBuffer

    Hi, I am in the process of converting the program from using IBM's XML C++ parser to Oracle's C++ parser. I am usnig the xmlparseBuffer to parse an in-memory message (with embedded DTD). The following error was returned: <1,1> LPX-00218: invalid char

  • Error while installing Shared Technologies Elements 12

    I have just downloaded my purchase of Elements 12 and tried to install twice. I've read through the troubleshooting pages and still can't work out how to fix this. I am getting the error messages and have included them below Can someone please help m