Get your own customer support community

Recent activity

Subscribe to this feed
  • problem

    Mane replied on March 03, 2010 13:32 to the problem "ExternalMouseWheel problem" in OpenZoom:

    Mane
    Hi Daniel,

    allowScriptAccess="always" doesn't work. Same Problem. I tested the embedding of the swf with the html of your Is This Your Luggage Showcase. And, it works.

    I think there is something wrong with the publishing function in Adobe CS3. Perhaps it's the tag no script in my example. Never mind! I embed the swf like you now, and I forgive Adobe for their fail to fix this "bug".

    Thanks,
    Mane
  • problem

    Mane replied on February 15, 2010 10:47 to the problem "ExternalMouseWheel problem" in OpenZoom:

    Mane
    Hi Daniel,

    thanks for your fast replys. My source is located on http://hm-infosystem.svn.sourceforge.net/svnroot/hm-infosystem

    My current working version is located at Testverion

    When I come a little further I will post a link in the showcase section.
    Thanks again for your time.

    Cheers,
    Mane
  • problem

    Mane reported a problem in OpenZoom on February 11, 2010 10:15:

    Mane
    ExternalMouseWheel problem
    Hello Daniel,

    how can I debug the "ExternalMouseWheel" implementation? The initialization doesn't work for me. I initialize it with ExternalMouseWheel.initialize(stage); in the Documentclass and set "id" and "name" in the html. I get no errors. In Fullscreen it works perfectly.

    I'm working with Flash CS3 and Flashdevelop over documentclass. Do you have any idea what is going wrong?

    Thanks and cheers,
    Mane
  • Mane started following the idea "OpenZoom for Dummies" in OpenZoom.

  • question
  • question

    Mane replied on January 05, 2010 13:59 to the question "How Do I Constrain the Maximum Extent Of an Image?" in OpenZoom:

    Mane
    Hi,

    I just implemented my own BoundConstraint. It is working if your Viewport Rect is inside of the Bound Rect, but I think this is how it schould work, because bounds have no sense if viewport is bigger than the bounds.

    This is my BoundConstraint:


    package org.openzoom.flash.viewport.constraints
    {

    import flash.geom.Rectangle;
    import org.openzoom.flash.core.openzoom_internal;
    import org.openzoom.flash.viewport.IViewportConstraint;
    import org.openzoom.flash.viewport.IViewportTransform;

    use namespace openzoom_internal;

    /**
    * Makes Bound to the IViewport
    */
    public final class BoundConstraint implements IViewportConstraint
    {
    include "../../core/Version.as"

    //--------------------------------------------------------------------------
    //
    // Class constants
    //
    //--------------------------------------------------------------------------

    private static const DEFAULT_BOUNDS:Rectangle = new Rectangle(0, 0, 1, 1)

    //--------------------------------------------------------------------------
    //
    // Constructor
    //
    //--------------------------------------------------------------------------

    /**
    * Constructor.
    */
    public function BoundConstraint()
    {
    }

    //----------------------------------
    // Bounds
    //----------------------------------

    private var _bounds:Rectangle = DEFAULT_BOUNDS

    /**
    * Maximum bounds the Viewport can reach.
    */

    public function get bounds():Rectangle
    {
    return _bounds
    }

    public function set bounds(value:Rectangle):void
    {
    _bounds = value
    }

    //--------------------------------------------------------------------------
    //
    // Methods: IViewportConstraint
    //
    //--------------------------------------------------------------------------

    /**
    * @inheritDoc
    */
    public function validate(transform:IViewportTransform,
    target:IViewportTransform):IViewportTransform
    {

    var viewportBounds:Rectangle = transform.getBounds()

    var x:Number = viewportBounds.x // 0 //transform.x
    var y:Number = viewportBounds.y //transform.y

    //outside of bound

    if (!bounds.containsRect(viewportBounds)) {

    if (viewportBounds.left < bounds.left) {
    // left bound
    x = bounds.left
    }

    if (viewportBounds.top < bounds.top) {
    // top bound
    y = bounds.top
    }

    if (viewportBounds.right > bounds.right) {
    // right bound
    x = bounds.right - viewportBounds.width
    }

    if (viewportBounds.bottom > bounds.bottom) {
    // bottom bound
    y = bounds.bottom - viewportBounds.height
    }
    }

    //inside of bounds
    //if (bounds.containsRect(viewportBounds)) {
    //trace("innen");
    //
    //x = viewportBounds.x
    //y = viewportBounds.y
    //}

    // validate bounds
    transform.panTo(x, y)

    return transform
    }
    }
    }



    You have only to intit the bounds in the CompositeConstraint:


    var constraint:CompositeConstraint = new CompositeConstraint();
    var boundConstraint:BoundConstraint = new BoundConstraint();
    bounds = new Rectangle(0.5312538146972657, 0.3466752370198569, 0.0026041666666666665, 0.001953125);
    boundConstraint.bounds = bounds;

    constraint.constraints = [zoomConstraint, scaleConstraint, centerConstraint, boundConstraint];



    Cheers,
    Mane
  • question

    Mane asked a question in OpenZoom on January 04, 2010 14:12:

    Mane
    OpenStreetMap Resolution
    Hello Daniel,

    is it possible to increase the size of the openstreetmap pyramide?

    I don't know if this is the key to my prob? I want to overlay the OSM map with another map but with more detail.

    I have written a new descriptor file which links to local tiles I created with MaapTiler. Thats no problem, but I can not increase the zoomdetail, after zoomstep 18 there is no map visible. I have tried to increase width and height in the descriptor file, but then the tiles are displayed very strange and they are also flipped horizontally and vertically.

    Thanks,
    Mane