Call 2D subset array problem

Hello everyone
if I have 2D array with m row and n column
i need to call to subarray by x row and x column for each 1 iteration 
for example, if an array is
1  1  2  2  3  3  4  4   5  5
1  1  2  2  3  3  4  4   5  5
6  6  7  7  8  8  9  9  10 10
6  6  7  7  8  8  9  9  10  10
so the result should be        1 1  ,   2  2  ,  3 3 ......and so on  for each iteration until the loop finish  ...if i call sub array by 2x2dimension
                                         1 1      2  2     3 3
 How can i do ?? Could you please suggest me. 
Thank you very much

Use Array Subset. You can shift it over your array via the index inputs and with length=2.
Christian

Similar Messages

  • We bought an iphone 4s for our daughter. We transfered it to straight talk. She can make calls and text no problem. She can use the WiFi but is unable to use the internet or mms. How do we update the APN?

    We bought an iphone 4s for our daughter. We transfered it to straight talk. She can make calls and text no problem. She can use the WiFi but is unable to use the internet or mms. How do we update the APN?

    To clarify for anyone who is still having any problems doing this.
    1. Unlock your phone with the carrier ( I know the process will work if it is jail broken but I am assuming you dont want to void the warranty on your phone) NOTE: even if you purchased the phone outright at Wal-Mart it is still locked to ATT so you will have to unlock the phone.  If it's already unlocked skip to step 2.  This works and will work even if you update the phone. 
    1a Here is the link to unlock a ATT iphone. Simply follow the instructions https://www.att.com/deviceunlock/client/en_US/
    2. Get a T- mobile SIM. Even if you don't want the service, if you feign interest, they will send you one for free or 99cents. If you need it now you can get one at a T-mobile store too.
    3. Once you have both your Straight talk SIM and your T-mobile SIM follow these instructions:http://www.youtube.com/watch?v=mFFf5uqk18M
    4. If you have any remaining questions look at all the responses posted previously on this thread or check out the Howard Forums Wiki: http://wiki.howardforums.com/index.php/Straight_Talk_iPhone
    Everything should work flawlessly at this point.  If not let me know and I'm happy to help when I can.  I hope this makes doing this very easy for everyone in the future. God Bless -J

  • HT1414 i restored my iphone now i cant accept calls or call out whats the problem?

    i restored my iphone now i cant accept calls or call out whats the problem?

    Hey retrothakid,
    Thanks for the question. I understand that you are experiencing issues with your iPhone 4s. The following resource may provide a solution:
    iPhone: Troubleshooting issues making or receiving calls
    http://support.apple.com/kb/TS3406
    Thanks,
    Matt M.

  • A quick Array Problem

    hey all,
    i'm having a dumb array problem, I cannot figure out what I've done wrong !
    I've set up an empty array of JButtons (because that '4' is actually a variable in my code)
    HERE IS THE CODE
    //===========================
    JButton[] buttons = new JButton[4] ;
    for (int g = 0; g < 4; g++)
    Imag[g].setIcon(imageIcons[g]);     
    buttons[g].setEnabled(true);
    System.out.print (buttons[g] + " " + g + "\n");
    //===========================
    My Error is a null pointer exception. And when I take out the:
    buttons[g].setEnabled(true);
    line, I just get the ouput, and it is:
    null 0
    null 1
    null 2
    null 3
    Ok, I know I'm probably making one dumb little mistake, but I have no idea what it is right now, Please Help !! thanks,
    Kngus

    When you want to use an array, you declare it (which you did), construct it (which you did), and initialize it (which the VM did). When you initialize an array of primitives, the primitives get their default value (0 for signed int types, 0.0 for float types, false for boolean, null-character for char) and so do object references (null).
    You are setting up an array of object references. When the VM initializes it, the elements of the array (i.e. the references to the JButtons) are set to null. That's why you're getting the NullPointerException. You need additional code, something along the lines of this:
    for(int j = 0; j < buttons.length(); j++) {
        buttons[j] = new JButton();
    }Now, your buttons array will contain references to JButtons rather than null.
    AG

  • OSB java call out with array parameters

    Hi all,
    I have a java call out with array parameters, follow the firm of java method:
    logBody2(String category, XmlObject headerXml, String[] level, XmlObject[] xml)
    The java call out have String[] and XmlObject[] arrays in intput, my question is how I can pass these arrays of values at java call out?
    Thk
    L.

    For array, comma-separated values should be passed. For e.g. -
    If input parameter is of type String[] then passed values should be comma-separated strings like - 'Anuj','Dwivedi'
    If input parameter is of type XmlObject[] then passed values should be comma-separated XmlObject like - <anuj/>,<dwivedi/>
    Regards,
    Anuj

  • Transposin​g Array Problem

    I need to get the information from a table which has been populated at an earlier point in the program, and convert it to numbers, and then break it up into its individual elements. Both ways of doing this in my attached vi work, but the one method throws three 0's in between columns, when I resize the 2D array to 1D. Any idea why? Is there an easier way to go about this?
    Thanks, Geoff
    Attachments:
    Array Problem.vi ‏26 KB

    Your original table contains 3 extra row which generate 3 rows of zeroes. Your 2D array actually contains 35 elements. the reshape function truncates to 20 elements. After transposing, you throw away nonzero elements while before rehshaping all zeroes are in the tail giving the false apperance of correct behavior.
    The attached modification gives you a button to fix the table size so it works correctly.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    ArrayProblemMOD.vi ‏41 KB

  • So my iphone 4 that is using ios5 keeps freezing when i want to dial, or receive call. i can use all my other apps but cant use the phone to call because the freezing problem. i know some people that are having the same problem too. what can i do?

    so my iphone 4 that is using ios5 keeps freezing when i want to dial, or receive call. i can use all my other apps but cant use the phone to call because the freezing problem. i know some people that are having the same problem too. what can i do?

    I got the same problem. The percentage of getting this problem is around 10% of all my dial/receive calls.
    The problem usually appears when I receive calls. The phone app will freeze, and I cannot dial or receive calls even I closed the phone app, however, most other apps work properly.
    Once this problem happens, I will not be able to turn off the phone by holding sleep button, the only way I can get rid of it is holding sleep and home button at the same time to reset the iphone.

  • Mathscript Array -problem

    Dear Friends,
    I am reading the serial port data data , byte by byte..I used serial port vi and math-script in it ....
    And these  serial data are sent in a format like below........
    format:  HEADER ,  MSB  , DATA ,  CHECKSUM..
    I need to collect these bytes and plot it on the graph.. I have problem with saving these data in an array and processing it....
    below is the code,which i had written to do the process
     persistent  ubIndex = 0
     persistent  bHeader = 0
    ubTemp=input
     if bHeader ==0
                     if ubTemp == 89
                            ubIndex= 0
                            bHeader = 1                              
                       end
    else
                  ubIndex= ubIndex +1
                  ubReceivedata(ubIndex) = ubTemp      
                   if  ubIndex == 3
                           ubIndex = 0
                           bHeader = 0               
                     end
    end      
     ubChecksum = ubRecieveData(1) + ubRecieveData(2) + ubRecieveData(3)
    if   ubChecksum == 0
                   if ubRecieveData(1) == 76
                            duLen1 = ubRecieveData(2)
                                 elseif   ubRecieveData(1) == 69
                                        duLen2 = ubRecieveData(2)
                                 elseif   ubRecieveData(1) == 78
                                           duLen3 = ubRecieveData(2)
                                   elseif ubRecieveData(1) == 71
                                                duLen4 = ubRecieveData(2)
                                                duLength = duLen1 * 16777216 + duLen2 * 65536 + uwLen3 * 256 +  ubLen4 
                                  elseif   ubRecieveData(1) == 80
                                               uwTemp1 = ubRecieveData(2);
                                   elseif  ubRecieveData(1) == 66
                                                ubTemp2 = ubRecieveData(2);                 
                                                uwpackageSpeed = uwTemp1 * 256 + ubTemp2;
                                     elseif  ubRecieveData(1) == 68
                                              uwTemp1 = ubRecieveData(2);
                                     else  ubRecieveData(1) == 65
                                              ubTemp2 = ubRecieveData(2);                 
                                             uwDrumSpeed = uwTemp1 * 256 + ubTemp2;
                       end
    end
    In the above program,i collected 2nd, 3rd,4th byte in the ubRecieveData array  and i left the 1st byte(which is header)...
    and I find the checksum by adding the 2nd,3rd,4th byte to find whether it is zero or not,
    if it is zero ,then the received bytes are correct...and it will proceed to take only the data bytes...and i will plot it on the chart...
    I have a doubt in the ubrecievedata array..whether it is collecting the 3 bytes data or not......whether array  get's initliazed every time in the script..
    since it doesn't get in to the if-loop checksum and loop further.....
    I even removed the if-loop checksum ,to collect and process the data inside the loop below if-loop checksum..but it's not working ...
    will the above script are correct..... .....?suggest some solutions to get working
    i attached my  program vi..for u to get feel of my problem...
    regards
    rajasekar
    Attachments:
    vjnewsamp.vi ‏319 KB

    Hi Grant,
    I did as u told u,still unable to process the data and plot it on the chart.....
    I attached my program  testing20.vi ....for finding the problem..
    could u please see the vi..and suggest some solutions....
    As u said  the array should also be persistent.....and my doubt is the other variable like dulen1,dulen2,dulen3,dulen4,...should also be persistent...in order to calculate the parameter
    duLength,.......similarly the parameter uwpackagespeed and uwdrumspeed should be persistent.(in my point of view....)
    objective of the program is to read the serial port byte and byte ...and plotting it
    And the byte are sent in format like
    format: Header , MSB ,data,checksum..
                 Header, LSB ,data,checksum..
    so i need to recogize this format in my mathscript node ...the main thing is ,...... in 4 bytes the data is only of 1byte....
    In my program , i am plotting length(x-axis) versus packagespeed and drumspeed(y-axis)..
    here the length parameter itself 4 byte of data.....i have to collect it byte by byte of data ,...from the 4 byte format(math script gets called 16 times to collect these 4 data bytes
     from 4 byte format)...        and packagespeed and drumspeed is of 2 byte.......
    if u have any questions please ask me...
    Eagerly awaiting for ur reply....
    Regards
    rajasekar
    Attachments:
    testing21.vi ‏442 KB

  • Determining which method to call from an array of Objects

    Hi All,
    Lets suppose I have an interface, a string method name, and an array of Objects indicating the parameters which should be passed to the method.
    What Im trying to work out is a way to quickly determine which method should be invoked.
    I can see that Class has getDeclaredMethod(String, Class[]), but that wont help me as I dont know the formal class types (the method may take X, but I might get passed Y which extends X in the array of objects).
    Does anyone know of a quick way I can determine this?
    All I can think of at the moment is going thru each method of the class one by one, and seeing if the arg is assignable, then, after getting all my matched methods, determining if there are any more 'specific' matches.
    Any ideas?
    Much appreciated,
    Dave

    you might want to take a look at the dynamic proxy apiCheers for the suggestion, but Im actually already using the dynamic proxy API.
    What I have is a MockObjectValidator which allows mock objects to be configuered with expected calls, exceptions to throw etc etc.
    I thought developers on my project would get tired using an interface like this:
    myValidator.setExpectedCall("someMethod", new Class[] { typeA, typeB }, new Object[] { valueA, valueB} );
    I.e, I wanted to cut out having to pass the class array, so they could just use:
    myValidator.setExpectedCall("someMethod", new Object[] { valueA, valueB} );
    The problem there is that I then need to pick the best Method from the class given the object arguments.
    When the mock object is in use, its no problem as the InvocationHandler interface provides the Method. The problem I have is selecting what method a user is talking about from an array of Objects.
    Ive written a simple one now, it just does primitive type class -> wrapper substitution, and then finds ** A ** match. If there is more than one match (ie, all params are assignable to a class' method params), I dont let that method be used.
    Shortly I'll update it to actually make the correct selection in those cases.
    cheers
    Dave

  • Array problem populating advancedDataGrid

    I originally thought this was an error on the coldfusion side, so I started a thread here where I was given a lot of help: http://forums.adobe.com/thread/463777
    However I have found the data to be valid coming from coldfusion.
    To sum the problem up; I'm populating an advancedDataGrid from a remoteObject call to a cfc. The data coming out of the cfc looks fine (an array of Name and Value fields), however once I get to the ResultEvent for the remoteObject method, the data seems to have changed.
    Instead of ResultEvent.result being an array with Name, Value fields, it is instead Name, then an array called Value containing one element (the value!).
    I was working around this error, but now I'm looking for a fix.
    Thanks.

    The error message should have a line number associated with it. Look at that line in your source code. That will help you determine what it wrong.
    If you can't figure it out still, repost to the forum, but next time include the error message, and format your source code properly (see http://forum.java.sun.com/faq.jsp#messageformat). Also indicate what line of your source code are the ones mentioned by the error message. But try to figure it out for yourself first or you'll never learn.

  • JNI Array problem

    Hello sir,
    here i got problem while calling java method having array as arguments from c++;
    here is java code which is called from c++
    class PQR {
         public void xyz(int[] ia) {
         System.out.println("hi");
              for (int i = 0; i < ia.length; i++)
                   System.out.println(ia);
    c++ call code snippet =>      invoke.invoke_class("PQR", "xyz","([I)V");{code}
    here when i call this xyz method i just get o/p as => hi
    means all jvm related calls are working even method xyz gets called but i am not able to acces to array .
    can anybody tell me how to get access to those array elements?
    Edited by: Amit_pune on Mar 1, 2008 2:19 AM

    The code looks rather strange. Casting a pointer to a pointer to a short (&bufferbody) to be a pointer to an int.
    Maybe you could post the code of modify.
    Also, and as an aside, if I'm reading the code right, you have a potential memory leak because you're using JNI_COMMIT rather than just 0.
    Sylvia

  • After 10.1.3.3 migration, Invalid  soap/encoding/:Array' problem

    HI ,
    I have a BPEL process calling a external web service (which takes String as input and returns String[] as output). It is working fine with 10,1,2. When i tried to migrate to 10,1.3 (install 10.1.3.1 and upgrade that to 10.1.3.3 using the patch)project i got following error while compiling bpel module using Jdeveloper 10.1.3.3 (10.1.2 bpel is migrated to 10.1.3.3) .bpel is calling external webservice having <attribute ref="soapenc:arrayType" wsdl:arrayType="xsd:string[]" />
    Loading Graphics File...
    Done Loading.
    Validating Process...
    Done validating.
    Can not build schema 'http://schemas.xmlsoap.org/soap/encoding/' located at 'http://schemas.xmlsoap.org/soap/encoding/'
    Invalid reference: 'http://schemas.xmlsoap.org/soap/encoding/:Array'
    oracle.tip.tools.ide.common.xsdgrammar.SchemaGrammarException: Can not build schema 'http://schemas.xmlsoap.org/soap/encoding/' located at 'http://schemas.xmlsoap.org/soap/encoding/'
    Invalid reference: 'http://schemas.xmlsoap.org/soap/encoding/:Array'
    at oracle.tip.tools.ide.common.xsdgrammar.SchemaGrammarProvider.buildSchemas(SchemaGrammarProvider.java:202)
    at oracle.tip.tools.ide.common.xsdgrammar.GrammarInfo.getGrammars(GrammarInfo.java:859)
    at oracle.tip.tools.ide.common.xsdgrammar.GrammarInfo.createGrammarInfo(GrammarInfo.java:802)
    at oracle.tip.tools.ide.common.xsdgrammar.GrammarInfo.<init>(GrammarInfo.java:281)
    at oracle.tip.tools.ide.common.bpeldesigner.SchemaResolvedObj.buildResolvedDocument(SchemaResolvedObj.java:242)
    at oracle.tip.tools.ide.pm.bpelgraph.editors.ExplorerTreeUtil.populateMessagePartItem(ExplorerTreeUtil.java:208)
    at oracle.tip.tools.ide.pm.bpelgraph.editors.ExplorerTreeUtil.populateMessageParts(ExplorerTreeUtil.java:135)
    at oracle.tip.tools.ide.pm.bpelgraph.editors.ExplorerTreeUtil.populateMessage(ExplorerTreeUtil.java:98)
    at oracle.tip.tools.ide.pm.bpelgraph.editors.ExplorerTreeUtil.buildOperationNode(ExplorerTreeUtil.java:80)
    at oracle.tip.tools.ide.pm.bpelgraph.editors.PLExplorerTreeNode.populateOperations(PLExplorerTreeNode.java:175)
    at oracle.tip.tools.ide.pm.bpelgraph.editors.PLExplorerTreeNode.populateRoles(PLExplorerTreeNode.java:158)
    at oracle.tip.tools.ide.pm.bpelgraph.editors.PLExplorerTreeNode.getChildNodes(PLExplorerTreeNode.java:80)
    at oracle.tip.tools.ide.pm.bpelgraph.editors.ExplorerTree$TreeExpansionHandler$1.run(ExplorerTree.java:6255)
    I don't know what exact the difference between the processing of ArrayType in 10.1.2 and 10.1.3
    can someone help me how to resolve this
    Regards
    ravi

    Hi Didier,
    I did some more experimenting and I think the problem is somewhere in skins.
    I downloaded "mycompany" and "limerone" skin from WebCenter page.
    Now the problem appears only if I use mycompany or limerone skin and only with firefox2.0.
    In JDeveloper visual editor after deleting oracle-desktop-10_1_3_X_0-en-ie-6-windows-s.css problem is solved and also with IE I have no problem. Also no problem if I use "oracle" skin with firefox2.0.
    please try it (new skins + FF) and you will see...
    thanks,
    Branislav

  • ODP11g udt & array problem

    Hi all,
    I'm facing a problem with User-Defined-Types and ODP11g.
    I want to store a object in different tables via a storedprocedure.
    The object-mapping through IOracleCustomType, IOracleCustomTypeFactory and IOracleArrayTypeFactory seems to be ok, the data are accessed by FromCustomObject and the values are ok.
    But while the update is done it appears that no valid data at all is arriving at the db-server. I always receive a exception indicating that no values are set in the object(s). This is very strange.
    Below I think I've listed all relevant data and code to this problem. I suspect the array of commands to cause the problem but I don't know.
    Anybody any hint's for me to solve this?
    Thanx
    Franz
    The setup for the call:
    [snip]
    command.CommandType = CommandType.StoredProcedure;
    OracleParameter par = new OracleParameter();
    par.UdtTypeName = "OSRAM.PROGRAM_T";
    par.Direction = ParameterDirection.InputOutput;
    par.OracleDbType = OracleDbType.Object;
    par.Value = arg;
    command.Parameters.Add(par);
    command.ExecuteNonQuery();
    Stacktrace:
    [18. Oct. 2007 15:33:26][DatabaseCore.DatabaseCoreAccess DEBUG] - Oracle.DataAccess.Client.OracleException ORA-01400: cannot insert NULL into ("OSRAM"."STEP"."SEQ_NUMBER")
    ORA-06512: at "OSRAM.QM_INSERT_STEP", line 8
    ORA-06512: at "OSRAM.QM_INSERT_COMMAND", line 14
    ORA-06512: at "OSRAM.QM_UPDATE_PROGRAM", line 16
    ORA-06512: at line 1 bei Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object s
    rc, String procedure)
    bei Oracle.DataAccess.Client.OracleException.HandleError(Int32 errCode, OracleConnection conn, String procedure, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src)
    bei Oracle.DataAccess.Client.OracleCommand.ExecuteNonQuery()
    bei DatabaseCore.DatabaseCoreAccess.ExecuteStoredProcedureObject(DatabaseWorkerCallback CallBack, IDataTransform transform, String ProcName, IOracleCustomType arg) in C:\Projekt
    e\HEITEC\Osram OS\RezeptErkennung\DatabaseCore\DatabaseCore.cs:Zeile 223.
    Structure of the Object:
    This object consists of some atomic items (int, varchar) and a object-collection
    Program_T:
    ID NUMBER
    COMMAND COMMAND_CONTAINER
    NAME VARCHAR2(240)
    DESCRIPTION VARCHAR2(50)
    VERSION VARCHAR2(10)
    COMMAND_CONTAINER:
    COMMAND_CONTAINER VARRAY(4) OF COMMAND_T
    COMMAND_T:
    ID NUMBER
    NAME VARCHAR2(4000)
    DESCRIPTION VARCHAR2(240)
    DURATION NUMBER(10,2)

    I think there may be a bug in ODP.NET that doesn't like arrays of UDTs. I'm having a similar problem
    (see Re: Problem inserting UDT with ODAC 11.1.0.6 )
    I know it's not much help, but nobody seems to have an answer, so.....

  • Can somebody shine light on this Array problem I've got

    This is the error message I get when I run my code, I've looked at the array but can't see the problem.
    java.lang.ArrayIndexOutOfBoundsException
         at Test.main(Test.java:18)
    Exception in thread "main"
    I've set code below.
    Dave
    import corejava.Console;
    public class Test{
    public static void main (String[] args){
    int total = 0;
    int MealsInfo;
    int Week = 0;
    int Day = 0;
    int Meals[][] = new int[2][5];//2 columns 5 rows
    for(Week = 0; Week <2; Week ++){
    for(Day = 0; Day <5; Day ++){
    MealsInfo = Console.readInt("Please insert number of Meals" );
    Meals[Week][Day] = MealsInfo;
    total = Meals[Week][Day];
    System.out.println(Meals[Week][Day]);
    }

    FriedrichHoffmann in right.
    The ArrayIndexOutOfBounds Exception comes from the fact that after you exit a for loop the condition in the middle part of the for statement is false, so in the case of your for loops week == 2 and day == 5 when the for loops finish executing.
    As arrays are zero indexed (as you should already know) the last line should be
    System.out.println(Meals[Week-1][Day-1]);But this will only print out the last element in the array, what you want is to have the System.out call inside the second (nested) for loop.
    Hope this helps.

  • Array problem in Photo Gallery

    I want to have an array of buttons that each move with mouse over and mouse out. Then once user clicks the button the image is loaded from an array and put onto the screen. Once another button is clicked say B2 the B1 image is removed and a new image replaces it.
    Here is the working code up to this point with no errors; I am using Flash cs5.
    [AS]
    var buttonArrayportfolio:Array = [ B1, B2, B3, B4, B5, B6, B7, B8];
    for each( var B:MovieClip in buttonArrayportfolio)
              B.mouseChildren = false;
              B.addEventListener( MouseEvent.MOUSE_OVER, onButtonOver  );
              B.addEventListener( MouseEvent.MOUSE_OUT,  onButtonOut   );
              B.addEventListener( MouseEvent.CLICK,      onButtonClick );
    function onButtonOver( e:MouseEvent ):void
              var B:MovieClip = MovieClip(e.target);
              if( B.tween )
                        B.tween.stop();
              B.tween = new Tween( button, "y", Regular.easeOut,622.9, 591, .5, true );
    function onButtonOut( e:MouseEvent ):void
              var B:MovieClip = MovieClip(e.target);
              if( B.tween )
                        B.tween.stop();
              B.tween = new Tween( B, "y", Regular.easeOut, 591, 622.9, 1, true );
    function onButtonClick( e:MouseEvent ):void
        var arrayB:Array = [ B1, B2, B3, B4, B5, B6, B7, B8,];
        var arrayImages:Array = ["KidRabbit.png","Hydrant.png","Hydrant.png"];
        for (var i:int = 0; i<1; i++)
            var B:BlackBox = new BlackBox();
            var pictLdr:Loader = new Loader();
            B.addChild(pictLdr);
            addChild(B);
                    pictLdr.load(new URLRequest(arrayImages[i]));
            pictLdr.contentLoaderInfo.addEventListener( Event.COMPLETE , loaded);
            //arrayImages.push(B);
            //arrayImages[i].x = i * 150 +  i * 10;
            //addChild(arrayImages[i]);  
    function loaded(event:Event):void
              var targetLoader:Loader = Loader(event.target.loader);
    [/AS]

    See if the following is more what you want.  It only uses one BlackBox object and one loader.  By using one loader you don't need to unlload it to load another because whatever you load into into will replace what was already loaded into it.  Part of the key to this solution is assigning the loop index value to each button as it increments in the first loop.  That number is what is used to call the image associated with the button in the onClick function.
    import fl.transitions.Tween;
    import fl.transitions.easing.*;
    var arrayB:Array = [ B1, B2, B3, B4, B5, B6, B7, B8,];
    var arrayImages:Array = ["KidRabbit.png","Hydrant.png","Hydrant.png","KidRabbit.png","Hydrant.png","Hydrant.png", "KidRabbit.png","Hydrant.png"];
    var imgLoader:Loader = new Loader;
    var B:BlackBox = new BlackBox();
    B.addChild(imgLoader);
    for (var i:uint=0; i<arrayB.length; i++){
         arrayB[i].mouseChildren = false;
         arrayB[i].addEventListener( MouseEvent.MOUSE_OVER, onButtonOver);
         arrayB[i].addEventListener( MouseEvent.MOUSE_OUT, onButtonOut);
         arrayB[i].addEventListener( MouseEvent.CLICK, onButtonClick);
         arrayB[i].imgNum = i;
    function onButtonOver( e:MouseEvent ):void {
         var B:MovieClip = MovieClip(e.target);
         if(B.tween){
           B.tween.stop();
         B.tween = new Tween( B, "y", Regular.easeOut,622.9, 591, .5, true );
    function onButtonOut( e:MouseEvent ):void {
         var B:MovieClip = MovieClip(e.target);
         if( B.tween ){
           B.tween.stop();
         B.tween = new Tween( B, "y", Regular.easeOut, 591, 622.9, 1, true );
    function onButtonClick( e:MouseEvent ):void {
       if(this.contains(B)){
           removeChild(B);
       imgLoader.load(new URLRequest(arrayImages[e.currentTarget.imgNum]));
       imgLoader.contentLoaderInfo.addEventListener( Event.COMPLETE , loaded);
    function loaded(event:Event):void {
         addChild(B);
          var targetLoader:Loader = Loader(event.target.loader);

Maybe you are looking for

  • Has anyone deployed converged access with 3850 switches and 5760 WLCs?

    Has anyone deployed a converged access network architecture with 3850 switches and 5760 WLCs? I have done lots of projects with the 5508 WLCs In a centralized deployment. Basically with this design, I manage 2 logical networks as the wireless network

  • Sharing Editing Duties Using Final Cut Express 4.0

    I'm fairly new to Final Cut Express. I'm working on a video project with a colleague. He has been working on the project for some time on his Mac. How can I copy his files to aloow me to continue editing the project on my Mac. What files & directorie

  • All programs crashing after re-installing OS X

    Hi all, I've recently made the jump over to Mac form Windows and invested in a new 17' Macbook Pro. Sadly today someone decided to play a little trick on me and convinced me to run the Sudo FM command in Terminal and I lost my OS. After re-installing

  • Redundant MOH Server and multicast addressing

    Per SRND: http://www.cisco.com/en/US/products/sw/voicesw/ps556/products_implementation_design_guide_chapter09186a00806e8c28.html#wp1043768 I want to use the 2nd method: "Configure separate media resource groups (MRGs) for the same MoH server, with on

  • Hiding a Section and Dashboard Page

    Hi I have two questions 1) A section has to be hidden, not based on user nothing to be done dynamically, temp i have to hide few sections on a dashboard page. 2) A dashboard page is to be hidden dynamically, when I say dynamically it is not based on