ActionScript 2.0 :: Listbox Component Called "policytext" On Stage?
Dec 16, 2005
I have a listbox component called "policytext" on my stage. I have some XML info loaded into it, which works fine. The problem occurs when i try to make each one a link. I made an event listener that doesnt want to work. Could someone look at this code and tell me what im doing wrong? I've tried both click and change for the event and both don't work.
[Code]...
View 3 Replies
Similar Posts:
Feb 11, 2011
I'm working to update a project that was created by someone else who left our company. It was done in AS2, so I'd like to keep it that way (without updating all the code to AS3). Here is a section of code that currently works:
var item = {Rank:rank, City:city, Reps:representatives, RepsWithSales:RepsWithSales, Appts:appts, AvgSales:FormatAsDollars(average)};
topSales.addItem(item);
[code].....
View 3 Replies
Jul 27, 2009
I am working on a selector that uses 2 list boxes. Standard stuff, you can move items from the left box with arrow buttons to the right box. However I can't seem to get the annoying green "halo" to go away whenever one of the boxes is selected. I have tried
lstbox._focusrect = false;
lstbox.enabled = false;
lstbox.setStyle("themeColor", "Sample");
Nothing seems to stop that highlight box from popping up. Funny thing is it doesn't pop up in the IDE only when I view the movie online in production.
View 1 Replies
Apr 30, 2007
Working off the the tutorial here: [URL] I'm unable to get the onchangehandler working for the list component in MX 2004. I have just the basics and its still not working. I have a listbox named photolist, and I can fill it just fine but the onchangehandler isn't working. Below is the basic code that I have that isn't even tracing for the onchangehandler.
[Code]...
View 1 Replies
Jan 25, 2010
Is there a way I can remove the event listener from Listbox component?
I tried to use:
Code:
note_mc.note_lb.removeEventListener("change", myEventListener);
how do I trace that the listener is removed?
View 2 Replies
Oct 5, 2009
i am using flash listbox component in my project. and i want to it's text alignment form left to right and it's scrollbar position is right to left.
View 1 Replies
Mar 30, 2005
how to extend Components, like if i hav to place images next to the content inside a listBox Component, how do i do that?
View 1 Replies
Apr 13, 2011
Is there a way I can change the stage colour using a list box for example Inside a list colours -
-Red
-Green
-Blue
When the user chooses red, the stage colour would change to red.
View 1 Replies
Feb 18, 2004
I know that this must be basic --- When I use the List component and added some labeles eg: Start movie 1, Start movie 2, Start Movie 3,,,,
How do I them apply the _root.pictures1. gogotoAndPlay("go");
_root.pictures2. gogotoAndPlay("go");
_root.pictures3. gogotoAndPlay("go");
View 2 Replies
Feb 29, 2004
Is there a way to modify the text size of text added to a ListBox Component in Flash MX?
View 1 Replies
Feb 21, 2011
I found that there is a setting in the Component Inspector within Schema called Formatter. I am wondering if this is what I use, and if so how to format for time such as HH:MM:SS ? Or if I have to use something else?
View 1 Replies
Mar 16, 2010
I have the following MXML:
<mx:Script>
var someBoolean:Boolean = determineSomeCondition();
</mx:Script>
[code]......
View 1 Replies
Dec 11, 2004
I'm building this game, and it was working fine, until I used the menuBar component. It's not code related, 'cause i've commented out the script that does things with the menuBar. If I drag the MenuBar component from the component window, onto my Stage , the game refuses to work. If I deleet it (but keep it IN my library), it still doesn't work!. But if I turn the export settings of the MenuBar off, it works! The classes that i'm using for my game are called Node.as, JawBreaker.as The class I want to use to do something with the menuBar is called GameMenu.as (but that doesn't matter, since I commented the calling of that class out).
View 1 Replies
Oct 27, 2010
i have an external class called webcam.as on the stage I have two buttons. One called capture_mc and save_mc. I am new to working with external actionscript class. If someone could explain to me whatsI am getting lot of errors!!!!
Code:
1172: Definition flash.utils:byteArray could not be found.
1046: Type was not found or was not a compile-time constant: ByteArray.
[code].....
View 3 Replies
Apr 1, 2011
I have a drop-down menu that stays open when I click it, until I click it again. I want it to close when I click away from it. So I created an event listener of type MouseEvent.CLICK and apply it to the stage.
The obvious problem is, though, that when I click the drop-down menu to make it open, I'm also clicking the stage, which prevents it from opening.
I think there's probably a simple solution to this but I'm stuck. I called stopPropagation() on the drop-down menu and that seems like it should help but it doesn't.
View 2 Replies
Oct 17, 2011
Can images be stored in some sort of array and then called to the stage randomly?
View 3 Replies
Feb 20, 2009
i have a dynamic text field on the stage called texter, how can i make this work?:
ActionScript Code:
texter.text = "change case";
texter.toUpperCase();
View 4 Replies
Dec 22, 2010
All I want to do is have a scrollPane component on the stage and within that component I would like to have a movieclip that is essentially a list, and each list item is a button to be clicked on. I have no problem doing this if I have buttons within a movieclip, but having them in a scrollPane produces the following error:
1119: Access of possibly undefined property mcButtons through a reference with static type fl.containers:ScrollPane.It seems that I am unable to use the scrollPane component as if it were a movieclip and to use dot syntax to access it's content.
View 2 Replies
Mar 31, 2011
I have a MovieClip called item with the same linkage set and my first task is to display 10 of these items on the stage nested inside a movieclip called MainItem. I have dragged MainItem to the stage and have the following for loop:
[Code]....
View 5 Replies
Apr 12, 2010
I want to load an external swf called 'signs.swf' into an empty mc called 'signholder'.
var loadit2 = new Loader();
loadit2.load(new URLRequest("signs.swf"));
signholder.addChild(loadit2);
Everything works. Cool. But, I now want to target something within the signs.swf. How do I do it though? What is the path? Do I have to give the child of signholder an instance name? Everything I try fails.
If I wanted the root timeline of the external swf to gotoAndPlay(2) for example,...would i say...
signholder.loadit2.gotoAndPlay(2) ???
var wow:MovieClip = loadit2.content as MovieClip;
wow.gotoAndPlay(2) ????
View 3 Replies
Oct 30, 2007
I am having issues with startDrag(). I have a movie clip called circle. Inside circle, I have a movie clip called circleFill and another called circleOutline.onEnterFrame, this movieClip is duplicated 4 times.
When I use this:
private function onPressNow(event:MouseEvent):void
{
startDrag();
}
IT DRAGS ALL 4 MOVIECLIPS.
[Code]...
how can I make it drag my movieClip called circle? (meaning both circleFill and outlineFill)
View 8 Replies
Oct 24, 2011
i have a box called infoBox that contains a text field called caption. infoBox expands on mouse-over. When it does so, I do not want the text in caption to scale up - I want it to stay at 11 pt. So far my code to prevent this from happening is not working:How do I fix this?[URL]..
View 2 Replies
Jan 11, 2004
I have a problem with buttons and transitions and it is similar to a problem I had a couple of days ago that I posted and that was sorted out. I have two buttons onstage (they're inside a movie clip) inside the movie, on the button one I have the following
[Code]....
I have similar code on button two and this does indeed make the buttons move into place as required. My problem is this, I need to load in external swf files into an empty movie clip on the main stage called container. These External SWF files have transitions and this is where my problem is. If I place a normal button on the stage it works but not if the button is inside a movie clip and has actions applied as above. The code next is what I have believe should also be placed on the button to make swf transition one load in.
[Code]....
View 4 Replies
Feb 7, 2010
I have a .as file that creates 6 buttons. For the buttons I have another .as that is their base class (sets the rollover effects). That .as also handles the CLICK event on those buttons. But nomatter how I try I can't seem to make it so, that if one of the buttons is clicked it would turn to 3rd .as that would make a MC called "rabbit" on the stage move.
View 5 Replies
Oct 20, 2004
I want to load a random movie clip from the library to an empty clip on the stage called (bg_graphics). the clips in the library are called (green, blue, yellow).
View 5 Replies
Jun 1, 2009
I have a component, in which I am trying to create a sprite the size of the stage. But stage is null:
var bg:Sprite = new Sprite();
this.addChild(bg);
bg.graphics.beginFill(0xFF0000);
bg.graphics.drawRect(0,0,stage.width,stage.height);
What am I missing here? If I put something similar in the document class, it works.
View 1 Replies
Jun 26, 2009
I have a flv component on my stage and i have buttons load different flvs into that component. However, I need to have it loop when its over. How do I do this??
View 3 Replies
Jul 22, 2009
I have a wordpress based site that stores information about an image in a database field called "background" in a table called "wp_postmeta".The 'loader' gets an url such as "/thisImage/background.swf"The "background.swf" should somehow display "background.jpg" instead but since I've changed the field name in the database (from background to temp_background) it doesn't work.I pass variables to the "loader" swf and they are correct based on the new field name but it still isn't working.I need to know if there is anything in the .fla's (and therefore the .swfs) that is pointing to somewhere in the database hard-coded. Basically I need someone to look at them and tell me how they are working.
View 2 Replies
Oct 5, 2009
i'm trying to control a movie clip called "nosotrosmc" with a frame label inside called "historia" but does not work this is the code:
[Code]...
View 2 Replies
Feb 28, 2010
I am trying to access a button that has been added to the stage to change it's alpha value.I'm changing it from inside an object that is also on the stage.So I thought this.parent.feed_btn.alpha=0 would work but flash is saying:1119: Access of possibly undefined property feed_btn through a reference with static type flash.display:DisplayObjectContainer.I would actually prefer to remove it, but removeChild threw up the same error.
View 8 Replies