Clipboard Clear script in AS3

Hi Folks,
I have been using Clipboard clear script for all my Secure
Flash solutions but Now i am facing odd problem with newly released
Flash Player 10. The clipboard clear script is not working with FP
10.
If anyone provide Clipboard clear script using AS3 and that
should work with Flashplayer 10 is really helpful.
Please do the needful.
Thanks in Advance
Regards
Suresh
www.sureshfx.com

Clipboard.generalClipboard.clear();
works for me:
fp 10.0.2.54

Similar Messages

  • Maxl Clear Script with Substitution Variables

    Hi,
    I am new to Maxl and I am trying to write a clear script with Maxl on an ASO Cube. The script should only clear data on a certain version and year that changes every month. I am using the following syntax and it doesn't work.
    alter database ASOSamp.Sample clear data in region '{[&SV_CurrentPeriod]}';
    What is the correct syntax here?
    thanks,

    alter database ASOSamp.Sample clear data in region '{[&Test]}';...with the subvar 'Test' set to Jan...works on my 11.1.2 test system.
    Incidentally, when you say "it doesn't work", do you mean you get a MaxL error, or it doesn't clear the expected region? I was assuming the former, but you don't say.

  • Win 7 Clipboard clears contents when opening a new application or window

    There are similar posts on this issue, but I see none with a satisfactory fix.
    I have a brand new Dell Laptop, running Win 7 Pro 64-bit SP1.
    If I copy anything to the Clipboard, it works fine *IF* where I want to paste it is already open.
    However, If after I copy, I do ANYTHING in between, the clipboard is cleared out.
    Examples:  I'm in an Email (MS Outlook, Office 10) and copy a string of text from the body of the email.
    I then open a new email, and attempt to Paste it, the clipboard is empty.
    However, if I open the New email First, then go to the existing email and do the copy,
    It pastes in Fine if I just flip directly to the already open new email.
    This behavior is not limited to Outlook, Office, or even any Microsoft products.
    I could try the same sequence of events from Chrome browser to Evernote for example.  If Evernote is already open it works.
    If I have to open Evernote after doing the copy, the Clipboard clears. Same is true for ANY 2 applications on the PC.
    System File Checker finds no errors, and I didn't expect it to as the clipboard does work as long as everything is already open.
    Thanks in Advance for your help.

    Hi,
    As I known, some memory management softwares WILL clear the clipboard queue every time it engages. Check to be sure you do not have any kind of memory management or RAM MANAGER type of software loaded.
    If so, remove it or disable the option to clear clipboard catch.
    For the similar issues, you can refer to this thread and check other suggestions:
    http://social.technet.microsoft.com/Forums/windows/en-US/5bbc11e8-ca2d-41ac-b640-d66ce971f58f/copy-paste-clipboard-issues-not-working
    Kate Li
    TechNet Community Support

  • Essbase clear script is triggered 32 times from FDM

    Hi All,
    I've created a simple clear script in the load action of the Essbase adapter in FDM.
    When loading a short file the clear script runs very fast and no problems occurs.
    When loading a long file (multiload 12 periods, 10.000 rows) the validation alone takes already 4 minutes. But the problem is that the clear script is triggered 32 times.
    Every time exactly the same script (so it only cleares data the first time) but every time takes a few seconds..
    Anybody a clue why this is happening and how i can solve this?
    I'm thinking of triggering the clear script from an event script but not sure which one.
    Thanks in advance,
    Marc

    Marc,
    This is by design. As the FDM Essbase Adapter requires customizations to mirror/match the Essbase Application.
    Importantly is the clear scripts that it executes.
    Without the appropriate changes to the adapter, it will appear* to execute the same script multiple times. But when in-fact if the customizations were done correctly, you would see slight differences each time.
    By default, it will clear based on the combinations of Period and Entity.
    So if your file had 12 periods, and 3 unique Entities, it would do 36 clear statements.
    I would suggest you review your customization for accuracy.
    Hopefully this helps...

  • Executing Essbase Clear Script through FDM event scripts

    Hi,
    Is it possible to access and execute essbase clear script through FDM event scripts? I know one method is to modify Load action, but was wondering if can be done any other way.
    Thanks in advance.

    The Essbase client is installed on the FDM application server so yes. You can create a batch file that calls a calc script via the Essbase Client and execute this from your Event script

  • Possible to copy text to clipboard through script?

       I'm currently creating a temporary textPath and copying that to the clipboard with the app.copy() method.  Is there a way to just simply copy the text directly to the clipboard rather than having to do it through copying an object?

    Im not a fan of scripting the clipboard what do you need to to this for?

  • Converting external link as2 script to as3

    Hello.
    I used this script I found online to make a Flash file that accessed an external text file full of hyperlinks through buttons in the Flash movie. The code is as2. I had to update the Flash file to AS3 and now the script doesn't work. I can't figure out how to do the same thing that this script does in AS3. Can anyone help me?
    Here is the AS2 script:
    textFile = new LoadVars()
    textFile.onLoad = function(){
    buttonlink1 = this.BlackBooklink;
    buttonlink2 = this.Ashtraylink;
    buttonlink3 = this.bedroomlink;
    buttonlink4 = this.tvlink;
    buttonlink5 = this.spiderlink;
    buttonlink6 = this.Mirrorlink;
    buttonlink7 = this.Boomboxlink;
    buttonlink8 = this.Suitlink;
    buttonlink9 = this.cashlink;
    buttonlink10 = this.fastfoodlink;
    buttonlink11 = this.Idolatrylink;
    buttonlink12 = this.Trashlink;
    textFile.load("LeftHouseLinks.txt");
    //---buttons
    BlackBook.onRelease = function(){
    getURL(buttonlink1, "_self");
    Ashtray.onRelease = function(){
    getURL(buttonlink2, "_self");
    bedroom.onRelease = function(){
    getURL(buttonlink3, "_self");
    tv.onRelease = function(){
    getURL(buttonlink4, "_self");
    spider.onRelease = function(){
    getURL(buttonlink5, "_self");
    Mirror.onRelease = function(){
    getURL(buttonlink6, "_self");
    Boombox.onRelease = function(){
    getURL(buttonlink7, "_self");
    Suit.onRelease = function(){
    getURL(buttonlink8, "_self");
    cash.onRelease = function(){
    getURL(buttonlink9, "_self");
    fastfood.onRelease = function(){
    getURL(buttonlink10, "_self");
    idolatry.onRelease = function(){
    getURL(buttonlink11, "_self");
    trashtalk.onRelease = function(){
    getURL(buttonlink11, "_s
    This is the external .txt file content
    &BlackBooklink=http://www.yahoo.com
    &Ashtraylink=http://www.google.com
    &bedroomlink=http://www.yahoo.com
    &tvlink=http://www.google.com
    &spiderlink=http://www.yahoo.com
    &Mirrorlink=http://www.google.com
    &Boomboxlink=http://www.yahoo.com
    &Suitlink=http://www.google.com
    &cashlink=http://www.yahoo.com
    &fastfoodlink=http://www.google.com
    &Idolatrylink=http://www.yahoo.com
    I know how to make AS3 button work, I just don't know the code so that when I click the button, it accesses the external file and goes to the hyperlink specified by the button.
    Any help would be much appreciated.
    -Shawn

    Hi Ned.
    I have officially lost the rest of what's left of my hair over this.
    Here is the code I am using now. For whatever reason the variable
    buttonlink1 I have set up is not being recognized:
    var myTextLoader:URLLoader = new URLLoader();
    myTextLoader.addEventListener(Event.COMPLETE, onLoaded);
    function onLoaded(e:Event):void {
                trace(e.target.data);
    var buttonlink1;
    buttonlink1 = this.BlackBooklink;
    myTextLoader.load(new URLRequest("LeftHouseLinks.txt"));
    BlackBook.addEventListener ( MouseEvent.CLICK, myBlackBookHandler )
    function myBlackBookHandler( evt ){
                navigateToURL(new URLRequest(buttonlink1), "_self");
    This is the resulting error message and below that is the text of the
    external text file which is loading into Flash:
    Any ideas? Thanks.
    -Shawn
    TypeError: Error #2007: Parameter url must be non-null.
                at global/flash.net::navigateToURL()
                at SoulDecisions07_fla::MainTimeline/myBlackBookHandler()
    &BlackBooklink=http://www.yahoo.com
    &Ashtraylink=http://www.google.com
    &bedroomlink=http://www.yahoo.com
    &tvlink=http://www.google.com
    &spiderlink=http://www.yahoo.com
    &Mirrorlink=http://www.google.com
    &Boomboxlink=http://www.yahoo.com
    &Suitlink=http://www.google.com
    &cashlink=http://www.yahoo.com
    &fastfoodlink=http://www.google.com
    &Idolatrylink=http://www.yahoo.com
    &BlackBooklink=http://www.yahoo.com
    &Ashtraylink=http://www.google.com
    &bedroomlink=http://www.yahoo.com
    &tvlink=http://www.google.com
    &spiderlink=http://www.yahoo.com
    &Mirrorlink=http://www.google.com
    &Boomboxlink=http://www.yahoo.com
    &Suitlink=http://www.google.com
    &cashlink=http://www.yahoo.com
    &fastfoodlink=http://www.google.com
    &Idolatrylink=http://www.yahoo.com
    &BlackBooklink=http://www.yahoo.com
    &Ashtraylink=http://www.google.com
    &bedroomlink=http://www.yahoo.com
    &tvlink=http://www.google.com
    &spiderlink=http://www.yahoo.com
    &Mirrorlink=http://www.google.com
    &Boomboxlink=http://www.yahoo.com
    &Suitlink=http://www.google.com

  • As2 actions scripts to as3

    can any one help me for getting as3 actions which are simmilar to as2? such as
    1.'Loadmovie' on different level. Level 0, level 1 etc etc.
    2.On click 'loadmovie'
    3.fscommand like, Quite, full screen, allow scale.
    4.On release go to and play
    5.On release play and stop.
    6.playing contents in side the movie clip with on release.

    1. AS3 does not have level0, level1, etc.  To load an external swf you can use the Loader class
    2. AS2 has no such command - use the Loader to load an external file.  If you want to have a click initiate it then use an event listener for a CLICK MouseEvent.
    3.  Search Google for AS3 fscommand
    4. AS3 uses the same gotoAndPlay command as AS2 except the arguments for scene/frame are reversed to frame/scene - again, to have it happen on a click use an event listener for a CLICK MouseEvent
    5. AS2 has no command to play and stop, they are opposing commands, nor does AS3.  If you mean gotoAndStop it is the same in both except, again, for the order of the arguments
    6. This would be the same as AS2 where you target the movieclip using dot notation and tell it to play() - again, using an event listener for a CLICK MouseEvent.
    Explaining AS3 Button Code
    Let's say you create a button symbol.  Since it is a button, it is already a self animating object that will react to mouse interactions, but only visually at this stage.  The first thing you need to do to make it useful code-wise is to assign it a unique instance name.  So you drag a copy of it out to the stage from the library, and while it's still selected, you enter that unique instance name for it in the Properties panel... let's say you name it "btn1"
    In AS3, to make a button work with code, you need to add an event listener and event handler function for it.  You might need to add a few (for different events, like rollover, rollout, clicking it, but for now we'll just say you want to be able to click it to get a web page to open.  In the timeline that holds that button, in a separate actions layer that you create, in a frame numbered the same as where that button exists, you would add the event listener:
    btn1.addEventListener(MouseEvent.CLICK, btn1Click);
    The name of the unique function for processing the clicking of that button is specified at the end of the event listener assignment, so now you just have to write that function out:
    function btn1Click(evt:MouseEvent):void {
       var url:String = "http://www.awebsite.com/awebpage.html";
       var req:URLRequest = new URLRequest(url);
       navigateToURL(req);
    Here's some of what's involved there:
    evt:MouseEvent - the event listeners throws an argument automatically which the function must be set up to receive.  In this case I have given that argument a variable name of evt, though I could have chosen anything.
    :void - this defines the class of the value that the function will return.  In this case, the function does not return anything, so "void" is used.  If it did return a value, you would see a line containing "return xyz"; in the function (where xyz is not literal, it simply represents the variable or value being returned)
    The normal code to open a web page contains three distinct elements, the url, the request, and the command to get the page, so I have shown them as three separate lines.  Many people will combine them into one line.
    In AS3, in strict mode, it is necessary to identify the types/classes of the variables being created, which is why you see :String, :MouseEvent, etc... showing up everywhere.
    I know that's probably clear as mud in the explanation, but hopefully it will shed some light on what you're working with.
    Now, to create another button with a unique function for it, you could just drag another copy of it from the library, give it a unique name, say btn2, copy/paste the code from btn1 and replace "btn1" with "btn2" in that copied code, adding a new url for the page that button will open.

  • Clearing Script

    I have a project that is loading 8 different RSS feeds and is
    populated using various buttons. I have it loading one RSS feed in
    the frame 1 and populating several information blocks loaded with
    an external .as file.
    When I have a button that sends the user to another RSS feed
    in frame 10, it tells me that all my vars are duplicates. All I
    changed was the RSS feed URL, but the rest of the code is the same.
    Is there a way to tell Flash to ignore any code except for the
    Frame it is currently occupying? Is there a way to clear all
    current code on a button event handler or a onEnterFrame
    function?

    Timeline code, once encountered, is available in successive
    frames. This is
    just how it works. You might want to think about using
    classes - create a
    feed class, and make a new instance of it for each feed.
    Dave -
    www.offroadfire.com
    Head Developer
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

  • How to clear clipboard

    As the title says, how do i clear the clipboard while scripting with copy/paste functions?
    Because i am affraid for crashes because too much items are on the copy buffer
    Thanks.

    deselect all and copy
    app.activeDocument.selection = null;
    app.copy();

  • Is there a script available for arranging elements for optimal use of the printable area?

    I'm starting a sticker printing business using Illustrator as my main layout and illustration too. I was wondering if there's a script available for automatically arranging a set of elements on a page so that they optimally take up the available space. I figured this would save me some on material costs.
    If I were to create a script from scratch, can someone give me pointers? I'm a casual AI user but I have Javascript experience.
    Thanks.

    The below image shows the 4 different die sizes, the artwork fits inside the dotted box so make sure that we have room around the die and the drill holes are assigned as well.
    The name of each die is listed above it, and the size is listed below it.
    The script is set to take each die and place it on the template until it is full, then it will save it and move it to the folder where it will be grabbed and preped for printing.
    Everything below the **** is the script.
    #target illustrator   
        var tempDoc = app.activeDocument;
        copy();
        if (tempDoc.selection.length > 0)
            var myFile = File("S:/TEMPLATES/IN USE/DB_TEMPLATE.ai");
            app.open(myFile);
            var thisDoc = app.activeDocument;
                thisDoc.views[0].centerPoint = [324,503];
                thisDoc.views[0].zoom = .65;
            var allGroups;
            var horizontalCords = [0,180,360,540,0,180,360,540,0,180,360,540,0,180,360,540,0,180,360,540,0];
            var verticalCords = [1012.5,1012.5,1012.5,1012.5,810,810,810,810,607.5,607.5,607.5,607.5,405,405,405,405,202. 5,202.5,202.5,202.5,202.5];
            var oneGroups = new Array();
            var twoGroups = new Array();
            var oneAGroups = new Array();
            var twoAGroups = new Array();
            var makeNew1 = new Array();
            var makeNew2 = new Array();
            var twoACounter = 0;
            var layerRemainder = [4,4,4,4];
            var totalDies = 0;
            var noGo = 0;
            var caseTest;
        if (thisDoc.pageItems.length == 0)
            drawTemplate();
        var newLayer = thisDoc.layers.add();
        newLayer.name = "Die Layer";
        paste();
    allGroups = thisDoc.groupItems;
        for (i=0;i<allGroups.length;i++){// determine what dies are present
            if (allGroups[i].name == "1"){
                oneGroups.push(allGroups[i]);
            else
        if (allGroups[i].name == "1A"){
                oneAGroups.push(allGroups[i]);
        if (allGroups[i].name == "2") {
            twoGroups.push(allGroups[i]);
        else
        if (allGroups[i].name == "2A"){
            twoAGroups.push(allGroups[i]);
        }// end FOR
    if (oneAGroups.length == 1)
        oneAGroups[0].position = [540,101.5];   
    if (twoAGroups.length == 1)
        twoAGroups[0].position = [360.25,101.25];
    if (oneAGroups.length == 1 && twoAGroups.length == 1)
        oneAGroups[0].position = [360,203.5];   
        if(oneAGroups.length == 2){
        var add1Group = thisDoc.groupItems.add();
            add1Group.name = "1";
            oneAGroups[0].name = "1A changed";
            oneAGroups[1].name = "1A changed";
            oneAGroups[0].position = [0,0];
            oneAGroups[1].position = [0,-100.75];
            oneAGroups[0].moveToBeginning(add1Group);
            oneAGroups[1].moveToBeginning(add1Group);       
            oneGroups.push(add1Group);
            oneAGroups.length = 0;
            redraw();
        if(twoAGroups.length == 2){
        var add2Group = thisDoc.groupItems.add();
            add2Group.name = "2";
            twoAGroups[0].name = "2A changed";
            twoAGroups[1].name = "2A changed";
            twoAGroups[0].position = [0,0];
            twoAGroups[1].position = [0,-100.75];
            twoAGroups[0].moveToBeginning(add2Group);
            twoAGroups[1].moveToBeginning(add2Group);
            twoGroups.push(add2Group);
            twoAGroups.length = 0;
            redraw();
        if (twoGroups.length > 0){
                var h = 0;
                var v = 0;
                var dieCount = 0;
                for (i = 0; i < twoGroups.length; i++) {
                    twoGroups[i].position = [horizontalCords[h],verticalCords[v]];
                    h = h + 2;
                    v = v + 2;
                    dieCount++
                    }//end FOR
            }// end twoGroups length IF
            if (oneGroups.length > 0){
            var h = 0+(twoGroups.length*2);
            var v = 0 + (twoGroups.length*2);
             for (i = 0; i < oneGroups.length; i++){
               oneGroups[i].position = [horizontalCords[h],verticalCords[v]];
                  h = h +1;
                    v = v + 1;
                 }//  end FOR
             }//  end onGroups IF
              redraw();//  redraws template so it updates changes on the page
           //thisDoc.close(SaveOptions.SAVECHANGES);
            }//  end noGo
    else
    alert("You have nothing selected...");
        totalDies = (oneGroups.length + (twoGroups.length*2) + (twoAGroups.length/2) + (oneAGroups.length/2));
    if (totalDies < 20)
        caseTest = 0
        else if (totalDies > 20)
        caseTest = 1
        else if (totalDies == 20)
        caseTest = 2;
    switch (caseTest)
            case 0:
                thisDoc.close(SaveOptions.SAVECHANGES);
                break;
            case 1:
                alert ("Die will not fit on the Template at this time.  Try again later.");
                thisDoc.close(SaveOptions.DONOTSAVECHANGES);
                break;
            case 2:
                    var answer = confirm ("The Template is full.  Do you want to clear it?");
                        if (answer == true)
                            printTheTemplate();
                            break;
    function drawTemplate(){  //draws the template if the page is empty
            var tempDoc = app.activeDocument;
        tempDoc.rulerOrigin = [0,0];
        tempDoc.pageOrigin = [0,0];
        var newLayer = tempDoc.layers.add();
        newLayer.name = "Template Layer";
        var templateGroup = tempDoc.groupItems.add();
        templateGroup.name = "Template Build";
        var vertLoc = .25;
        var horzLoc = -.25;
        var topTemp = new Array();
        var botTemp = new Array();
        var leftTemp = new Array();
        var rightTemp = new Array();
        for (i=0;i<5;i++){
            botTemp[i] = thisDoc.pathItems.rectangle(0,vertLoc,.5,21);
            topTemp[i] = thisDoc.pathItems.rectangle(1033,vertLoc,.5,21);
             botTemp[i].moveToBeginning(templateGroup);
             topTemp[i].moveToBeginning(templateGroup);
            vertLoc = vertLoc + 180;
        for (j=0; j<6;j++){
            leftTemp[j] = thisDoc.pathItems.rectangle(horzLoc,-21,21,.5);
            rightTemp[j] = thisDoc.pathItems.rectangle(horzLoc,720,21,.5);
             leftTemp[j].moveToBeginning(templateGroup);
             rightTemp[j].moveToBeginning(templateGroup);
            horzLoc = horzLoc +202.5;
    return
    }//  end function drawTemplate
    function printTheTemplate()
              // October 16, 2012  Henry J. Klementovich
            //var TemplatePath = File("C:/Users/henryk/Desktop/Illustrator Test Files/HS_TEMPLATE.ai");
            //open(TemplatePath)
            //open(myFile);
            var thisDoc = app.activeDocument;
                thisDoc.rulerOrigin = [0,0];
                thisDoc.pageOrigin = [0,0]; 
            var thePath = ("S:/TEMPLATES/PRINTED");
            //  Will only continue if the artist has selected the art.  This step saved a lengthy FOR loop that would have had to select each page or path item of the
            //  document.  Some of the templates had over 5,000 items, resulting in an un-exceptable wait-time for the loop to select them.
            for (x=0;x<thisDoc.groupItems.length;x++)
                thisDoc.groupItems[x].selected = true;
            if (thisDoc.selection.length > 0)
            //  This section pulls the date from the system for two purposes:  the date shown on the template and the date used to save the file to the ArtShare.
            //  They are different b/c system filenames cannot include the  ":" char, which is used on the template for the time object.
            var  theDate = new Date();
                    var day = theDate.getDate();
                    var month = theDate.getMonth() + 1;
                    var year = theDate.getFullYear();
                    var hours = theDate.getHours();
                    var min = theDate.getMinutes();
                        if (min < 10)
                            min = ("0" + min);
                    var morn;
                        if (hours >= 12)
                                hours = hours - 12;
                                morn = " PM";
                        else
                            morn = " AM"
            var saveDate = (month + "-" + day + "-" + year + "    " + hours + min + morn );
            var tempDate = thisDoc.textFrames.add();
                    tempDate.name = theDate;
                    tempDate.contents = (month+ "/" + day + "/ " + year + "    " + hours + ":" + min );
                    tempDate.top = 1026;
                    tempDate.left =40;
                    tempDate.filled = true;
            var actGroups = thisDoc.selection;
            var artGroup = thisDoc.groupItems.add();
                  artGroup.name = "Art Group";
            for (i=0;i<actGroups.length;i++)
                  actGroups[i].moveToEnd(artGroup);
            tempDate.moveToEnd(artGroup);
            artGroup.selected = true;
            copy();
            thisDoc.pageItems.removeAll();//  copies everything from the current template into the clipboard, clears the template, saves it and closes it.
            var layLen = app.activeDocument.layers.length;
            //alert(layLen);
            for (i=0;i<layLen;i++)
            app.activeDocument.layers[0].remove();
            thisDoc.close(SaveOptions.SAVECHANGES);
            app.documents.add();//  adds new document for the template to be saved in the Printed folder.
            paste();
            var thisDoc = app.activeDocument;  
            var saveName = new File (thePath + "/" + saveDate);
                  saveOpts = new IllustratorSaveOptions();
                  saveOpts.compatibility = Compatibility.ILLUSTRATOR13;
                  saveOpts.generateThumbnails = true;
                  saveOpts.preserveEditability = true;
                  thisDoc.saveAs( saveName, saveOpts );
            var actGroups = thisDoc.selection;
            copy();
            thisDoc.close(SaveOptions.SAVECHANGES);
            $.sleep(10);
            app.documents.add();
            paste();
            var nexDoc = app.activeDocument; 
            var actGroups = nexDoc.selection;
            var artGroup =nexDoc.groupItems.add();
                  artGroup.name = "Art Group";
            for (i=0;i<actGroups.length;i++)
                    actGroups[i].moveToEnd(artGroup);
                    //artGroup.selected = true;
                    artGroup.resize(70,70);
                    alert("The current template has been saved to the Printed Templates folder.  This page is to be printed and sent to editing.")
    Hope this helps someone get one created because if they can make one that doesn't depend on the premade dies that would help me out quite a bit because some of the dies that we make are an odd size so we have to place them manually.

  • Partial data clear in ASO possible for multiple tuples?

    Hi,
    I am trying to do a partial data clear in an ASO cube. I need to clear FY12->Oct & FY13->Nov (consecutive periods). Here's what I tried:
    +alter database 'GL_TXT'.'GL_TXT' clear data in region '{([FY12],[Oct]),([FY13],[Nov])}' physical;+
    No error is thrown but the data isn't cleared either. The statement finishes execution almost immediately.
    I tried the UNION function but that didn't work either. Here's how my statement looks with the UNION function:
    +alter database 'GL_TXT'.'GL_TXT' clear data in region '{UNION({([FY12],[Oct])},{([FY13],[Nov])})}' physical;+
    Again, no error but no clear either. The UNION pulls the correct data set when used in a Select statement:
    +SELECT UNION({([FY12],[Oct])},{([FY13],[Nov])}) ON COLUMNS FROM GL_TXT.GL_TXT;+
    I can get it to clear if I write separate statements for each period but I want to have them in a single script as I suspect two scripts wouldn't be very efficient.
    Please help!
    Thanks,
    Shashi

    Thanks for your reply Vasavya! Running the region clear scripts twice (once for each month) is still faster for me than using the report script approach. I want to see if having both periods in one statement will improve the performance :)
    Regards,
    Shashi

  • Issue with Logical data clear in ASO

    Since we upgraded to version 11 we have done away with clearing data from the ASO cube using #MI files, and have started using the Clear Data In Region MDX functionality. From my understanding, when doing a logical clear it should load offsetting values to a new slice, that will result in a value of 0 being retrieved from the DB.
    The problem is that there is a 2-3 minute window between the clear script and the new data load where users are pulling not 0's, but incomplete data. Again, from my understanding this is not how a logical delete should act. This process runs every 2 hours, so there is a 2-3 minute window every 2 hours where the data users see may be incorrect. If we can't resolve this issue we will have to go back to loading #MI to clear data from the ASO DB which we are hoping to avoid. Also, we can't do a physical delete because it takes too long.
    Any ideas? Am I misinterpreting the Logical Delete functionality?
    Thanks in advance.

    Just to confuse matters, this problem is intermittent and I haven't been able to successfully replicate it in our Test environment.
    That would seem to indicate something else was going on in the DB that was interfering with the clear, but the logs aren't showing any errors, locks, etc that could have caused the problem.

  • Strange behaviour of .swf movies - AS2/AS3

    Hello from Italy,
         this is my first post and I think I need some help from the experts...
         I am putting together an interactive Flash movie which is made of several different small movies. For the sake of clarity, I'll call them A.swf, B.swf, ..., Z.swf. The movies are launched from each other depending on certain buttons I've implemented.
         The first one, A.swf, is actually a sort of "main menu": it grants access to all the other movies and it is also the point of return from them when a certain button is pressed.
         Important: All the movies are scripted in AS3, except for the last one which, for a number of reasons, is scripted in AS2.
         The return from any (but the last) movie to the first, say B.swf to A.swf, is implemented like this:
    function eventResponseSole(event:MouseEvent):void {
    var myLoader:Loader = new Loader();
    addChild(myLoader);
    var url:URLRequest = new URLRequest("A.swf");
    myLoader.load(url);
    sole_btn.addEventListener(MouseEvent.CLICK, eventResponseSole);
         This is, of course, AS3.
         The last movie, which is scripted in AS2, returns to A.swf like this:
    luna_btn.onRelease = function() {
    loadMovie("A.swf", _root);
         The strange behaviour is this: if I launch Z.swf and navigate with the proper button up to A.swf, everything works. But if I launch A.swf, navigate to Z.swf and attempt to return, this doesn't work. There are no problems, instead, moving up and down between movies scripted in AS3, that is with the first bit of code I've pasted. My guess is that the syntax in AS2 is correct, but something stops A.swf from "launching itself" when the control is transferred to Z.swf, but the movie is launched in the original window. Is this diagnosis reasonable? And if so, would someone kindly provide a way out of this? Re-doing Z.swf in AS3 is not an option, I'm afraid, it will have to stay as it is. I also have to add I've tried some solutions by setting _lockroot, but this doesn't seem to work.
         Many thanks in advance!
         Marco Olivotto

    Mixing AS2 into AS3 is not without stipulations... and I am no expert on translating those stipulations, but here is what the Flash documentation says regarding the matter... the third paragraph may be significant to your case:
    - ActionScript 3.0 code can load a SWF file written in ActionScript 1.0 or 2.0, but it cannot access the SWF file's variables and functions.
    - SWF files written in ActionScript 1.0 or 2.0 cannot load SWF files written in ActionScript 3.0. This means that SWF files authored in Flash 8 or Flex Builder 1.5 or earlier versions cannot load ActionScript 3.0 SWF files.
    The only exception to this rule is that an ActionScript 2.0 SWF file can replace itself with an ActionScript 3.0 SWF file, as long as the ActionScript 2.0 SWF file hasn't previously loaded anything into any of its levels. An ActionScript 2.0 SWF file can do this through a call to loadMovieNum(), passing a value of 0 to the level parameter.

  • Is loading a as2 swf into my as3 flash site the problem here?

    My question is listed on another board here, but I am too inexperienced to understand how to fix my issue:
    http://forums.adobe.com/message/5045059#5045059
    I went on flashkit.com and a member there immediately said that it "sounds like the problem is using the AS2 swf loaded into the AS3 swf."
    If it is... this mean I will have to convert everything in the AS2 .swf (including the XML retrieval script) to AS3. I may need some help with that if that is the problem.
    So will AS2 swfs cause XML communication and retrieval issues if loaded with a loader script into an AS3 file?
    Everything works (the buttons are clickable and when you click on a square in the "thumbnails" scroller it displays the correct photo title and captions), except I just cannot see the actual photos in my XML gallery. I am truly clueless as to why this happens and I've searched for days straight and tried many things...
    You'll find all the details of my problem in the above link.
    Thanks!

    Its really not worth the trouble to get as2 working with as3 if your goal is to make an xml driven gallery. There are literally thousands of free examples/tutorials how to achieve that feature with 50+ LOC. Like this one.

Maybe you are looking for

  • Error in running Report painter

    Hi,     when we try to execute a Report painter program it is giving a error Library 6O1: Key figure Z_JSWKG in set 0000CO_D_ACPLCO2.CCSS is not allowed any one have idear about this error. Thanks , senthil

  • Too much code in my answers report!

    Hi experts! I'm trying to do a report but there is too much code in my columns. So I have (Removed Column) in the condicionals. Anyway that's an error! Is there any place too change the maximum length of the code I can write? Thanks for all!

  • Cancellation of GR (161 Movement)

    Hi Experts, We have posted a MIGO (161 movement) and posted credit memo also. Now we want to cancel that MIGO. When I am cancelling the MIGO "Deficit of PU IR quantity 85.000 NOS". But I suppost material should be added in our store location stock no

  • Jump into WAD Tab and filter Characteristc?

    Hello Experts, I want to jump from one Portal WEB-Application to another Portal WEB-Application. The jump target has several Tabs and I want to jump into a different Tab than the initial one. I also have to filter the Characteristic from that line th

  • IPhoto updating library after every iPhone pic transfer is the Problem!  PLS Help

    Hello. Everytime I plug in my iPhone, iphoto opens us and promtly asks me if I wish to download all the new picutres, as it should. Once I complete the transfer, I exit the iPhoto program, and without fail, iPhoto begins to update my ENTIRE photo lib