LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 




 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 01-13-2003, 04:08 AM
cablehead cablehead is offline
Registered User
 
Join Date: Jan 2003
Location: Oz
Posts: 27
Rep Power: 0
cablehead is on a distinguished road
XML::sendAndLoad with overridden target object

XML::sendAndLoad seems to ignore the targetXMLobject when I use an overridden object. For example, the following works:

------------
function onLoad(success) {
trace("mmm")
}

oXML = new XML()
oXML.onLoad = onLoad

// populate oXML

oXML.sendAndLoad( "http://localhost/flash/news/addNewsItem.asp", oXML )
--------------

but the following doesn't:

----------------
MyXML = function() {
super()
}
MyXML.prototype = new XML()

function onLoad(success) {
trace("mmm")
}

oXML = new MyXML()
oXML.onLoad = onLoad

// populate oXML

oXML.sendAndLoad( "http://localhost/flash/news/addNewsItem.asp", oXML )
--------------------

The documentation does say:

targetXMLobject An XML object created with the XML constructor method that will receive the return information from the server.

Has anyone else found you can't use an overridden XML object as the targetXMLobject in XML::sendAndLoad?

cheers,
Andy.
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kenny Bellew Sound Object Tutorial jumpingJack Sound and Music 23 05-03-2011 07:37 AM
Locating the Target Path of an Object candy Newbies 2 10-02-2007 04:06 PM
snapping an object to a target kirk.netiq Flash MX 2004 0 02-24-2005 05:16 PM
how to target my object? Gargoyle Actionscript 3.0 Components 0 11-10-2001 01:01 AM
How to determine target based on parent object angle? hamptonius Flash 5 Actionscript 1 08-20-2001 10:55 AM




All times are GMT. The time now is 02:11 PM.