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








How To Get The Value Of Drop Down Menu Component


in HTML when we want to insert a drop down menu to the page, we can define the name and the value of the each select item. I would like to know if Flash MX support both name and value. Is the below syntax correct if I want to define my first itme with showup name Eric and its value "001".

student_list.addItem("Eric","001");

Additionally how can I get the selected value? thanks




FlashKit > Flash Help > Flash MX
Posted on: 11-03-2003, 01:29 AM


View Complete Forum Thread with Replies

Sponsored Links:

Drop Down Menu Component
I have completed a tutorial for a drop down menu. I test the movie and clicking on a submenu item named Save under a main menu heading named File and using a trace action, correctly identifies the item as shown in the attached code. However, I don't know how to use this result to then proceed to a movie clip named "Save". (These are just sample names for my trials.) I would have thought if I put a movie clip named Save with a frame label "Save", I could just replace the trace (e) code with gotoAndPlay(e); The logic is working to a point, as when I do this, I get a compiler error saying there is no label "Save" on Scene 1, so Flash is attempting to find the correct target. This is the compiler message "[MenuEvent type="itemSelected" bubbles=false cancelable=false eventPhase=2 menuIndex=0 menuLabel="File" itemIndex=1 itemLabel="Save"]
ArgumentError: Error #2109: Frame label [MenuEvent type="itemSelected" bubbles=false cancelable=false eventPhase=2 menuIndex=0 menuLabel="File" itemIndex=1 itemLabel="Save"] not found in scene Scene 1.
at flash.display::MovieClip/gotoAndPlay()
at test_fla::MainTimeline/handleItemSelected()
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at fl.example::MenuBar/fl.example:MenuBar::menuMouseHandler()"

I am wondering if a frame label and an indexLabel are two different things?

I am using Action Script 3 strictly. Anybody out there with any ideas?

Thank you.







Attach Code

import fl.example.*;

menuBar.addEventListener(MenuEvent.ITEM_SELECTED, handleItemSelected);
function handleItemSelected(e:MenuEvent):void {
trace(e);

}

[MenuEvent type="itemSelected" bubbles=false cancelable=false eventPhase=2 menuIndex=0 menuLabel="File" itemIndex=1 itemLabel="Save"]

View Replies !    View Related
Drop-down Menu Cut Off By Flash Component
Hi,

I am using Flash CS3.

I have a drop-down menu and a Flash component immediately below it. When I hover over the menu item, it opens downwards but gets cut off by the Flash component.
This doesn't happen if I replace the Flash component with a picture.

Any advice what could be done will be much appreciated.

View Replies !    View Related
Setting A Drop Down Menu Component To A Certain Label
I am using the drop down menu component for the user to select a sex. The component is named "sex_select" The labels are: Unknown, Male, Female.

When the user hits a certain frame, I want to set the selected menu item to Female. How can I do this?

Your help and suggestions are greatly appreciated.

View Replies !    View Related
Flash Drop Down Menu Like Fireworks Drop Down Menu
Is it possible to make a drop down menu in flash that drops down on top of html on the webpage? (i'm not sure how to describe this, what I mean is a drop down menu like the one used on Launch.com) I know this is possible in fireworks, but I want the buttons to have flash rollovers... is it possible to first off do this in flash or 2nd import my flash to fireworks and then make the drop down from there? If anyone could point me towards a tutorial or movie that does this that would be great. Thanks

View Replies !    View Related
Drop Down Menu PROBLEM-Down State For Sub-menu Item Linked To External SWFs?
Hi nice to meet everyone. The drop down menu I'm referring to is located in the main movie. The menu is a movie clip with the buttons inside and I have each button as 'track as menu item' in the properties. The buttons are linked to external swfs that load in the empty movie clip on the main movie stage. Everything loads perfectly no problem. I can't seem to figure out the right code to put on the sub-menu items/buttons in the drop down menu to show the 'down' state when the corresponding movie is loaded (i.e., about-main button, philosphy(menu item). When the 'philosphy' swf loads how do I get the 'philosphy' button that is in the main movie to show the 'down' state until another button is pressed on the menu? I hope I explained myself clear enough without confusing anyone!

Below is a sample of the code that I currently have on the the regular buttons that DO NOT sub-menu items:

on (release) {
gotoAndStop("home");
_root.contents.loadMovie("home.swf");
}

And here is the code that I currently have on the main buttons that have sub-menu items:

on (release) {
_root.contents.loadMovie("philosphy2.swf");
setProperty("_root.home", _visible, "0");
}

I have searched everywhere on the net, tutorials and still can't find the answer, I've been working on this for almost a week now and I just can't get it right.

Thanks again your help is greatly appreciated!

View Replies !    View Related
Drop Down Menu-Down State For Sub-menu Item Linked To External SWFs?
Hi nice to meet everyone. The drop down menu I'm referring to is located in the main movie. The menu is a movie clip with the buttons inside and I have each button as 'track as menu item' in the properties. The buttons are linked to external swfs that load in the empty movie clip on the main movie stage. Everything loads perfectly no problem. I can't seem to figure out the right code to put on the sub-menu items/buttons in the drop down menu to show the 'down' state when the corresponding movie is loaded (i.e., about-main button, philosphy(menu item). When the 'philosphy' swf loads how do I get the 'philosphy' button that is in the main movie to show the 'down' state until another button is pressed on the menu? I hope I explained myself clear enough without confusing anyone!

Below is a sample of the code that I currently have on the the regular buttons that DO NOT sub-menu items:


ActionScript Code:
on (release) {
    gotoAndStop("home");
    _root.contents.loadMovie("home.swf");
}

And here is the code that I currently have on the main buttons that have sub-menu items:


ActionScript Code:
on (release) {
    _root.contents.loadMovie("philosphy2.swf");
    setProperty("_root.home", _visible, "0");
}

I have searched everywhere on the net, tutorials and still can't find the answer, I've been working on this for almost a week now and I just can't get it right.

Thanks again your help is greatly appreciated!

View Replies !    View Related
How To: Create A Drop Down Menu With XML Data For Menu Items
Can anyone help by showing me or pointing me in the right direction of how I'd go about creating a drop down menu and populating the menu items from an XML file?

I'm creating a tour sort of thing and I have it pulling in the slides of the tour from an XML file and all the next/prev buttons are working fine. I wanted to add a drop down menu from the top that has the menu items pulling in from elements from the XML file. Possible? Ideas?

Thx

View Replies !    View Related
Menu Vs. Submenu Appearance : XML-Driven Drop-Down Menu Help
I love Senocular's XML-Driven Drop-Down Tutorial. But I can't seem to get it to make the menu headers look different from the submenus.

Any help?

See the tutorial

Much appreciated.

(and if anyone is interested, i've turned it into a horizonal menu... reply and i'll post the code. better yet, help me fix the GUI issue and i'll post it )

View Replies !    View Related
Flash Expanding Menu Instead Of Javascript Drop Down Menu?
I am trying to make a flash file that will take the place of a javascript drop down menu. I need to have a slim horizontal menu bar surrounded top and bottom by the rest of the HTML webpage.



The function of the flash menu would be such that when one of the buttons are moused over > the menu would expand over the HTML images below it with more menu buttons.



This is really easy to do with javascript but I want the creative freedom flash offers. Does anyone know how I can create a flash file that can expand larger than it’s original size on the webpage



I have seen some really neat flash banner ads that definitely are on top of other html. Maybe I could do something like that.



Please let me know any ideas or resources I could use to do this.



Thanks.

View Replies !    View Related
Senocular's XML Drop-Down Menu - How To Use Different Clips For Menu And Item?
I have been playing with the Senocular's tute on xml, and was wondering how i would implement one look for the menu items and one for the submenu's.

I tried doing if statements (if name attribute = name, the use a different clip) but that didnt seem to work.

Any ideas?

View Replies !    View Related
How To: Create A Drop Down Menu With XML Data For Menu Items
Can anyone help by showing me or pointing me in the right direction of how I'd go about creating a drop down menu and populating the menu items from an XML file?

I'm creating a tour sort of thing and I have it pulling in the slides of the tour from an XML file and all the next/prev buttons are working fine. I wanted to add a drop down menu from the top that has the menu items pulling in from elements from the XML file. Possible? Ideas?

Thx

View Replies !    View Related
Menu Vs. Submenu Appearance : XML-Driven Drop-Down Menu Help
I love Senocular's XML-Driven Drop-Down Tutorial. But I can't seem to get it to make the menu headers look different from the submenus.

Any help?

See the tutorial

Much appreciated.

(and if anyone is interested, i've turned it into a horizonal menu... reply and i'll post the code. better yet, help me fix the GUI issue and i'll post it )

View Replies !    View Related
How Do I Get Component Drop-down Menus To "Drop-Up" Instead Of Dropping Down?
Hi,

I've been working on this website that has a component drop-down menu that needs to "drop-up" instead of down. How can I get it to do that?

I have another drop-down menu that is "dropping up" on the home page of the site that I am working on. I think it is doing that because it is positioned at the very bottom of the stage (movie). There is no room for the drop-down to be displayed, so it automatically goes up instead of down. However, there's another two drop-down menus that positioned at the bottom of the stage and for some strange reason they drop-down instead of up.

To see the working "drop-up" menu, click here. This is a testing server, as the site hasn't been launched yet. To see the stubborn drop-down menus that keep dropping down, when they should be "dropping up" then you'll have to enter in a 'test' booking. Select a branch (eg: Sydney), then type in "12345678" for the phone number, then type in a 'Contact Name' (your name or whatever) and then click on "Quick Pickup". You will then be taken to a page where you'll be able to see the two drop-down menus at the bottom on the left-hand side.

Any help will be greatly appreciated.

Blastbum

View Replies !    View Related
Drop Menu With Toggle Menu Items
I am having an issue with the toggle state of a couple of buttons in a menu.
I have provided a simplified version of a menu system I am trying to build as a zipfile attachment.

the first menu is empty. For this demonstration it has no purpose but to move the main time line from from frame 1, to frame 2.

The second menu (on frame 3) turns off and on two movie clips that are loaded externally. I have no problem initially loading them, and no problem turning them off and on with the toggle switch's loadMovie and unloadMovie commands.

The problem comes when I've unloaded a movie using the toggle button in the second menu, then click on the first menu. When I've clicked on the 2nd menu again, the toggle switch isn't in the same state that it was last left in. I have no idea how to make it remember which state it was in.

Is there someway I could ask,
"If movie is not loaded, got to off state.
If movie is loaded, go to on state." ?

Here is a zip file with the FLA files and the external SWF's.

Here is the menu in action:
Click here

Please help if you can.

View Replies !    View Related
Scolling Menu With Drop Down Menu In Side
hey all im trying to design a site with a scrolling menu which will let you scroll from page to page also on each page there is a drop down menu. I was wondering how I would go about doing this. Thanks all for your help.

from Rublink182

View Replies !    View Related
Horizontal Scroll Menu With Drop-down Menu Over It
hey guys, i'm running MX 2004 pro.
here's what's going on:

i've got a horizontally-scrolling menu (in a movieclip) that is constructed similarly to the tutorial here: http://www.flashkit.com/tutorials/In...-815/index.php

in the same .fla, there is also a drop-down menu, that when down covers part of the scrolling menu. this, of course, triggers the scrolling menu. ideally, the scrolling menu would instead continue to scroll, and be unaffected by a user selecting an item from the drop down menu.

in the timeline, i have the following code pasted onto the instance of the horizontal scrolling menu:

onClipEvent (mouseMove) {
xmousepos1 = _xmouse;
ymousepos1 = _ymouse;
if (xmousepos1>xmousepos2 && ymousepos1>-45 && ymousepos1<60) {
_root.scrollclip.nextFrame();
}
if (xmousepos1<xmousepos2 && ymousepos1>-45 && ymousepos1<60) {
_root.scrollclip.prevFrame();
}
if (ymousepos1<-45 || ymousepos1>60) {
play();
}
xmousepos2 = _xmouse;
ymousepos2 = _ymouse;
}


how could i modify this so as not to be affected by the drop down menu? unfortunately, moving the position of the drop down is not an option.

thanks for reading and thanks for your time,
decerebrate

View Replies !    View Related
XML Drop Menu: Close Menu On Roll Out
Hi,

As I was working through this tutorial I noticed that once the submenu is open you have to click the button to close the submenu.

Any ideas on how to have the submenu close once you roll out of the hit area.

This may be counter-intuitive to the idea of the tutorial but I don't think I'll have any menus beyond the drop down.

Thnaks

Ponyack

View Replies !    View Related
XML Drop Down Menu That Populates A List Menu
I was wondering if anyone could help me out. I've taken a few tutorials and from different sites and customized them, but I'm still new to AS 3 and a bit scared of XML, arrays and loops. if anyone can tell me what im doing wrong, that would be excellent. I've attached the xml file as well.

thanks in advance.
-b

ps. if someone has a better way of doing this, i'm open to suggestions. thanks.


//Imports needed for animation
import fl.transitions.Tween;
import fl.transitions.easing.*;
import caurina.transitions.*;
import fl.data.DataProvider;

//Array used for the tween so they won't get garbage collected
var tweensArray:Array = new Array();
//Used later when we animate the buttons
var buttonTween:Tween;

var yOffset:Number;
var yMin:Number = 0;
var yMax:Number = scrollbox.sb.track.height - scrollbox.sb.thumb.height;


var leagueXML:XML = new XML();
var loader:URLLoader = new URLLoader();
var request:URLRequest= new URLRequest("league.xml");

loader.addEventListener(Event.COMPLETE,loaderOnCom plete);
loader.load (request);

function loaderOnComplete(event:Event):void{
leagueXML = new XML(event.target.data);

// Define an array
var league:Array = new Array({label:"Select a Conference",data:""});

// Loop through each video in XML
for each (var conf:XML in leagueXML.conf){
league.push({label:conf.name.toString(),data:conf. team.toString()});
}

// Add array to Combo Box
confCB.dataProvider = new DataProvider(league);
}


confCB.addEventListener(Event.CHANGE, changeHandler);

// Tell Flash what to do when an item in the ComboBox is clicked

function changeHandler(event:Event):void {
if(ComboBox(event.target).selectedItem.data != "")
{
//trace(ComboBox(event.target).selectedItem.data);
createMenu();
//trace(leagueXML.league.conf.team.toString());


function createMenu ():void {
//This will be used to represent a menu item
var menuItem:MenuItem;
//Counter
var i:uint = 0;

//Loop through the links found in the XML file
for each (var team:XML in leagueXML.league.conf) {

menuItem = new MenuItem();

//Insert the menu text (link.@name reads the link's "name" attribute)
menuItem.menuLabel.text = team.name;

//If the text is longer than the textfield, autosize so that the text is
//treated as left-justified text
menuItem.menuLabel.autoSize = TextFieldAutoSize.LEFT;

//Insert the menu button to stage
menuItem.x = 0;
menuItem.y = 0 + i*31;

//Make the button look like a button (hand cursor)
menuItem.buttonMode = true;
menuItem.mouseChildren = false;

//Add event handlers (used for animating the buttons)
menuItem.addEventListener (MouseEvent.MOUSE_OVER, mouseOverHandler);
menuItem.addEventListener (MouseEvent.MOUSE_OUT, mouseOutHandler);
menuItem.addEventListener (MouseEvent.CLICK, mouseClick);

//menu_container.holder_mc.addChild (menuItem);
scrollbox.content.holder_mc.addChild (menuItem);
//Increment the menu button counter, so we know how many buttons there are
i++;
}
if (i < 12) {
scrollbox.sb.visible=false;
scrollbox.x = 8.5;
}
}

View Replies !    View Related
Scolling Menu With Drop Down Menu In Side
hey all im trying to design a site with a scrolling menu which will let you scroll from page to page also on each page there is a drop down menu. I was wondering how I would go about doing this. Thanks all for your help.

from Rublink182

View Replies !    View Related
Horizontal Scroll Menu With Drop-down Menu Over It
hey guys, i'm running MX 2004 pro.
here's what's going on:

i've got a horizontally-scrolling menu (in a movieclip) that is constructed similarly to the tutorial here: http://www.flashkit.com/tutorials/In...-815/index.php

in the same .fla, there is also a drop-down menu, that when down covers part of the scrolling menu. this, of course, triggers the scrolling menu. ideally, the scrolling menu would instead continue to scroll, and be unaffected by a user selecting an item from the drop down menu.

in the timeline, i have the following code pasted onto the instance of the horizontal scrolling menu:

onClipEvent (mouseMove) {
xmousepos1 = _xmouse;
ymousepos1 = _ymouse;
if (xmousepos1>xmousepos2 && ymousepos1>-45 && ymousepos1<60) {
_root.scrollclip.nextFrame();
}
if (xmousepos1<xmousepos2 && ymousepos1>-45 && ymousepos1<60) {
_root.scrollclip.prevFrame();
}
if (ymousepos1<-45 || ymousepos1>60) {
play();
}
xmousepos2 = _xmouse;
ymousepos2 = _ymouse;
}


how could i modify this so as not to be affected by the drop down menu? unfortunately, moving the position of the drop down is not an option.

thanks for reading and thanks for your time,
decerebrate

View Replies !    View Related
Drop Down Component
I have a drop down list being populated by an array [1, 2, 3, 4, 5]

So my list displays 0,1,2,3,4
If I choose one of those options I want it to populate another drop down list. How do I go about doing that?

Thanks for the help

View Replies !    View Related
Drop Down List Component
I have a database with a table of municipalities I want to load into the drop down list. I want to use ASP scripts to sent the data to the form but I'm not sure how this works?

Any help on how this new component thing works would be helpful

Thanks all
Jason

View Replies !    View Related
Navigation Via Drop-Down Component
I am having a hard time finding out how to manipulate a drop down component to make my movie jump to different frames in my movie when a list item is selected.

Anyone have thoughts on this? Or are there any great sites that explain how to do this? I know it may seem simple, but all I find when searching are drop downs that get submitted with form data, nothing actually on actions that take place after a list item is selected from a drop down

Thanks.

View Replies !    View Related
Drag And Drop Component
So what am I missing? I'd like to use the drag and drop movie clip found in the Flash MX shared library. However, been wrestling with out it works. Specifically, how to get the images into the various boxes without altering every/all instances of this component that may be in play?

Many thanks in advance.

Note: see attached for a copy of movie clip...

View Replies !    View Related
Drag And Drop Component
i am making a drag and drop exercise in a training cd i am working on. i do not know how to:

1) when the user clicks on "check answer" and it says the exercise is incorrect, i would then like a previous button to appear, to take them back to the lesson.

2) when the user clicks on "check answer" and it says it is correct, then i would like a next button to appear to let the student advance.

does anyone know what i can do to make this happen. i used the drag and drop component that came with flash mx 2004 professional.

thanks
stittch

View Replies !    View Related
Drag And Drop Component
Hello,

I am developing a quiz that involves the drag and drop component that comes with Flash.
What I have is 4 Drag movieclip and 1 Target movieclip. 3 of the Drag movieclips are associated with the Target movieclip. The 4th movieclip is not assoicated to a Target movieclip, because it is incorrect.

When I run this directly in Flash, it works great, I am using mcTween and the built in Tween class that Flash offers. The problem I am having is when I run the quiz in a stage environment. We have developed a stage component that encapsulates several SWF files and allows the viewer to navigate to any SWF file in the stage by simply clicking on the menu on the left.

I know this is likely an issue with the usage, or lack thereof, _parent and _root. Problem is, I don't know what it is!

Sorry if I have just confused you all, if you want me to clarify something, let me know.

Thanks in advance for your help!

Doug T

View Replies !    View Related
Drag And Drop Component
Hello,

Ok, I thought I had this all figured out, but I guess I'm only half way there....

I have a quiz involving a drag and drop interaction. It works great in Flash, but I have a presentation window that encapsulates several SWF files, the quiz being one of them. On the first frame of the quiz, I must put "this._lockroot = true" in order for the quiz to work at all in the presentation window. All of the questions work properly except for the drag and drop one. What happens is I can drag the dragable objects, but no target is recognized. The only way I can fix this is by putting "this._lockroot = false" on the frame that the drag and drop component is on. Problem with that is I can no longer advance through the quiz, simply due to the fact that "this._lockroot = false". Does anyone know where I would set this._lockroot = true in the component script?

Thanks in advance

Doug

View Replies !    View Related
XML List Into Drop Down Component
Has anyone any leads on how i go about getting an xml list of names and use that list to populate the drop down select menu component in MX 04?

Getting the list to populate the menu would be the hardest bit for me.

View Replies !    View Related
How To Add Drop Down Menu To This Slider Menu
Hi All,

I need to add a drop down menu to the main menu button called "galleries".

The menu came from one of the awesome kirupa tutorials here, and below is a link to my existing menu w slider:

http://www.innova-techsolutions.com/...8_18_05_bu.htm

When I try to add a popup menu to "galleries" to the over state in galleries, the popup menu dissappears when you rollover the first item.

Here is the .fla, click on gallery, and open up popup_but to see what I've done in the "over" state:

http://www.innova-techsolutions.com/flashgroup.fla

This if my first flash site, and I long over schedule, so I'd sure appreciate any help w this.

Thanks,

Art Hans

View Replies !    View Related
Menu Slider With Drop Down Sub-Menu's
I've downloaded the sourcefile for a standard menu slider. How do I now include the ability for it to have drop down sub-categories under each menu heading?

All help will be greatly appreciated.

Lisa

View Replies !    View Related
XML Drop Down Menu: How To Hide Sub Menu?
Could anyone shed some light on how to hide the sub-menu on mouse out on the tutorial by Senocular?

http://www.kirupa.com/developer/acti...down_menu7.htm

Thanks in advance,

Dan

View Replies !    View Related
Drag & Drop From Tree Component
I am using the tree component as a windows style file explorer. I would like to enable drag and drop capability on the nodes of the tree so that users could drag a node to a trash can which is contained in a movie clip located just above the tree menu. I would like to use this method to tell the trash can's drop handler which element to delete:

myTree.getSelectedNode().getData()

Any ideas???

View Replies !    View Related
Help Sending Variables Using Ui Component Drop Down
Hi Guys, I am after some advice on using the component combo box. Please forgive my ignorance. I have a form build in flash which sends variables to a php file for inclusion to a DB and to email the results. This works fine however I want to include a dropdown menu with different locations, once the user selects the location the email is sent to a specified email address based on the selection. I have no problem with the php and this works fine if I just include a text field and type the location in but I want to include a drop down menu to ensure the correct data is sent. I am new to Flash and am having problems.

The easiest solution I can see is by using the component combo box but I cant find and usefull help on this. Can someone point me in the right direction or even tell me if I am going down the correct route? The field needs to be assigned a variable name like location and passes the location name based on user selection to the script but I just cant get my head round it.

Thanks
Alan

View Replies !    View Related
Component Inspector Using Drop & Drag
Hi all,

I have searched the web for the answer to this question without any luck. I am putting together a drag and drop activity using the quiz template in mx2004. I have 3 drop targets and a total of 9 drag objects. Problem is, the Component Inspector allows for only 8 fields in the Parameters tab.

My simple question: Am I able to increase the number of Drag Object Name and Matches Target Name by one?

Thanks...Chaddy

View Replies !    View Related
Question About The Drag And Drop Component
I posted this already in the action script section, but Im not sure if that was the correct place...


As of now, with my drag and drop component, when ever I drop the asset to its target, I am not able to move it until I either check the answer or hit reset. I want to be able to move the asset just in case it is dropped on the wrong target. How would I go about doing this? Any help is greatly appreciated.

View Replies !    View Related
Drag-n-drop Component To Interface With ASP.net
I haven't been playing with Flash much these past years as my time has been
predominantly back-end as of late, so I'm a bit out of the loop as to what
the full extent of the newer Flash and Flex options are out there.

I think I'm at a point where I could benefit from some Flash components for
a project I'm working on.

A key part of the application is an image sorter. I need to impement a
drag-n-drop interface to move images from one 'folder' to another and then
to rearrange the images in that new folder, and then pass the info back to
the back-end code.

I've been playing with Scriptaculous/Prototype and Jquery with some plug-ins
to do this. They work well, but there's one fatal flaw, it seems, when using
javascript for this...if your content expands to the point where you need to
either scroll the window or a scrollable div, things begin to go out of
whack...apparently due to how javascript interacts with the DOM when objects
are overflowing.

So...I'm thinking the only reliable way to accomplish this is to use Flash
for this (and am now understanding why Flickr was using Flash for so long
;o). I've seen a few components, but I'm not entirely clear as to which of
these can interface directly with other app code (sepcifically ASP.net).

Are there standalone compeonents for drag-n-drop interfaces that integrate
well/easily with back end code? If so, any suggestions?

-Darrel

View Replies !    View Related
AS2 - DataGrid Component In AS2 .. Drag And Drop
Hey can anyone direct me to a sample and tutorial of drag and drop with datagrid in as2 please?

View Replies !    View Related
Component Preloader, And Component Menu
i'm trying to use a component preloader to load a component menu, will this work? I have a more detailed post in the "Newbies" section of the boards...here's a link

http://www.flashkit.com/board/showth...hreadid=471088

If you have any idea how i can get this to work plz post...i really like this loader and it would be great to use.

View Replies !    View Related
Menu Component And Window Component
I have a dilema. I'm trying to create a flash application that is basically a rich text editor

well, I'm trying to make a menu component to open a window component which has a close button

here is a part of my code (attempt 1):

PHP Code:



import mx.controls.Menu;import mx.controls.MenuBar;import mx.managers.PopUpManager;import mx.containers.Window;var my_mb:MenuBar;var myProfile:Menu = my_mb.addMenu("My Profile");myProfile.addMenuItem({label:"View/Edit Profile Information", instanceName:"newInst"});myProfile.addMenuItem({label:"See My Profile", instanceName:"openInst"});//THE LISTENERSvar mbListener:Object = new Object();mbListener.change = function(evt_obj:Object) { var menuItem_obj:Object = evt_obj.menuItem; switch (menuItem_obj.attributes.instanceName) {  case "openInst":  var my_win:MovieClip = PopUpManager.createPopUp(this, Window, true, {closeButton:true, contentPath:"openDialog"});    var winListener:Object = new Object();    winListener.click = function() {        my_win.deletePopUp();    };    my_win.addEventListener("click", winListener);  break;} 




The problem with this script: when I test the movie, the movie freezes and Flash asks do you want to disable the script and etc..

so I tried doing the same by attachMovie() :

PHP Code:



//THE STUFF FROM BEFORE  switch (menuItem_obj.attributes.instanceName) {  case "openInst":    _root.attachMovie("Window","openInst",this.getNextHighestDepth());    openDialog.setSize(623.9,310)    openDialog.closeButton = true;    openDialog.contentPath = "openDialog";    openDialog.title = "Open Document";//HERE IS THE PROBLEM:    openDialog.close = function() {        trace("Closing...");        removeMovieClip(_level0.openInst);    }  break; 




The problem from the 2nd Code Box: I can't close the box. When I press the X, it won't close it.

So...basically what I'm asking is...How do I call a Window Component from a Menu Bar Component and let the Window Component also close correctly when the user closes it.

Thanks in advance for your great help!

View Replies !    View Related
AS2: Menu Component & Window Component
well, I had a question Yesterday, and posted in the Flash 8 Section of this forum...well, I have a question now...When I open a Window Component(with a movie clip inside it ...ofcourse) via Popup Manager from the Menu Component, the Window opens up, but I can't go back to the menu and open it. Any suggestions on how?

Here is a part of my code (which I believe will summarize the rest of my code):

PHP Code:



import mx.controls.Menu;import mx.controls.MenuBar;import mx.managers.PopUpManager;import mx.containers.Window;var myProfile:Menu = my_mb.addMenu("File");myProfile.addMenuItem({label:"Open", instanceName:"openInstance"});var mbListener:Object = new Object();mbListener.change = function(evt_obj:Object) { var menuItem_obj:Object = evt_obj.menuItem; switch (menuItem_obj.attributes.instanceName) {  case "seemyProfileInstance":    var my_win:MovieClip = mx.managers.PopUpManager.createPopUp(evt_obj.target, Window, true, {title:"Open Document", contentPath:"openDialog", closeButton:true});    my_win.setSize(320, 240);        var winListener:Object = new Object();    winListener.click = function()     {        my_win.deletePopUp();    };    my_win.addEventListener("click", winListener);  break; 

View Replies !    View Related
ScrollPane Component Border/Drop Shadow
Hey all, I'm simply trying to remove the gray border/drop shadow that surrounds a ScrollPane instance. I've done a lot of searching to find no working answers. I keep seeing:

instance_name.setStyle("borderStyle","none");

But this does not seem to work in AS3. Anyone know the correct code? It would be mmmmmuch appreciated!

***NEVERMIND RESOLVED***

View Replies !    View Related
Drag & Drop Quiz Component - Depths Issue
I wonder if someone could help me. I am building a drag & drop question using the Quiz Component that comes as part of Flash MX 2004 Professional.

My problem is that 1 have 3 images therefore 3 targets yet 2 need to be on top of each other, as items need to be placed on top of each other in the correct order.

I need to be able to click item 1 and drag over to target 1, then when released force that depth of item 1 to the bottom. Next click item 2, well this doesn't really matter because it is a larger area and is lower down so not a problem, but the last item 3 needs to be able to see target 3, which would normally be under target 1.

The dragable movie clips are called Drag1, Drag2 & Drag 3 and the target movie clips are called Target1, Target2 & Target3. All of these movie clips are contained within one movie clip called DragDrop on the main timeline.

I pray to the Gurus of ActionScript to see if this can be done, any example or quidance would be much appreciated.

I have an example which can be found at www.iglooweb.co.uk/test/test.zip I have abit of AS on the drag button to colour the target area so that I know I am addressing the correct target but the AS to getNextHighestDepth(); does not seem to be working. I have also tried swapping depths, that doesn't seem to work properly either.

Please help.

newAS

newAS

View Replies !    View Related
Drop Down Menu Help
I've got a movie clip set up with a button on frame one that says "Section 2" on the same frame is a command to "stop." When the mouse moves over the "Section 2" button, the movie clip timeline continues playing, and reveals 4 other buttons. How do I make it so that when you leave the area of those buttons ("Section 2" & Sub-Section 1 - 4), the movie clip returns and stops on frame 1. Is this possible? PLEASE HELP!

Thanks!
AJ
chocochipp@aol.com

View Replies !    View Related
Drop Down Menu
I've been through the tutorials and can't seem to figure out how to get it to work. I followed Adam Weeks tutorial to the T and I still couldn't get it to work right. Although, messing about with the code helped me to figure out how to drag stuff around on the stage so that was a major plus (have been trying to do that since I started with flash).

If anyone can help I'd appreciate it. If I figure it out myself I'll let you know. I'm going to try it again.

Anita
http://apotterdd.150m.com/

View Replies !    View Related
Drop Down Menu
Can any one help me... I want to know how to create drop-down menus and also how can I make a dropdown menu with a movieclip in it.

View Replies !    View Related
Drop Down Menu
I am sure you all know the menus that open on mouse over then close on roll out what i was trying was one that slowly scrolled down but all so scrolled up but this is where i get stuck.

1: I dont want it to "Jump" back to the close look on mouse over

2: I all so dont want it to jump to open and then start to close if it is not all the way open when you mouse off

3: not to shut when you mouse over the menu buttons

sorry for the long list it is mainly 1 and 2 i need help with any ideas?

View Replies !    View Related
Drop Down Menu
All right everybody!

I have a menu smart clip that has about 25 states in it. When it drops down it extends the length of my Flash movie. Is there any way to set default to maybe 12 states appear at a time and have the rest scroll so it is manageable. Here is the code in my smart clip...

onClipEvent (load) {
myArray = new Array("Arizona","Alabama","California","Florida"," Georgia","Illinois","Indiana","Louisiana","Massach usetts","Michigan","Minnesota","Missouri","New Jersey","New York","Maryland","North Carolina","Ohio","Oklahoma","Oregon","Pennsylvania ","South Carolina","Tennessee","Texas","Utah","Virginia","W ashingtonDC","Wisconsin");
this.items = myArray;

function onMenu (item, label) {
labelArray = new Array("home","Arizona","Alabama","California","Flo rida","Georgia","Illinois","Indiana","Louisiana"," Massachusetts","Michigan","Minnesota","Missouri"," New Jersey","New York","Maryland","North Carolina","Ohio","Oklahoma","Oregon","Pennsylvania ","South Carolina","Tennessee","Texas","Utah","Virginia","W ashingtonDC","Wisconsin")
val = labelArray[item]
_root.theClip.gotoAndStop(val);
}
}

Does anyone have any ideas, I really do not want to break up this and say states a-m here and states n-z there....

Any ideas will be greatly appreciated.

Thanks,

Joe

View Replies !    View Related
A Drop Down Menu Box?
Is it possiable to have a drop down with lets say 20 buttons:

Button a
A Button
B button
Button b
etcc..
z button

If a user hits the Z key, the drop done menu will auto. goto the location of the z button????? I have the buttons in a mask. Any help please.

Thanks,

View Replies !    View Related
Drop Down Menu
I made a button that when you go over it a drop down menu appears. How do I get the menu to stay, so I can click on a button in the menu? When the initial button loses focus the menu disappears.

View Replies !    View Related
Drop Down Menu
I am trying to make a pop out sub menu off the main menu.
When I go into actions to activate the main button to play the movie script. The "on" choice is not activated and if I do it in expert mode it says that it is only for button instances. I realize I am probably missing something very simple. Please help!

View Replies !    View Related
Drop Down Menu
I have a button, that i want it to open a dropdown menu movieclip and then click on another button within the menu, then play a reverse movieclip of the menu reversing and move onto the new scene. I'm lost on the actions!

Thoughts?
cheers
Michael

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved