Problem using an array of MCs for a menu

I'm creating an animated menu using a series of MCs and wrote
a function to reset them back to frame 1 whenever you choose a new
menu item. I couldn't get it to work so I did a trace to see if I
could even get the value of the current MC's frame & I get
"undefined". I only have 2 MCs in the array right now to keep
things simple. Any idea of what I'm doing wrong?

Hi,
there is a simple way to achieve that.. Put all your buttons
in one mc and call that mc buttonsMc.
With a for in loop you will be able to do what you want. Ill
post a version that will escape the movieclip button that is
pressed; mainly because usually you want to reset all the other
buttons but not the one pressed. You just have to pass as a
parameter the name of the movieclip button to the function .. here
is the code:

Similar Messages

  • OS is Mountain Lion, upgraded no problems, used an external Hard drive for my time machine, now my iPhoto will not show any of my photo's or ay new ones I import! Help please!!

    OS is Mountain Lion, upgraded no problems, used an external Hard drive for my time machine, now my iPhoto will not show any of my photo's or ay new ones I import! Help please!!

    Do you get this window when you hold down the Command+Option keys and launch iPhoto?
    If not then you're not holding down both keys long enough.
    OT

  • Problem Using JSQL level 4 driver for SQL Server 2000

    I am having problem , connecting to my Sql Server 2000 ( deployed on Windows 2000 Professional) using Microsoft JSQL level 4 Deriver .
    I am doing it with following code,
    Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
         Connection conn = DriverManager.getConnection
    ("jdbc:microsoft:sqlserver://192.168.0.232:1433;databaseName=DBNew;user=nakhter;Password=java;");
    It gives me following Exception ,
    java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Login failed for user 'nakhter'. Reason: Not associated with a trusted SQL Server connection.
         at com.microsoft.jdbc.base.BaseExceptions.createException Unknown Source)
         at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
         at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processErrorToken(Unknown Source)
         at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReplyToken(Unknown Source)
         at com.microsoft.jdbc.sqlserver.tds.TDSLoginRequest.processReplyToken(Unknown Source)
         at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReply(Unknown Source)
         at com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source)
         at com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown Source)
         at com.microsoft.jdbc.base.BaseConnection.open(Unknown Source)
         at com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source)
         at java.sql.DriverManager.getConnection(DriverManager.java:517)
         at java.sql.DriverManager.getConnection(DriverManager.java:177)
    I am usign my windows authentication usrname and password .
    I has tried it with user "sa" but still same exception .
    Could someone help me in this regard ?

    You need to switch SQL server to just use SQL Server authentication or both. The problem is that it is looking for a Windows NT account for nakhter with the password java. We get this all the time on new SQL Server installs if you just take the defaults.

  • Problems using MBP as WiFi router for iPad2 (self-assigned IP address)

    H/W& S/W:
    MBP 15" (model early 2011), running Snow Leopard,
    iPad 2 WiFi only, 64Gb, iOS 4.3.4 (8K2).
    Scenario:
    I am in a location where there is no WiFi. MBP is connected via Ethernet to a DSL network, and has access to the Internet. I turn on Internet sharing, having set the following:
    "Share your connection from" set to "Ethernet" and
    "Share computers using Airport" ticked.
    Previously, I have then connected the iPad 2 via WiFi with the WiFi network created on the MBP, and succesfully worked from the iPad on the Internet (email, browsing, app downloads, ...).
    Problem:
    Now, however, the iPad connects to the MBP's WiFi network, but when I attempt to access the Internet, I get such messages on the iPad  as "Safari is not connected to the Internet" or "Cannot Get Mail ...".
    On investigation, I see that Airport on the MBP is in a YELLOW status: Status On, with the note "Airport has the self-assigned IP address 169.X.y.z, and will not be able to connect to the Internet".
    On the iPad, the WiFi network shows the IP address 169.X.a.b (with a subnet mask (255.255.0.0).
    I have tried:
    1. turning Airport off and on
    2. renewing the DHCP lease on the MBP
    2. configuring IPv4 address in the MBP manually
    3. configuring the IP address manually on the iPad (not expecting anything with this, but ....)
    4. fixed Permissions" on the MBP disk (suggested on another support community web site)
    But none of these make any difference.
    Message was edited by: WKH
    forgot to mention: Firewall is disabled on the MBP.

    Hello,
    I've had the exact same problem on my macbook and it really **** me off ! I tried all of the solutions written in this forum and none worked for me ! I was really starting get mad especially that my macbook is quite new...
    And the thing is i have no Apple Store where i live which is a pretty F***g problem so I had to wait for vacations to go to france where I took my macbook for check at the apple store...
    I just came back right now and my wifi works till now a least far much better than before...The guy was really nice he checked everything and he tried all the solutions on this forum too..Finally he tried to boot from one of '' apple's '' usb that has suberb booting systems...And it worked so finally he re-installed 10.6.5 as it was '' corrupted '' with wifi bugs ! For that he needed to delete everything on my macbook ! GREAT !
    After 15 minutes the installation was done and it started like when you buy a new macbook !
    And VOILA the Wifi came back to normal !
    Hope this helps...
    If you have this problem go and see Apple Store or re-install yourself 10.6.5 !
    Thanks !

  • Problem using associative arrays in vb6 with ORAOLEDB for Oracle 10g

    The following vb6-code works fine with MS OLEDB (in MDAC 2.8) but not with Oracles OLEDB for 10g. Any suggestions for making it work?
    'vb6-code:
    Set rs = New ADODB.Recordset
    Set rs.ActiveConnection = oConn 'oConn is already initiaded - code not included here.
    rs.Source = "{call PCK_PW_RF_PERSON.P_PW_BIRTHDAY('BURSDAG','2008','01',{resultset 200000, PARAM1,PARAM2,PARAM3})}"
    rs.LockType = vntLockType
    rs.CursorLocation = adUseClient
    rs.CursorType = vntCursorType
    rs.Open
    Databaseobjects involved:
    PACKAGE "PCK_PW_RF_PERSON" IS
    TYPE     tpv_param1     IS TABLE OF VARCHAR2     INDEX BY BINARY_INTEGER;
    TYPE     tpv_param2     IS TABLE OF VARCHAR2     INDEX BY BINARY_INTEGER;
    TYPE     tpv_param3     IS TABLE OF VARCHAR2     INDEX BY BINARY_INTEGER;
    PROCEDURE P_PW_BIRTHDAY
         pv_i_sreportid          IN VARCHAR2,
         pv_i_year          IN VARCHAR2,
         pv_i_month          IN VARCHAR2,
         PARAM1               OUT tpv_param1,
         PARAM2               OUT tpv_param2,
         PARAM3               OUT tpv_param2
    IS
         CURSOR X IS select '1' AS PARAM1,'2' AS PARAM2,'3' AS PARAM3 FROM DUAL;
         i NUMBER DEFAULT 1;
    BEGIN
         FOR c IN X LOOP
              PARAM1(i)           := c.PARAM1;
              PARAM2(i)           := c.PARAM2;
              PARAM3(i)          := c.PARAM3;
              i := i + 1;
         END LOOP;
    END P_PW_BURSDAG;

    I receive this error:
    "ORA-06550: line 1, column 111:
    PLS-00201: identifier 'PARAM1' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored"

  • Please Help!-Problem using Image[ ] array

    Hi everyone,
    I have this real confusing bug in my code which i am not able to fix.
    Image[] tmpImg = new Image[Img.size()];   /initializing an image array tmpImg
                for(int i=0; i<Img.size(); i++) {          //i require this display the image a number of times
                try{
                       icon = Image.createImage("/Icon.png");
                       im = new ImageItem("Image", icon,ImageItem.LAYOUT_CENTER,"image"); //using a imageItem to display the image in a form
                       form.append(im);
                       icon2 = Image.createImage("/Icon2.png");
                           im2 = new ImageItem("Image2",icon2,ImageItem.LAYOUT_CENTER,"image"); //using another imageItem to display the second image
                      form.append(im2);
                       if (imageValue.elementAt(i) == "availableImage") {
                           tmpImg[i] = icon;  //assigning the value to the image array based on a condition from a String Vector
                      if (imageValue.elementAt(i) == "offlineImage") {
         tmpImg[i] = icon2;   //assigning the value to the image array based on a condition from a String Vector
                      } catch(IOException err) {}
           System.out.println(tmpImg[0]);
           System.out.println(tmpImg[1]);
           System.out.println(tmpImg[2]);
           System.out.println(tmpImg[3]);
           return tmpImg;
       }My problem is that when i try to print tmpImg[0], tmpImg[1] etc all the values are printed null. But the Image is created and being displayed on a ImageItem. but i am not able to assign the image to the image array 'tmpImg' which is within an if condition.
    Can anyone tell me why is this so. I would be grateful
    Thank You

    Thank u deepspace
    I got a lil' frustrated, so completely did not think that way. The code is working now
    Thanx again

  • Problems Using an Array of Objects

    I have taken some time off from java and have aparently forgot something. I have a program which has one parent class "Car" with three child classes"Sedan", "Sport", "Suv" and one interface. The "Car" class contains three accessor and mutator methods, and the child classes also have three accessor and mutator methods. In my main I create an array Car[] carArray = new Car[6]; and instantiate. I can call the methods of the parent class but am unable to call the methods of the child classes. I need a little help to get me in the right direction to get these cobwebs out of my skull. Here is a sample of what I'm doing:
    //from my main method
    Car[] carArray = new Car[3];
    carArray[0] = new Sport("Chev", "Camaro", 1995, 4500.67, 120000);
    carArray[1] = new Sedan("Ford", "Taurus", 1997, 3689.55, 40000);
    carArray[2] = new Suv("Honda", "Pilot", 2003, 6955.99, 67000);
    for(int i = 1; i < carArray.length(); i++)
        carArray.getYear(); //getYear() is from the parent "Car" class and works just fine.
    carArray[i].getValue(); //getValue() also from the parent "Car" class and works just fine.
    carArray[i].getMiles(); //getMiles() from parent "Car" class and works.
    carArray[i].getMake(); //getMake() is part of the child class and gives me an error: "cannot find symbol. symbol: variable getMake()
    carArray[i].getModel(); //getModel() is also a part of the child classes and also cannot find symbol.
    {code}
    I have imported my package with my parent and child classes correctly and have tried putting them all in the same folder, so I think I have a failure in logic. Can someone help me straighten this out in my head? :) Much thanks

    "Is it A or B"?
    "Yes"
    Meaning "either one."
    The parent class doesn't have to be abstract as far as Java is concerned, but it seems to me you'd want it to be abstract. Will you ever be creating just a plain old Car (as opposed to a Sedan or Suv)?
    You just said "doesn't work," without providing any details about what you tried or what the exact problems was, so it's impossible to offer any specific, concrete advice. Here's an example that shows one way things might fit together.
       * inteface, to define the type, with 3 methods: add(), iterator(), and contains()
      public interface List {
        boolean add(Object obj);
        Iterator iterator();
        boolean contains(Object obj);
       * abstract base class, to implement methods that don't depend on specific implementations
       * (just contains() in this case
      public abstract class AbstractList implements List {
        public boolean contains(Object obj) {
          for (Iterator iter = iterator(); iter.hasNext ();) {
            if (iter.next ().equals (obj)) {
              return true;
          return false;
       * concrete subclass
       * provides concrete methods that depend on the specific implementation
      public class ArrayList extends AbstractList {
        private Object[] elements = new Object[256];
        int size = 0;
        public boolean add(Object obj) {
          if (size == elements.length) {
            // create a larger array and copy over existing elements
          elements[size++] = obj;
          return true;
         * anonymous inner class that implements Iterator
        public Iterator iterator() {
          return new Iterator() {
            private int nextIndex = 0;
            public boolean hasNext () {
              return nextIndex < size;
            public Object next () {
              return elements[nextIndex++];
      }A few things to note:
    0. The above are based on the classes of the same names in java.util, but are stripped down for simplicity. If something doesn't look right (like missing methods on List and Iterator) it was done to keep the example clean and simple.
    1. We could skip either the interface or the abstract class or both, or the abstract base class could be concrete. Java doesn't care. We do what makes sense for our design.
    2. Here we define an interface because we want to define a pure type with no implementation. Anybody anywhere can implement a List however they want, and as long as it meets the contract of our interface, it can be used by any code expecting a List.
    3. We define the base class AbstractList because there are methods that have a reasonable default implementation that can be reused by subclasses. In this case, contains() doesn't do anything that depends on the specific implementation, so it can be defined in the base class. All the subclasses can use that implementation of contains(). Of course, any subclass is still free to override contains() to provide its own implementation if it wants.
    4. An implementation of List can extend the base class, AbstractList, but it doesn't have to. It could just implement List and provide its own implementation of contains().
    5. The base class is abstract because some methods don't have a default implementation that can be reused. Both add() and iterator() depend on the specifics of the implementation. They both need direct access to the internal backing store. If we had another concrete implementation, LinkedList, its backing store would be a privately defined class of Node that contains the elements and pointers to previous and next. There would be no array, and add() and iterator() would be written very differently. There's no way we could have written add() and iterator() in a way that would have worked for both backing stores.
    6. All methods in an interface are public and abstract, even if you don't declare them that way.
    7. A class that implements an interface or extends an abstract class must provide implementations for all the abstract methods in both, or else must be itself declared abstract.
    8. When a class extends another class, it also implicitly implements all the interfaces that the parent class does.
    9. A class with one or more abstract methods must be declared abstract, but any class can be declared abstract, even if it has no abstract methods.
    Edited by: jverd on Mar 27, 2010 9:12 AM

  • Problem using Aperture as external editor for Photoshop CS5...

    I am having trouble using Aperture as my external editor for Photoshop - if, for example, I select twenty photos and choose "edit in photoshop CS5," for some reason or another, only ten or twelve photos will show up. Some photos are always missing, and there seems to be no rhyme or reason to it. Has anyone else noticed this? It is really frustrating and slowing my workflow down immensely. Any words of advice would be greatly appreciated!

    Hi Casey.
    First lets make sure we have the flow going the correct way.  You are using Aperture, and use PSCS5 as your external editor (external to Aperture).  Right?
    Second, what size are your Masters?  When you use PS directly (not calling it from Aperture) do you regularly open twenty files at a time?
    My Masters are about 25 MPix each.  PS sizes them in the 140 MB range.  Opening twenty of them at once -- for me that's about 3 GB of data -- will probably bog things down.  Does the problem occur if you open just, say, five at a time?  What's your hardware?  How do you have PS set-up?
    And -- my top suggestion for improving your work rate: do in Aperture as much of the work as you can, and send out to PS as little as possible.  You don't say what kind of work you are doing, but Aperture, for many, suffices for almost all of there photograph processing needs.
    Message was edited by: Kirby Krieger -- some minor changes.

  • Problem using IMAQ Array to Color Image vi

    I am doing some pixel manipulation & while going from an image to an Image Pixels (U64) array using IMAQ Color Image to Array VI I cannot see the image once it is modified.
    I am...
    1) converting the image to the 64 bit pixel data using IMAQ ColorImage to Array.vi
    2) doing the manipulation
    3) converting back to an image using the IMAQ Array to ColorImage.vi using the 64 bit input.
    What I get is...
    1) a black image with data behind it... meaning... if I take the magnifier tool and go to the approximate locations of my image where I expect to find the manipulated data, it is there.
    2) cast that image to a 32 bit image & still get a black image for the output.  The data however is no longer there and appears to have been stripped.  
    3) no error's out of any VI's...
    TIA  

    With Vision 2009 situation is not better.
    It happened because U64 image displayed in full scale. So, if you have full range of intensities (from 0 to 65535), then you can see something. But if your intensities in small range, for example, 0...255 in all channels, then you will see black image.
    Feel differences:
    It should be possible to map U16 values into U8 display range  with given range (like IMAQ WindDisplay Mapping does), but right now this feature available for I16 images only, not for U64. What you can do is following - map each channel to U8 (with linear LUT, for example), put channels together, then display 32 bit RGB instead of U64.
    Andrey.

  • I have problem using your your VI written for Qnet DCMC

    Hi,
    I am using Qnet DCMC. I just Installed the harware and it works fine. The VI written for position control is aslo working but there is a problem with the VI written for speed control. (lab 01).  When I open the VI for lab01, some parts of the file like "parameter estimation" tab doesn't load into the main VI.
    I just notice that the VIs are written for labview 8 but I am using labview 8.2 . is the problem because of version mismatch ?
    Regards
    Reza Sharif i

    Hey Reza,
        Where did you get these VIs that were written for the Qnet DCMC?  Were they available within our Instrument Driver Network?  I am having trouble locating them myself, so if you could provide me with additional information, I'd love to help out.
    Brian B
    Field Sales Engineer
    Tennessee/Southern Kentucky
    National Instruments

  • Problem using IDOC_INPUT_DELVRY in ship.conf for msg type SHPCON

    Hi Experts,     
    We are confirming the picked quantity from warehouse for the outbound delivery using the EDI  IDOC_INPUT_DELVRY as shipping confirmation using message type SHPCON and process code DELV.
               Problem is that this process is checking the determination of the output type LAVA maintained in NACE before the actual post goods issue take place. since the SAP itself has the requirement check for goods issue status 'C' ( Complete check status ), this output type is not picked while doing the automatic post goods issue using EDI since at that time goods issue status is 'A'. In other words, goods issue has not taken place.
           But when we did manually using VL02N for confirmed picked quantity and did the post goods issue manually it is determining the output type LAVA since while checking the requirement in LAVA has goods issue status 'C' ( Completed ).
    In simple words, while doing manually the output type LAVA is determined but while doing
    automatic post goods issue using EDI output type LAVA is not determined.
    This is very urgent. Please help with this?.
    Thanks,
    suresh

    Hello Mohanaselvan,
    Thank you for this info.  Definitely making some progress now.
    Can you advise some of the necessary iDOC DELVRY03 data elements necessary to transmit the sales order data?
    I am receiving the 51 status error message:
    "Data of Preceding Document was not transmitted" and
    "Essential transfer parameters are missing"
    I tried referencing the Sales Order in few places, but I don't seem to have it correct:
    E1EDL20-VBELN = Sales Order (Instead of Delivery Number)
    AT ITEM LEVEL
    E1EDL43-QUALF=C
    E1EDL43-BELNR=Sales Order
    E1EDL43-POSNR=Sales Order Item Number
    Regards,
    Sandy

  • Having problems using DPS and Edge Animate for iPad Air

    Hi, I recently just puchased a iPad air, wanting to explore and learn how to use DPS. I've been trying to import a OAM file from edge to indesign cc.
    When i do place the file, and run a preview, as soon as i click on the preview, it breaks. The preview zooms into one section of the design.
    I've designed the Edge animate file as 2048x1536 hoping to optimize for the retina display. Does my INDD file have to be 2048x1536? Or only my folio. If anyone can help me with this, it'll be a life saver. Thanks. Screen shots included as examples.
    -Paul
    The indesign file before preview
    The preview.

    I would not test this using the "Preview" method as I have found the desktop app to be unreliable. You're better off to publish the folio privately and use the Adobe Content Viewer app to view the content on the device. If this doesn't help please provide screen shots of the settings you are using in the folio overlay panel to help the community better understand the issue.
    Also just as an FYI if you intend to move forward with DPS and are publishing work to the app store,  2048x1536 folios are not recommended:
    "Create only 2048x1536 folios. This approach is not recommended. In multi-issue viewers, 2048x1536 folios appear only on the HD iPad. In single-issue viewers, the content is noticeably rasterized and performance problems can occur." -
    https://helpx.adobe.com/digital-publishing-suite/help/creating-dps-content-different-ipad. html

  • Problem using iPod as encrypted disk for G4 Backup

    i have created an encrypted disk image on my iPod for backing up my G4 desktop folder. works like a charm. however, OSX limits the size of this disk image to 500MB when it is created using Disk Utility. that is unfortunate since my desktop folder is larger than that. the iPod has 14 Gigs of memory available and i would like the encrypted disk to be larger. is there any way to modify this limitation?
    many thanks

    In disk utility when you select "new image", it should give you the option, size, where you can select from various preset sizes or create your own custom size. Try creating the image you your local drive first then copy it to your ipod.

  • Problem using tags as an attribute for other tags.

    Hi there,
    I'd like to know if there is a way to use a tag as an attribute for an other tag.
    Exemple :
    <user:testparent param="<user:param param='1' />" >
    When doing so, the value of param is <user:param param='1'/>, and not the value that should be returned by the <user:param /> tag.
    Is there a way to use the value returned by this tag as a parameter ?
    With text, the correct value returned by the tag is used, so I guess it's possible to do so with custom tags.
    Thanks.

    Okay, here is an example of the process...
    I have this Class that acts as the parent to all the tags that I use:
    package net.thelukes.steven.scriptbits;
    import java.io.IOException;
    import java.util.HashSet;
    import java.util.Set;
    //Other Imports ...
    public abstract class ScriptBitsTag extends BodyTagSupport  {
         public int doAfterBody() throws JspException {
              return TagSupport.SKIP_BODY;
         public int doEndTag() throws JspException {
              return TagSupport.EVAL_PAGE;
         /* All subclasses of ScriptBitsTag should call super.doStartTag()
          * at the begining of their own doStartTag();
         public int doStartTag() throws JspException {
              initAttributes();
              return TagSupport.SKIP_BODY;
         public abstract  void setAttributeValue(String attributeName, String attributeValue);
         public abstract String getAttributeValue(String attributeName);
         /* Use this method to initialize attributes at the start of tag execution */
         public abstract void initAttributes();
         //...So, for example, I will have a sb:slidingFrame tag that looks like this:
    package net.thelukes.steven.scriptbits;
    // Imports...
    public class SlidingFrameTag extends ScriptBitsTag {
         private java.util.Map<SlidingFrameAts,String> attributes =
                   new java.util.EnumMap<SlidingFrameAts,String>(SlidingFrameAts.class);
         public int doStartTag() throws JspException {
              super.doStartTag();
              //... Do initialize here
              return TagSupport.EVAL_BODY_INCLUDE;
         public int doEndTag() throws JspException {
              //... Do work that depends on nested parameter values here...          
              return TagSupport.EVAL_PAGE;
         //Normal setXXX methods for attributes... <sb:slidingFram windowID="..." >
         public void setWindowID(String name) {
              windowName = name;
         //Do What should happen when nested tag does its work...
         //     <sb:slidingFrame><sb:attribute .../></slidingFrame>
         //For me, just put values in proper place in map...
         public void setAttributeValue(String name, String value) {
              SlidingFrameAts attrib = SlidingFrameAts.valueOf(name);
              if (attrib == null)
                   return;
              else if (attrib == SlidingFrameAts.useDefaultStyleSheet)
                   this.setUseDefaultStylesheet(Boolean.valueOf(value));
              else if (attrib == SlidingFrameAts.offX)
                   attributes.put(attrib, value);
              else {
                   nonDefaultInit = true;
                   attributes.put(attrib, value);
         public String getAttributeValue(String name) {
              return attributes.get(SlidingFrameAts.valueOf(name));
         //Set Default values for all attributes.
         public void initAttributes() {
    }So now I have a tag that is designed to be nested inside ScriptBitsTags and provide attributes for them:
    package net.thelukes.steven.scriptbits;
    //includes
    public class ScriptBitsAttributeTag extends BodyTagSupport {
         private String attName = null;
         private String attVal  = null;
         //Normal set methods for in tag attribes: <sb:attribute name="..." value="..."/>
         public void setName(String name) {
              attName = name;
         public void setValue(String value) {
              attVal = value;
         public int doEndTag() throws JspException {
              //If value not set yet, it should come from the tag's body
              //<sb:attribute name="...">Some Value</sb:attribute>
              if (attVal == null) {
                   if (bodyContent != null && bodyContent.getString() != null) {
                        attVal = bodyContent.getString().trim();
                   } else {
                        //If not found in body, then use empty string for value...
                        //(or some appropriate value....)
                        attVal = "";               
              setAttribute();
              return TagSupport.EVAL_PAGE;
         //Assign the attribute to the this tag's parent.
         private void setAttribute() {
              ScriptBitsTag parentTag =
                   (ScriptBitsTag)TagSupport.findAncestorWithClass(this, ScriptBitsTag.class);
              parentTag.setAttributeValue(attName, attVal);          
    }The TLD has the SlidingFrame tag look like this:
      <tag>
        <description>Sliding Menu Window</description>
        <display-name>SlidingWindow</display-name>
        <name>slidingWindow</name>
        <tag-class>net.thelukes.steven.scriptbits.SlidingFrameTag</tag-class>
        <body-content>jsp</body-content>
        <!-- attributes available for in tag sb:slidingFram windowID="..." for example -->
        <!-- set required to false to allow the attribute to be set by sb:attribute tag -->
      </tag>The rest of the tld is pretty standard... In my JSP I then have:
    <sb:slidingFrame windowID="sliding_frame">
      <%-- Attribute Set for this sliding frame --%>
      <sb:attribute name="speed">
        <c:out value="${sessionScope.speedV}"/>
      </sb:attribute>
      <%-- Content of the sliding frame --%>
      Menu Item A<br/>
      Menu Item B<br/>
      Menu Item C<br/>
      <hr/>
      Menu Item A<br/>
    </sb:slidingFrame>In this case, instead of doing:
    <sb:slidingFrame speed="<sb:attribute value='whatever'/>">I nested the attribute tag between sb:slidingFrame's open and close tag. You have to make sure that any work you want to do that depends on the value of speed is done in the doEndTag so as to make sure it occurs after the nested tag does its work.

  • Problem Using more than one patchset for Kernels

    I'm using vanilla 2.6.10 sources, with the -mh4 bluetooth patch, but I also want to apply the -as patch, as Arch has now adopted it for the standard kernel. So I have the following lines in the PKGBUILD:
    ##### Apply any patches here, if you set the patch variable above uncommment the following line
    patch -Np1 -i ../patch-2.6.10-as5 || return 1
    patch -Np1 -i ../patch-2.6.10-mh4 || return 1
    and I have the patches downloaded into the build directory. When I run makepkg, I get a HUNK FAILED error at the patching stage, and makepkg aborts. If I run it with the -mh4 patch only, it works OK.
    I realise this is nothing to do with the PKGBUILD, which I am sure will produce a uniquely-named package in about 30 minutes or so. Would you have any general advice regarding the use of more than one patch?

    yeah - i have done this with a few patchsets.  it's easy if you know what you are doing.
    i'll explain what is happening just in case you don't know - all patches are created based on the original code and work by matching existing code and replacing it with new code - if you apply one patch then another the first patch may alter some of the references that the second patch is try to match - so it fails.  what you need to do is to check where it has failed.
    it will say patching core.c or something and the it will say HUNK FAILED - that means the first patchset changed the core.c code and the second patch can't find what it is looking for.
    you then need to open the first patch - find out where core.c was changed and how and then open the second patch to see what it now needs to look for and then you'll then have to make new diffs to finish the process or eidt the old diffs (which is tricky but shorter)
    it ain't easy.  if you have more than a few hunk failed don't even bother - there is no guarantee that they patches will provide a build-able kernel.
    this whole process lies at the core of creating these massive patchsets - if you can combine both patchsets and get a successful build out of it you can consider yourself a novice kernel hacker. it can be done.
    i can't help much more than that i'm afraid - i'll ask cactus to split these two posts too a new thread for you

Maybe you are looking for

  • Job getting cancelled

    Hi All,, We have a job" UPC_BUNDLE_EXECUTE" which is getting cancelled everyday here ar Job started Step 001 started (program UPC_BUNDLE_EXECUTE, variant &0000000000000, user ID ) Global planning sequence was terminated with errors Job cancelled afte

  • How to stop the changes made for the BP in CRM not to update in R/3

    Hello Gurus'' we are in need of help......i have an issue...the issue is Wht ever the changes we do in crm , need to be not updated in r/3 ....for example if we change the the language for the BP 100 in CRM, it should not update in R/3 Where as in ou

  • Inserting data in a table and checking

    create or replace procedure testpara1( p_IN in VARCHAR2,p_result out varchar2) Is CURSOR cur_key IS       SELECT * FROM object_keywords; TYPE objkey_tab_type IS TABLE OF OBJECT_KEYWORDS%ROWTYPE; v_keywords  objkey_tab_type; v_keepwords varchar2(100);

  • Daily backup on Ms sql server management  studio (MS sql 2005).

    I wander how to perform daily backup on Ms sql server management  studio (MS sql 2005). In sql server  Entereprise manager (MS sql 2000) I had no problem to shedule. But now I do not find this option

  • Ipad 2 HDMI out picture size problem

    Hi! When I connect my Ipad 2 IOS 5.0 device to the HDMI adapter and my TV-set ( Pioneer 42 inch plasma) is the picture 4/3 and not possible to tweak to fill the total square i.e. there is a black frame around the mirror of my Ipad picture. Can I twea