Help Please! Im Stuck While Making A Flash Website

  • Patisnifty
  • Newbie
  • Newbie
  • Patisnifty
  • Posts: 6
  • Loc: Sarnia

Post 3+ Months Ago

I have my design and buttons made properly (i hope), i just now need to figure out how to add pages and make the buttons link to them.

if someone could help it would be greatly appreciated.


here is the .swf file if needed.

http://www.thesarniascene.com/flashsite.zip


thanks a lot, Pat.
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • classified
  • Expert
  • Expert
  • User avatar
  • Posts: 540
  • Loc: Bahrain

Post 3+ Months Ago

nice work on the main interface buddy ...

now you have to learn some Basics of scripting so you can complete your site ...

as in for buttons and loading content in 2 your Website you got 2 options :

1-create a seperate layer or a movie clip with your content in it say frame 5 for about , frame 10 > friends , frame 15 >comments , frame 20 >Message
and so on ..

and then you can target that Movieclip by using it instance name so if you press the button about it will go to that movieclip on frame 5 ..

example
this code is assign on the button it self

Code: [ Select ]
on(press) {
 myMovieclip.gotoAndPlay(5);
}
  1. on(press) {
  2.  myMovieclip.gotoAndPlay(5);
  3. }


and so on ..

2- another option is to create seperate SWFs for each button and load them into an empty movieclip on the stage using the loadMovie ...

example

Code: [ Select ]
this.createEmptyMovieClip("container",this.getNextHighestDepth );
//now position the empty movieclip x & y coordinates..
container._x = 200;
container._y = 200;
  1. this.createEmptyMovieClip("container",this.getNextHighestDepth );
  2. //now position the empty movieclip x & y coordinates..
  3. container._x = 200;
  4. container._y = 200;

now load the external swf into the container upon pressing on the button .
note that you got a variety of event handlers that you should read about like
on(press) , on(release) , etc ...

Code: [ Select ]
on(press) {
    
         container.loadMovie("about.swf");
}
  1. on(press) {
  2.     
  3.          container.loadMovie("about.swf");
  4. }


which will load the external swf (about.swf) into the empty movieclip (container)

i recommend that you go to http://www.actionscript.org/tutorials.shtml
for further readings :)

good luck ..
  • Patisnifty
  • Newbie
  • Newbie
  • Patisnifty
  • Posts: 6
  • Loc: Sarnia

Post 3+ Months Ago

hey, thanks alot for the info. i read up on actionscript and tried a few things.
the problem is, i still cant seem to make the pages i want in my flash document.

ive tried the two ways you explained but i cant seem to get anywhere..
ha but what can you expect, i just started using flash 3 days ago.

-----------------------------------------------------------------------------------------------

okay this is where i run into problems.


Option 1

Image

I created a new layer called Pages and put in three movie clips (about, friends, comments)

it started them at 55 (because my intro lasted that long, and when i tried it at frame 5 like you suggested it over lapped the intro.)

Image

Now in my "navigation" layer i have a movie clip with the buttons in it. They start at 45 yet again to tie in with the intro.

In the about button i inserted the actionscript and changed it to frame 55 (where the about movieclip is)

this doesnt seem to work. where have i gone wrong?



Option 2

i dont even think i did it right. where do i insert the first bit of code?

Quote:
Code: [ Select ]
this.createEmptyMovieClip("container",this.getNextHighestDepth );
//now position the empty movieclip x & y coordinates..
container._x = 200;
container._y = 200;
  1. this.createEmptyMovieClip("container",this.getNextHighestDepth );
  2. //now position the empty movieclip x & y coordinates..
  3. container._x = 200;
  4. container._y = 200;






Again, this is probably all easy stuff, but i am very new at Flash and just cant get it right.

Where am i going wrong?

Is my Intro messing everything up?

Do i have to many layers?



I really appreciate your help.
Pat.
  • classified
  • Expert
  • Expert
  • User avatar
  • Posts: 540
  • Loc: Bahrain

Post 3+ Months Ago

rite ...
looks like someone is really willing to learn ...
PM me your MSN YAHOO or ICQ and i will explain things in details :)
  • Degoncire
  • Born
  • Born
  • Degoncire
  • Posts: 1
  • Loc: houston, tx

Post 3+ Months Ago

Hey, if you still need some help with your flash problems, then ask me too. I could be of your assistence.
  • msjin
  • Born
  • Born
  • msjin
  • Posts: 3
  • Loc: London

Post 3+ Months Ago

Hie! My name is Msjin.
Sorry Patisnifty for posting this on your thread but i also have the same problem. I am really new to flash and i can't add pages to my buttons. I tried option 1 from Classfield but i had the intro overlapped. Please help. I am stuck.
  • shummy07
  • Born
  • Born
  • shummy07
  • Posts: 1

Post 3+ Months Ago

That code worked but my buttons in the swf aren't working. The rollOver states to the thumbnails work but the active state and the picture that's supposed to pop up doesn't. Any ideas?

Post Information

  • Total Posts in this topic: 7 posts
  • Users browsing this forum: No registered users and 14 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.