How Do I Use OpenZoom with Papervision3D?
Hi Daniel
First off - awesome work! Totally brilliant bit of flash :)
But of course I wouldn't be here without a problem.. Basically I'm trying to load the OpenZoomViewer into another (as3) swf.. But I get the following message..
(my own trace) - "Trying to load: http://localhost/test/OpenZoomViewer...."
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at OpenZoomViewer/layout()
at OpenZoomViewer()
Interestingly if I just open the URL in a browser it works fine.
Any ideas? Or am I just silly in trying to put a deep zoomer in a papervision project? :)
Thanks again!
Hugo
First off - awesome work! Totally brilliant bit of flash :)
But of course I wouldn't be here without a problem.. Basically I'm trying to load the OpenZoomViewer into another (as3) swf.. But I get the following message..
(my own trace) - "Trying to load: http://localhost/test/OpenZoomViewer...."
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at OpenZoomViewer/layout()
at OpenZoomViewer()
Interestingly if I just open the URL in a browser it works fine.
Any ideas? Or am I just silly in trying to put a deep zoomer in a papervision project? :)
Thanks again!
Hugo
2
people have this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
The best answer from the company
-
Greg,
Glad you like it!
> Any ideas? Or am I just silly in trying to put a
> deep zoomer in a papervision project? :)
Actually, I think it's exciting that you're experimenting with Papervision3D & OpenZoom. Unfortunately, I don't have much experience with SWF modules and marshalling but I just had a look at the layout method you're referring to and my gut feeling says that the error you're getting has to do with a (possibly illegal) cross-SWF access to the stage object.
Could you please put in an extra check and confirm this?
Cheers,
Daniel
The company and 1 other person say
this answers the question
-
Inappropriate?replying to my own question here.. But have managed to get the nano viewer working and compiling in Flash CS3 (my word it's slow to compile :) so will hopefully be able to answer my own question here pretty soon..
I’m confident
-
Inappropriate?Greg,
Glad you like it!
> Any ideas? Or am I just silly in trying to put a
> deep zoomer in a papervision project? :)
Actually, I think it's exciting that you're experimenting with Papervision3D & OpenZoom. Unfortunately, I don't have much experience with SWF modules and marshalling but I just had a look at the layout method you're referring to and my gut feeling says that the error you're getting has to do with a (possibly illegal) cross-SWF access to the stage object.
Could you please put in an extra check and confirm this?
Cheers,
Daniel
The company and 1 other person say
this answers the question
-
Inappropriate?Hi Daniel..
Thanks for the reply - yep, you're right - it does have to do with access to the stage object. To test this I replaced all references to stage.stageHeight etc to a hard coded value and the error stopped occuring. However I just got other errors elsewhere.
If this were an AS2 project I'd simply put in a "this._lockroot = true" and the problem would go away but AS3 doesn't seem to have this functionality. Or perhaps it does and I've just not found it yet. Anyway, I'm going to mark this question as resolved even though I've got another whole bunch of errors to deal with.. But as none of them are the fault of OpenZoom it's unfair to post them here :)
I'll let you know how I get on though - my target goal is to have a zooming image as the texture of a 3D object. This may or may not work due to performance issues but well, there's only one way to find out :)
Thanks for your help..
Greg
I’m thankful
-
Inappropriate?Greg,
Sounds like a great idea to have a multiscale image as 3D texture. I'm not sure however, how well the coordinate system holds up once it is used in 3D. Nonetheless, I'd suggest you build a specialized texture component from the pieces in the OpenZoom SDK.
Let me know what you come up with!
Cheers,
Daniel
-
Inappropriate?What about your experiment ? i'd like to do the same thing, encapsulate a openzoom as a 3d texture, but probably in Away3d rather than Papervision...
Loading Profile...




EMPLOYEE