Multiple timeout objects (object declaration problem?)

So what I'm trying to do here is create 4 separate timeOut objects that are each applied to 4 different sprites. Each has a variable for the duration that is set to 0 by default so that it does not even check to call the timeout handlers. When the user clicks on a sprite, the variable associated with that sprite's related timer duration is set to 5 seconds. When that timer runs out, the handler that is called stops the timer, resets the duration variable of the timer to 0, and changes that particular sprite's image.
Essentially, I want it so that the user can click each individual sprite and have each sprite change its image 5 seconds after that specific sprite was clicked.
While my code is probably repetitive and clunky, it seems like it should work to me - but I am no expert by far. It compiles fine, but when it runs, I get this message:
Script error : Object expected
timer1 = timeOut().new("timer1", timeoutDuration1, #timeOut1, me)
What exactly did I do wrong? I'm assuming it's some kind of simple syntax error but I can't figure out what. I've tried changing the name of the timer objects, setting them as global properties, etc., all I can think to do, but I can't figure it out. Or am I doing it entirely wrong altogether? Thank you SO much to anyone who can provide help.
My code is below.
property spriteNum, pMySpriteRef
property timeOut1, timeOut2, timeOut3, timeOut4
on beginSprite me
  timeoutDuration1 = 0
  timeoutDuration2 = 0
  timeoutDuration3 = 0
  timeoutDuration4 = 0
  timer1 = timeOut().new("timer1", timeoutDuration1, #timeOut1, me)
  timer2 = timeOut().new("timer2", timeoutDuration2, #timeOut2, me)
  timer3 = timeOut().new("timer3", timeoutDuration3, #timeOut3, me)
  timer4 = timeOut().new("timer4", timeoutDuration4, #timeOut4, me)
end
on enterFrame me 
  if (_mouse.clickOn = me.spriteNum) then
    pMySpriteRef = sprite(me.spriteNum)
    if pMySpriteRef = 1 then
      timeoutDuration1 = 5000
    else if pMySpriteRef = 2 then
      timeoutDuration2 = 5000
    else if pMySpriteRef = 3 then
      timeoutDuration3 = 5000
    else if pMySpriteRef = 4 then
      timeoutDuration4 = 5000
    end if
  end if
end
on timeOut1 me
  timeOut("timer1").forget()
  timeoutDuration1 = 0
  sprite(1).member = "Jellyfish_new_1"
end
on timeOut2 me
  timeOut("timer2").forget()
  timeoutDuration2 = 0
  sprite(2).member = "Jellyfish_new_1"
end
on timeOut3 me
  timeOut("timer3").forget()
  timeoutDuration3 = 0
  sprite(3).member = "Jellyfish_new_1"
end
on timeOut4 me
  timeOut("timer4").forget()
  timeoutDuration4 = 0
  sprite(4).member = "Jellyfish_new_1"
end

Is it possible you're updating an older movie that has its scriptExecutionStyle set to 9? What does the following tell you when executed from the message window:
put the scriptExecutionStyle
If it returns 9, change this by executing
the scriptExecutionStyle = 10
again from the message window and save your file. Timeouts should now work as expected (test and confirm).

Similar Messages

  • Multiple multi state objects

    Hello all,
    I want to export the multiple Multi state objects from Indesign.
    var mso_total_count = MSO.states.length - app.documents[0].multiStateObjects.length;
         for (var i = 1; i <= mso_total_count; i++)   
                var imageName = imgName_mso+".png";
                imageSavePath = File( "~/Desktop/omnion_mw/"+nav_Project_Name+"/images/"+ imageName); 
                MSO.states[i].pageItems[0].exportFile(ExportFormat.PNG_FORMAT, imageSavePath);
                var add_event = MSO.states[i].pageItems[0].addEventListener;
    By using this i am getting images of only one multi state object. If i have multiple multi state objects are there like Muti-state 1, Multi-stste 2 etc it doesnt work.
    Can anyone help me on this.

    @piggychops – I'm not  exactly sure, but by that code you only cycle through the states of the MSOs.
    You never change its visible appearance on the page, because the active state of the MSO is always the same state.
    So you'll end up with always the same contents that is exported to PNG (do you get that result?).
    To get all states active, set the states in the loop (one after another) to the active one and then export to PNG.
    MSO.states[i].active = true;
    But before, store the current active state, so that you can return to the original appearance…
    Something slightly different, but the code may help you (all comments are in German, but that should be no problem):
    Multistateobject exportFile Problem
    http://www.hilfdirselbst.ch/gforum/gforum.cgi?post=498745#498745
    http://www.hilfdirselbst.ch/gforum/gforum.cgi?post=498942#498942
    Uwe

  • Multiple advertizers for object

    I've a BC4J Dacf application with a base frame calling other frames wich contains each one it's own session.
    When I call a "child" frame all is OK, when I recall it a second time (closing or not the previois one) I get an "multiple advertizer for object" error.
    I close the child frame with a setVisible(false) instruction in the processWindowEvent.
    Any suggestion ?
    TIA
    Tullio

    I've had the same problem here too.
    I've been trying various work-arounds for
    the problem, but I have not been successful.
    I tried to put in a flag so that I only
    call publishRowSet() the first time I
    define an object, but I've found that this
    only causes another problem, saying that
    the rowset has not been opened for these.
    I never had this problem until I upgraded
    to JDeveloper 3.2.3.
    Anybody have any ideas for this one?

  • Multiple fill blank objects on one question slide?

    Hellou CP users, is it possible to put multiple fill blank objects on one question slide? And if, how can I manage them for quiz reporting and correct results?
    Yarik

    I think indeed that you want a score for each fill-in-the-blank object, and that is not possible with the default FIB question slides. Only MCQ has partial scoring.
    With TEB's and advanced actions that is possible. Also with the TextArea widget, as I explained in this blog post:
    http://blog.lilybiri.com/widgets-and-custom-questions-part-2
    http://blog.lilybiri.com/extended-textarea-widget-more-functionality
    TEB's have the advantage that as interactive objects, you can attach a score to them which is not the case for the TextArea widgets. But I would recommend getting Jim Leichliter's enhanced version of the TEB's as well, so that you can control what is shown in the TEB if you want to create a question with multiple attempts. I have described a use case recently in these forums but cannot remember exactly which thread. Jim's widget is free:
    http://captivatedev.com/2012/09/16/adobe-captivate-6-x-free-widget-text-entry-box-with-var iables/

  • Script to load multiple linked smart objects to stack

    Hi
    we have a workflow where we work with exr images, and load about 15 of them at a time into a stack, then from there convert them into smart objects.
    As the linked smart objects is out this means we can replace a folder full of images and update them which would save opening up the psd and having to replace conent on all smart objects.
    but can't seem to find a way to load multiple smart linked objects in with out having to do 1 by 1.
    Is there a simple script to do this?
    Thanks

    I had asked Adobe about a modified script to do this, but at this time, they didn't seem interested in developing it.  Perhaps if more people ask for it they would add this feature, which would be extremely handy.  Don't know if anyone has come up with their own script for this yet, but I'm sure someone will.

  • Vectors with multiple types of objects

    Ok, this is what i need. I have a main class, EquationVector, and i have four smaller classes, MathPrimitive, which is abstract and all of the following classes extend, Number which just holds numbers, Operator which takes care of what type it is and what to do, and Variable, which knows its value, its coef and its power. I use the MathPrimitive class because all of the other classes need to have a common getType() method, plus it holds static values for all the possible types. What i need is some sort of storage method that is dynamically resizeable, and can handle multiple types of objects. I tried vector, but it doesnt work, even when i cast. I want to be able to do something to the effect of
    myArray.elementAt(index).getOperatorType()
    and be able to get the operator type if its an operator, but at the same time be able to do
    myArray.elementAt(index).getCoef()
    and be able to get the coeficient if its a variable. I'm not sure if this is actually possible, so if anybody has any good ideas i would be really apreciative. Thank you.

    Vector will absolutely work, as will ArrayList
    You just better make sure you know what kind of objects are at what slots in the vector.
    opType = ((MathPrimitive) myArray.elementAt(index)).getOperatorType();
    If you don't know what type of object is at a particular slot you can always use
    Object o = myArray.elementAt(index);
    if (o instanceof MathPrimitive)
    else
    ....

  • Object# object has no method "on" -- Chrome

    So, I have been trying to trouble shoot the error above. I have been able to find a work around for some of the CSS errors I have had within IE10 and on and off in Firefox. Chrome is the one that tends to be the problem at this point.
    Website: http://www.kaneprinting.com
    The error either comes up as
    Type Error: Object#<object> has no method "tobrowserwidth"
    or
    Type Error: Object#<object> has no method "on"
    The second error is the one that happens more frequently and the one that I am most worred about.
    If someone could please help me to get ride of this error that would be wonderful. From everything that I can tell it might have something to do with the lightbox feature I have on the "Join Mailing List" at the top of the page as this happens on every page in chrome. The lightbox has some embeded code in it which I added as we wanted users to be able to join the mail list and have it validate their entries.
    Please advise as soon as you can.
    Best, John

    I was contacted by Adobe regarding my error and I was informed that I was running two differen versions of jQuery at the same time which is a no, no. jQuery does not like to have multiple versions loaded at the same time, but if you needed to you could always run one after another, but it would take longer for the page to load. In my case I changed the embeded code in my lightbox under the "Join Our Mailing List". The embeded code uses jQuery version 1.4.4 while the jQuery version that Muse uses is version 1.8.3. To resolve this problem I simply change the 1.4.4 to being 1.8.3. While jQuery is not always backwards compatible, I was lucky on this item as it appears to be backwards compatiable.
    I would also like to note that I had originally placed my CSS for this code inline with the coding, but I then removed it and placed it in the head as this helped with some of the problems as well. It is always better to create seperate CSS and .js files and then have your code reference these files. I will work on this in the coming days.
    -John

  • Uncaught TypeError: Object [object Object] has no method 'stringify'

    Hi,
    I've been working with a fairly simple animation on my site for a while now. I didn't change anything to do with it for the longest time, but something's obviously happened, because now when i run the animation, i get "Uncaught TypeError: Object [object Object] has no method 'stringify'      animate/2.0.0/edge.2.0.0.min.js" from Chromes Console Log. I have no idea what this means, but it has something to do with the json. I'm not sure if my image is being loaded, but there's no reason it shouldn't be, since i never changed the path of it. Can somebody tell me what "Object [object Object]" is supposed to refer to?
    Thanks!
    P.S My animation setup is just the stage, with about 17 copies of an .svg that i use as a sprite sheet, plus some text. Every single object has animations that include opacity, top, left, and height.

    I was contacted by Adobe regarding my error and I was informed that I was running two differen versions of jQuery at the same time which is a no, no. jQuery does not like to have multiple versions loaded at the same time, but if you needed to you could always run one after another, but it would take longer for the page to load. In my case I changed the embeded code in my lightbox under the "Join Our Mailing List". The embeded code uses jQuery version 1.4.4 while the jQuery version that Muse uses is version 1.8.3. To resolve this problem I simply change the 1.4.4 to being 1.8.3. While jQuery is not always backwards compatible, I was lucky on this item as it appears to be backwards compatiable.
    I would also like to note that I had originally placed my CSS for this code inline with the coding, but I then removed it and placed it in the head as this helped with some of the problems as well. It is always better to create seperate CSS and .js files and then have your code reference these files. I will work on this in the coming days.
    -John

  • How to handle [object Object] in textArea (Flex 4.5)

    Hello
    My code:
    protected function myDG_selectionChangeHandler(event:GridSelectionEvent):void
                            var selItems:Vector.<Object> = event.currentTarget.selectedItems;
                                                 var numItems:Number = selItems.length;
                                                for (var i:Number = 0; i<numItems; i++)
                                                      selectedItemsTA.text = selectedItemsTA.text + selItems[i] + "\n";
    Currently I'm just trying to make multiple selections in a datagrid and reflect those in a text area control.
    My selections just come across as [object Object]. So, obviously I don't know for sure what data is behind that.
    It's really not much different from the example here: http://help.adobe.com/en_US/flex/using/WSc2368ca491e3ff923c946c5112135c8ee9e-7fff.html but their textarea is reset to empty each time through, and I'm using a datagrid vs. their list, and of course the event type.
    Thanks
    Kristin

    Hi again
    Okay, I got it.
    See, there are these little nuances that are hard to pick up sometimes.
    Thanks
    KRistin

  • Tree component children displays [Object, Object] need help displaying the names :)

    hey guys... i've run into yet another problem...
    i have a tree component that gets its data from a httpservice.. xml file.
    i then pasrse thru the recieved xml to create a dataprovider for the tree component. the code for that is below...
    <mx:Tree id="tree" dataProvider="{treeData2}" showRoot="false" width="50%" height="100%" />
    [Bindable] public var treeData2:ArrayCollection = new ArrayCollection;
    [Bindable] public var treeData:Object;
    public var resultArr:Object;
    public function initNavTab():void{
        var navService:HTTPService = new HTTPService();
        navService.url = "http://www.apxalarm.com/pages/getnav";
        navService.method = "POST";
        navService.useProxy = false;
        navService.resultFormat = "e4x";
        //navService.resultFormat = "array";
        navService.addEventListener(ResultEvent.RESULT, returnNavData);
        navService.addEventListener(FaultEvent.FAULT, navDataFault);
        navService.send();
    public function returnNavData(event:ResultEvent):void{
        navData = event.result;
        //resultArr = event.result;
        Alert.show("load complete");
        tree_labelFunc(navData);
    public function navDataFault(event:FaultEvent):void{
        Alert.show(event.fault.faultDetail);
    public function tree_labelFunc(item:Object):void{
        var node:XML = XML(item);
        var nav:XMLList = new XMLList();
        nav = node.sections;
        var i:Number = 0;
        for each (var section:XML in nav.section){
            var obj:Object = new Object();
            obj.label = section.name;
            obj.urlName = section.urlName;
            obj.children = new ArrayCollection;
                for each(var nav1:XML in section.navs.nav){
                    obj.children.addItem([{label: nav1.name}]);
            treeData2.addItem(obj);
    the tree_labelFunc parces thru the xml and creates the appropriate structure i need to be displayed in the tree component... but unfortunately the children of the tree component only shows [Object, Object]
    can someone show me how to display the labels instead of the Object???
    thank you soo much in advace guys!!! i really appretiate it!!!
    oh and this is part of the xml that it is pulling
    <siteMap>
      <sections>
        <section>
          <name>About APX</name>
          <urlName>about</urlName>
          <position>1</position>
          <defaultaction>/about/mission</defaultaction>
          <navs>
            <nav>
              <name>Our Mission</name>
              <urlName>mission</urlName>
              <position>1</position>
              <defaultaction>13</defaultaction>
              <subNavs/>
            </nav>
            <nav>
              <name>Links</name>
              <urlName>links</urlName>
              <position>4</position>
              <subNavs>
                <nav>
                  <name>iamapx.com</name>
                  <urlName>iamapx</urlName>
                  <position>1</position>
                  <defaultaction>http://www.iamapx.com</defaultaction>
                  <subNavs/>
                </nav>
                <nav>
                  <name>apxgivesback.com</name>
                  <urlName>agb</urlName>
                  <position>2</position>
                  <defaultaction>http://www.apxgivesback.com</defaultaction>
                  <subNavs/>
                </nav>
              </subNavs>
            </nav>
            <nav>
              <name>Newsletter</name>
              <urlName>newsletter</urlName>
              <position>3</position>
              <defaultaction>37</defaultaction>
              <subNavs/>
            </nav>
          </navs>
        </section>
        <section>
        </section>
        <section>
        </section>
        <section>
        </section>
        <section>
        </section>
        <section>
        </section>
      </sections>
    </siteMap>
    i need the name tags in the xml to be displayed in the tree component....
    again thank you soo much in advace for your help!!

    thank you soo much for your quick responce alex!!
    the toXMLString is exactly like the xml
    <siteMap>
      <sections>
        <section>
          <name>About APX</name>
          <urlName>about</urlName>
          <position>1</position>
          <defaultaction>/about/mission</defaultaction>
          <navs>
            <nav>
              <name>Our Mission</name>
              <urlName>mission</urlName>
              <position>1</position>
              <defaultaction>13</defaultaction>
              <subNavs/>
            </nav>
            <nav>
              <name>Links</name>
              <urlName>links</urlName>
              <position>4</position>
              <subNavs>
                <nav>
                  <name>iamapx.com</name>
                  <urlName>iamapx</urlName>
                  <position>1</position>
                  <defaultaction>http://www.iamapx.com</defaultaction>
                  <subNavs/>
                </nav>
                <nav>
                  <name>apxgivesback.com</name>
                  <urlName>agb</urlName>
                  <position>2</position>
                  <defaultaction>http://www.apxgivesback.com</defaultaction>
                  <subNavs/>
                </nav>
              </subNavs>
            </nav>
            <nav>
              <name>Newsletter</name>
              <urlName>newsletter</urlName>
              <position>3</position>
              <defaultaction>37</defaultaction>
              <subNavs/>
            </nav>
          </navs>
        </section>
        <section>
          <name>APX Security Systems</name>
          <urlName>apxsystems</urlName>
          <position>2</position>
          <defaultaction>/apxsystems/systems/products</defaultaction>
          <navs>
            <nav>
              <name>Service Areas</name>
              <urlName>serviceareas</urlName>
              <position>1</position>
              <defaultaction>25</defaultaction>
              <subNavs/>
            </nav>
            <nav>
              <name>Systems</name>
              <urlName>systems</urlName>
              <position>2</position>
              <defaultaction>27</defaultaction>
              <subNavs>
                <nav>
                  <name>Get A System</name>
                  <urlName>get</urlName>
                  <position>2</position>
                  <defaultaction>27</defaultaction>
                  <subNavs/>
                </nav>
                <nav>
                  <name>Browse Products</name>
                  <urlName>products</urlName>
                  <position>1</position>
                  <defaultaction>28</defaultaction>
                  <subNavs/>
                </nav>
                <nav>
                  <name>Refer A Friend</name>
                  <urlName>refer</urlName>
                  <position>3</position>
                  <defaultaction>38</defaultaction>
                  <subNavs/>
                </nav>
              </subNavs>
            </nav>
          </navs>
        </section>
        <section>
          <name>Customer Support</name>
          <urlName>support</urlName>
          <position>3</position>
          <defaultaction>/support/specialist</defaultaction>
          <navs>
            <nav>
              <name>Technical Support</name>
              <urlName>tech</urlName>
              <position>2</position>
              <defaultaction>32</defaultaction>
              <subNavs>
                <nav>
                  <name>Troubleshooting</name>
                  <urlName>troubleshooting</urlName>
                  <position>2</position>
                  <defaultaction>32</defaultaction>
                  <subNavs/>
                </nav>
              </subNavs>
            </nav>
            <nav>
              <name>Speak To A Specialist</name>
              <urlName>specialist</urlName>
              <position>1</position>
              <defaultaction>30</defaultaction>
              <subNavs/>
            </nav>
            <nav>
              <name>Move Options</name>
              <urlName>moves</urlName>
              <position>3</position>
              <defaultaction>35</defaultaction>
              <subNavs/>
            </nav>
          </navs>
        </section>
        <section>
          <name>Home Safety</name>
          <urlName>safety</urlName>
          <position>4</position>
          <defaultaction>/safety/outside</defaultaction>
          <navs>
            <nav>
              <name>Indoor Tips</name>
              <urlName>inside</urlName>
              <position>1</position>
              <defaultaction>17</defaultaction>
              <subNavs/>
            </nav>
            <nav>
              <name>Outdoor Tips</name>
              <urlName>outside</urlName>
              <position>2</position>
              <defaultaction>18</defaultaction>
              <subNavs/>
            </nav>
          </navs>
        </section>
        <section>
          <name>Customer Stories</name>
          <urlName>stories</urlName>
          <position>5</position>
          <defaultaction>/stories/videos</defaultaction>
          <navs>
            <nav>
              <name>Videos</name>
              <urlName>videos</urlName>
              <position>3</position>
              <defaultaction>15</defaultaction>
              <subNavs/>
            </nav>
            <nav>
              <name>Read Stories</name>
              <urlName>read</urlName>
              <position>1</position>
              <defaultaction>19</defaultaction>
              <subNavs/>
            </nav>
            <nav>
              <name>Tell Your Story</name>
              <urlName>tell</urlName>
              <position>2</position>
              <defaultaction>20</defaultaction>
              <subNavs/>
            </nav>
          </navs>
        </section>
        <section>
          <name>Newsroom</name>
          <urlName>press</urlName>
          <position>6</position>
          <defaultaction>/press/compprofile</defaultaction>
          <navs>
            <nav>
              <name>Press Releases</name>
              <urlName>pr</urlName>
              <position>2</position>
              <defaultaction>21</defaultaction>
              <subNavs/>
            </nav>
            <nav>
              <name>Media Kit</name>
              <urlName>media</urlName>
              <position>3</position>
              <defaultaction>22</defaultaction>
              <subNavs/>
            </nav>
            <nav>
              <name>Company Profile</name>
              <urlName>compprofile</urlName>
              <position>1</position>
              <defaultaction>34</defaultaction>
              <subNavs/>
            </nav>
            <nav>
              <name>Contact Us</name>
              <urlName>contact</urlName>
              <position>4</position>
              <defaultaction>39</defaultaction>
              <subNavs/>
            </nav>
          </navs>
        </section>
      </sections>
    </siteMap>
    i need to subNavs to be available within the tree dropdown...

  • Keep getting this: Sorry, an error occurred while trying to publish. {"status":500,"message":"Error: [object Object]"}

    My daughter is the first time user of Thimble. She is using your amazing tools to create a webpage but she can't save her work at all. Everytime she press SAVE, a message: Sorry, an error occurred while trying to publish. {"status":500,"message":"Error: [object Object]"} . Any suggestion to solving this problem will be greatly appreciated

    Reload the webpage while bypassing the cache
    *Hold down the ''Shift'' key and click the ''Reload'' button with a left click.
    *Press ''Ctrl'' + ''F5'' or ''Ctrl'' + ''Shift'' + ''R'' (Windows and Linux)
    *Press ''Command'' + ''Shift'' + ''R'' (Mac)
    Clear the cache and the cookies from sites that cause problems.
    '''Clear the Cache''': Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    '''Remove Cookies''' from sites causing problems:
    *Tools > Options > Privacy > Cookies: "Show Cookies"

  • When the combobox is rendered all the values displayed look like [object Object].

    I wasn't sure where to post this so please forgive me.
    I am trying to populate a combobox with a series of values
    returned from a Coldfusion method that retrives a resault froma
    database. Basically all the data from a table of staff.
    <cffunction name="getUsers" access="remote"
    returntype="array">
    <cfquery name="q" datasource="#datasource#">
    SELECT *
    FROM STAFF_CHARTS_STAFF_TEMP
    </cfquery>
    <cfset aRecordset= querytoarray(q)>
    <cfset flash.result=aRecordset>
    <cfreturn flash.result>
    </cffunction>
    <cffunction name="querytoarray" returntype="array"
    output="No">
    <cfargument name="q" required="Yes" type="query">
    <cfset var aTmp = arraynew(1)>
    <cfif q.recordcount>
    <cfloop query="q">
    <cfset stTmp = structNew()>
    <cfloop list="#lcase(q.columnlist)#" index="col">
    <cfset stTmp[col] = q[col][currentRow]>
    </cfloop>
    <cfset arrayAppend(aTmp,stTmp)>
    </cfloop>
    <cfelse>
    <cfset stTmp = structNew()>
    <cfloop list="#lcase(q.columnlist)#" index="col">
    <cfset stTmp[col] = "">
    </cfloop>
    <cfset arrayAppend(aTmp,stTmp)>
    </cfif>
    <cfreturn aTmp>
    </cffunction>
    The result from a call of CF method getUsers is set as the
    data provider to ComboBox with id = "cb"
    <mx:RemoteObject
    id="myService"
    destination="ColdFusion"
    source="staff_ratings.staff_Ratings-debug.staff"
    showBusyCursor="true">
    <mx:method name="getUsers" result="handleResult(event)"
    fault="Alert.show(event.fault.message)"/>
    </mx:RemoteObject>
    <mx:Script>
    <![CDATA[
    import mx.rpc.events.ResultEvent;
    import mx.controls.Alert;
    [Bindable]
    public var sResult:Array;
    public function handleResult(event:ResultEvent):void{
    sResult=event.result as Array;
    cb.dataProvider=sResult;
    ]]>
    </mx:Script>
    However when the combobox is rendered all the values
    displayed look like [object Object].
    I think the problem is that the result is a array of arrays
    so I need to find away to ectract a particular colun of data into
    the combobox
    How do I fix this?

    This is what I did for a single field.
    If you were wanting the to have muliple fields in the
    dropdown, I would concatenate them in the query.
    something like
    select fname + ' ' + lname + ' ' + anotherfield as tech from
    dbo.table
    <cffunction name="getTech" output="no" access="remote"
    returntype="query">
    <cfset var qTech="">
    <cfquery name="qTech" datasource="datasource">
    select tech
    from dbo.table
    group by tech
    order by tech
    </cfquery>
    <cfreturn qTech>
    </cffunction>
    <mx:RemoteObject
    id="dataManager"
    showBusyCursor="true"
    destination="ColdFusion"
    source="cust.components.cfgenerated.Records">
    <mx:method name="getMasterQuery"
    result="getMasterQuery_result(event)" fault="server_fault(event)"
    />
    <mx:method name="deleteItem"
    result="deleteItem_result(event)" fault="server_fault(event)" />
    </mx:RemoteObject>
    <mx:ComboBox id="TECH"
    dataProvider="{dataManager.getTech.lastResult}" labelField="tech"
    />

  • AJAX Webform Error object Object?

    I am submitting a webform using AJAX and when I submit the form it does register as a submission in the backend but the message doesn't fade in and the form doesn't fade out. Instead I see this error in an alert:
    error[object Object]
    Here is the JS I am using:
    var $j = jQuery.noConflict();
        function jqsub() {
            var $f = $j('#reg-form');
            var $m = $j('#message');
            $j.ajax({
              type: 'POST',
              url: $f.attr('action') + '&amp;JSON=1',
              data: $f.serialize(),
                success: function(msg) {
                var formResponse = eval(msg);
                    if (formResponse.FormProcessV2Response.success) {
                            $m.fadeIn().html(formResponse.FormProcessV2Response.message);
                            $f.fadeOut();
                error: function(msg) {
                alert('error'+msg);
                return false;
    Is there something wrong with my code?
    As mentioned above the form does submit just doesn't work properly after the submission it would seem.
    How do I solve this error?

    I solved this problem.
    The BC form code looked like:
    <form id="reg-form" action="https://site-name.worldsecuresystems.com/FormProcessv2.aspx?WebFormID=77804&OID={module_oid}&amp;OTYPE={module_otype}&amp;EID={module_eid}&amp;CID={module_cid}&amp;CC={mo dule_urlcountrycode}&amp;Referrer={module_siteurl,true,true}&SWE=False&amp;JSON=1" enctype="multipart/form-data" onsubmit="return checkWholeForm67721(this)" method="post" name="catwebformform67721">
    If I remove the secure URL and start the action with /FormProcessv2.aspx?...  all works well.
    How would I modify my script to work with a secure URL?

  • Cannot save asset - Object [object global] has no method 'submitForm'

    Hi,
    I am getting following error message on the contributor UI everytime I create / save a flex asset. I am on 11G WCS.
    Object [object global] has no method 'submitForm'
    Anyone know how to fix this?
    thanks!

    It does seem like a Adobe code issue as I do not see any of
    your code in the trace stack.
    In the Adobe ListBase.as the line (1357) of code is commented
    as part of an if block. "if necessary, make the rows that will
    eventually be offscreen, above visible rows" There are a number of
    variables in the line and one or more of them is not defined. Thus
    that leads me to believe a timing problem with updating the
    DataGrid.
    However what code is listening to the event you are
    dispatching? Do you get there?

  • ITunes crash : incorrect checksum for freed object - object was probably modified after being freed

    Hi,
    Every time I start iTunes, it crashes with the following error :
    incorrect checksum for freed object - object was probably modified after being freed.
    The problem occurs after I last added new tunes from external mp3 files.
    Maybe a corrupted file ?
    How can this make iTunes crash ?
    Anyway, anybody knows how to find the guilty file ?
    Are there any logs ?
    Thanks.

    In the Console window, select
              DIAGNOSTIC AND USAGE INFORMATION ▹ User Diagnostic Reports
    (not Diagnostic and Usage Messages) from the log list on the left. There is a disclosure triangle to the left of the list item. If the triangle is pointing to the right, click it so that it points down. You'll see a list of crash reports. The name of each report starts with the name of the process, and ends with ".crash". Select the most recent report related to the process in question. The contents of the report will appear on the right. Use copy and paste to post the entire contents—the text, not a screenshot.
    I know the report is long, maybe several hundred lines. Please post all of it anyway.
    If you don't see any reports listed, but you know there was a crash, you may have chosen Diagnostic and Usage Messages from the log list. Choose DIAGNOSTIC AND USAGE INFORMATION instead.
    In the interest of privacy, I suggest that, before posting, you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if it’s present (it may not be.)
    Please don’t post other kinds of diagnostic report—they're very long and rarely helpful.

  • Web service returns [object Object] into Label

    I can return webService calls into a data grid fine, but if i
    try to bind a result to a Label or Text area i always get [object
    Object]
    returned. I can't figure out how to format them into their
    proper text?
    He is my string for the label
    <mx:Label x="10" y="421"
    text="{wsGetNames.getDetails.lastResult.lastName}"
    id="LastName_txt"/>
    If anyone has any help or ideas, it is appreciated.
    thank you.

    Sorry, there isn't enough information to determine exactly
    what issue you're running into but I do have a few debugging
    suggestions.
    In you web service result handler, print out the results
    which are returned from the server using the
    trace(mx.utils.ObjectUtil.toString(myResultObject)) method. This
    method will dump the object to flashlog.txt.
    You could also try
    {wsGetNames.getDetails.lastResult.lastName.toString()}
    - Cathy

Maybe you are looking for

  • Infoset functionality in BI-HR

    HI all, I worked on infoset, but functionality of Infoset with time dependent objects is different. Can any one share there experience with infoset scenarios in HR module implementations. 0HR_PA_0 and 0HR_PA_1 doesn't support delta , then how to capt

  • Unable to change password while first logon on windows server 2008 R2 SP1 system

    Hi Team, Ad team has created new account for me with change password on first logon setting When I logged in on Windows Server 2008 r2 SP1 system with my new credentials I get a error message stating that "You must change your password before logging

  • How to convert appleworks database

    How to use AppleWorks database in OSX 10.8.4?

  • A Macbook too far

    Hi all y'all. My wife uses her Macbook at work. The LAN there is in one building (house) and her office is in the far end of the next building (house). The connection to the LAN for the second house is wireless (not Mac hardware). The signal indicato

  • No Speakers With My iMac G4/800

    Just a follow up to my previous question. The person I bought the iMac g4/800 from told me that it never came with speakers when he bought it new. Were there some models that came without speakers. I cannot locate the model number on this machine. I