ActionScript 3.0 :: Format Text Within A "List Component" In A Flash 9 Document
Sep 4, 2008
Just switched to AS3 and am trying to format text within a "List Component" in a Flash 9 document. I followed a tutorial in flashgods called "Styling text in instances of components using TextFormat", but I get the following error when I run it I get this
error message; 1180: Call to a possibly undefined method ComicSans. The following is the code I have inserted the above into. The List Component on my FLA stage has an instance name of lb.
View 26 Replies
Similar Posts:
Sep 4, 2008
Just switched to AS3 and am trying to format text within a "List Component" in a Flash 9 document. I followed a tutorial in flashgods called "Styling text in instances of components using TextFormat", but I get the following error when I run it I get this error message;
1180: Call to a possibly undefined method ComicSans.
The following is the code I have inserted the above into. The List Component on my FLA stage has an instance name of lb.
View 1 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
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
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
Sep 23, 2007
Previously in AS2, to set the style for a List Component when the mouse was over an item you would simple set it with
Code:
setStyle("rollOverColor", 0x000000);
I've been trying to find info on how the heck you do this in AS3, cause the above dont work.i've been playing with the following code, but it does not have a rollOver property
Code:
var tf:TextFormat = new TextFormat();
tf.color = 0x00FF00;
tf.font = "Andale Mono";
tf.size = 14;
PS, normally when a programing language is changed, is is done at an easing speed, but AHHH! NO!!! not with AS3, it has changed 101%
View 2 Replies
Feb 26, 2011
I tried this but doesnt works: var tf:TextFormat = new TextFormat(); tf.font = "Arial"; tf.size = 25; tf.bold = true; list.setStyle("textFormat", tf);
View 3 Replies
Feb 1, 2011
how do i get an ordered list using htmltext property of Text component? I tried using this: <ol><li>item</li><li>item</li></ol> but it rendered like an unordered list.
View 2 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
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
May 24, 2011
What i need is to 1. load an XML node and gathering report names, and listing these into a List component from flash cs42. in turn when any report name is clicked or rolled over, (in a dynamic text field) the report description for that reportname will show!
Here is my XML structure :
<?xml version="1.0" encoding="utf-8"?>
<reports lastupdate="9/14/2005" dir="">
Using contextMenu, i removed all BuiltInItems
View 21 Replies
Apr 18, 2009
regarding the List Component of flash, I have an instance of it in a movie and it works fine when I test it, but when that movie is loaded into my main movie, the List btn doent function and I get the following error:
TypeError: Error #1009: Cannot access a property or method of a null object reference. at fl.containers::BaseScrollPane/fl.containers:BaseScrollPane::drawBackg round() at fl.controls::List/fl.controls:List::draw() at fl.core::UIComponent/drawNow() at fl.controls::List/scrollToIndex() at fl.controls::SelectableList/scrollToSelected() at fl.controls::ComboBox/open() at fl.controls::ComboBox/fl.controls:ComboBox::onToggleListVisibility()
I'v double checked everything, I'v rebuild the entire component of the movie that required the List component and still nothing.
View 3 Replies
Jan 15, 2011
Is there a way to add buttons in a flash List component? (Flash cs5, not Flex !)
If not, any alternative to do it ?
View 1 Replies
Jan 17, 2012
I have one dynamic text field in the instance name my_text. I have set the Embed option in that file. because i need to rotate the text field. Now I need to change the font format of dynamic text field.[code]...
View 1 Replies
Apr 13, 2006
I have two Lists (components) on stage. The first one (mainList populates from an XML called topics.xml
[Code]...
on event handler change, I want to load the second list on the other list component, called subList..It's not loading.. I believe it's because when it reads the data from my topics list, it reads topic1.xml instead of "topic1.xml" ( reads without the quotes). If I unquote line v.list.load("subtopic.xml"), it works, but I need it to be loaded from the XML..
[Code]...
View 1 Replies
Apr 22, 2008
Is there a way to change the text color in the list component? Would it be done in action scripting or in the xlm?
View 4 Replies
May 9, 2010
I have a list component which I use to display a list of songs in a music application. Next to each item in the list I need to add a little mp3 player. The mp3 player has a preloader to show the mp3 is loading, then a play/stop toggle button. Does anyone know how to use the cellrender to add this mp3 player to each item in a Flash List component?
View 2 Replies
Oct 28, 2009
I have a list component on the stage in an AS3 movie. I populate it with values at runtime and the user can select multiple values. When a button is clicked I want the list to reset to a state where nothing is selected, all I can figure out is to set the selected index to 0 and have the first position on the list either blank or reading "choose from the list" and make the code ignore this if it is selected. Is there a way to reset list (and combobox components) to nothing selected.
View 1 Replies
Dec 1, 2010
I used a List Component in my flash, and now I have to display image in the List component instead just text.
View 1 Replies
Feb 9, 2010
I am an inexperienced user of Flash CS4 Pro (v10.0.2). I am attempting to use the List component with ActionScript 3.0 to make a different image display when a user clicks each item in a list. I did find a tutorial that showed me how to make different text display using a dynamic text box and the following ActionScript:
[code]...
...where My List is the instance of the List component and ListText is the dynamix text box. In this case, the user clicks an item in the list, defined by the label value in the dataProvider parameter of the List component, and text displays as defined in the data value in the dataProvider parameter.
However, as I mentioned to start, what I really want to do is make images display instead of text. Can anyone provide me the steps to do this?
View 5 Replies
Dec 14, 2010
How do I load XML from a local file into a List component in MXML Flash Builder 4?
I tried using Actionscript to create a loader, but I can't seem to add an event listener to the loader. I've tried to create a local service but I couldn't get that to work either.
I'm making an XML driven AIR app. I plan on having multiple XML files being used - some for content and some for storing settings, state etc.
View 1 Replies
Apr 12, 2011
I want to make for my fellow classmates. The idea is to have to lists with selectable items in each of them. And they are supposed to be tasks, one list with the "To Do" items, and one with the "Done" items. What I want is that the .swf can remember(save) what items I have moved from one list to the other from time to time.
Example:
List1(To do list):
* Homework [code]..........
and when I click on "Homework" and a button, it would go from list1 to list2(i have made this work).
List1(To do list):
* Fix motorcycle
* Clean the garage[code]........
But of course when I close the .swf, the lists would be reset until next time I open it.I was thinking of something with .xml files for each lists, so I would rewrite the .xml's when I transfer one thing from list1 to list2.
View 0 Replies
Feb 5, 2008
I'm trying to make a list component in flash 8 have a links in them. So far I have this Actionscript in the main timeline for the component. I named the List component on the stage as "list"
[Code]...
View 2 Replies
Sep 24, 2010
I have a List (fl.controls.List) component... I can successfully populate this component with String data. The problem occurs when I try to unpopulate the list. The only function available is "removeAll()" I couldnt see a different function.
I am using it this way
Code:
function removeFromList(e:MouseEvent):void {
if(list.selectedItem) {
list.removeAll();
}
When I've been using list.removeSelected() I don't think there is a function as this?
View 3 Replies
Feb 8, 2011
I have a list box of mp3s which populates via xml. When the user clicks on a song I want a "Stop" button to pop up next to the name of that song in the list box. Ideally I want to get the coordinates of the field in the list box that the user has just clicked on.
I set an eventListener like this:
[Code]....
View 1 Replies
Apr 11, 2009
I'm trying to load xml data embeded in php into a listbox component. I have a piece of code that just loads the xml but does not display it in the list box
<code>
var yourXML:XML = new XML();
yourXML.ignoreWhite = true;
yourXML.onLoad = function(success:Boolean) {
[Code]....
View 8 Replies
Apr 11, 2012
i developed application in action script 3.0 with adobe flash cs4 professional. In this application, i loaded another external swf which is having flash list component, but while loading the swf in main swf it showing TypeError: Error #1009: Cannot access a property or method of a null object reference.at fl.containers::BaseScrollPane/drawBackground()at fl.controls::List/draw()at fl.core::UIComponent/callLaterDispatcher() please, kindly suggest me for this issue.
View 3 Replies
Jan 13, 2011
The following ActionScript 1.0 code no longer works in CS5:
productList.setChangeHandler("listchange");
listchange=function(me) {
gotoAndStop(me.getSelectedItem().data);[code]....
This code takes the value in a clicked cell within a List and positions the playhead on the frame indicated by the value. The label is a simple string and the value is the name of the named frame.I know that I need to use an event listener,
View 1 Replies
Jan 7, 2010
i have read one of the tutorial about css in flash my dificulty is. instead of using this variable
[Code]...
that i put inside the fla like this output.htmlText= quick= my_xml.firstChild.childNodes[0].childNodes[0].childNodes; its put the right text but without css format.
View 2 Replies
Sep 23, 2010
I found if I make the text selectable, the SWF ignores format such as bullet points indention, spacing between paragraphs. How can I keep both?
View 0 Replies