It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Flash Forum

Panning & Full Screen Script? - Examples

Moderator: Phate

Panning & Full Screen Script? - Examples

Postby mfdanna on Fri Apr 20, 2007 1:54 pm

Mike again, can you tell we aren't flash people!
OK so before the questions it would probably be best to view the example so if my description is off you will still understand. If you visit www.blackpulp.com its a design firm out here in Houston and this is a perfect example of the full screen script I am needing. Anyone know how this is done? Also for the panning; what would be needed to pan a photo across the stage, a good example would be those flash "usually headers" you see with the sky similar as if you are in an airplane and looking out the window.

Are these difficult effects? I wouldn't say we are horrible at flash but our expertise is in SEO, so as we comprehend your advice..we still asked the questions because we don't know what in the !@#$% we are doing hah. Would love to get into some flash development as its satisfying when viewing your final product as well as great to use for reference.

Thanks guys!
mfdanna
 
Posts: 13
Joined: Thu Apr 19, 2007 4:15 pm
Location: houston, texas

Postby flabbyrabbit on Fri Apr 20, 2007 3:54 pm

Hi its me again :) lol, anyway to get a full screen flash webpage is fairly easy. But for future reference if you have found a website which has created the same sort of effect as you want then first look at the html source for that page and that should help. When you embed a flash movie into a webpage you enter variables that tell it how big it should be, you usualy enter these as the number of pixels. But you can also enter them as a percentage. To get a full screen movie you would enter the width and height as 100%. There is one problem with this is that there will be a border around the edge of your movie (i'm not to sure why) so you need to enter some code into the head of the file to cancel this. The full html for example, would be like this:
Code: Select all
<html>
<head>
<style type="text/css">
body {
   margin-left: 0px;
   margin-top: 0px;
   margin-right: 0px;
   margin-bottom: 0px;
   background-color: #d6d6d6;
   overflow:hidden;
}
</style>
</head>
<body>
  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="100%" height="100%">
  //Location of flash file
  <param name="movie" value="FLASHFILE.SWF">
  <param name="quality" value="high">
  //Location of flash file
  <embed src="FLASHFILE.SWF" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="100%" height="100%"></embed></object>
</body>
</html>

You could probably get it even shorter than this, but that is the embeding code i always use.

On to your second point, for the panning idea would you want a looped pan or a user controled one? The first idea would be alot easier and could be made by creating a movieclip with a tweened picture so it scrolls across the screen. Do you know anything about tweening and masking in flash? If not i will right you a tutorial if you would like. I will explain further how to create the pan when you've answered this post.

Hope this all helps, and you can follow it,
Flabby Rabbit
User avatar
flabbyrabbit
500+ Club
 
Posts: 706
Joined: Thu Jan 25, 2007 1:10 pm
Location: Midlands, England

Postby mfdanna on Fri Apr 20, 2007 4:08 pm

OK I am going to give a shot at the full screen really quick on a previous project for a client and upload it. You will have to excuse the websites content ;). The site has actually been pretty effective for the client since they just wanted local marketing and their phone to ring, Google has been treating the site nicely fortunately. I will post when I all is complete and you will know what I mean. Are you speaking of the "click to activate this control" - dotted lines border?

The panning - this would be a brand new from scratch deal. So a tutorial for someone with an IQ of 1 would be excellent if you don't mind, if not, maybe you could point me to a useful tutorial that in your opinion you would have benefited from when you first started with flash.
mfdanna
 
Posts: 13
Joined: Thu Apr 19, 2007 4:15 pm
Location: houston, texas

Postby flabbyrabbit on Fri Apr 20, 2007 4:24 pm

No its just a blank area around the movie, try the code with out the header part and you will see what i mean.

Have you got the thing you want to pan on the internet, then i could right the tutorial correctly, so i know excctly what you want to acheive.

Flabby Rabbit
Image
User avatar
flabbyrabbit
500+ Club
 
Posts: 706
Joined: Thu Jan 25, 2007 1:10 pm
Location: Midlands, England

Postby mfdanna on Fri Apr 20, 2007 4:31 pm

I think I know what you mean, I am noticing that the actual SWF file is not 100% when previewing.

The panning - The site is not live just yet, I will find you an example, client is wanting the header to be 5 or so quality photos of stellar window jobs to pan across the header (main-menu) will be above. He was also mentioning the ability for the visitor to have the option to slide (kind of like a horz. scroll bar" but with buttons left and right to speed up the pan. I should be able to find something on the net.
Last edited by mfdanna on Mon Nov 29, 2010 5:58 pm, edited 1 time in total.
mfdanna
 
Posts: 13
Joined: Thu Apr 19, 2007 4:15 pm
Location: houston, texas

Postby flabbyrabbit on Fri Apr 20, 2007 4:33 pm

I think i get what you mean, but it would be easier if you had the pictures for me to help you. But i will just make it with some random pics i find.

Flabby Rabbit
Image
User avatar
flabbyrabbit
500+ Club
 
Posts: 706
Joined: Thu Jan 25, 2007 1:10 pm
Location: Midlands, England

Postby mfdanna on Fri Apr 20, 2007 4:36 pm

I have the exact pictures actually if you want to check them out.

Do you have an email address?
mfdanna
 
Posts: 13
Joined: Thu Apr 19, 2007 4:15 pm
Location: houston, texas

Postby flabbyrabbit on Fri Apr 20, 2007 5:11 pm

So do you want all the pics one after the other in a long line then?? I will email you the .fla and .swf when i have finished (5 mins). Then i will quickly explain how i made it so you dont need me again next time.

Flabby Rabbit
Image
User avatar
flabbyrabbit
500+ Club
 
Posts: 706
Joined: Thu Jan 25, 2007 1:10 pm
Location: Midlands, England

Postby mfdanna on Fri Apr 20, 2007 9:51 pm

You are the man, sure thing.
mfdanna
 
Posts: 13
Joined: Thu Apr 19, 2007 4:15 pm
Location: houston, texas


Who is online

Users browsing this forum: No registered users and 0 guests