home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Graphic Design and Digital Photography
Ask a Tech Support Question (free)!

First full Flash Web Design

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 1162
Discussions: 200,929, Posts: 2,379,148, Members: 246,296
Old June 28th, 2003, 07:55 PM   Digg it!   #1 (permalink)
Ultimate Member
 
Emc2's Avatar
 
Join Date: Oct 2001
Location: Savannah, GA
Posts: 1,752
Send a message via AIM to Emc2
First full Flash Web Design

I'm creating a site for a restaurant, and can't seem to figure out how to switch between the "pages". Each page is already complete, in its own .swf file, but I haven't done the navigation buttons yet.

I can't seem to figure out where to start -- I'm using SAMS books, but they don't seem to help in that area much.

HELP
Emc2 is offline   Reply With Quote
Old June 28th, 2003, 08:05 PM     #2 (permalink)
Perfetc Member
 
VHockey86's Avatar
 
Join Date: Jan 2003
Location: Maryland Suburbia
Posts: 4,334
I'm not much of an expert with flash but I know you can program buttons to goto different links, Or i suppose if you wanted it all on one web page you could import each .swf file as a different scene, and then just use link buttons to go from scene to scene
VHockey86 is offline   Reply With Quote
Old June 28th, 2003, 10:11 PM     #3 (permalink)
Ultimate Member
 
Emc2's Avatar
 
Join Date: Oct 2001
Location: Savannah, GA
Posts: 1,752
Send a message via AIM to Emc2
that's what I couldn't find...how to go from scene to scene or even frame to frame
Emc2 is offline   Reply With Quote
Old June 28th, 2003, 11:34 PM     #4 (permalink)
Ultimate Member
 
Emc2's Avatar
 
Join Date: Oct 2001
Location: Savannah, GA
Posts: 1,752
Send a message via AIM to Emc2
Ok, found the gotoAndStop() function.

So I'm putting all of the libraries into one file, putting each "page" in a new keyframe, and using

gotoAndStop([frame#])

From what I understand, Frame 2 in the interface is frame 1 in Actionscript, correct?

The problem that I have right now is getting the stupid movie to STOP as soon as it's loaded. I put stop(); in the first frame, but it doesn't do anything Even made the entire thing a symbol named "Menu" and said Menu.gotoAndStop(0), but nothing

Socalgal, rh71, anyone?
__________________
My R&D machine:

AMD 2100+ @ 2700+
Asus A7N8X-E
1GB Kingston PC333
2xWD 74GB Raptor's in SATA RAID
ATI 9700Pro w/ Zalman Heat Pipe
Emc2 is offline   Reply With Quote
Old June 28th, 2003, 11:50 PM     #5 (permalink)
Perfetc Member
 
VHockey86's Avatar
 
Join Date: Jan 2003
Location: Maryland Suburbia
Posts: 4,334
When you're testing this out, are you just prssing enter inside of flash or are you exporting it?

If your testing it in flash you need to goto
Control --> Enable Simple Frame Actions
for stop commands to work
VHockey86 is offline   Reply With Quote
Old June 28th, 2003, 11:55 PM     #6 (permalink)
Perfetc Member
 
VHockey86's Avatar
 
Join Date: Jan 2003
Location: Maryland Suburbia
Posts: 4,334
Heres a really simple example that i made to test it out
http://APstorage.tripod.com/Test.fla
VHockey86 is offline   Reply With Quote
Old June 29th, 2003, 12:00 AM     #7 (permalink)
Perfetc Member
 
VHockey86's Avatar
 
Join Date: Jan 2003
Location: Maryland Suburbia
Posts: 4,334
If you wnat to use scenes....

The syntax is

gotoAndStop(scene, frame)

or

gotoAndPlay(scene, frame)

Edit--

For Example:

on (release) {
gotoAndStop("Scene 2",1);
}

example with scenes...
http://APStorage.tripod.com/Test2.fla

Last edited by VHockey86 : June 29th, 2003 at 12:17 AM.
VHockey86 is offline   Reply With Quote
Old June 29th, 2003, 12:32 AM     #8 (permalink)
Ultimate Member
 
rh71's Avatar
 
Join Date: Oct 2001
Location: LI | NY
Posts: 1,250
Send a message via ICQ to rh71 Send a message via AIM to rh71
It's tough to get a mental picture of what you've got so far - so let me say this -

You don't need to make all the links their own .swf files. Your full flash site can be a single .swf. The only disadvantage to this is that the full size of the .swf needs to be loaded at one time as opposed to loading when each link is needed (when each link is hit). Preloaders are a good way to get around this problem.

Anyway, to be able to make a fully interactive size with Flash links, you need to incorporate many of the following: stop(), gotoAndPlay(), getURL(), loadVariables(), and loadMovie().

To get you started, if you want to keep all your links as separate .swfs, use the loadMovie() action on the buttons. (When writing actionscript, use normal mode so the actionscript editor can guide you through options in the function).

Alternatively, use 1 .swf as your whole flash site in one of the following two ways.
1) Scenes - VHockey86 has described this - use gotoAndPlay()

2) In your timeline, make use of the layers and frame labels. This way, you can make each button link say:

on (release) {
gotoAndPlay ("frame_label_name_here");
}

The 2nd method is a bit more complex, but it works just as well as scenes.

If you want to test your movie as if it was deployed to a site, hit CTRL-ENTER.

I can't give anymore problem-specific help right now. Post back with any progress and I'll see if I can help more tomorrow. Good luck.
__________________
rh71.com
rh71 is offline   Reply With Quote
Old June 29th, 2003, 03:12 AM     #9 (permalink)
Ultimate Member
 
Emc2's Avatar
 
Join Date: Oct 2001
Location: Savannah, GA
Posts: 1,752
Send a message via AIM to Emc2
Well, I finally realized what I should be doing, and wound up doing the frames thing (rh71's second suggestion), although it's sorta done now. Keep in mind that this is a rough draft, and the rest of the site won't necessarily look like this:

http://www.emc2logic.com/menu.swf

Perhaps each main page of the full site could be a different scene. This menu right here is a sub-menu system.

oh, also, I was doing publish-preview to preview the final result. I also put the stop(); command on the second frame instead of the first so the contents of the first would load before the frame stopped....don't know if it's correct, but it works

Thanks Everyone!

Last edited by Emc2 : June 29th, 2003 at 03:15 AM.
Emc2 is offline   Reply With Quote
Old June 29th, 2003, 12:12 PM     #10 (permalink)
Ultimate Member
 
Emc2's Avatar
 
Join Date: Oct 2001
Location: Savannah, GA
Posts: 1,752
Send a message via AIM to Emc2
Ok, now that I've had a nice, long sleep , I'm trying to figure out how to put an effect into the library.

I'm trying to use a fade on a different part of the website, but I want to save the actual fading action to the library--not the fade and the images. I've heard that this can be done, but I don't have the books now that I had last night (partner has them), and can't quite figure it out.
Emc2 is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (2868)
Obama the Muslim (14)
California Passes Anti-Flat-HDTV Le.. (39)
Is the PSU I received dead? (10)
windows vista security holes (9)
HIS HD5770 graphic card question (15)
Print spooler problem (13)
Foreign voltage (10)
Install XP pro and a Vista laptop ?.. (10)
Dept. of HS: NSA 'Helped' Develop V.. (15)
A good PSU? (10)
Ideal cheap graph card for PC-Gamin.. (16)
New Computer wont recognize XP disc (7)
EVGA 9800 gtx help with finding a g.. (8)
Recent Discussions
Regular Build (3)
solutions for virtical white lines on.. (0)
Ideal cheap graph card for PC-Gaming? (16)
Graphics Card Upgrade Question (0)
Fire in DVD (2)
Modern Warfare For the PC (33)
radeon x850xt platinum & shader 3 (3)
Have you switched yet? (84)
Install XP pro and a Vista laptop ?? (10)
Wireless Router+Cable Modems and Much.. (0)
Optical Audio A-B Switch (1)
windows vista security holes (9)
The NTDVM CPU has encountered an ille.. (24)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (34)
Wireless speakers for PC? (11)
Print spooler problem (13)
Help getting around port 80 for camer.. (2)
Display shows 3x5 inch in middle of s.. (3)
monitor will not turn on at all, (1)
World's largest Monopoly Game using G.. (331)
Foreign voltage (10)
FiOS modem/router interfering with ne.. (7)
Browsers wont load websites (2)
Virus Doctor Popup? (1)
Dept. of HS: NSA 'Helped' Develop Vis.. (15)


All times are GMT -4. The time now is 04:49 AM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28