OpenZoom SDK From SVN Repository Is Broken
Hi everyone,
I am just trying to do a quick test with open zoom sdk, i am working with the flex sdk / eclipse / fdt
package {
import org.openzoom.flash.viewport.controllers.KeyboardController;
import org.openzoom.flash.viewport.controllers.MouseController;
import org.openzoom.flex.components.MultiScaleContainer;
import org.openzoom.flex.components.MultiScaleImage;
import flash.display.Sprite;
import flash.events.Event;
public class OpenZoomTest extends Sprite {
private var image:MultiScaleImage;
private var container:MultiScaleContainer;
public function OpenZoomTest() {
addEventListener(Event.ADDED_TO_STAGE, onStage);
}
private function onStage(event:Event):void {
image = new MultiScaleImage();
image.setActualSize(800, 600);
var mouseController:MouseController = new MouseController();
mouseController.minMouseWheelZoomInFactor = 2;
mouseController.minMouseWheelZoomOutFactor = 0.5;
mouseController.smoothPanning = false;
var keyboardController:KeyboardController = new KeyboardController();
image.controllers = [mouseController,
keyboardController];
image.source = "0448.xml";
addChild(image);
}
}
}
But I always receive this error :
[Fault] exception, information=TypeError: Error #1009:
Fault, addImage() at MultiScaleImage.as:183
183 container.sceneWidth = sceneWidth
Am I doing something wrong ? I am using the last open zoom sdk found on the svn repository
Thanks for your help
I am just trying to do a quick test with open zoom sdk, i am working with the flex sdk / eclipse / fdt
package {
import org.openzoom.flash.viewport.controllers.KeyboardController;
import org.openzoom.flash.viewport.controllers.MouseController;
import org.openzoom.flex.components.MultiScaleContainer;
import org.openzoom.flex.components.MultiScaleImage;
import flash.display.Sprite;
import flash.events.Event;
public class OpenZoomTest extends Sprite {
private var image:MultiScaleImage;
private var container:MultiScaleContainer;
public function OpenZoomTest() {
addEventListener(Event.ADDED_TO_STAGE, onStage);
}
private function onStage(event:Event):void {
image = new MultiScaleImage();
image.setActualSize(800, 600);
var mouseController:MouseController = new MouseController();
mouseController.minMouseWheelZoomInFactor = 2;
mouseController.minMouseWheelZoomOutFactor = 0.5;
mouseController.smoothPanning = false;
var keyboardController:KeyboardController = new KeyboardController();
image.controllers = [mouseController,
keyboardController];
image.source = "0448.xml";
addChild(image);
}
}
}
But I always receive this error :
[Fault] exception, information=TypeError: Error #1009:
Fault, addImage() at MultiScaleImage.as:183
183 container.sceneWidth = sceneWidth
Am I doing something wrong ? I am using the last open zoom sdk found on the svn repository
Thanks for your help
1
person has this problem
I have this problem, too!
Tell me when someone solves it.
The more people who report this problem, the more it gets noticed.
The more people who report this problem, the more it gets noticed.
The company marked this problem solved.
The best solutions from the company
-
Batkins,
I admit I had the same concerns, however once I tried Git there was no going back. Believe me, you will not miss Eclipse integration – its advantages far outweigh that missing link.
Cheers,
Daniel
The company says
this solves the problem
-
Batkins,
Have you actually read my response? The Subversion hosting of the OpenZoom SDK has been abandoned in favor of moving the project to GitHub: http://github.com/openzoom. You can either download the SDK, e.g. http://openzoom.org/sdk/download/late..., or clone the repository using Git. As for how to use (G)it, there are tons of tutorials out there and in order to understand what (G)it's advantages are, check out http://whygitisbetterthanx.com/.
Cheers,
Daniel
The company says
this solves the problem
-
Antikor,
I've just released OpenZoom SDK 0.4.2 which should solve all of the problems mentioned above:
http://getsatisfaction.com/openzoom/t...
Cheers,
Daniel
I’m happy
The company says
this solves the problem
-
Antikor,
I know why your example doesn't work. Apparently, you're creating a ActionScript project but you're referencing the Flex components:
...
import org.openzoom.flex.components.MultiScaleContainer;
import org.openzoom.flex.components.MultiScaleImage;
...
should be
...
import org.openzoom.flash.components.MultiScaleContainer;
import org.openzoom.flash.components.MultiScaleImage;
...
Cheers,
Daniel
The company says
this solves the problem
-
Antikor,
I don't think you're doing anything wrong. The latest revision in the Google Code SVN repository is probably just broken. Don't hold your breath, it ain't gonna be fixed ;)
Why? Well, because I've moved from Subversion to Git and therefore you can get the newest stuff from the OpenZoom project at GitHub*
http://github.com/openzoom/
I've been working hard to clean up the codebase, merge the exciting new rendering engine from the neorenderer branch into the trunk and moving the whole development from Subversion to Git. A couple of minutes ago, I've pushed the updated examples for ActionScript, Flex, Flash CS3 & Flash CS4 projects onto GitHub:
http://github.com/openzoom/sdk/tree/m...
Get it while it's fresh & let me know what you think!
Cheers,
Daniel
* Official announcement coming soon.
P.S. In the future, could you please use the <code> tag when posting code samples, it'll be easier for everyone to read, thanks.
I’m excited
The company says
this solves the problem
-
Inappropriate?Antikor,
I don't think you're doing anything wrong. The latest revision in the Google Code SVN repository is probably just broken. Don't hold your breath, it ain't gonna be fixed ;)
Why? Well, because I've moved from Subversion to Git and therefore you can get the newest stuff from the OpenZoom project at GitHub*
http://github.com/openzoom/
I've been working hard to clean up the codebase, merge the exciting new rendering engine from the neorenderer branch into the trunk and moving the whole development from Subversion to Git. A couple of minutes ago, I've pushed the updated examples for ActionScript, Flex, Flash CS3 & Flash CS4 projects onto GitHub:
http://github.com/openzoom/sdk/tree/m...
Get it while it's fresh & let me know what you think!
Cheers,
Daniel
* Official announcement coming soon.
P.S. In the future, could you please use the <code> tag when posting code samples, it'll be easier for everyone to read, thanks.
I’m excited
The company says
this solves the problem
-
Inappropriate?Hello Daniel !
I took the last version on http://github.com/openzoom/sdk/tree/m....
(by the way a password is required to extract : powerLawScaling, renderers, AdvancedPinRenderer and SimplePinRenderer)
I followed the instructions to link the library, but I still exactly have the same error...
Any clue ?
Thanks for your help...
I’m still confused
-
Inappropriate?Antikor,
I just tried to get a fresh copy of the repository code and everything worked just fine, including your odd observation that some things need a password.
Could you please give me a more detailed account on how you've obtained the latest version of the OpenZoom SDK from GitHub.
Maybe you could also zip up a small sample project that reproduces your problem. That would be great.
Cheers,
Daniel
P.S. One issue you might be having is the fact that I'm using the Flash Builder 4 Beta and therefore the project files cause problems. Which IDE and which Flex SDK version are you using?
-
Inappropriate?I went here : http://github.com/openzoom/sdk/tree/m..., then I clicked on the download button and choose the zip download.
Then I right clicked on the zip received and chosse extract all... (windows xp)
I am using flex sdk 3.3 and eclipse 3.4 (Ganimede)
To reproduce the bug, you just need to use the class I copied on my original post....
Thanks for your help and your time
I’m sad
-
Inappropriate?Antikor,
I know why your example doesn't work. Apparently, you're creating a ActionScript project but you're referencing the Flex components:
...
import org.openzoom.flex.components.MultiScaleContainer;
import org.openzoom.flex.components.MultiScaleImage;
...
should be
...
import org.openzoom.flash.components.MultiScaleContainer;
import org.openzoom.flash.components.MultiScaleImage;
...
Cheers,
Daniel
The company says
this solves the problem
-
Inappropriate?Good catch...thanks,
It seems you also have to compile for flash player 10 to have it to compile properly...otherwise I've got a problem with the Event.EXITFRAME....
But now I've got new errors...
It says the parameter of this function can't be null and I am sur it's true ;-):
ImagePyramidRenderManager.addRenderer(ImagePyramidRenderer) ImagePyramidRenderManager.as: 470
You say you are working with Flash Builder 4 Beta maybe I should try the Flex 4 sdk...(because I am not working with Flex Builder)...
Thanks
I’m frustrated
-
Inappropriate?I've downloaded the sdk 4.0.0.7219... I still have the same error :
TypeError: Error #2007: Le paramètre type ne doit pas être nul.
at flash.events::EventDispatcher/addEventListener()
at org.openzoom.flash.renderers.images::ImagePyramidRenderManager/addRenderer()[org\openzoom\flash\renderers\images\ImagePyramidRenderManager.as:470]
at org.openzoom.flash.components::MultiScaleContainer/addChildAt()[org\openzoom\flash\components\MultiScaleContainer.as:344]
at org.openzoom.flash.components::MultiScaleContainer/addChild()[org\openzoom\flash\components\MultiScaleContainer.as:325]
at org.openzoom.flash.components::MultiScaleImage/addImage()[org\openzoom\flash\components\MultiScaleImage.as:210]
at org.openzoom.flash.components::MultiScaleImage/urlLoader_completeHandler()[org\openzoom\flash\components\MultiScaleImage.as:248]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()
Le paramètre type ne doit pas être nul. = type parameter can't be null
Is there anyone width a similar configuration as mine ?
Thanks
-
Inappropriate?Antikor,
I'm sorry for the inconveniences. You might have noticed that everything is very much in flux due to the move to Git & GitHub. Also, I've just commited my local version and removed the dependency on Event.EXIT_FRAME, as it seems there's confusion on whether it's implemented in FP9 or FP10. For now, I don't want to have any dependency on FP10:
http://bugs.adobe.com/jira/browse/FP-...
Get the newest stuff here:
http://github.com/openzoom/sdk/commit...
As for FB4, this was probably also a premature move. Although I like Flash Builder 4 a lot (Package Explorer) it has a lot of performance issues, constantly stalling my Eclipse. I'll move back to FB3 and/or enable people to use any one of them.
Thanks for bearing with me and I can suggest you an alternative if you need some kind of more stable version by getting it from the old SVN repository over at Google Code (neorenderer branch):
http://open-zoom.googlecode.com/
Cheers,
Daniel
I’m sorry
-
Inappropriate?Thanks,
Now It works (kind of) I used the version on SVN with flex sdk 3... so my problem was my mistake with import...
But now my image is displayed, but twice ;-) when I move it with the mouse I have a copy of the image that stays on the background... and both of them are only partially sharp...
Thanks again for your patience...
-
Inappropriate?Antikor,
The HEAD of the Google Code Subversion repository is definitely broken. You can try to use MultiScaleImage2 but I can't guarantee you it'll work. Be sure to check back in a week or two on GitHub and I'll try to have a release that works in Flex Builder 3 and Flex SDK 3.x.
Best regards,
Daniel
-
Inappropriate?Antikor,
I've just released OpenZoom SDK 0.4.2 which should solve all of the problems mentioned above:
http://getsatisfaction.com/openzoom/t...
Cheers,
Daniel
I’m happy
The company says
this solves the problem
-
This reply was removed on 10/08/09.
see the change log -
Inappropriate?Batkins,
Do you have the latest version, 0.4.2.1, of the OpenZoom SDK?
In your case the error message says it all: You cannot have more than one constraint applied to the component. After all, the property is called constraint not constraints.
Now, you might be asking how can you apply several constraints nonetheless? Well, it's easy, simply group them in a CompositeConstraint:
CompositeConstraint allows you to apply many different constraints at the same time.
Does this solve your problem?
BTW, you can learn about this and many other interesting concepts in the dozen or so examples that ship with the SDK.
Cheers,
Daniel
-
Yes, this was the problem. Sorry about the confusion. Didn't notice that until after I had posted it. Thank you. -
Inappropriate?On the topic of the SVN repository though, what is the easiest way to check out the project in Flex builder? I couldn't get it to work..
-
Inappropriate?Batkins,
Have you actually read my response? The Subversion hosting of the OpenZoom SDK has been abandoned in favor of moving the project to GitHub: http://github.com/openzoom. You can either download the SDK, e.g. http://openzoom.org/sdk/download/late..., or clone the repository using Git. As for how to use (G)it, there are tons of tutorials out there and in order to understand what (G)it's advantages are, check out http://whygitisbetterthanx.com/.
Cheers,
Daniel
The company says
this solves the problem
-
Inappropriate?I just didn't know if there was still some back-end way to do SVN checkouts from github or something. I didn't realize that Git was a competitor / svn alternative. And I like the idea of Git but until there is a plugin for eclipse similar to the way that the SVN plugin works it probably won't be a good alternative for me & my coworkers to use. I just like that I can do all my checkins / checkouts / compares within Flex builder without having to leave. With Git it appears that the plugin is being developed but is unfinished and thus this is not currently an option.
I’m unconcerned
-
Inappropriate?Batkins,
I admit I had the same concerns, however once I tried Git there was no going back. Believe me, you will not miss Eclipse integration – its advantages far outweigh that missing link.
Cheers,
Daniel
The company says
this solves the problem
Loading Profile...




EMPLOYEE