Flash Advisor logo
:: Desktop Shortcut
:: Flash Help
Advice from Experts

Closed Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2006
    Location
    San Francisco
    Posts
    1

    Default Viewing (.swf) versus (.html with embedded .swf)

    Hi there. New to the group and semi new to Flash... I use flash at a very basic level to showcase a photo portfolio.

    My question is regarding web viewing. The link from my html index page is linking to my html file with embedded swf file. When I view my sites statistics via Urchin, I have more pageviews to the single swf file than the html file with embedded swf file. The problem with this is that when viewed as only .swf - the size is scalable, if the viewers window is set too large or too small the photos pixelate and distort. When viewed in the .html page there are no problems - the movie is locked at scale.

    Is there a way to block the viewers from even opening the single .swf file without viewing in .html window? OR, is there a publish setting that Im overlooking?


    FYI: Using FlashMX 04 on Mac. URL: http://www.codypickens.com

    Thanks!

    CP

  2. # ADS
    Join Date
    Always
    Location
    Advertising world
    Posts
    Many
     
  3. #2
    Join Date
    May 2004
    Location
    U.S.A.
    Posts
    2,890

    Default

    Hi,

    Using the .swf in an HTML page gives you a few advantages. You can use detection scripts in the HTML page to detect the users player version and promt if an update is needed. You can use flashvars to pass external variables into a flash movie, and you can use javascript in the HTML page to communicate with the .swf file. Linking directly to the .swf file is usually not the best practice simply because it limits these abilities.

    As to scaleing, look into the scalemode methods for flash files. You can control the scalemode of a .swf file whether or not it is embedded in an HTML page.....

    showAll (Default)
    makes the entire Flash content visible in the specified area without distortion while maintaining the original aspect ratio of the. Borders can appear on two sides of the application.

    noBorder
    scales the Flash content to fill the specified area, without distortion but possibly with some cropping, while maintaining the original aspect ratio of the application.

    exactFit
    makes the entire Flash content visible in the specified area without trying to preserve the original aspect ratio. Distortion can occur.

    noScale
    makes the size of the Flash content fixed, so that it remains unchanged even as the size of the player window changes. Cropping may occur if the player window is smaller than the Flash content.

    Note: the default setting is showAll, except when in test movie mode, where the default setting is noScale


    Stage.scaleMode="noScale"
    A mind once stretched by a new idea never regains its original dimensions.
    - Oliver Wendell Holmes

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. viewing my website in browser
    By kmosier in forum Newbies
    Replies: 1
    Last Post: 08-31-2006, 05:59 PM
  2. Lines Around Embedded SWF
    By ziola111 in forum Newbies
    Replies: 1
    Last Post: 05-16-2006, 01:26 PM
  3. Embedded buttons don't work-- Help me please
    By markwantsnyc in forum Flash Scripting
    Replies: 5
    Last Post: 12-15-2005, 10:59 PM
  4. Help with viewing items in an array.
    By dchil82 in forum Newbies
    Replies: 0
    Last Post: 12-04-2003, 12:03 AM
  5. Question about embedded audio
    By jjjones in forum Sound and Music
    Replies: 3
    Last Post: 09-03-2003, 10:56 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Sponsors
Create Speaking Characters for your website and Flash movies. 15 Day Free Trial