Skip to main content
Participating Frequently
Nov 12, 2006 4:29 PM UTC
Question

syncSWF podWidth/Height Constraints for entire swf

I've been coming along quite well with syncSWF lately. I understand some basic functionality, setup, and interaction.

But I'm a bit confused about how to properly setup constraints. At MAX, I was fortunate enough to sit in Nigel Pegg's syncSWF hands-on intro at MAX, and he showed us some basics with podWidth/podHeight. I've easily been able to implement this into my swfs, but only on a specific object.

What would be the best way to set constraints on the entire movie's stage? i.e. if I have 20 movieclip on the screen, I don't want to set podWidth/Height for every single movieclip. I want to just resize the entire stage so that it fills the pod. I also want to make sure that if the pod is sized under the stage's width/height, that the stage's height and width - along with all of its contents - are properly undersized to fit within the pod. This doesn't occur by default - instead, if contraints are not set and the pod is sized under that of the swf, the swf shows outside of the pod's box (which is really stupid IMHO).

I tried this.Stage.width/height, but that ends up setting width/height for the entire Breeze stage.

And on another note...where are all of the syncSWF developers? Seems like no one out there is doing this!
- Chris
    This topic is closed to new replies. Start a new post to keep the conversation going.

    3 replies

    Nov 12, 2006 4:37 PM UTC
    hi midimidi, the main reason at the moment is probably the lack of a syncSWF for Flex 2, is it not?
    anyway, I'm not sure I have properly understood what you're running through in your project.
    do you have several movieclips into one single pod?
    francesco.p

    Translate
    midimidiAuthor
    Participating Frequently
    Nov 12, 2006 4:45 PM UTC
    The problem noted is regardless of Flex2 or not (though Flex2/Flash9 support sure would be nice).

    If I have a swf that has two elements - one is a box at the bottom right corner of my swf, and the other is at the top right corner of my swf. If I resize the pod inside of the movie's width, the two boxes will appear outside of the pod in Breeze. The only option I can figure out to fix this is to 1) make the two boxes movie clips, and 2) listen for the sizeChanged message and set the width, height, x, and y positions of EACH box in order for them to stay within the pod.

    How can I resize the entire swf's width/height (and thus the two boxes, and all movie clips within it) to equal that of the pod?
    Translate
    Nov 16, 2006 8:33 AM UTC
    sorry it would seem I'll have to check this out.
    in the meanwhile, please let me know if you find a solution to this.
    thanks
    francesco
    Translate