Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Apr 2003
    Posts
    51
    Member #
    1220
    Good Evening,

    I created a CD presentation in Swish its just like Flash. It has an autorun file, & Im going to add 2 files to cater to different resolutions, 800x600 & 1024x760. What I would like to do is add a javascript that when the viewer puts the CD in, it would autroun and scan the systems resolution settings & launch the appropriate file:

    IE: The viewers system is set @ 800x600, he/she puts CD in drive, the 800x600 version of the presentation is launched.


    Ive searched around & read up but Im a BIG javascript rookie, how could I do this & could someone suggest a good script to use.


    Thank you kindly

  2.  

  3. #2
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times

  4. #3
    Member
    Join Date
    Apr 2003
    Posts
    51
    Member #
    1220
    Hi Trasion, thanks for the reply. I copied this script down but being a Java rookie I dont (think?) this would work, isnt this saying if the screen is 1600 to play the gif? Im a bit confused.



    <script>
    screenWidth = {screen.width <= 1600) ? screen.width : 1600;
    logo = 'logo_' + (floor(screenWidth/200) * 200) + '.gif';
    </script>

  5. #4
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    Well in reality, you should be doing this in actionscript.... but i don't think you can work with actionscript in swish. I think you're limited as to what you can do. Maybe you should consider looking into Macromedia Flash MX so you can script it out and create a Projector EXE file? Then, you can autorun the exe on the CD, too. Macromedia Projector also creates Mac executables, so you can create your CD for both audiences that way!

  6. #5
    Senior Member dotcommakers's Avatar
    Join Date
    Oct 2003
    Posts
    527
    Member #
    3342
    Liked
    1 times
    transio is right

    Originally posted by transio
    Well in reality, you should be doing this in actionscript.... but i don't think you can work with actionscript in swish. I think you're limited as to what you can do. Maybe you should consider looking into Macromedia Flash MX so you can script it out and create a Projector EXE file? Then, you can autorun the exe on the CD, too. Macromedia Projector also creates Mac executables, so you can create your CD for both audiences that way!
    Alwasy use Flash MX for the presentation... you can do scripiting there... i think swish has somelimitations..

  7. #6
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    Actually, it's suggested that you use Director for CD presentations, although that seems to be getting phased out in recent Macromedia product releases.

  8. #7
    Senior Member dotcommakers's Avatar
    Join Date
    Oct 2003
    Posts
    527
    Member #
    3342
    Liked
    1 times
    Ouch!


    Ouch!

    Transio is right Director is worldclass... world prefered software for presentaiton..



  9. #8
    Member
    Join Date
    Apr 2003
    Posts
    51
    Member #
    1220
    Thanks guys,

    I think I just stumbled across some info that "might" help. I just read that its possible to autorun an HTML file, and if so would it be possible to create a tiny html file with javascript in it that would detect the users resolution and launch the appropriate .exe.

    I know the example below is for web redirecting, but I couldnt something like this be altered to check rez, then launch app, and then self close itself (I mean the original html file that autrun launched)? I really dont know Javascript or javascript launch commands, so I dont know how you would launch the .exe or if this is even possible?

    IE:


    if (screen.width==800||screen.height==600) //if 800x600
    window.location.replace("http://www.someplace.com")

    else if (screen.width==640||screen.height==480) //if 640x480
    window.location.replace("http://www.someplace.com")

    else if (screen.width==1024||screen.height==768) //if 1024x768
    window.location.replace("http://www.someplace.com")

    else //if all else
    window.location.replace("http://www.someplace.com")



    Thanks


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 10:35 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2020 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com