Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 06-26-2001, 08:54 AM   #1
Registered User
Join Date: Jun 2001
Posts: 1

i'm developing a website for a client and he would like me to incorporate flash to create a dynamic 3-level menu system. basically the site is going to show 12 buttons, "Major Categories"...when a user clicks one it shows a list of that parent's "Minor Categories"...when a user clicks a minor category it shows a list of that parent's "Product Categories", and when a product category is clicked it will take the user to a certain webpage.

I'm using Generator for the minorCat and majorCat scrolling lists. My idea is to use a main SWF file, call it "project.swf", and in it have 12 buttons and a movie clip. when one of the 12 buttons is pressed it should load "minorCats.SWT" into the first movie clip, and send it the variable "currentMajorCatNum" as defined by which button you're pressing. Basically it's going to look like this:


where the circles are the buttons and the other area is the movie clip. inside the movie clip is just going to be a scrolling list using generator that i already have tested as working.

i have it set up so that when i enter a data source manually in minorCats.SWT using the set environment button at the top of the timeline like this:
#Name, Value
currentMajorCatNum, 972
972 is the number for the "cpu" major category. the reason we need the currentMajorCatNum is because the data source of the scrolling list is a PHP script, http://www.bestpcquotes.com/flashmen...?parentid=972. the thing is, i want it to be dynamic, as in


i set the data source of the scrolling list to that string, and it works when i manually code in the data source as described it works correctly. however, i'm trying to call it from another flash file, so i'm using the loadMovie command. here's what i have attached to the CPU button

on (release) {
fCurrentMinorCatNum = "972";
loadMovie ("minorCatList.swt?currentMinorCatNum=" + fCurrentMinorCatNum, "minorCatListHolder");

minorCatListHolder is an instance of movieClipHolder (a Movie Clip the dimension of the minorCat.SWT file). the call to load movie works alright and doesn't give me any errors, and i can tell it called the movie as my blank placeholder gave way to a designed minorCat page, but the scrolling list no longer works.

basically, the SWT isn't accepting the currentMinorCatNum variable from the loadMovie call. what's wrong with my code?!
phatbuddha is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
No vars passing through a mask fazedout ActionScript 1.0 (and below) 1 02-15-2005 10:49 PM
Some vars not passing thru php to mysql. dynamic1 Server-Side Scripting 4 11-29-2004 11:30 PM
Passing variables to / from loadMovie clips cyanescent ActionScript 1.0 (and below) 2 10-12-2004 09:25 AM
loadMovie passing vars in URL string flavoredthunder ActionScript 1.0 (and below) 5 04-25-2003 10:15 PM
loadmovie question. passing var's ??? Gren2003 ActionScript 1.0 (and below) 1 03-02-2003 12:13 PM

All times are GMT. The time now is 04:28 AM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.