Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / General Flash Topics / July 2008



Tip: Looking for answers? Try searching our database.

Trying to add Flash Intro to my HTML site

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Red67Coupe - 15 Jul 2008 15:39 GMT
Hi everybody.

I have an HTML site that I would like to add a Flash Intro to. I would like
the Flash intro page to play (about 30 seconds) then change to the first page
of my HTML site. I have searched through several books, Lynda.com, and google,
but can't come up with a good solution.

Would someone be kind enough to help?

Thanks in advance.

                 Brian
Shan-Dysigns - 15 Jul 2008 16:39 GMT
Create your flash intro, on the last frame of the animation, place a frame
action of

getURL("http://www.yourDomainName.com/homepage.html", "_self");

export to swf. Create a new html page, import the swf file, save this html
page as index.html (you may have to rename your existing html page - in the
code, I used homepage.html as an example). Upload homepage.html, if you used
Dreamweaver, it should automatically create a scripts folder when you embedded
the swf file into your html page - so upload that script folder too, upload the
intro swf file and if you changed your existing html page, upload that too.
Red67Coupe - 15 Jul 2008 17:56 GMT
First of all, thank you very much for taking the time to help me with this
issue. I do appreciate it.

I am not sure that I understand parts of your instructions, though. I will
repeat them in my own words and if you can take a look that would really help.

I am using Dreamweaver and Flash CS3.

- Create my Flash Intro and on the last frame of the animation add an Action
of:
getURL("http://yourDomainName.com/homepage.html","_self"); yourDomainName=my
website and homepage.html=index.html.
- Publish this file as a .swf
- Using Dreamweaver, make a new page
- Import .swf file into this new page <<<<<<<<< Don't understand this part

- Upload Index.html
- Save this file as index.html
- Upload the scripts folder when embedding the .swf file
Upload the Intro.swf file

Sorry I am being so "slow" about understanding this.

Really do appreciate your time and help.

            Brian
Shan-Dysigns - 15 Jul 2008 19:23 GMT
Since you want people to see your flash intro before your html page, you will
have to rename your existing html page to something like homepage.html. When
people go to your domain name, file names such as index, default (I think there
might be a few others) will be automatically loaded first. Because of this,
your flash intro (once placed into an html page) will have to be named
index.html.

After creating your flash intro, export it to a swf file. Go into DW and
create a new html page (you need a container for your flash intro). On the menu
bar of DW, click Insert, then Media, then Flash. You may want to create a table
or a div tag before hand in order to center the flash file (then you would just
insert the flash file into that table or div tag).

if you download my example stuff
http://www.shan-dysigns.com/flash/flashIntro.zip, you will see a flash
document, swf file, the index.html page which holds the flash intro swf file, a
hopepage.html file, and a folder DW automatically creates when you insert Flash
content. Download the zip file and save it in a temp folder somewhere. Go to
Windows Explorer (assuming you are on a PC), and double click the index.html
page (I don't know if your browser will ask if it's ok to run scripts, but it's
just the script from DW allowing the flash). You should see the 10 seconds of
the flash intro, then you will be redirected to the homepage.html file when the
intro is finished. If you look at the flash document, on the last layer where I
have the script, there is an absolute path (currently commented out), and a
relative path. Using the relative path will allow you to test this without
having to upload to a server. In order to test all this on a server, you will
need to upload all the files and the folder to a server (you may want to create
a test folder on the server to place these files in). Make sure you change the
flash document's code to the absolute path and comment out the relative one,
and make sure to change the domain name to yours, export the flash file and
upload the new swf along with the other files and folder. Then go to
yourDomainName.com/test, and you should see everything. I don't know how else
to explain any of this...
Red67Coupe - 15 Jul 2008 20:55 GMT
Thank you very much for your help.

With your instructions, I finally get it. :confused;

It never seems that complicated after someone explains it.

Thanks again and I look forward to seeing your website once it's up and
running.

                          Brian
Shan-Dysigns - 16 Jul 2008 00:50 GMT
Sometimes it just takes a step back (or a visual in this case) to interpret
someone's instructions. Some times I catch myself helping people and forget
they may not know (or may call it differently) certain things. I'm glad you got
it. I was about to have to bop you in the head :)
Red67Coupe - 16 Jul 2008 01:16 GMT
Ha, ha, ha...
Well, if that's the case...
I'm glad I finally got it too.

Besides, if you started to smack me in the head, my wife wouldn't have
anything to do... LOL.

Thanks again for your help.

                     Brian
hamazasb - 31 Jul 2008 07:24 GMT
Hi
I am trying to develop a similar site where the intro is a movie and once the
movie finishes jumps right to the homepage.html

I tried to download your sample but once i open the index i only see the video
or the animation looping but not jumping to the homepage?
can you help me
many thanks
Mike
Shandy Elliott - 31 Jul 2008 16:01 GMT
You have to download all the files and place them in a folder, then open the index.html file using windows explorer. Everything else links within.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.