Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Navigation. Multi-level Flash Website



Ok! Here is the problem!

I can make page with some buttons where i can navigate in one level - let's call it Main Page with basic level.
But how can i make subpages in Flash?
I mean - if I press main page button it brings me to page where is another button and this button is linked to different page (not the main page levels).

I think the best way would be to make all pages in new scenes then with button link to specific scene - but how to do that. I need code for this from A to Z. Show how to link to scenes!!!



ActionScript.org Forums > ActionScript Forums Group > ActionScript 3.0
Posted on: 12-03-2008, 06:16 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

[CS3] Multi Level Drop-down Menu. Trouble With The Multi Level Bit
Hi,

I'm creating a multi-level drop down menu for a college project. So far I have 2 main menu items, one of which (products) contains 3 sub menus (line 1, 2 and 3). Line 1 should also have 3 sub menu items (product 1, 2 and 3).

I'm putting the actions for the line1_mc roll over and roll out on the main timeline but it doesn't seem to be working because it is trying to call a movie clip from within another movie clip!

Any ideas would be greatly appreciated!

Multi Level Flash Horizontal Menu
I am trying to create a mulitlevel horizontal flash drop down menu. It's coming along but I have a few issues.
1) I would like to make the text in my Main Menu a different size say (16) and the one in in my sub menu say (12).At present I had to make it 9 for all buttons so that i could fit all my text with some sub menus.
2) When I rollout, the menu i doesn't dissapper until i either rollover another menu item or click on an empty space.
3)I would like it to fit the stage width and not overlap
I have attached my fla code and xml file. Please assist

How To Make A Multi-Level Game In Flash 5
I'm wanting to know, "How to Make a Multi-Level game with Flash 5"? EX: If I were to make a space game, where after reaching a score of 2000 points, the game pauses and displays the text "Stage 2", then continues or provides a button to make the game continue starting on stage 2. Any help with this question is grately appreciated.

coolburn

Dynamic Flash Multi Level <ul> In MyHTMLdata
I am on a Mac, by the way, so I don't have an alt key for special characters.
The following code works great tested in Dream Weaver, but only displays as a one level <ul> in a dynamic Flash 8 text field:

myHTMLdata=<ul><li>Complete collection of data by source<ul><li>Diagnosis</li><li>Medications</li><li>Other data: height/weight; smoking; ADL</li></ul></li><li>Smart system: requirement ordering & tracking</li><li>Integrated underwriting & claims databases</li></ul>

This is more legible in code view, but does not work correctly in Flash 8:
myHTMLdata=
<ul>
<li>Complete collection of data by source
<ul>
<li>Diagnosis</li>
<li>Medications</li>
<li>Other data: height/weight; smoking; ADL</li>
</ul>
</li>
<li>Smart system: requirement ordering & tracking</li>
<li>Integrated underwriting & claims databases</li>
</ul>

Help Please!!

How To Make A Multi-Level Game Using Flash 5?
I'm wanting to know, "How to Make a Multi-Level game with Flash 5"? EX: If I were to make a space game, where after reaching a score of 2000 points, the game pauses and displays the text "Stage 2", then continues or provides a button to make the game continue starting on stage 2. Any help with this question is grately appreciated.

coolburn

Alert Component + Multi Level Flash App
Hi Experts,

Im having a nightmare with trying to display an alert window in my flash movie. It works if the parent of the alert is the same movie. However as soon as i call that same swf from a different swf using the loadMovie method i can no longer see the alert window.

As you can see this is how i call the actionscript.
if i trace(this) in the "child" swf [one that contain the alert] is get _level0.mc_clip.content , where mc_clip is the movie clip symbol i use.

mx.managers.PopUpManager.createPopUp(_root0,mx.containers.Window,true,           {contentPath:"login",  closeButton:true, title:" vpfm.Net Status", _x:x, _y:y});

Any ideas ?

Multi-menus On A Single Flash Full Website
Hey,

I would like to prepare a full flash based website for a friend
with a menu line and contents pages that could me modified by him easily depending on what he wants to display on his website.

Is that possible? It'd be something like that:

HOME | BAND | GIGS | CONTACT

but at some point he might want to add something like PRODUCTS and
that 'd be like:

HOME | BAND | GIGS | PRODUCTS | CONTACT

He can use Flash a little bit, but not too deep.

Do you think it's doable?

Multi-level?
I'm creating something similar to this (re-size, bounce and colour change) and am just wondering if it would be constructed using levels or not?
Any ideas

www.braingiants.com

Thanks

Multi-level Rollovers?
I've created three buttons running horizontally across the top of a page.

On RollOver each button displays three more "sub-buttons" underneath it. Each of the sub-buttons appear in the same area, with the main buttons visible at all times.

At the moment, each of the sub-buttons are .swf files that I load into the area, by adding a loadmovie function to the main buttons.

To achieve a roll-over effect I've also added unloadmovie to each main button, so that for example MainButton1 loads SubButtons1, and unloads SubButtons2 and SubButtons3, and so on for each button.

This is simple coding, but I'm sure there is a more effective way of doing this, especially without referring to external swf files.

Any help or tutorials?

Multi-level Instability
I have a set of Flash movies that dynamically load up several different movies into the 4 levels directly above the Main Engine of the whole application.

The Main engine is served from one web server, while the remaining modular Flash files that is uses are beased on a different server.

Although I have no problems loading the entire application up, it is sometimes very slow, and sometimes the application does not work properly.

HAS ANYONE FOUND THAT MULTI-LEVEL COMPLEX MOVIES HAVE PROBLEMS WITH

-LOADING SWF FILES FROM DIFFERENT SOURCES
-XML TRANSACTIONS NOT WORKING PROPERLY OR AT ALL
-DOWNLOADS COMING TO A GRINDING HALT

Multi-level Menu
Hi.

I'm doing a site redesign, and this time I'm doing it in Flash. I know the basics, and know some very basic ActionScripting.

I want to create a multi-level menu. IE, the buttons come in, user click on one, and that menu goes away. Then a new menu comes in, in place of the old one.

So far, I have the main menu, which goes away when I click on it. However, my scripting is not up to scratch, and at that point, it goes awry.

Any help would be appreciated.

Multi-level Communication
I have a movie running on my main timeline (_root) that loads a SWF on _level10. This SWF, in turn, loads another SWF on _level12.

Now, the _level12 SWF is a basic quiz with some drag and drop interactivity. When I created the _level12 movie it all worked like a champ - I did however use _root for scripting to test it as a standalone. I have 3 draggable buttons (a121, c121, & d121) with the following script:


on (press) {
startDrag (_root.a121, false, 135, 135, 430, 375);
}
on (release) {
stopDrag ();
if (this._droptarget == "/targeta") {
_root.dropCorrect ++;
}
}

and 2 draggable buttons (b121 & e121) with this:

on (press) {
startDrag (_root.b121, false, 135, 135, 430, 375);
}
on (release) {
stopDrag ();
if (this._droptarget == "/targeta") {
_root.dropCorrect --;
}
}

The user then selects the 'Check Answer' button that reads:

on (release) {
if (_root.dropCorrect == 3) {
gotoAndPlay("YES");
} else {
gotoAndPlay("NO");
}
}

I've tried changing every _root instance to _level12 but it's still not working. Any suggestions?

Multi-level Transitions
Ok...so Im practicing transitions between external swf's and I am completely stuck.

My movie has one container clip inside of another container clip...basically a MAIN menu and a SUB menu.

I can get the out transition to work when I am switching between items in the SUB menu, but I want to also find a way that when I hit a MAIN menu button it will transition out which ever SUB menu is loaded first and then transition out the MAIN menu content.

Here is part of the code that I am using on the MAIN menu buttons:


on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "buyers";
container.loadMovie("buyers.swf");
} else if (_root.currMovie != "buyers") {
if (container._currentframe >= container.midframe) {
_root.currMovie = "buyers";
container.play();
}
}
}


There is also a tutorial on how to do out transitions at:
http://www.kirupa.com/developer/mx2004/transitions2.htm
...but it only explains how to work with one container, not a container embedded within another.

Any insite would be GREATLY appreciated!
Katie

Multi Level Arrays
Hello,
Can anyone help me,
I have some arrays within arrays. I want to take an array out of one array and put it in another array. Also i need some way of exporting these changes to a shared object file or a text file, so that i can save the results of these changes.
Thank you.

Please Help Me With A Multi-level Menu
Hello,

I'm trying to make a multi-level drop down menu for a website, and would like some input on how best (simplest) to construct this menu.

The menu is for visiting different countries, and the countries are divided into continents. The very top level is called "Destinations."

Rolling over "Destinations" pulls down a list of "Continents" as a submenu, and rolling over a particular "Continent" rolls out (preferably next to the Continent list) the list of Countries belonging to the Continent. Clicking on the Country takes you to a frame in an externally loaded swf.

The list of countries is updated frequently enough that ease of modification is a factor in choosing how to make this menu.

I saw these nice XML-driven dynamic menus that seemed to be ideal for updating the content, but I have not a clue how XML works. I can do some minor scripting in Actionscript, but I only know how to do a few things (over and over...!).

Could someone give me a suggestion how I should address this? I really appreciate your time in advance.

Thanks guys!

macgirl

Multi Level Swf Forms..
hey all,

i have quite a confusing set up... it consists of "swf_1" (navigation) which loads several other swf's into it. the problem arises as swf_1 masks some content on the other swfs so it must be ontop. however because it is on top i cannot access some input text fields on the masked swfs...


appreciate any help. i was a little ambitious and now just want to get it finished. i cant give up on it..

cheers for any help.

Multi-level Arrays (help Please)
Okay, so I am in the process o fmaking an image gallery, and now that I have gotten so far (okay to the point where this part of the application matters due to placement and loading time issues) I am unabel to get it to work. I have a muti-leveled array in whcih I am storying all of my information for the gallery, it looks somewhat like so:

Array
-images
--gallery 1
---image 1
---image 2
--gallery 2
---image 1
---image 2
--and so on
-titles
--gallery 1
...
you get the point.

Now the problem is that I need to get the length of say Array-images--gallery 1, but it keeps coming up with undefined or NaN when I attempt to trace out the value. Does anyone know what may be the reason for this? How do I get around this type of issue?

This will be used to loop through the images, but only show a max of 27 per page, assuming I can ever get it to work out.

Here is an example of the code I am currently using (and isn't working):


Code:
trace(_galleries['images'][galleryNumber].length);
Where 'images' is simply the sub-array of galleries, and galleryNumber is yet another sub-array, but this time is a variable and not the name of an array.

Thanks for any and all help in advance,
BetaWar

Please Help Me With A Multi-level Menu
Hello,

I'm trying to make a multi-level drop down menu for a website, and would like some input on how best (simplest) to construct this menu.

The menu is for visiting different countries, and the countries are divided into continents. The very top level is called "Destinations."

Rolling over "Destinations" pulls down a list of "Continents" as a submenu, and rolling over a particular "Continent" rolls out (preferably next to the Continent list) the list of Countries belonging to the Continent. Clicking on the Country takes you to a frame in an externally loaded swf.

The list of countries is updated frequently enough that ease of modification is a factor in choosing how to make this menu.

I saw these nice XML-driven dynamic menus that seemed to be ideal for updating the content, but I have not a clue how XML works. I can do some minor scripting in Actionscript, but I only know how to do a few things (over and over...!).

Could someone give me a suggestion how I should address this? I really appreciate your time in advance.

Thanks guys!

macgirl

Multi-level Tree Menu
hi there,

has anybody seen/worked/used a multi level tree menu with multiple nested nodes in flash?

any pointers in this direction?

cheers
mayavi

Problem With Multi-level Menu...please Help
I have a multi-level menu (got the idea from here:
http://www.flashkit.com/movies/Inter...5/index.shtml) and I want to make a third menu level but I'm having a hard time programming it to work right. I'm not sure whether to use a MC for the third level or what, but nothing has been working right.....

Making A Multi Level Game Help
ok i need help with making multiple levels. i want to make it kind of like mario for NES... like when mario presses up in a doorway and goes to a new level. But, the problem is that i dont know how to do that. so if you could please help me it would be greatly appreciated....

~Fl4sh Newbie~

Multi Level Drop MenuHelp
I need help creating a multi level drop menu.I have the first level but need help creating a level off of the first level.Also I need is self retracting.

Multi Level Zoom Menu
Hi,

Would anyone have any tutorials on how to create a multi stage zooming menu like in the following demo links?

http://www.bbdo.com/

http://www.saturday-london.com/

Is this done with actionscript or manually tweening several clips? I can't quite seem to get my head around zooming in and out of several layers. I am currently looking into the Laco tween class as a possible solution, but I was hoping that someone might already understand how to achieve this effect.

Any suggestions appreciated
Regards
NTD

Multi-level XML Parsing With Filters.
Updated with solution.

Initial Problem:

I wanted to parse through an XML file using only a single array:


ActionScript Code:
var my Array:Array = ["a", "b"] //for example  


and the unique 'local' attribute on certain nodes.

Solution:

A new class:


ActionScript Code:
package com.rragona.utils.coreXML {        /**    * ...    * @author rragona    * @version 1.0    *     * This class is intended to take a url-style string (i.e. '/news/archive/2751/')    * and path through a given XML object, using node attributes (@local) to     * return a specfic XML object.     *     */        public class XMLPathfinder     {                public function XMLPathfinder()         {            trace('XMLPathfinder is a static class and should not be instantiated.')        }                public static function loopURL(xml:XML, path:String):XML        {            var mA:Array = retPath(path);            var retXML:XMLList = xml.*;                        for (var z:int = 0; z < mA.length; z++)            {                retXML = findMatch(retXML, mA[z])            }            return retXML.parent();        }                private static function findMatch(xml:XMLList, path:String):XMLList        {            var retList:XMLList = new XMLList();                        for (var z:int = 0; z < xml.length(); z++)            {                if (xml[z].@local == path)                {                    retList = xml[z].*;                    break;                }            }            return retList;        }                private static function retPath(path:String):Array        {            var rArray:Array = new Array();            var fP_A:Array = path.split('/');                       for (var z:int = 1; z < fP_A.length - 1; z++)            {                rArray.push(fP_A[z]);            }            return rArray;        }            }    }

Vertical Multi Level Menu Tutorials
I am looking for a 3 level vertical menu tutorial in actionscript. does anyone know any? Most tutorial I have came across only shows 2 levels.
this menu works like this. upon click of the button, the subsection is revealed. then click on subsection, the sub sub section is revealed. the main links will drop down to reveal the subsections, the subsection will drop down to reveal the sub sub section. Thanks

Multi-Level HitTest Destroying _globals Help
My dropdown menu contains a hitTest MC that unfolds a section containing another hitTest MC. Buttons in the second level hitTest loose their _globals and I have no clue why. There is some conflict between the hitTests and the _globals.

Example: http://www.earph.com/test.html

The "main" button should stay on when you touch "button 3", like it does when you touch "button 2".

Does anyone have a clue to what's wrong, or possibly know a better way to pull this off?

I appeciate it! .fla is attached!

Multi Level Target Path From String
I'm having trouble converting a string (stored in a database) containing a multi level target path into a working target path. I try to do it this way:


ActionScript Code:
_level0[pathFromDatabase]

It works if pathFromDatabase consists of just one movieclip with an appended textfield variable name like: "clip1.textfield1".

But if there are several nested movie clips in the path: "clip1.clip2.clip3.textfield1", it doesn't work as expected. I can still reach the path through action script, but it doesn't match the actual path:


ActionScript Code:
pathFromDB = "clip1.clip2.clip3.textfield1"
level0[pathFromDB] = "Test"
trace(level0[pathFromDB])
trace(level0["clip1.clip2.clip3.textfield1"])

Gives output:

Code:
Test
Test
But it won't change the text field. Nor is the value accessible with relative paths from inside the clips.

Sorry if the explanation is unclear ...

Does anyone know what's wrong, or a better way to achieve what I am trying to do?

XML Import Using Multi-level Arrays - Lost, Please Help
Hi!

I want to solve a problem that seems quite simple to me, but I simply cannot get through it.

After loading an XML file, I would like to get its data to a structure like this:


ActionScript Code:
main_menu[0].name = "m_name1"
main_menu[0].sub_menu[0].name = "s_name1"
main_menu[0].sub_menu[1].name = "s_name2"
main_menu[0].sub_menu[2].name = "s_name3"

main_menu[1].name = "m_name2"
main_menu[1].sub_menu[0].name = "s_name4"

etc. I think it's understandable what I mean. This would be the basic menu-stucture of a website.

Unfortunately I cannot simply use this kind of stuff, for example:


ActionScript Code:
main_menu[0].sub_menu[0].name = MyXml.firstNode.childNodes[0].childNodes[0].name;

I should have to use the push method, but I'm lost while trying to do it in this "multi-level environment".

Can anybody help what's the correct way to embed the for...in cycles and write the push methods in order to retrieve the structure above?

Thank you in advance for your help!

Multi-Level HitTest Destroying _globals Help
My dropdown menu contains a hitTest MC that unfolds a section containing another hitTest MC. Buttons in the second level hitTest loose their _globals and I have no clue why. There is some conflict between the hitTests and the _globals.

Example: http://www.earph.com/test.html

The "main" button should stay on when you touch "button 3", like it does when you touch "button 2".

Does anyone have a clue to what's wrong, or possibly know a better way to pull this off?

I appeciate it!

HitTest On A Multi-Level Popup Menu
So in this post I asked for some help with hitTest on a popup menu and got a perfectly working answer from TheCanadian.

I was just looking for a way to have a flyup on my menu buttons that opened on mouseOver and closed when the mouse left.

TheCanadain gave me this code and it works nicely:
ActionScript Code:
onClipEvent (load) { newy = _y - 45; oldy = _y; vel = 15;}onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) {  _y += (newy - _y) / vel; } else {  _y += (oldy - _y) / vel; }}
Now! I've got an extra spin on the menu as I need to have sub menus.

Here's an example of the menu I'm building:



I've tried a few things but am hitting a brick wall so I thought I would ask.

Any help will be greatly appreciated.

Multi-Level HitTest Destroying _globals Help
My dropdown menu contains a hitTest MC that unfolds a section containing another hitTest MC. Buttons in the second level hitTest loose their _globals and I have no clue why. There is some conflict between the hitTests and the _globals.

Example: http://www.earph.com/test.html

The "main" button should stay on when you touch "button 3", like it does when you touch "button 2".

Does anyone have a clue to what's wrong, or possibly know a better way to pull this off?

I appeciate it!

Flash Website Navigation
Hi, There is someting i have been trying to learn for quite a while now but i am not able to do. When some one clicks on a menu option the browser clicks and you can go forward or backward using the explorer button. i have seen this done in many sites like Lacoste.com or jamesmartinchef.co.uk and i have searched in forums for help but i have not found any tutorials. Can someone please guide me or create a simple example that uses the previous. Thank You very much

Navigation For Flash Website.
Hey guys, i'm learning my way through the works of making a flash website. I've gotten stuck with not being able to change pages via my drop down menu I've made. If someone could send me down the right track it'd be much appreciated

Here's my project thus far:
http://www.launcestoncity.com/city.swf

Website Navigation In Flash
I am building a Flash-only website, so the navigation and everything is contained in the.swf file. I have standard navigation buttons (e.g. About, Contact, etc.) that I currently have setup to change colors via the Up, Over states. My question is this: Assuming that the movie at load defaults to some standard "home" content, how do I display entirely new content when someone clicks on a navigation link such as About, Contact? Do I separate out the content sections by layer and then use a Flash trigger to hide the default layer and load the new layer on click? What actual procedures and functions handle this? Any help would be appreciated.

Problem With Flash Website - Navigation Bar
Hi,
I am building a flash based website, and i am having problems with the navigation bar.

Okay so i have the navigation bar Set as a Movie Clip Symbol, and within that symbol are the animated buttons. Okay so for example one of the buttons is called "Job Search" and I want that button to link to a Frame label in the scene called "Job Search".
Here is my action script for the Button.
on (press, release) {
gotoAndPlay("Scene 1", "JobSearch");
}
But the button does not work, it dosn't link to the frame label at all.
Does anybody know what iv'e done wrong?

Thanks

Help With Flash Website Layout / Navigation
Hi, over the last week or so, i've been designing a flash site (can be found at: http://www.geocities.com/ash_barnard83/test.htm ) - however I've already began to run into several problems, the main one being the general navigation.
Is it at all possible (and if so, how) to use a feature in flash that would be similar to frames in html?

Or is there a method similar to importing txt files into dynamic text fields that allows pictures to be included also?
(An example of what I'm looking for can be found at http://www.dopeweb.com in the audio / video section)

I'm not sure if any of what I just said makes any sense.... but any help that can be given would be much appreciated!

Thanx for your time!

Ash Barnard

Flash Navigation Seems To Be Breaking Website...?
I wanted to ask all of you what you thought about my problem. We have a website that we did for our local city and it seems that the Flash navigation is breaking it. When using IE on a PC the page regularly only loads partway. Sometimes only the <?php include that holds the Flash navigation loads and then nothing else loads.

The website utilizes php and mySQL and each page uses includes to bring the header. I thought this could be related to a cache problem to I included a no-pragma header to force dump the cache for every page in the site. Feel free to click around the site http://www.ci.nampa.id.us and see if you can "break it" just by navigating around using the Flash menu.

Any suggestions? The buttons in the Flash menu are using the most basic global urlGET ("http://www.ci.nampa.id.us","_self"); statement so there seems to be no problem with the page actually being called up.

Anyway...I'll leave it there and see if anyone can crack this case!

Thanks in advance for your help.
Ben

Flash Website Navigation Question
Hi all,

i'm trying to create a flash website where the intial loading of the website, the navigation is a seperate .swf file. I have the navigation loading, but I have no idea what the actionscript should be or if its possible to use an external .swf file to code for the buttons.

What is or is there actionscript where I can load a movie into an empty movie clip from movie 1 using a button from movie clip 2?

Thanks in advance.

Flash Website Navigation Question
Hi all,

i'm trying to create a flash website where the intial loading of the website, the navigation is a seperate .swf file. I have the navigation loading, but I have no idea what the actionscript should be or if its possible to use an external .swf file to code for the buttons.

What is or is there actionscript where I can load a movie into an empty movie clip from movie 1 using a button from movie clip 2?

Thanks in advance.

Question About Flash Website Navigation
Hi,

I have a question about coding navigation within a flash website. Ive seen many sites that have 'reverse' animations when you click on a new link. For exmaple, If I clicked on 'ABOUT' , an animation plays to build up the page. Then I click on 'PORTFOLIO' , what happens now is the 'ABOUT' page does a reverse animation unitl the page is gone, then the 'PORTFOLIO' page animates on screen. I would love to have a better understanding as to what actionscript is used to achieve this.

A visiual example can be found at
http://stenkat.com/sk3main.html

Thanks for your help. Any info would be appreciated

(Thanks 2 stenkat for having a nice site for me to use as an example )

Strange Problems.. Multi Level Variables Won't Work Proparly
Hi,

I'm having a very strange problem with this actionscript I made..

There is a main movie (level0) which loads a preloader (level100). This preloader then preloads 54 other swf files at level201 to 254. All of these swf files will send a variable to the main movie, telling they are fully loaded. And telling the preloader that the preloader can continue with preloading the next movie. This all seems to go ok, except for some variables that i just can't seem to be able to read!

The code:

the main movie comes in a "if frame is loaded" loop, to load itself. Then when it is finished, it will initialize some variables, and load the preloader:


Code:
Load Movie ("preloader.swf", 100)
Set Variable: "clicked" = "none"
(more variables are set, but clicked is needed for this explanation)

Then the preloader gets into a "if frame is loaded" loop. When the preloader is done, it will go to a scene, with a movieclip in it called preloader (so that would make it _level100/preloader) In this movieclip there are 54 frames, all with this piece of code:


Code:
Set Variable: "/:preloadId" = _currentframe
Call ("preloadFunction")
the piece of code it calls for in the call statement is:


Code:
If (Get("_level0:loaded"&/:preloadId) <> true)
If (Get("_level0:clicked") = Get("/:preloadId"))
Begin Tell Target ("_level0/preloaderStates")
Go to and Stop (2)
End Tell Target
End If
Load Movie ("photo_files/photo"&/:preloadId&".swf", Get("_level0:photoStartLevel") + Get("/:preloadId"))
Trace (Get("_level0:photoStartLevel") + Get("/:preloadId"))
Stop
Else
If (Get("_level0:clicked") = Get("/:preloadId"))
If (Get("_level0:clicked") <> Get("_level0:clickedPrevious") AND Get("_level0:clickedPrevious") ne "none")
Begin Tell Target ("_level"&(Get("_level0:photoStartLevel")+Get("_level0:clickedPrevious")))
Play
End Tell Target
End If
Begin Tell Target ("_level"&(Get("photoStartLevel")+Get("/:preloadId")))
Go to and Play ("photo")
End Tell Target
End If
Go to Next Frame
End If

all the files it has to preload are in the folder photo_files. The preloader seems to work properly.. it loads all the 54 files. Each of these files have a piece of code, similar to this (only the itemId variable changes):


Code:
If Frame Is Loaded (last frame, "lastframe")
Set Variable: "itemId" = 1
Set Variable: "_level0:loaded"&itemId = True
Begin Tell Target ("_level100/preloader")
Go to Next Frame
End Tell Target
Go to and Play (photo, "photo")
End Frame Loaded
Okay, now here is the problem.. I can't read all the variables from the main timeline!
When i trace some of the variables, some of them work just fine.. and some of them just don't appear!
for example:


Code:
Trace (Get("_level0/:clicked"))
will give the word "none" (which i set clicked at, in the init) and:


Code:
Trace (Get("_level0/:loaded"&/:preloadId) )
won't give any value!

if i run the movie in flash, and use CTRL+V to check on the variables, then i see this:


Code:
Layer #0:
Variable _level0:clicked = "none"
Variable _level0:loaded1 = "1"
Layer #100:
Variable _level100:preloadId = "1"
so.. what am i doing wrong?

damn this is one long post :)

Thanks in advance!

Multi-language Website
Hi everyone,

I'm currently building a flash website (Flash 9, AS3.0) which will be bilingual (English and French). I'll be using XML and txt files to store the text in both languages. I was wondering, what is the best way to store and use the user's language choice? I was gonna use a global variable, but apparently these are out in AS3, and the alternative way doesn't look like good practices, so i'm not sure what to do.

Here's an example i found which has multiple languages, but in this example, I don't find it practical to have to use different frames to load the different texts. So i'd be interested in suggestions for other approaches to try. If you know of other sample files i could base myself on i'd really appreciate.

Thanks!

[FMX04] Automating Color Object Variables For Multi-level Game
Hi, I'm trying to create a simple multi-level game with actionscript 2 (MX2004).
In the game I have many box movie-clips which must be moved by the player to "Home"
positions, when they are over a Home they change colour.
I have achieved the colour change with setTransform (not setRGB as I want transparency in
order that the boxes retain their detail)
This is a snippet of the code for a level with 4 boxes in it:
var numBoxes:Number = 4;
var box_color1:Color = new Color(box1);
var box_color2:Color = new Color(box2);
var box_color3:Color = new Color(box3);
var box_color4:Color = new Color(box4);
// Set the values for myColorTransform
var BlueT:Object = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:250, aa:100, ab:70};
var OriginalT:Object = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:255};

//Check whether over any 'HOME' and then set Home colour
for(i=1; i<=numBoxes; i++)
{
if (this["BoxHome" + i].hitTest(this["box" + t])) // 't' is the box we're pushing
{this["box_color" +t].setTransform(BlueT); home_array[t] = 1; break;}
else {this["box_color" +t].setTransform(OriginalT); home_array[t] = 0;}
}
So the Boxes start off one colour (green) and when they are pushed over a "Home" area they
change to a blue colour.
This ALL works well - don't know if it is the most efficient approach.
My problem is each game levels has differing numbers of boxes, so for a level with 32
boxes I would have to have 32 lines of
var box_color1:Color = new Color(box1);
var box_color2:Color = new Color(box2);
.
.
.
var box_color32:Color = new Color(box32);

I have two problems with this - obviously it is inefficient, but more importantly I cannot,with this method, use the same code for all levels, with merely a change of
numBoxes (the number of boxes on the level).
I was hoping to do something like:
var numBoxes:Number = 32;
for(i=1;i<=numBoxes;i++)
{
var ["box_color" + i]:Color = new Color(boxi);
}
Which doesn't work - the Left Hand Side is faulty.
I've googled endlessly for days without success,
I hope you can help.

Creating Flash Website With Single Navigation
I created a website in a single movie using scenes whereby clicking a button would load the appropriate scene or "page". After perusing the forums, I realized that most people advocated using a single navigation mc and then loading mc's for each page. This is more efficient, smaller file sizes and only loads pages (mc) as necessary. I guess you can use actionscript to indicate the down state for a clicked button and load a mc of the appropriate page. However, I cannot discern the code or understand the "container" for the buttons or how to go about creating a site in this manner. In addition, I would like to "convert" the site with scenes I just completed. Is there a tutorial or can someone explain the philosophy and steps involved in creating a site in this manner?

Thanks

Website Architecture / Flash Navigation Behavior, Etc.
I am a web developer trying my hand at Flash for the first time. I need to build an entire website in Flash--each section (approx 3-5 sections / 18 total pages) of the website has a unique background, audio soundtrack, content, etc., so my question is this: Does it make sense to load all the website images, audio, etc. for every section all at the time of the initial homepage access or is it better practice to have separate Flash movie files for each section of the website, loaded when clicked in the navigation?

I obviously need to do much reading up on this, but also would somebody point me in the right direction by letting me know what menu and/or setting in Flash would control the behavior once a website navigation item were clicked (basically, making the background, content, audio, etc. for one section disappear and subsequently displaying the entire contents of a new section)?

Any advice would be appreciated.

Website Navigation Flash File, Thing...
Hello there, ive been trying tirelessly with this problem and im wondering wether with your wisdom you can help at all... Now basically... what I want to happen...

<<Website Loads>>

A bar comes down from the home words on the Flash file and in the "main" frame for the website the home page is displayed...

You click... Members (for example)
The Home Bar fades away and sinks back... and the members bar emerges and stretches out...once it reaches the end the "members" page is loaded into the frame.

Now someone please tell me what im doing wrong... I have attached the .fla file, for MX 2004

Hybrid Website Navigation And Flash Vars
hi, i've got a noob question pertaining to hybrid websites (flash and html).

if you are building a flash navigation system (nav buttons, breadcrumb, etc.) which loads different html pages how do you build in an indicator in the flash to indicate what page you're on?

meaning, you can't pass variables because the movie will be reloaded when a new html page (containing the flash movie) loads and any variables will be gone correct?

Is Flashvars a solution for this? can you use it to pass a variable to your flash movie and make decisions in flash based on that variable?

any input, advice is appreciated.

Multi-tier Navigation
Hey guys!

I've got this navigation that it completely baffling me. Mind you, i've been out of commission for quite some time, forgetting things in the mean time. if anyone can help, I've be eternally indebted.

please see attached ZIP. (it's convoluted, but should be clear as to what we're going for)

thanks in advance!

YS

Copyright © 2005-08 www.BigResource.com, All rights reserved