Skip to main content
Participant
March 31, 2008
Question

Flash - Window adjust

  • March 31, 2008
  • 1 reply
  • 256 views
Hello,

I've been working with Captivate 2 for a couple of weeks now and I'm quite happy with the program.

There are just a couple of things I haven't been abtle to achieve yet. One of them is getting my flash windows to be ajusted to the size of my projects.

After I publish in Flash format, when I open the file, the window is always larger that my project and the extra space shows a black background.
I would like my windows to automatically adjust, is this possible ?

Thanks in advance.
    This topic has been closed for replies.

    1 reply

    Captiv8r
    Legend
    March 31, 2008
    Hi GaelBianchi and welcome to our community

    In order to do that, you will need to resort to JavaScript. Basically, you open the window using JavaScript. This allows you to specify from the onset, what the size of the window will be. Or, you could use JavaScript to possibly determine the size of the Flash and adjust the window accordingly.

    Cheers... Rick
    Participant
    March 31, 2008
    Hi Rick,

    Thanks for the welcome and your answer.

    I was hoping there would be an easier way to do this but it seems i'll have to learn a few Javascript basics to get things running the way I'd like them to :-D

    When I publish my project files I end up with a standard.js file.
    Is this the javascript file I have to edit ?
    Captiv8r
    Legend
    March 31, 2008
    Hi again

    This is certainly one place you could make the edits. However, note that if you do, you should maintain a backup copy of the file as when you publish again it will be overwritten with a new one and the changes would be lost.

    There does exist a "seed" file you could modify, but that would assume that all your future projects should use the same script. Maybe they will, but I think it's a bit unlikely that will be the case.

    Cheers... Rick