Movieclip(root) doesn't work inside a function

Hey everyone,
I'm having this problem.
In fact, when i publish my FLA with player 9, there is no prob.
When i publish with selecting player 10, there is this problem.
I paste my code :
var leng:int = MovieClip(root).program.websiteXML.pages.titlePage.length();
trace ("leng"+leng);
setInterval(function () : void {
          if (MovieClip(root).program.autoCh==true){
           trace("CHANGE");
          MovieClip(root).allContent.controllMenu2['itemButton_' + MovieClip(root).program.linkPic].gotoAndPlay("s4");
          if (MovieClip(root).program.linkPic < int(leng-1)){
                    MovieClip(root).program.linkPic++;
                       }else{
                           //MovieClip(root).allContent.play ();
                         MovieClip(root).program.autoCh=false;
                         MovieClip(root).program.linkPic=1;
                         MovieClip(root).allContent.controllMenu2['itemButton_' + MovieClip(root).program.linkPic].gotoAndPlay("s4");
                         for (var z:uint=1; z<(MovieClip(root).program.linkPic+1); z++) {
                              var tempMC:MovieClip = MovieClip(MovieClip(root).allContent.controllMenu2)["itemButton_"+z];
                              Tweener.addTween(tempMC, { x:(z-1)*(45+1)-353, time:1} );     
                         for (var j:uint=(MovieClip(root).program.linkPic+1); j<7; j++) {
                              var tempMC2:MovieClip = MovieClip(MovieClip(root).allContent.controllMenu2)["itemButton_"+j];
                              Tweener.addTween(tempMC2, { x:(j-1)*(45+1)+352, time:1} );     
                         MovieClip(root).allContent.controllMenu2['itemButton_' + MovieClip(root).program.linkPic].gotoAndPlay("s3");
                   }}, 4000);
For leng variable, there is no problem, the value is taken.
But it's inside SetIntervall, at
MovieClip(root).program.autoCh
it tells me that :
TypeError: Error #1009: Il est impossible d'accéder à la propriété ou à la méthode d'une référence d'objet nul.
    at Function/<anonymous>()[main6_cs3_fla._00button_136::frame1:32]
    at Function/http://adobe.com/AS3/2006/builtin::apply()
    at SetIntervalTimer/onTimer()
    at flash.utils::Timer/_timerDispatch()
    at flash.utils::Timer/tick()
And if I put the value outside the function :
var autoChtest = MovieClip(root).program.autoCh;
And use it :
if (autoChtest==true)
There is no errors but my function doesn't work correctly, as autoCh can be "false" in another action.
Well, I hope this will not scare you, and someone will try to help me, please.
If someone know anything about this issue or having same problem please tell me.
Thanks!

Ok i see more clearly, you know it's diificult for me to understand it because i'm into flash AS since a few weeks.
And what you say about the way setInterval is use, with the function in it, i'm totally agree with that, it's difficult to read.
The truth is that this is a template that I bought and it was like that, so to do what i've got to do i needed to change some AS3 code.
This is how it is now :
var rootvar = MovieClip(root).root;
function diapodebut (e:TimerEvent) : void {
    if (rootvar.program.autoCh==true){
        trace("CHANGE");       
        rootvar.allContent.controllMenu2['itemButton_' + rootvar.program.linkPic].gotoAndPlay("s4");
        if (rootvar.program.linkPic < int(leng-1)){
            rootvar.program.linkPic++;
        }else{
              //MovieClip(root).allContent.play ();
            rootvar.program.autoCh=false;
            rootvar.program.linkPic=1;
        rootvar.allContent.controllMenu2['itemButton_' + rootvar.program.linkPic].gotoAndPlay("s4");
        for (var $z:uint=1; $z<(rootvar.program.linkPic+1); $z++) {
            var tempMC:MovieClip = MovieClip(rootvar.allContent.controllMenu2)["itemButton_"+$z];
            Tweener.addTween(tempMC, { x:($z-1)*(45+1)-353, time:1} );   
        for (var j:uint=(rootvar.program.linkPic+1); j<7; j++) {
            var tempMC2:MovieClip = MovieClip(rootvar.allContent.controllMenu2)["itemButton_"+j];
            Tweener.addTween(tempMC2, { x:(j-1)*(45+1)+352, time:1} );   
        rootvar.allContent.controllMenu2['itemButton_' + rootvar.program.linkPic].gotoAndPlay("s3");
    else
        timerSynchro.stop( );
var leng:int = MovieClip(root).program.websiteXML.pages.titlePage.length();
trace ("leng"+leng);
var timerSynchro:Timer = new Timer( 4000, 6) ;
timerSynchro.addEventListener( TimerEvent.TIMER, diapodebut);
timerSynchro.start() ;
You can see that I use Timer class, i've seen on another website just what you say : use Timer instead of setInterval with AS3.
If you still find something wrong to you, tell me!
Thanks again for your help !

Similar Messages

  • Spoken feedback doesn't work in walk function 6th generation iPod nano?

    Spoken feedback function doesn't work in the Nike+ fitness walk function on 6th generation iPod nano? It's only in working in the running mode?!

    Hi, babafromusa.
    You may find this article helpful with troubleshooting this issue. 
    iPod nano (6th generation): Hardware troubleshooting
    http://support.apple.com/kb/TS3474
    If the issue persists, see the section labeled Issue not resolved.
    Cheers,
    Jason H.  

  • IPhone 4 doesn't work inside buildings

    My iPhone 4 rarely picks up calls inside my house or other buildings. My husband has no problem at all with his phone a Motorola Atrix 2. Even outdoors it doesn't work correctly when trying to make/receive calls or connect to Safari.

    What did your phone carrier say when you contacted them about the issue?

  • LaserJet software/driver issues. Print and Scan Doctor doesn't work on scanning function of MFP.

    Upon using the diagnostic utility HPPSdr. exe, only the select an action "Fix Printing" shows up and not the "Fix Scanning" option. Our printer is the LaserJet 3050 connected via usb running under Windows Vista32 on a HP dv8408us laptop. The scanning driver is HP imaging 4.0.4.0. There have been numerous problems with this scanning software/driver package which have been well illustrated on the HP forums. An update is sorely needed. All that HP customers really expect when we buy a product is that we get the functionality that we paid for and that we get support for the software and hardware for a reasonable length of time, I think that 5-7 years after the final production date of the product, at least, is reasonable. In the case of the 3050, the scanning has never worked right since day 1 because the scans are too light with signatures and time stamps showing up poorly. With the pnp driver installed it it almost impossible to scan in receipts, etc. The communication software Toolbox FX is needed to use the scan button on the machine, and since there are so many problems with this package with respect to system resource usage and connectivity, we can't use it and we don't get the walk up use of the scan button that we paid for originally. As Microsoft has updated the Windows OS, HP has failed to keep pace and we lose functionality of our equipment over time.  The diagnostic utilities have supposedly been updated several times and the scanning portion of the MFP still doesn't show. Surely the wide base of installation of this product could justify the expense of some engineering time for an update to the software and drivers. If HP hopes to turn itself around, a commitment needs to be made towards engineering products that really work in the environments that its customers use them, or else HP will merely be regarded as marketing company that is only concerned with selling the next thing without respect to customer retention.

    VisionAiry,
    Thank you for your response,
         There have been problems with the software and drivers for the LaserJet MFP/AIO machines which have been well illustrated by many users on here for several years. What is shocking is the unwillingness of HP to address these issues at an engineering and design level. This is the level in your organization that these problems need to be addressed at, not at the marketing and customer service level. The software/driver package has never really worked right ever since the 3050 - 3392 series was introduced back in 2006. The scanning drivers in the pnp drivers don't work, and never have, because of frequent communication problems. Someone never bothered to check if a blue ink signature would scan. I and several others have reported on these issues. What I have discoverd, through much trial and error, is that the full software package upon installation with only basic drivers installed using the check boxes in the menu, actually installs differently than the pnp driver. Who would have thought this? So now the machine scans OK. 
         My PC really appreciates not having the ToolboxFX installed. ToolBoxFX Error messages and crashes have been well documented on here. This is an application that puts an unnecessary drain on system resources. The only problem is that now the use of the Scan button on the machine is taken away so I don't get the walk up use of the scan button that we paid for in the original design. Why is the scan button function tied to the defective ToolboxFX software? 
         As far as printing goes, after carefully deleting the original print drivers, I use the PCL 5 and PCL6 UPD drivers. They work a lot better than the original print drivers ever did. But what about scanning? The scan driver on the 3050 dates all the way back to 7 2007. Scanning is an integral part of the functioning of most offices nowadays, but it is an afterthought at HP.  Why would a driver, software or diagnostic package only address half of the capabilities of a machine?
         When I went on the vacation recently, I tried to use my PCL 5 and PCL 6 drivers on my relatives 2009 OfficeJet 7310 and it wouldn't work at all. I had to spend 2 hours with multiple failed attempts to install the full 7310 package on my PC. Installation problems and repeated attempts are a constant theme with HP software. The very term Universal Print Driver is misleading because it won't work on many of the HP products out there. The product listing for the UPD, I only recently discovered on here, with help, because it was so buried on the UPD information page. 
         The LaserJet 3050 at $300 from Staples wasn't the most expensive printer out there, but it wasn't the least either. It is actually a pretty nice piece of hardware. I have invested over $1,500 in marked up toner since I've had this machine. HP needs to do better for us. 

  • Oracle Maps doesn't work inside a table cell?

    Hello everyone,
    I have been using Oracle Maps without a table, but now I need to put the display (&lt;div&gt;) inside a table cell for organization purposes. I noticed that it simply doesn't display the map if I put it there.
    This works and displays the map:
    <body onLoad="loadMainMap()">
          <div id="map_div" style="left:0px; top:0px; width:100%; height:100%; border:2px solid"></div>
    </body>This doesn't display the map (The table and div are there, but no map is shown):
    <body onLoad="loadMainMap()">
        <table>
            <tr>
            <td>
                    <div id="map_div" style="left:0px; top:0px; width:100%; height:100%; border:2px solid"></div>
            </td>
            </tr>
        </table>
    </body>Am I doing something wrong?
    Thanks in advance,
    ~Ruben Jorge

    Hi Ruben,
    That's related to DIV and the inline style you've selected.
    You can try to change the div style with, for example :
    <!--
    <table border=1>
    <tr>
    <td>
    </td>
    <td>
    <div id="map" style="position:absolute;top:100px;bottom:400px;right:150px;left:150px;visibility:visible;overflow:hidden;border:1px"></div>
    </td>
    </tr>
    </table>
    -->
    Or give a try with DIV tables :
    <!--
    <body onload=javascript:showMap();>
    <h3> Exemplo Oracle Maps example - Display de um mapa utilizando DIVs</h3>
         <div id="container">
    <div id="row">
         <div id="left">
              <h4>Left Col</h4>
              <p>...</p>
         </div>
         <div id="map" style="width: 800x; height: 400px">
              <h4>Middle Col</h4>
         </div>
         <div id="right">
         <h4>Right Col</h4>
         <p>...</p>
         </div>
         </div>
    </div>
    </body>
    </html>
    -->
    I've used the following styles :
    <style type="text/css">
    /* <![CDATA[ */
         body {
              margin:0; padding:0;
              font-size:80%;
              font-family: sans-serif;
    #header {
    display: block;
    width: 80%;
    margin: auto;
         #container {
         width: 80%;
         margin: auto;
              padding:0;
              display: table;
              border: 1px solid black;
    #row {
    display: table-row;
         #left {
              width:150px;
              padding:1em;
              background: #EEF;
              display: table-cell;
         #right {
              width:150px;
              padding:1em;
              background:#FEE;
    display: table-cell;
         #middle {
              padding: 1em;
              background:yellow;
    display: table-cell;
    /* ]]> */
    </style>
    Hope it helps!
    Cheers,
    pedro
    Edited by: plopes on May 11, 2009 2:46 PM
    Edited by: plopes on May 11, 2009 4:40 PM

  • After EFI firmware update the scrolling with two fingers doesn't work inside the browsers (both safari and chrome)

    I've got a new MacBook Pro Retina from october 2013 13" (8 gb Ram and 256 gb SSD).
    I had the "freezing" issue that was solved with the firmware EDI update.
    But after this update i have now another problem: often during web browsing the scroll with 2 fingers up and down the page stops working (but the trackpad is ok for everything else and if i go in other programs the scroll works as usual). The only solution is to restart the browser but the problem happens again and again.
    Both on Chrome and Safari. Especially on Safari everything freeze if i try to scroll on the right to go back to the previous page.
    Does anybody else have this issue?

    macmattia wrote:
    I've got a new MacBook Pro Retina from october 2013
    Does anybody else have this issue?
    Doesn't matter if anybody else has this issue. 
    You are still under warranty.  Call Apple Care. Make sure you get a case number as all repairs have an additional 90 days of warranty. 
    #1 - You have 14 days from the date of purchase to return your computer with no questions asked.
    #2 - You have 90 days of FREE phone tech support.
    #3 - You have the standard one year Apple warranty.
    #4 - If you've purchased an AppleCare Protection Plan, your warranty last for 3 years.   You can obtain AppleCare anytime up to the first year of the purchase of your computer.
    Take FULL advantage of your warranty.  Posting on a message board should be done as a last resort and if you are out of warranty or Apple Care has expired.

  • Copy and Paste doesn't work inside compound clips

    If I have two compound clips, when I try to copy some clips from inside one, then open the other compound clip and paste, nothing happens.
    However, if I try the same on a project timeline paste works.
    This is really annoying as I cannot move a clip from one scene to another when I have set up my scenes as compound clips.

    They were created in 10.0.8.
    Are you definitely going into two separate compound clips?
    For example, If I explode one of the compound clips on a timeline then paste works again. That still means I need separate projects for each scene which is a pain.
    What I would like in FCP X, is to be able to have more than one timeline open simulataneously, so I can drag relevant clips between them. I am finding with a documentary that I am editing, where the story is not obvious and scripted in advance, that developing story idea sections as compound clips is really incovenient. I often realise that clips there were in one section work better in another. This was much easier in FCP 7 where you can open two timelines and drag between them.
    I hope apple add the ability to open multiple timelines.

  • HTML5 code hinting not working inside Javascript Function on DW CS6

    Hi,
    I am working on Dreamweaver CS6 and code hinting isnt working as expected when writing Javascript code.
    The minute I insert a function the code hinting doesnt display HTML5 items anymore.
    Should I remove the function then the HTML5 hinting reappears.
    How do I get the code hinting to work when I add in the function?
    Thanks
    Herman

    Herman Kramer wrote:
    Thanks for this. Please keep me posted if this is a bug or not.
    For now it does look like a bug. Let's wait for someone from Product team to revert.

  • CommandButton's rendered attribute doesn't work inside dataTable

    Hi,
    I don't know if anyone could help me...
    I need to access a list of "alarms" in my jsp file (which is rendered by "alarmHandler.sortedGenericDataModel"). For each "alarm" of the list, I test the "alarm.alarmStatus" and I want to create the desired button depending on the it. I'm trying to use the "rendered" attribute to manage the fact the button will be created or not. Note that when I use the "disabled" attribute, everything works fine, but I don't want to use the disabling option, I prefer to don't show the button at all.
    I have a NullPointerException when I run this code (the stack trace of this exception is show at the buttom of this message):
    <h:dataTable value="#{alarmHandler.sortedGenericDataModel}" var="alarm"
    rows="#{alarmHandler.noOfRows}"
    first="#{alarmHandler.firstRowIndex}"
    styleClass="tablebg" rowClasses="oddRow, evenRow"
    columnClasses="left, left, left, right, left" width="100%">
         <h:column>
    <f:facet name="header">
    <h:outputText value="#{labels['alarm.label.action']}" />
    </f:facet>
              <h:commandButton value="#{labels['alarm.label.toActivate']}"
              rendered="#{alarm.alarmStatus != '3'}"
              action="#{alarmHandler.activate}" immediate="true" />
              <h:commandButton value="#{labels['alarm.label.toAcknowledge']}"
              disabled="#{alarm.alarmStatus != '1'}"
              action="#{alarmHandler.acknowledge}" immediate="true" />
              <h:commandButton value="#{labels['alarm.label.toClose']}"
                   disabled="#{alarm.alarmStatus != '2'}"
                   action="#{alarmHandler.close}" immediate="true" />          
    </h:column>
    </h:dataTable>
    *** Here is the stack trace of the error:
    2004-08-30 11:33:13,902 13307343 ERROR [org.jboss.web.localhost.Engine] (http-0.0.0.0-8643-Processor5:) ApplicationDispatcher[abox] Servlet.service() for servlet jsp threw exception
    javax.faces.el.EvaluationException: java.lang.NullPointerException
         at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:206)
         at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:154)
         at javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:307)
         at javax.faces.webapp.UIComponentTag.isSuppressed(UIComponentTag.java:838)
         at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:470)
         at com.sun.faces.taglib.html_basic.CommandButtonTag.doStartTag(CommandButtonTag.java:469)
         at org.apache.jsp.JSP.alarm.viewAlarmsTemplate_jsp._jspx_meth_h_commandButton_0(viewAlarmsTemplate_jsp.java:588)
         at org.apache.jsp.JSP.alarm.viewAlarmsTemplate_jsp._jspx_meth_h_column_1(viewAlarmsTemplate_jsp.java:505)
         at org.apache.jsp.JSP.alarm.viewAlarmsTemplate_jsp._jspx_meth_h_dataTable_1(viewAlarmsTemplate_jsp.java:445)
         at org.apache.jsp.JSP.alarm.viewAlarmsTemplate_jsp._jspx_meth_h_form_0(viewAlarmsTemplate_jsp.java:202)
         at org.apache.jsp.JSP.alarm.viewAlarmsTemplate_jsp._jspService(viewAlarmsTemplate_jsp.java:125)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:703)
         at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:589)
         at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
         at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
         at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:581)
         at org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:137)
         at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:177)
         at org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:756)
         at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:881)
         at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:473)
         at org.apache.jsp.JSP.generic.template_jsp._jspx_meth_tiles_insert_3(template_jsp.java:382)
         at org.apache.jsp.JSP.generic.template_jsp._jspx_meth_f_subview_3(template_jsp.java:346)
         at org.apache.jsp.JSP.generic.template_jsp._jspx_meth_f_view_0(template_jsp.java:146)
         at org.apache.jsp.JSP.generic.template_jsp._jspService(template_jsp.java:80)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:703)
         at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:589)
         at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
         at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
         at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:581)
         at org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:137)
         at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:177)
         at org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:756)
         at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:881)
         at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:473)
         at org.apache.jsp.JSP.alarm.viewAlarmsLayout_jsp._jspx_meth_tiles_insert_0(viewAlarmsLayout_jsp.java:100)
         at org.apache.jsp.JSP.alarm.viewAlarmsLayout_jsp._jspService(viewAlarmsLayout_jsp.java:74)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:703)
         at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
         at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:147)
         at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:703)
         at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
         at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:147)
         at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
         at org.apache.struts.faces.application.FacesTilesRequestProcessor.doForward(FacesTilesRequestProcessor.java:144)
         at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
         at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:320)
         at org.apache.struts.faces.application.FacesTilesRequestProcessor.processForwardConfig(FacesTilesRequestProcessor.java:260)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at com.thevco.abox.web.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:166)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:72)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:275)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.NullPointerException
         at org.apache.struts.faces.application.PropertyResolverImpl.getValue(PropertyResolverImpl.java:146)
         at com.sun.faces.el.impl.ArraySuffix.evaluate(ArraySuffix.java:167)
         at com.sun.faces.el.impl.ComplexValue.evaluate(ComplexValue.java:151)
         at com.sun.faces.el.impl.BinaryOperatorExpression.evaluate(BinaryOperatorExpression.java:165)
         at com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:243)
         at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:173)

    mleblanc77:
    Thanks for your interest.
    I've modified one of our internal demos to try to reproduce your problem
    and cannot do so. Here is the operative JSP:
    <!-- ... -->
    <h:dataTable binding="#{UIDataBean.data}"
    value="#{list}"
    var="customer">
    <h:column>
         <h:commandButton id="press"
                   action="#{UIDataBean.press}"
                   rendered="#{customer.accountId != '123456'}"
                   immediate="true"
                   value="#{UIDataBean.pressLabel}"
                   type="SUBMIT"/>
    </h:column>
    </h:dataTable>
    <!-- ... -->
    Here's the customer bean
    public class CustomerBean implements Serializable {
    public CustomerBean() {
    this(null, null, null, 0.0);
    public CustomerBean(String accountId, String name,
    String symbol, double totalSales) {
    System.out.println("Created CustomerBean");
    this.accountId = accountId;
    this.name = name;
    this.symbol = symbol;
    this.totalSales = totalSales;
    private String accountId = null;
    public String getAccountId() {
    return (this.accountId);
    This seems to work fine. Can you try the latest weekly build from
    https://javaserverfaces.dev.java.net/servlets/ProjectDocumentList
    Thanks,
    Ed (JSF Co-spec lead)

  • OnPress doesn't work on image...

    Hi there,
    I am having a problem when trying to add an onPress handler
    to a JPG which is loaded into a movieclip.
    onPress doesn't work.
    ActionScript Code:
    for (i=0; i<ecards.length; i++) {
    var mc:MovieClip = attachMovie("recipient", "recipient"+i,
    i);
    mc.loadMovie("images/button.jpg");
    mc.onPress = function(){
    trace(this._name);
    "recipient" is a 100x75 rectangle (same size as JPG).
    if I comment the line "mc.loadMovie("images/button.jpg");" it
    displays only the original mc and traces the name property, but
    when I load the image into it, it doesn't trace it anymore.
    Any help would be appreciated.
    Thanks in advance!

    I got a solution from Ali Inhan at Actionscript.org:
    for (i = 0; i < ecards.length; i++) {
    var mcl:MovieClipLoader = new MovieClipLoader();
    var listener:Object = new Object();
    mcl.addListener(listener);
    listener.onLoadInit = function(m:MovieClip) {
    m.onPress = function() {
    trace(this._name);
    var mc:MovieClip = attachMovie("recipient", "recipient" + i,
    i); mcl.loadClip("images/button.jpg", mc);
    }

  • Paste to another instrument doesn't work...

    Paste to another instrument doesn't work. Paste function work only in the same instrument.
    Everytime when I try to "CMD+V" Logic crashes...

    Help us understand your problem.
    What exactly are you trying to copy and paste?
    If it's MIDI data from one istrument track in Arrange to another, this should work.
    If you're trying to copy settings (ie a particular sound) from one software instrument to another, that's obviously not possible as all AU's (Audio Instruments) have different parameters and are unique, so their settings will only work for each instrument.

  • Cfdocument doesn't work with my font size

    Hi All,
    My font size doesn't work inside my cfdocument using css
    Here is my code:
    In My css file I have this:
    body {     font-family:"times new roman";     font-size: 18px;     line-height: 20px; } 
    The font is a TTF and it shows in my cfadmin as:
    Font Family Font Face Postscript Name Font Type Useable In Path
    times new roman
    Times New Roman
    TimesNewRomanPSMT
    TRUETYPE
    PDF/FlashPaper
    c:\windows\fonts\times.ttf
    I try using postscript name and the same issue. If I increase the font size it actually reduce the size on the screen.
    I'm using windows 2008 with CF8 with the latest hotfix 8,0,1,195765
    Any ideas?
    Thanks in advance.
    Johnny

    Don't know why didn't show my code.
    Here is the code:
    <cfdocument format="flashpaper" pagetype="letter" fontembed="yes" margintop="0.3" marginbottom="1.25" marginleft="1" marginright="1.25" unit="in">
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" >
    <head>
        <style type="text/css" media="screen">
            @import url(assets/css/preview.css);
        </style>
    </head>

  • Line Drawing Script on Stage doesn't work in MovieClip?

    I have a little snippet of code that allows the user to create a line with the mouse, and clears the line if they end up touching the hitbox with the mouse, while they're drawing the line. It works fine when it's just thrown onto the main timeline. However, when I try to encapsulate it within a movie clip, it suddenly doesn't work. At all. Are there any suggestions as to why this is happening? Here's the code.
    function(){return A.apply(null,[this].concat($A(arguments)))}
    var drawing:Boolean;
    var my_line:MovieClip = new MovieClip();
    this.addChild(my_line);
    drawing = false;//to start with
    stage.addEventListener(MouseEvent.MOUSE_DOWN, startDrawing);
    stage.addEventListener(MouseEvent.MOUSE_MOVE, draw);
    stage.addEventListener(MouseEvent.MOUSE_UP, stopDrawing);
    function startDrawing(event:MouseEvent):void
    //move to the correct starting position for drawing
    my_line.graphics.lineStyle(3,0xFF0000);
    my_line.graphics.moveTo( mouseX, mouseY);
    if (drawBox.hitTestPoint(mouseX,mouseY,true))
      drawing = true;
    function draw(event:MouseEvent)
    if (drawing)
      my_line.graphics.lineTo(mouseX,mouseY);
      if (oneHitBox.hitTestPoint(mouseX,mouseY,true))
       my_line.graphics.clear();//remove line
    function stopDrawing(event:MouseEvent)
    drawing = false;
    Thanks for any help you can offer!

    Oh! Haha, sorry, brainfart. That is all of the code that I use in that particular frame, where I want the user to be able to draw within the confines of the box. The only other code I use are for the drag and drop boxes, meant to be dropped onto a particular area. Those are working just fine, but if you want to see that code too, then:
    function(){return A.apply(null,[this].concat($A(arguments)))}
    /* Stop at This Frame
    The Flash timeline will stop/pause at the frame where you insert this code.
    Can also be used to stop/pause the timeline of movieclips.
    stop();
    /* Drag and Drop
    Makes the specified symbol instance moveable with drag and drop.
    lunchOff.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag);
    function fl_ClickToDrag(event:MouseEvent):void
    lunchOff.startDrag();
    stage.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop);
    function fl_ReleaseToDrop(event:MouseEvent):void
    lunchOff.stopDrag();
    if (lunchOff.hitTestObject(dropBoxTwo))
      if (offDuty.hitTestObject(dropBoxThree) && onDuty.hitTestObject(dropBoxOne) && lunchOff.hitTestObject(dropBoxTwo))
       gotoAndStop(16);
       stage.focus = aBox;
    else
      lunchOff.x = -548.95;
      lunchOff.y = -306.15;
    /* Drag and Drop
    Makes the specified symbol instance moveable with drag and drop.
    offDuty.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag_2);
    function fl_ClickToDrag_2(event:MouseEvent):void
    offDuty.startDrag();
    stage.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop_2);
    function fl_ReleaseToDrop_2(event:MouseEvent):void
    offDuty.stopDrag();
    if (offDuty.hitTestObject(dropBoxThree))
      if (offDuty.hitTestObject(dropBoxThree) && onDuty.hitTestObject(dropBoxOne) && lunchOff.hitTestObject(dropBoxTwo))
       gotoAndStop(16);
       stage.focus = aBox;;
    else
      offDuty.x = -557.0;
      offDuty.y = -155.95;
    /* Drag and Drop
    Makes the specified symbol instance moveable with drag and drop.
    onDuty.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag_3);
    function fl_ClickToDrag_3(event:MouseEvent):void
    onDuty.startDrag();
    stage.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop_3);
    function fl_ReleaseToDrop_3(event:MouseEvent):void
    onDuty.stopDrag();
    if (onDuty.hitTestObject(dropBoxOne))
      if (offDuty.hitTestObject(dropBoxThree) && lunchOff.hitTestObject(dropBoxTwo))
       gotoAndStop(16);
       stage.focus = aBox;
    else
      onDuty.x = -539.00;
      onDuty.y = 39.45;

  • DLL build by Labview App Builder doesn't work if Built-IN functions used!?

    Hi All,
    I hope somebody shed some light on this;
    (All VIs are in the attached case1-2.zip)
    Case 1:
    A VI reads a 1D array data and Uses RMS.vi to calc the rms of the data and returns the rms value and the error value. (make1_dll.vi).
    This VI is used to build a DLL. (test1.dll using the test1.bld)
    Call this DLL in a new VI (just to test that the DLL works) (test1.vi)
    RUN the new VI >>> Result Nothing happens No Error or Crash and No result!!!
    Case2 :
    Build the above without using the “RMS.vi” and works OK. (see case2 VIs)
    Any idea why the build-in function doesn’t work?
    Best regards
    Attachments:
    case1-2.zip ‏44 KB

    Joel A wrote:
    You might want to look at the path building you are doing to find the RMS VI. If you are using relative paths, then LabVIEW calls like "VI Path" will have an extra path if the VI is an exe or inside an LLB.
    Drop some probes (indicators, outputs, etc.), rebuild and double check the paths. I've been burned by this before...
    If this is the case, you can use the VI properties, or path parsing to solve it.
    joel
    I don't think that is the problem. The RMS.vi is referenced as statically linked VI in the make1_dll.vi.
    As such it should be linked into the LabVIEW DLL as well. What I suspect is the problem is the fact that
    the RMS.vi uses the lvanlys.dll and that for some reason there is something going wrong with the LabVIEW
    test1.dll, which runs in the LabVIEW runtime context, calling lvanlys.dll while executed in the context
    of LabVIEW itself. Probably something to do with the changes to how lvanlys.dll is treated between LV 7.0
    and 7.1.
    I see this same behaviour on my system too, so an installation problem is quite unlikely. Other than that calling a LabVIEW dll from within LabVIEW makes not that much sense (but did work fine in the past save from some hassles in 6.0 and 6.0.1), I have no explanation why this doesn't work.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Stop(); within movieclip doesn't work and all my other code doesn't run

    Hey guys,
    I've got a movieclip which has the code stop(); written within it, so that it doesn't play unless i interact with it. What happens now is that when i run the swf file, the entire movie keeps looping, and all my other code just doesn't run.
    I've named my instances buyButton and so on but yeah, somehow it just ignores all my code and just loops. Help!

    Hi Ned,
    In the main timeline it's just one frame yes. So on my main timeline there is a movieclip. Within that movie clip is an animation that adjusts the 'shine' on it. That animation is 20 frames long and i put a stop(); on the first frame inside that movieclip, with the intention that when i publish the swf, the movieclip doesn't loop, but should stop on the first frame. Only if i start to move my cursor over the movieclip, then it has feedback, which is to play the 'shine' animation. That sorta thing. So i had some code in the actionscript layer which edits the text property of the movieclip and it changes from "Click to Buy"(as shown in the screenshot) to "Buy a Shirt!".
    However, when i publish the swf file, the other code, like the one which changes the text property of the movieclip is ignored and also the stop(); function within that movieclip too. And i end up having a movieclip which constantly loops within itself. Other code which i put in, like setting the buttonMode = true and useHandCursor = true are also ignored. The odd thing is that there are no error in my output window. and my publish settings are set to use Actionscript 3.
    EDIT: sorry i used my other account on this haha

Maybe you are looking for

  • Problems on OSX, items not loading.

    I'm using Firefox 8.0.1 on an iMac running OS 10.6.8 and having serious issues. Certain websites will not load all their content. For example, at the NOAA website, the weather map will not load, on Google Maps I click on photos and it will not open t

  • Wrapping Text to a New Line in a Single Text Field.

    I was wondering is it possible to conintue text in the same text field that runs out of space on a line to a new line in the same text field.  If this is possible could someone please advise. i.e: alot of text and random txt [ text box    text ] more

  • Reading VBAK, VBAP and VBFA table during a process

    Hi friends, I have an execution DUMP in a Z report, so I would be very thankful if you can give me your expert opinion. I have a Z report which collects some information into an internal table. After that, I need to go over each record and read VABK,

  • Verizon is FULL of Lies

    I switched to Verizon 5 months ago (Nov 2014) after being with AT&T for 6 years. It has been the worse mistake I've made in a wireless carrier. I've experience issue after issue with my LG G2, replacements had the same issue. I've been told by 5 CSRs

  • Transferring images from memory card in printer to iMac.

    My camera just broke, and I am unable to download the pictures from my camera's memory card onto my Mac (I am using version 10.6.8).  I usually just plug my camera into my Mac via the USB port, but I am now unable to do that.  My printer has a memory