Get your own customer support community
 

How to Write Custom OpenZoom Descriptors?

Edited on 04/06/09
Hi all,

I'm working on a custom descriptor for openzoom, but I still have some problems showing images. My code looks like (in the "script" part of mxml file):

// data is of type XML derived from the parsing of the path,
//CustomDescriptor extends MultiScaleImageDescriptorBase and implements IMultiScaleImageDescriptor

var customDescr:CustomDescriptor = new CustomDescriptor ('somepath/descriptionfile.RDF',data)

var image:MultiScaleImage = new MultiScaleImage();
image.source = customDescr;

the execution gives the following error:

TypeError: Error #1009: Impossibile accedere a una proprietà o a un metodo di un riferimento oggetto null.
at org.openzoom.flex.components::MultiScaleImage/addImage()[/Users/dani/Documents/workspace/openzoom/src/main/flash/org/openzoom/flex/components/MultiScaleImage.as:413]
at org.openzoom.flex.components::MultiScaleImage/set source()[/Users/dani/Documents/workspace/openzoom/src/main/flash/org/openzoom/flex/components/MultiScaleImage.as:144]
at test_descriptor5/eslideDescr()[C:\Documents and Settings\David\My Documents\Flex Builder 3\test_descriptor5\src\test_descriptor5.mxml:91]
at test_descriptor5/completeHandler()[C:\Documents and Settings\David\My Documents\Flex Builder 3\test_descriptor5\src\test_descriptor5.mxml:129]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()

I really can't get why it's referring to a null object.
Thank you for your help

David
 
sad I’m frustrated
Inappropriate?
1 person has this question

The company marked this question as answered.

See the changes made to this question
User_default_medium