Equivalent code for "matchInternalPointWithExternal

I'm trying to code an app in Flash Builder 4 which loads a bitmap, then allows zooming centered on a point clicked by the mouse.  Trouble is, to keep the bitmap aligned with the stage as it scales up or down, seems I need to use the MatrixTransformer.matchInternalPointWithExternal method (see http://www.flashandmath.com/howtos/zoom/  or http://www.actionscript.org/forums/showthread.php3?t=181202).  Apparently, this method is only available when using Actionscript with Flash, not with the Flash Builder IDE.  Is this correct? If so, what would be the equivalent code / workaround?
thanks in advance

String ss = s[j] == null ? "" : s[j];It does this,
String ss;
if (s[j] == null)
   ss = "";
else
   ss = s[j];

Similar Messages

  • The equivalent code for dbms_output.put_line on DB2

    Its very urgent, plz tell me the equivalent code for dbms_output.put_line on DB2
    thank u,
    Abhilasha.

    And on Sybase ?
    You can perhaps ask this one into the good forum.
    Nicolas.Hallo Nicolas,
    I can imagine the reaction on DB2 forum "dbms_output ? put_line ?
    What is this ?" No way :-))
    Regards
    Dmytro

  • Equivalent code for this line?

    What is the equivalent to ---> String ss = s[i][j] == null ? "" : s[i][j];
    I have no idea what ---> ? "" : s[i][j] means. My friend added this to my nested loop for it too work. Is there another equivalent way of doing this that is understandable to the intermediate programmer. Thanks in Advance.
    Here is my code:
         protected void printTable (String[][] s, PrintStream ps)
              int[] maxLen = new int[s[0].length];
              for (int c = 0; c < s[0].length; c++)
                   maxLen[c] = 0;
                   for (int r = 0; r < s.length; r++)
                        String ss = s[r][c] == null ? "" : s[r][c];
                        maxLen[c] = Math.max (maxLen[c], ss.length ());
              for (int i = 0; i < s.length; i++)
                   for (int j = 0; j < s.length; j++)
                        String ss = s[i][j] == null ? "" : s[i][j];
                        ps.print (ss);
                        for (int k = ss.length (); k <= maxLen[j]; k++)
                             ps.print (" ");
                   ps.println ();
              ps.println ();

    String ss = s[j] == null ? "" : s[j];It does this,
    String ss;
    if (s[j] == null)
       ss = "";
    else
       ss = s[j];

  • Equivalent code for % break;  % in JSTL....... ??????

    Hi,
    Does anyone know the JSTL equivalent of break; to break out of a loop?
    My requirement:
    I have to loop through a collection of objects. If a condition is satisfied, I need to set the values and break out of the loop.
    P.S: Scriptlet <% break; %> doesn�t work.

    There is currently no equivilant to 'break' in JSTL. You have several alternatives:
    1) within your <c:forEach>, set a flag variable that is set when your 'break' condition occurs. Only process items before this flag is set. The obvious drawback to this is that you will continue to iterate over a Collection when there is no work to do. If your collections are small, this shouldn't be too bad of an idea.
    2) Have your model/controller prune the collection before it gets to your JSP. This way, the collection is guaranteed to only contain items that you are concerned with processing.

  • Equivalent code in JCE for the given C# AES code

    Can somebody give me the equivalent code in JCE for the given C# AES code below?
    (Ofcourse, I checked this topic
    http://forum.java.sun.com/thread.jspa?threadID=603209
    as well, but couldn't figure out much; I have
    little knowledge in this area; I've a job to figure out an equivalent code for
    this and use it in JSP.)
    Thanks,
    RK.
    byte[] bytesToEncrypt = ASCIIEncoding.ASCII.GetBytes(stringToEncrypt);
    //RijndaelManaged uses AES and defaults to CBC mode
    RijndaelManaged rij = new RijndaelManaged();
    rij.KeySize = 128;
    ICryptoTransform encryptor = rij.CreateEncryptor(
                     Convert.FromBase64String("7inEMafSQqaSANhMe92Gdw=="), initializationVectorBytes );
    byte[] encryptedBytes = encryptor.TransformFinalBlock(bytesToEncrypt, 0, bytesToEncrypt.Length);

    Hello...
    I've come up with this source, based on the examples given out there
    but, the ultimate output is will be an URL that'll be submitted as request.
    Looks like the data length is very high (as I get some error from the
    server, when I send the request url).
    Just wondering how do I make this code to do the same thing as given
    in the C# code above.
    Any help appreciated.
    Thanks,
    RK.
    private static String getEncryptedLogonData() throws Exception {
              String userDataToEncrypt = "Text";          
              return encrypt(userDataToEncrypt, getIV());;
         public static String encrypt(String text, byte[] iv) throws Exception {
              //Cipher cipher = Cipher.getInstance("AES/CBC/PKCS5Padding");
              Cipher cipher = Cipher.getInstance("AES/CBC/NoPadding");
              //setup key
              byte[] keyBytes = new byte[16];
              int len = iv.length;
              if (len > keyBytes.length)
                   len = keyBytes.length;
              System.arraycopy(iv, 0, keyBytes, 0, len);
              SecretKeySpec keySpec = new SecretKeySpec(keyBytes, "AES");
              //the below may make this less secure, hard code byte array the IV in
              // both java and .net clients
              IvParameterSpec ivSpec = new IvParameterSpec(keyBytes);
              cipher.init(Cipher.ENCRYPT_MODE, keySpec, ivSpec);
              byte[] results = cipher.doFinal(text.getBytes("UTF-8"));
              BASE64Encoder encoder = new BASE64Encoder();
              return encoder.encode(results);
         private static byte[] getIV() {
              byte[] iv = new byte[16];
              Random r = new Random();
              r.nextBytes(iv);
              return iv;
         }

  • Hello sir,i need labview code for a code which is written in matlab,latter one is attached with this message.

    hello sir,i need labview code for a code which is written in matlab...
    clc;
    close all;
    clear all;
    Ez= zeros(1,200);
    Hy=zeros(1,200);
    Ca=1;
    Cb=.4519;
    n=1;
    while(n<1500)
    for k = 2:200
    Ez(k)=Ez(k) + Cb*(Hy(k)-Hy(k-1));
    end
    Ez(1)=1;
    for k=1:199
    Hy(k)=Hy(k)+Cb*(Ez(k+1)-Ez(k));
    end
    plot(Ez,'b')
    hold on
    plot(Hy,'r')
    hold off
    pause(0.001);
    n=n+1;
    end
    thanku

    Well, this code is quite trivial and if you have to learn LabVIEW anyway, you might as well try to implement it.
    A few things to remember:
    The first array element in LabVIEW has index #0, while in matlab it has index #1, so everything dealing with array indices needs to be adjusted slightly.
    The zeroes function equivalent is "initialize array".
    Keep the array in a shift register as you update elements.
    use FOR loops.
    Use one of the graphs to display the data.
    LabVIEW Champion . Do more with less code and in less time .

  • Equivalent program for RIPRCS00 in smart forms.

    Hi All.
    Can any body please tell me what is the equivalent program for RIPRCS00 in smart forms.
    Background:
    This is an upgradation from 46b to ECC 6.0.Print settings to call the SAP script with print program will be done by using the transaction code OIDF. Now we want this to be developed in SmartForms the same existing program cannot be used for this.
    Thank you inadvance.
    US

    Hi ,
    In the alternative node conditions   use like this 
    IF ( WA_EKKO-BSTYP EQ 'F'
       AND WA_EKKO-BSART EQ 'ZSTO'
       OR WA_EKKO-BSART EQ 'ZIMP'
       OR WA_EKKO-BSART EQ 'ZSER'
       OR WA_EKKO-BSART EQ '    ' ).
    For this    in the alternative node conditions 
    WA_EKKO-BSTYP  =  'F'
    WA_EKKO-BSART  = 'ZSTO'
    OR  (By clicking the insert  OR in the icons in the top )
    WA_EKKO-BSART EQ 'ZIMP'
    OR
    WA_EKKO-BSART EQ 'ZSER'
    OR
    WA_EKKO-BSART EQ '    '
    Let me know if any concerns.......
    Regards,
    Lokesh .

  • Creation of Transaction code for Reports created in FGI1.

    Hi all,
       We are in ECC 6.0 version. We have created one report for Profit Center Group Wise Receivables with transaction code FGI1. When we executed the report from FGI5 , it was showing the values correctly.
       We created the t.code for the report painter programe and tried to execute. The screen is different from that of T.Code: FGI4.  When we executed , it was not showing any values. I created authorisation for the report and also for the transaction codes.
       Appreciate your suggestion at the earliest.
    Thanks
    Dasa

    Hi
    Check TSTCP table  for the existing t-codes and for creating check this link
    Re: Transaction Code Creation for a Table/View
    Regards
    Pavan

  • Lost the content code for free up gradation of mountain lion. What to do ???

    Lost the content code for free up gradation of mountain lion. What to do ???

    https://discussions.apple.com/thread/4134740
    Thread /w same question

  • Help with code for inserting horizontal scroll bar in photo gallery in Business Catalyst site?

    Hi,
    I am using Business Catalyst and Dreamweaver to create a trial site.
    I am not sure if this is the correct forum to post this request but anyway I have inserted a photo gallery module at the bottom of the sidebar in the homepage of my test site.
    Can anyone advise on whether jquery or any other code can be inserted into the page or module code that will replace the "next" hyperlink below the first 4 photos with a horizontal scroll bar at bottom of the gallery so users can just scroll through all 12 images ?
    Kind Regards, Matt.
    http://craftime-bs6.businesscatalyst.com/

    Alyssa,
    Have you tried putting this rule back as it was originally:
    /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to auto so it comes onto the screen below its parent menu item */
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible
        left: auto; /*was 9px*/
        color: #EF9CCF;
        background-color: #FFF;
    That is, changing your 9px back to auto.
    And giving  us a link (as you did) is much better than printing out the code for us! Thanks!
    Beth

  • Am i the only one who when trying to enter the code for creative cloud activation ?

    I give up,i have been trying to activate a 3 month subscription for CS6 from Staples and every time i try the code it will not work.  I have used the chat live and spent about 3 hours already going nowhere.  I do not like talking on the phone to some help desk overseas and the only thing i think left to do is to return the junk.

    I tried all that and even took a picture of the numbers and blew them up so a blind person could read them and had 3 others read them off.  A simple way to fix the problem is get someone on Adobes staff to find a font that most people can read from whatever product the stick it to.
    John McDonough
    Date: Wed, 1 Aug 2012 18:33:58 -0600
    From: [email protected]
    To: [email protected]
    Subject: Am i the only one who when trying to enter the code for creative cloud activation ?
        Re: Am i the only one who when trying to enter the code for creative cloud activation ?
        created by David__B in Adobe Creative Cloud - View the full discussion
    Hey John,
    Not sure if it helps or not, but I know sometimes with codes like that its really hard to tell certain characters apart, O - like in Oscar versus 0 - number and number 1 versus lowercase L like in Lima.
    Might test entering it both ways if you have any suspect characters?
    -Dave
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4592955#4592955
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4592955#4592955. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Adobe Creative Cloud by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • How do I generate redemption code for creative cloud?

    how do I generate redemption code for creative cloud?

    On October 27th 2014, you have purchased two CC (one complete &one photography) under the same Adobe ID. That is the reason you are being asked for a code because under one Adobe ID only one CC can be activated(twice).
    Please contact Adobe Support or you can inbox me privately the CC order number  that you would like to cancel.
    You can also check if the host file has Adobe entry or not as if Adobe entries are there then also CC can ask for serial number. You can check the host by the followinh method.
    Creative cloud do not need a serial number. it will be using your Adobe ID on which you have purchased the creative cloud membership.
    So you need to login with your Adobe ID and password to activate the cloud membership.
    Log out & log back in of the CC Desktop App.
    In case it is not signing in successfully please try the following:
    I don't know which operating system you are working on so i am giving you some steps windows and MAC OS:
       Windows:
       In windows 7 navigate to following location:
         /windows/system32/drivers/etc
       1. look out for "Hosts" file
       2. Open it with notepad
       3. Check if you have any entry for Adobe
       4. Remove the entries and try again launching any product from CC
      Mac:
       1. Please click on "Go" and navigate to /private/etc
       2. Open "hosts" file and check out for any entries for Adobe.com
       3. Remove the entries and save the file
       4.  try again launching any product from CC
      Please refer to Creative Cloud applications ask for serial number
    Hope it helps you.
    Regards
    Rajshree
    Cannot license Illustrator CC after buying subscription

  • NI9203 - Need to know how to set up the FPGA code for multiple NI9203 modules and how to calibrate the data

    Hi. I'm using the NI9203 module to detect pressure, temerature and flow rate of water in a cooling system. I have 17 different inputs coming in therefore i'm using 3 NI9203 modules. I've used the example provided with labview as a base for designing my code. The example can be found here : Program Files\National Instruments\LabVIEW 8.0\examples\CompactRIO\Module Specific\NI 9203.
    I've had no problems when testing this code out for a single NI9203 module but when i add code for 3 modules the code will not compile as my resources are over mapped. Is there a simpler way to program the FPGA code.
    That said how do you go about calibrating the data that's received from the module. Preferably i'd like to write a vi to do the calibrating. Just need help on how to go about writing this vi

    Hi havok,
    Firstly, I would use constants to configure the modules, it'll save some resources on the FPGA.  I'm not typically changing the settings on the fly, so using constants whenever possible helps.  I would also take a look at the following KnowledgeBase article on other changes you can make to the FPGA VI to compile the code:
    http://digital.ni.com/public.nsf/allkb/311C18E2D635FA338625714700664816?OpenDocument
    The best changes you can make are to use fewer arrays and front panel elements.  This can be done by using a DMA FIFO or constants on the block diagram. 
    Now actually calibrating the data will require you to do it on the host side.  There is an example VI called Binary to Nominal that changes the raw data to something more useful for datalogging, display, etc.  It can be found in some of the example VIs, or in the following link:
    http://digital.ni.com/public.nsf/allkb/E86D8D460C4C092F8625752F00050A61?OpenDocument 

  • I want to writte C# code for 503 Service Unavailable error to web application page immediate close connection any page loaded

    Here is a ticket regarding our current client web application (  Image data add, edit , delete in folder with form data in MSSQL Database) that using code c#, web form, ajax, VS2008, MSSQL Server2008 , it appears that there is an error where the HTTP
    503 error occurs. 
    . Below is a conversation with Host Server support assistant.Can you take a look at it? 
    Ben (support) - Hi 
    Customer - We're having an issue with our windows host 
    Ben (support) - What's the issue? 
    Customer - 503 errors 
    Ben (support) - I am not getting any 503 errors on your site, is there a specific url to duplicate the error? 
    Customer - no, it comes and goes without any change Customer - could you have access to any logs ? 
    Ben (support) - Error logs are only available on Linux shared hosting, however with this error it may be related to you reaching your concurrent connections 
    Ben (support) - You can review more about this at the link \ 
    Customer - probably yes - how can we troubleshoot ? 
    Ben (support) - http://support.godaddy.com/help/article/3206/how-many-visitors-can-view-my-site-at-once 
    Ben (support) - This is something you need to review your code and databases to make sure they are closing the connections in a timely manner 
    Customer - we're low traffic, this is an image DB to show our product details to our customers 
    Customer - ahhhh, so we could have straying sessions ? 
    Ben (support) - Correct Customer - any way you could check if it's the case ? 
    Customer - because it was working previously 
    Ben (support) - We already know that's the case as you stated the 503 errors don't happen all the time if it were issue on the server the the 503 would stay. 
    Customer - so our 2/3 max concurrent users can max out the 200 sessions 
    Customer - correct ? 
    Customer - is there a timeout ? 
    Ben (support) - no that's not a time out concurrent connections are a little different then sessions and or connections. Lets say for an example you have 5 images on your site and 5 7 users come to your site this is not 7 concurrent connections but 35. They
    do close after awhile hence why the 503 error comes and goes. You can have these connections close sooner using code but this is something you have to research using your favorite search engine 
    Customer - thank you so much 
    Customer - I'm surprised that this just started a few weeks ago when we haven't changed anything for months 
    Customer - any changes from your side ? lowering of the value maybe ? 
    Customer - I'm trying to understand what I can report as a significant change 
    Ben (support) - We haven't touched that limit in years 
    Ben (support) - This could just be more users to your site than normal or even more images 
    Customer - I was thinking that could be it indeed 
    Customer - so I need to research how to quickly close connections when not needed 
    Ben (support) - Correctly 
    Ben (support) - correct 
    Customer - thanks !! 
    Ben (support) - Your welcome 
     Analysis : 
     The link provided tells us : All Plesk accounts are limited to 200 simultaneous visitors. 
     From what Ben (support) says and a little extra research, if those aren't visitors but connections then it's quite easy to max out, especially if the connections aren't closed when finished using. I'd suggest forwarding this to Kasem to see what he thinks. 
    Cheers, 
    Customer

    Hi Md,
    Thank you for posting in the MSDN forum.
    >>
    I want to writte C# code for 503 Service Unavailable error to web application page immediate close connection any page loaded.
    Since
    Visual Studio General Forum which discuss VS IDE issue, I am afraid that you post the issue in an incorrect forum.
    To help you find the correct forum, would you mind letting us know more information about this issue? Which kind of web app you develop using C# language? Is it an ASP.NET Web Application?
    If yes, I suggest you could post the issue directly on
    ASP.NET forum, it would better support your issue.
    Thanks for your understanding.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

  • Can not view the code for views, triggers or table definition

    Hello Gurus,
    I can not see the code for any of the triggers, views, tables etc. in sql developer. For instance a view code will be
    "create or replace" and then nothing, I could see the code in the past.
    When clicking on SQL tab for table I get following errors
    1. Ora-00904 Invalid Column name
    2. Ora-31600: invalid input value emit_schema for parameter name in function SET_TRANSFORM_PARAMORA-06512: at SYs.DBMS_SYS_ERROR............................
    please advice.
    Thanks

    Sqldev was only certified starting from 9.0.2, so it's possible that's the culprit. The latest update in the certification document even omits 9i entirely.
    Did it start happening after upgrading sqldev? What version are you on?
    K.

Maybe you are looking for

  • ERROR: (_app_set_slice) Disk is not selected

    I get the following error when jump-starting a domain on an E6900: ERROR: (_app_set_slice) Disk is not selected Disk layout for selected disks     Disk c3t0d0                              Solaris Slice Table           Slice     Start  Cylinder       

  • I'm getting error message 1439 my ipod won't finish the restore.  What can i do?

    I have an error on my nano device and am not able to complete a restore.  The error is preventing proper syncing.  I've lost all my artwork.  The error message is 1439.  I've tried all the steps in the help text and it still will not restore.  I need

  • Space before include

    [p1],,&LFA1-NAME3(C)& [/:]INCLUDE &MSEG-MATNR(K)& OBJECT MATERIAL ID BEST LANGUAGE EN this gives me output as:-        charles menon t,blue,yellow,green,red but i want the output to be :-        charles menon        t,blue,yellow,green,red regards, s

  • Question Verizon

    4 business days left in the month first it was this sooooooooooooooooooo what is the next update that you have for us still waiting for the ICS update ............ end of july is here . nothing said , nothing leaked extra no word , no answer back to

  • With color management, color picker current color does not match canvas color

    What gives here with color picker in CS3? RGB doc using color management/profiles View>>proof color using my Epson RGB printer profile create box double click fill box in palette box to view color picker pick color from spectrum area close color pick