PDA

View Full Version : Splash Page problems.


eddybiel
07-17-2006, 07:04 PM
Hello everyone...

I have encountered a bit of a problem with my splash page actionscript...

What i want to happen is when the splash page animation has loaded, a black bar to come down, cover the animation, go back up again and reveal the homepage.... i will be adding the graphics for the homepage later, but i need help with this...

The main problem is the actionscript for the "Enter" button (Layer 5). I have tried :

enter1.onRelease = function()
{
gotoAndPlay("bar1");
}

However, this doesnt play the "bar" animation coming down from the top... so i cant progress from the splash page to the main homepage... :(

Any help here would be appreciated... :confused:

Thankyou :D

File: http://eddybiel.astralgenesis.com/SPLASHIMAGE.fla

sunlis
07-17-2006, 09:04 PM
I looked at the .fla, and you're calling the bar animation wrong.
When you say gotoAndPlay("bar1"); it looks for a frame labelled bar1.
If you want a bar animation to play, then you need to first make a new MC, and make a black box come down that will cover whatever you want covered.
Put a stop(); on the first frame of it, and when the box is down, put a _root.boxDown = true; on that frame.
Place the box MC on the main timeline, and give it the instance name box, or whatever you want(you do this in the properties panel).
Now, on the enter button, place this script:
on(release){
_root.box.play();
}

Now, on the root timeline, on the frame where it stops, put this:
onEnterFrame = function(){
if(boxDown==true){
_root.play();
}
};

Now, on the frame after that, get rid of everything on the stage that you don't want, but keep the box, and don't use a keyframe for it.
Put the new stuff on that frame now that it's basically empty, except for the box up above the stage.
Make sure that you put a stop(); or else it will start over at the beginning!

I'm pretty sure that should all work, I just pulled it off the top of my head, so it might not quite work, let me know!

eddybiel
07-19-2006, 05:08 PM
Ahhh bugger i had a go... but couldnt configure all the actionscript properley...

Could you have a go at it for me and try to put me in the right direction lol ? :)

sunlis
07-21-2006, 08:16 PM
OK, I'll set it up.
And I'll make it go a little smoother than my simple example. It'll look good. :D

But I don't have the font you used, so you may have to change the fonts back when I post the new .fla

EDIT: I downloaded the font you used, so it's all good.

sunlis
07-21-2006, 08:36 PM
I was having issues with the script, but then I checked your Publish Settings for the file.
Dude, you were using AS 1.0!
No wonder nothing would work.
You were also using Flash Player 6, I'll bump it up to seven, since you don't have Flash 8.
I got the box up/down to work, and I'm just smoothing out a few things, hopefully you'll like what I've done.

sunlis
07-21-2006, 09:00 PM
I finished it, but my host wont let me upload it.

I'll post when I get it uploaded.

eddybiel
07-21-2006, 09:01 PM
Hi there Sunlis.. :)

Thanks ALOT for the help... i really do appreciate it; its good to know there are people on here willing to help others...

Cant wait to see what it looks like... i should learn alot from what you have done to it :o

eddybiel
07-21-2006, 09:06 PM
Hi again Sunlis...

Just checked out that .fla ; it says the file could not be found...

Try another host ? :confused:

sunlis
07-21-2006, 09:12 PM
Yeah, I thought it had uploaded, but it didnt.
I have to go to another host for the file.

Won't take long.

sunlis
07-21-2006, 09:46 PM
http://casual-donut.batcave.net/splashimageMX.zip

Tada!

eddybiel
07-22-2006, 10:48 AM
Oh my god... you wont believe this..

I tried to unzip it and it said the file was corrupt...

Your not having any luck with the upload part here are you ? :D

sunlis
07-23-2006, 05:18 AM
I may just have to play around with some settings and try again.
I have a Mac, so I have to try and make it Windows-compatible when I zip/post fla's and zip's.
I should have another one posted shortly.

sunlis
07-23-2006, 05:26 AM
OK, try this one (http://casual-donut.batcave.net/splashImageMX2.zip).
Hopefully it'll work....

eddybiel
07-23-2006, 11:32 AM
Nope... no luck imn afraid... still corrupt..

I dont know what to suggest :confused:

MichaelxxOA
07-23-2006, 11:33 AM
You can hit me up on messenger if you want to send me the folder and I will archive it.

Michael

MichaelxxOA
07-23-2006, 07:46 PM
Alright here is the archived version of his file...

Thanks for helping him out eddybiel.

Take care.

// EDIT
it's not letting me attach files right now... so you can find it here:

http://www.createage.com/splashImageMX.zip