Skip to main content
Participating Frequently
November 12, 2006
Question

syncSWF podWidth/Height Constraints for entire swf

  • November 12, 2006
  • 1 reply
  • 495 views
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 has been closed for replies.

    1 reply

    November 12, 2006
    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

    midimidiAuthor
    Participating Frequently
    November 12, 2006
    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?
    November 16, 2006
    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