Macromedia Flash Movies, Sound Loops, Tutorials, Action Scripts, Menus, Buttons, Web Templates, intros & more!

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

 Submit Here! · Link to Us · Newsletter · Tell a Friend · · Make It Homepage

» Advertisement

Create Speaking Characters for your website and Flash movies. 15 Day Free Trial









Go Back   Flash Tutorials, flash help, action script and flash discussion > Development > Newbies


Tags: , , , ,

Reply
 
Thread Tools Display Modes
  #1  
Old 08-29-2006, 09:13 PM
copick copick is offline
 
Join Date: Aug 2006
Location: San Francisco
Posts: 1
copick is on a distinguished road
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
Reply With Quote
Sponsored
jeet jeet is offline
 
Join Date: May 2004
Location: India
Default
  #2  
Old 08-29-2006, 10:13 PM
NTD NTD is offline
Moderator
Moderator
 
Join Date: May 2004
Location: U.S.A.
Posts: 2,890
NTD has a spectacular aura aboutNTD has a spectacular aura aboutNTD has a spectacular aura about
Send a message via AIM to NTD
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
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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

All times are GMT. The time now is 12:52 AM.



Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Forum SEO by Zoints