ActionScript 2.0 :: Hide / Show List Component
Aug 2, 2008
I am currently trying to learn how to use MySQL, PHP/XML, and Flash together. What I have so far is a list box that loads the MySQL table "subject" through the following code: PHP File:
[Code]...
This code works exactly how I want it to but what I now want to do is have each list item in the list (when clicked) show another list component that will display the corresponding product items from the MySQL "items" table. I was thinking of creating a new flash file for each set of items and then have the subject list display the SWF files but I want to be able to add new subjects without having to go back into flash and do more coding.
View 2 Replies
Similar Posts:
Apr 28, 2010
I have a List of items which is based on the contents of the "category" that a user selects
When the user changes selection, I change the dataProvider of the list be be the contents of the current category.
Sometimes the list contains items, sometimes it does not
Is there a way of hiding the list when it has no items?
I know that I could do this when setting the dataProvider, but it seems like there should be an event or something else that I could be using.
View 2 Replies
Nov 1, 2006
i'm having a bit of trouble having my button doing the following function...i'm trying to have it so that when the check box component is deselcted when clicking on the enter button it will show the my MC. else my MC will be hiden
View 2 Replies
Mar 15, 2011
wondering if there's any way to make it so that a list I have will not scroll to show the horizontal end of the items. Very few items go long enough to require it and the horizontal scrollbar is distracting.
I don't see any property to control that, though, so not sure how to achieve this.
View 1 Replies
May 24, 2010
I am aware that the follow will show a hand cursor:
component.mouseChildren = true;
component.useHandCursor = true;
component.buttonMode = true;
When I do the above on a List component, the hand button is shown and the whole component loses it's interactivity (Hand cursor is shown even on scrollbars).
So how can I show the hand cursor only when rolling over the list items?
View 3 Replies
Jun 29, 2009
how to populate a list box component located within a seperate mc in my swf with an array... the array comes from a response from a webservice call. I am not currently on the computer with my source code available so lets just use the following....
listdata[i] = the array i want to populate the list box with..... (listdata1, listdata2, listdata3, listdata4, etc. etc.)
movieclip1 = the MC within my fla containing the list box component
mylist = the actual list component
... just not all that familiar with the format of actionscript when working with objects... using CS3 and as2 btw,
View 3 Replies
Nov 9, 2010
I am working on an older Flash project created in CS3 ActionScript 2.0 How can I make the pointer cursor change to the hand when hover over a list item?_root.slidePanel.myList'myList' is the list. I have traced out the contents of the List MC and it has a child MC called 'content_mc'. I assumed this was the object containing all of my list items but the only members of this MC I can see (when tracing them out) are 'setRGB' and 'searchKey'.
View 1 Replies
May 10, 2007
I have a combobox and list component on the stage. The combobox has 3 selections. How do I get it so that each selection triggers the specific xml file to load into the list component? I can't get them to communicate to each other.
View 1 Replies
Mar 23, 2012
Why I have to press 2 times the arrow key down to get a navigation through the list items in a list component of Flash?
Theres any workaround for this? I have a listener for keyboard event that checks if keyCode is equal to 40 if it is then I use 'stage.focus = list', but I have to press 2 times key arrow down to start navigating through list items.
View 1 Replies
Oct 13, 2009
Several arrays are created by passing a number (k) from a different array,for every item in the array I need to have a little dot.I have a movieclip on the timeline with a maximum of 15 dots.So if the array has only 6 items, the last 9 dots should dissapear.
PHP Code:
function fill_items(k:Number) {
var item = josXML.firstChild.childNodes[2].childNodes[k];
[code].........
But the dots_total[t]._visible = false; part isn't working...Maybe it's the wrong way to achive this, but i can't seem to figure out why it's not working.
View 2 Replies
Aug 7, 2011
How do I hide a datagrid and then show it?I have a button to select. The button when clicked should show the datagrid. Once the user clicks a cell on the datagrid, it should hide again.
View 1 Replies
Feb 5, 2012
I have button (csignal_btn and endsignal_btn) and i have dynamic text (csignal_txt and endsignal_txt). Now how i can when is unhovered to no be text (alpha=0), and when hover csignal_btn to show csignal_txt (alpha=1)?? Same thing for endsignal_btn
View 3 Replies
Mar 23, 2010
i need to show the second one when there is a mouse over the first one and hide it when it goes out of the first one also i want the second container content to be usable (mouse clicks/moves)
View 2 Replies
Jul 30, 2009
I have a problem with showing and hiding a link to another page. The following is the code thats placed inside cfform(format is flash).
[Code]...
View 0 Replies
Sep 27, 2004
1. I've downloaded the Source for MX included in the "Hide/View the Scrollbar Component" page of It simply doesn't work when I open the file and publish it. I'm using Flash MX 2004, ... has anyone experienced the same problem and solved it?2. I've been able to set the scroll visibility with an external dynamic text using several procedures. One of them is:
SB1.setScrollTarget(_root.Texto1);
if (Texto1.maxscroll > 1) {
SB1._visible = true;
[code]....
View 3 Replies
May 14, 2009
i wanna do a flash that reads an xml, in which the xml tells my flash to show or hide movie clips (they have instance names).
Code:
//added in the frame
var elights = _root.mc_elights ;
var logo = _root.mc_logo ;
var croom = _root.mc_croom ;
[code]....
i however, want to do this via xml, so that i could have my programmer colleague create a php to call for this database.
View 1 Replies
Mar 9, 2012
I'm not happy with my hide/show function..... the code works, but I think it is a waste of space on my stage that I need two buttons to hide and show a movieclip... there must be a better way
[Code]...
View 3 Replies
Sep 27, 2009
I want to hide the mouse after some period when there is no mouse movement (i.e. 5 seconds), and then for the mouse to reappear when the user moves their mouse again.
View 1 Replies
Nov 11, 2010
I'm building a top view 2D map, that it's objects are stored on the server.The kind of objects are 10 and might be a photo, label, button, lists, mix of them or labels with tooltips.The component must request the "areas" that are missing on screen.An area is 1000x1000 px and is cached in flex.To move in the map, will be like in google maps (drag-and-drop).I should be able to have another list and move objects from one to another using drag-an-drop on objects. Ex.: I grab an objects from a list and I move it on this map, I release the mouse button and the item is placed there.Now the problem is: I build a custom component for this trying to emulate the item renderer for performance and recyclage, implement drag-and-drop on objects and request the areas that are missing?
or
I extend the List component from spark and I add some features as multiple kind of itemrenderers and use recycle on them. Of course it must be able to request the missing areas on the screen and cache it's data.Maybe create a custom layout is needed too.What I need is something that must be really fluid, so the lighter this component is, the better.
UPDATE: *There will be not any object over another.
*I will not use hitTest on bitmaps because all bitmaps are wrapped in another component,as they,for now are itemrenderers.
Anyway I already begin to do this using a class that extends the SkinnableDataContainer and a custom layout. As the layout is not like a grid, is sparse, random items at diferent points(x, y).How to get the localX and localY, relative to item renderer and not to the Spark List, from a DragEvent in Flex 4?
View 1 Replies
Jul 9, 2009
I have a flash map. There are 6 clickable countries on the map. When one clicks on a country I want html content to appear under the flash movie. As far as I can see the best way to accomplish this is to have all the content already under the flash movie each in a separate div, with display set to hidden. Then action script inside the country buttons calls a javascript function on the html when that button is clicked, to set display:block for corresponding content filled div. I've tried a few scripts but couldn't get it working.
<code>button_kenya.onRelease = function ()
{
flash.external.ExternalInterface.call("kenya");
};</code>
Is there anything else i should do when imbedding flash into my page so that the flash can talk to the html and call the javascript?
View 3 Replies
Nov 10, 2009
I'd like to be able to have an array of movieclips where i'm able to toggle their visibility depending on what button has been pressed. I would need to have a default movieclip that is visible and all the others are hidden, but then when I click a button to make one of the other movieclips visible the default one is hidden etc.You can see an example of what i'm trying to achieve at http:[url]........I'm experienced in PHP and HTML but have not used flash for several years so i'm pretty rusty. Can anyone point me in the right direction?
View 5 Replies
Sep 28, 2010
Flash in general so this is probably above my skill level. Basically I have 3 movieclips, called random1, random2 and random3 for the sake of this.I want, at the start of the frame to pick one of the three objects at random, keep that object visible, and hide the other 2
View 2 Replies
Apr 13, 2009
I need to progress. [URL] The Adobe documentation assumes you are an expert with Flash and there are no clear cut examples of how to even show and hide a darned button, well, I can't find any referrences. I can imagine what I want to do with flash, but getting anything out of it cracks open my brain. Programming is not fair!!! for us graphic artists. Examples of things I want to study are loading images to the stage on a specific event such as "if(enterFrame == x)" ideally I would like the images to load from a directory on the server and ease in the image.
Basically I want to keep it simple yet effective. Alot of the code I see out there is double dutch to me and appears to go in the wrong direction of simplifying things. I can understand the basic fundamentals, but I wish when people post examples like myMC1.visible = true; that they explain that myMC1 is just a name chosen by the writer to look for an item called myMC1 or go the extra step and color code the code BLUE for actual code, RED for names of items given by the writer that exist on the stage etc etc...
[Code]....
View 3 Replies
Dec 6, 2009
I'm making a Flash AS2 Dress-up game and I want to show/Hide movie clips on release of a button like this one;
View 1 Replies
Apr 12, 2010
I'm trying to show and hide a sub menu. So what I want to do is for the sub menu to show up and stay up if certain buttons are clicked, but disappear if other buttons are clicked. I've got an array of the sub menu. If any of the buttons are clicked from the sub menu array, it should stay.
var subMenu:Boolean=false;
This is my sub menu array:
var arrSub:Array=[m8_mcButton,m9_mcButton,m10_mcButton,m11_mcButton,m12_m cButton,m13_mcButton,m14_mcButton];
When a button is clicked, I want to check to see if the sub menu is showing and to check which button has been clicked. This is the code I came up with, but unfortunately, doesn't work...
function onButtonClick(e:MouseEvent):void {
for (i=0; i<arrSub.length; i++) {
if (subMenu && e.currentTarget!=arrSub[i]) {
arrSub[i].y=-130;
subMenu=false;
}}
View 2 Replies
Dec 8, 2011
url...Is there a more effective way to consistently show and hide a textfield? or is there a smarter class to use like MovieClip or Sprite?I've tried all 3.This configuration of the two functions shows the message box once, but fails to hide. [code]Alternatively if I don't set the alpha in showMsg it show once, hides once, but fails to show again.It's like alpha can only be changed once and then it fails to change after that:[code]
View 3 Replies
Jan 6, 2012
got a code to show and Hide an object with a button and it's working good. There's the code
[Code]...
I want to introduce my hide/show code to this code but dont understand how to do it. What I want is that if I enter ''image1'' in my Passwordbox, my ''image1'' object show/hide. If I enter ''image2'', my ''image2'' object show/hide. Can someone help me with this?
View 14 Replies
Mar 29, 2010
I am looking to implement a search text box as follows:When user starts typing in and there are non-zero results, the text box will open up and display the results below it. When the user selects a result, the text box closed, but this time with a down-arrow (like a combobox) so that the user can re-open the list.I suspect what I really need is a combobox with ability to hide/show the down arrow. How do I do this in Flex?
View 3 Replies
Jun 2, 2011
Im using show/hide to load a 'loading' flash file whilst a form loadsThe div im trying to show contains an swf fileThis works fine in all browsers except safari, which does not show the swf file upon clicking the submit buttonIm using...
$('#form').show();
$('#loading').hide();
View 2 Replies
Nov 9, 2011
I am working on an application where I need to basically have 2 separate screens and I need to be able to switch between them. I am a total noob to Flex & Flash and I have not found anything on how to do this in my 2 days of Googling. It really shouldn't be this hard to do!
Here is what I have tried. I created a Flex Project and added 2 MXML Component files called Test1 & Test2 and each simply have a button in them which have a label of Button1 & Button2 so I can see if the correct component is showing. Below is the button code in the Test1 MXML Component file[code]...
View 1 Replies