Helpful Information
 
 
Category: Flash & ActionScript
I made a flash movie and need it to run on the intro page

I am not too familiar with flash and with some help i made an intro for my site. How do i make it run? I know html and everything but never have used flash in my life. The flash file is, "Intro.fla" What should my code be?

You need to publish the movie (file => publish (settings)) this will give you a *.swf which can be viewed with Flash player. Your publishing options will enable an html page with the necessary html to be created too.

Alright i just tried that but still, i want the background black and it in the middle and when it stops to go to another page. Whenevr it publishes it gives me a window with the flash on the top left of the screen.

I also cant even make it fit, a piece of it is cut off

To center the movie, you can put it inside a table and align both vertical & horizontally to the middle

Can someone give me their screen name for you help me, i need this done asap.

what are you not understanding ??

The page will be the same as the movie's background by default. If you want to change it you'll need manualy edit the html

but the whole video doesnt show, only half when i publish it! plese im me at jasonap1!

boy your signature says it all...

anyway, if the movie doesn't fit on the page then guess what? you need to resize it so that it fits (usually) a 800X600 resolution.

anyway, if you know html like you said, then changing the back ground color should not be a problem, nor should centering the movie.

K i finally got it, here:
GyroTek (http://www.mcfatter2k5.com/Intro/)
Well there is no home page so dont complain but how do i make it link to a home.html once the flash is over? The quality is at good with 12 fps so dont tell me to lower the qaulity. It runs slow first time around but second time it runs well. Now how do i make it go to the site right after the flash video? Thanks

Ok in the last frame of you movie put an action statement there.

Use the getURL() which should be under browser/network in the actions panel.

ok ??

:thumbsup:

huh? can someone explain better?

Create a keyframe at the end of the movie, before any stop() command you may have there... insert the actionscript geturl("http://address.com"); in this keyframe.

I did that and it loads the page even before the movie starts. This will be so much easier over aim, please im me at jasonap1

Alright i finally got it thanks. Next step, people keep complaining it runs slow the first time but after it runs fine, how do i make a loading screen or something in the beginging to use to make the movie run faster?

You have alot of questions today dont you :p


Go to flashkit.com and look in the tutorial sections or search on the board for posts of this nature. There are vast amounts there.

:thumbsup:

Don't have aim I'm afraid, neither do I have Flash installed at the mo, jsut going off memory ;)



Now, you'll need to preload the animation.

Here goes:

Insert two new key frames at the beginning of the movie before the animated section (ie move it all along a few frames if need be). Now insert the following actionscript into the first keyframe:

ifframeloaded(68); //--- 68 is an example only here, exchange it for the LAST frame in your movie
GoToAndPlay(3); //--- this needs to be the first frame of the animated section of the movie
And this in the second keyframe:
GoToAndPlay(1); //this loops the movie back IF the final frame as specified in keyframe one has NOT loadedYou may wish to insert a "loading" graphic in these first two frames too so the user knows what's happening.

K sounds right, awesome, thanks

Damn i thought that would work mouse but it didnt, look:

GyroTek (http://www.mcfatter2k5.com/Intro)

Maybe the coding is wrong or something

What version of Flash are you using?

The syntax changes with each version :rolleyes: You might want to try:
If Frame Is Loaded()Look here for more details: http://www.flashkit.com/tutorials/Interactivity/Preloade-Eddie_Ca-33/index.php

Naw that sounds like flash 4, anoyne know it for MX? I think its the gotoandplay causing problems.

GoToAndPlay is valid actionscript.Try getting rid of the semicolons ( ; )










privacy (GDPR)