Skip to main content
Participant
June 4, 2008
Question

prevent stage scaling

  • June 4, 2008
  • 2 replies
  • 360 views
Does anyone know of a way to control the scale mode from WITHIN a Captivate file? I usually do this in Flash files by adding a frame script [ Stage.scaleMode = "noScale"; ] to the first frame of the movie.

The SWF file that I publish from Captivate will be viewed in a browser window WITHOUT an HTML file to define its size. I need the SWF file to NOT resize if the user resizes the browser window.

I've tried inserting SWF files containing this script (referencing the root movie) to the first slide in my Captivate movie with no luck. I've also tried adding the script to the preloader...no luck. Help!

Thanks!
    This topic has been closed for replies.

    2 replies

    Inspiring
    June 9, 2008
    > Does anyone know of a way to control the scale mode from WITHIN a
    > Captivate
    > file? I usually do this in Flash files by adding a frame script [
    > Stage.scaleMode = "noScale"; ] to the first frame of the movie.
    >
    > The SWF file that I publish from Captivate will be viewed in a browser
    > window
    > WITHOUT an HTML file to define its size. I need the SWF file to NOT resize
    > if
    > the user resizes the browser window.
    >
    > I've tried inserting SWF files containing this script (referencing the
    > root
    > movie) to the first slide in my Captivate movie with no luck. I've also
    > tried
    > adding the script to the preloader...no luck. Help!
    >


    I think this should be a workable solution, but I don;t think referencing
    root works. If you build a test that can Trace _parent._parent .... etc you
    should be able to start to understand how the Captivate movie is put
    together. I think this is documented on a couple of web sites somewhere, but
    I've never needed to do it so I only have vague clues for you right now.


    Steve


    --
    http://twitter.com/Stevehoward999

    Adobe Community Expert: eLearning, Mobile and Devices
    European eLearning Summit - EeLS
    Adobe-sponsored eLearning conference.
    http://www.elearningsummit.eu

    Captiv8r
    Legend
    June 5, 2008
    Welcome to our community, Melissa

    I'm confused. If you use the HTML page Captivate creates, the scaling won't occur, just as you are wanting. So why are you averse to using the page?

    If you want the .SWF to be inserted on your own page, try simply copying the code from the HTML page Captivate creates.

    Cheers... Rick
    Participant
    June 9, 2008
    Thanks for replying! If only it were that easy...but...I need to upload the SWF to a website where the SWF will be opened in a Web browser sans HTML page. The SWF file will be opened directly in the browser window...
    Captiv8r
    Legend
    June 9, 2008
    Hi Melissa

    You say you do this in Flash? I'm assuming via ActionScript? If so, I'm thinking that perhaps you could create a smallish Flash movie that is totally without content. Then add your ActionScript to it and export as a Flash 7 .SWF. Then insert that inside Captivate and see if that helps influence the output from Captivate.

    I know fellow Adobe Community Expert Paul Dewhurst does a lot of this type of stuff with his widgets. Maybe your issue will resolve that way as well.

    Please give it a go and let us know if (or how well) it works.

    Sincerely... Rick (The loquacious one)