Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

question? 2

Status
Not open for further replies.

coldfused

Technical User
Jan 27, 2001
2,442
US
ok i have a map of the states right..scene 1..would it be feasible to have 48 other scenes that would be links for the states..then each one of those links would have a total of 30 links inside that..giving me a total of 1440 scenes for one swf..all the links after the states link(scene1) would only be text..is this possible or do i have to break it all up into different swf's..is their a limit to what flash can do as far as one swf?

sheeeeeeesh..
e.gif


carlsatterwhite@endangeredgraphics.com
 
Couldn't you just use two scenes? First one for your map and the second one for the 'state' info. In the second scene have the 30 text links set-up as variables (embed the text into the buttons) and then set those up depending on the state picked. For the picture of the state you could do that thingy where you have a blank mc and then load a picture of the state from the library into it. I can't remember the exact command for it, but I remember Dave mentioning it to someone else ages ago on here.

Just an idea anyway.

(Typical programmer, eh? re-use, re-use, make it smaller!)

=)

PetitPal.
 
Darn, just thought...

Do you need to use scenes? Could you not use frames on the main timeline instead?

The other thing is how different is each link from the 'state page' going to be? If they are all going to be basically text and a picture; you could set them up using script (load an mc, move text around, blah blah blah).

=)

PetitPal.
 
have a look at
inside the vendors button is where i'm at..when you click on a state it pulls up that scene..that scene has 30 links inside..each link inside will have more links to the appropriate business that advertises inside..if i can keep it all in one movie that is what i want to do..to many files if i can't..for all the state scenes they will all be the same except for the actual name of the state..that being the only change for the 48 scenes..or whatever..up for suggestions! petite i will consider what you have suggested when i wake up..5:00 am here been at it all night..time to rest..

the only thing is if i do it all in one movie..the download time???????
e.gif


carlsatterwhite@endangeredgraphics.com
 
by the way if you guys look..the only link on vendors that is up is florida..
e.gif


carlsatterwhite@endangeredgraphics.com
 
Virt: go to bed...sleep.... *grins* (my posts are confusing enough when full refreshed ;) ).

Sites looks really nice though; even if it did take me ages to find Florida (that's me not knowing anything about the US though!).

I don't think you're going to need a seperate scene for each one... it's going to be tons less work to do it with script.

I'd just have a single scene for the 'from the map' page (with the 30 links on). (Make the state name a dynamic text box, and put the state name in when you call the scene.)

Each of the 30 buttons should then link to a single frame within that scene. You could then load, from a text file or similar, the services (and links) for each one. To clarify a little; if you hit button 9 for security, you jump to frame 10 (frame 1 is the inital screen remember) and this then loads a text file of all the security services, and the relevant links, for florida.

You would have to have a consistent naming convention for the text files (say: ss-ttt.txt, where ss is the state and ttt is the job type). It's fairly easy then to construct the file name and load it accordingly.

I guess for the buttons that will link to the indivdual service sites you would have to have a button, in an mc, with some dynamic text embeded, which you can duplicate and set for each service company in the file. (OK, so I'm getting confused now, but you get the idea!)

OK, here is an even sneakier one (which I just tried out!); to make the service site links (i.e.: You choose a state, then a service and then get the service site links displayed) you could just have a dynamic text box which allows html formating. Then all you need to do is load the relevant html formated text file with the <a href=' site</a> tags in.

This means you don't have all the problems of duplicating buttons etc.

Anyway - suppose I should actually do some of my large pile of work now!

=)

PetitPal.
 
jesus petitpal..i just woke up from a 5 hour nap..and i am now more confused then when i went to bed..
e.gif


carlsatterwhite@endangeredgraphics.com
 
*lol*

Sorry Virt =)

OK, basically I think all you need to do is:

(1) One scene for the map.
(2) One scene for the services in the state.
(3) One scene for the service listed in (2).

In (1) put the state name (e.g. Florida) into a variable.
In (2) have the state name as a dynamic text box (called the same as the variable from (1).

When the user hits an entry in (2) use a gotoAndStop() to jump to the listing scene (3).

In this scene (3) set-up a variable with the state name (e.g. 'Florida') and a job code (e.g. 'mech' (for mechanics)) then use an eval command with the load variables thing on this variable to load some html formated text (from a file called, in this case, florida-mech.html) into a dynamic text box on the main timeline of your scene.

All you gotta do is make sure that the html formatted text has some <a href> links in to the relevant service sites and voila! (As the French might say, but probably wouldn't.)

What do you reckon? It might work - also makes it very flexible and easy to maintain.

=)

PetitPal.
(aka: Mr Confusing X-) )
 
Hmm...

What I'd do if i were you would be to use moviec clips. Make a generic &quot;state&quot; mc and then add everything you need to it before duplicating it 48 times for each of the states names. THen add graphics and use &quot;go to frameLabel&quot; actions. This way you'll be able to subdivide these things into one scene with about 48 layers (not too bad) containt about 30 layers each for each link. Then have the buttons or scened target specific movie clip (don't forget to name all of them!) Just my suggestion. That way you can edit one and affect all of them. I doubt you need 1448 (or whatever) scenes.

Blended
 
lol.you guys are killing me..off to school now will work this out tonight when i get home..thanks for the suggestions guys..either way i go thanks for the help..
e.gif


carlsatterwhite@endangeredgraphics.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top