Professional :: Displaying A Nested Unordered List?

Apr 27, 2010

I have a Flash page that goes out and reads an XML file, then displays the information in it.  Most of the time, it works great.  However, when it comes to nested lists, it doesn't work.  I am using CDATA so that I can use HTML code to display the information as intended.  But Flash absolutely refuses to display a nested list correctly.  For example, if I put in there <ul><li>item 1 <ul><li>subbullet 1</li><li>subbullet 2</li></ul></li></ul>, it displays everything as if I had made each of them individual list items under one master <ul></ul>.
 
There's got to be a way to get Flash to understand and display a nested list.  It's a simple thing to do, I know it.  

View 1 Replies


Similar Posts:


Flash :: Css - Style An Unordered List (loaded From XML)?

Apr 6, 2010

I'm loading the XML into a text field as htmlText. The StyleSheet class in Flash only supports a subset of CSS1 which debuted in 1996! and doesn't support list-style-type or list-style-image. I'd specifically like to substitute an image instead of the default disc for an unordered list. If you've had success implementing a work-around, I'd love to hear about it!

View 1 Replies

ActionScript 3.0 :: Nested Textbox Not Displaying Text?

Aug 19, 2009

I made a movie clip to show instructions for a study people will participate in. I wanted to make it look nice so it has a lot of movement and fades and stuff. This required the use of more nested movie clips than i probably need. However, now when I want to attach a string var to a text box in the movie clip, it doesn't show whencompiled.Code:instructions_mc_m.large_instuctions_mc.large_instructions_tb_container.large_instructions_tb.text=matchedInstrThere are no errors, so I'm assuming the path is correct (and i dbl checked it anyway)

View 5 Replies

ActionScript 2.0 :: Displaying XML Data In Nested Movie Clips?

Sep 18, 2009

I'm attempting to create a movie where 100 different facts are faded in and out sequentially. The text will need to be updated monthly so I figured I'd use the dynamic text feature along with an XML file to streamline the updating process. I've worked through Kirupa's Displaying XML Data in Flash tutorial (which was very well presented) and was able to get it to work while understanding the theory of how it worked. However I can't seem to get it to function when applied to my particular application.

After 4 hours of troubleshooting, I think I've isolated the problem to the actionscript component: I think (and I could be wrong) that something needs to reference the nested movieClip that contains the dynamic text layer. It works fine if everything happens on the first frame of the _root timeline. But any elements that I try to bury within a movie clip fail to display. I'm using the code from the tutorial as follows:

xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("content.xml");

[code]....

View 2 Replies

ActionScript 3.0 :: Flash Nested MovieClips Not Displaying Relative To Each-other?

May 16, 2010

I am creating a film strip of thumbnails and am dynamically creating the thumbnails from an xml file. All this works great. The issue becomes the fact that I need for the filmstrip to resize when the window is resized and add or remove the number of the thumbnails as necessary. In order to calculate where the last thumbnail should be, I'm using the following code to calculate the x position:

PHP Code:

var lastX = rightArrow.x - (thumbWidth + 10); 

where rightArrow is actually filmstrip.filmnav.rightArrow. I get the correct answer - but when I add the thumbnail to the movieclip filmstrip.panelscontainer.thumbcontainer, it's actually on top of the rightArrow. Clicking on both of them to see where Flash thinks the X is will show that Flash this the X of the thumbnail is at 607 and flash thinks the X of the thumbnail is 731, which is as it should be -- so why is the thumbnail so far to the right?The first thumbnail should always be x=10 and that is working fine and I'm currently not trying to layout the other thumbnails because they were all screwed up with a similar problem.

View 2 Replies

Flex :: Nested Objects For A Data Provider In Grid Not Displaying It

May 19, 2011

I have a datagrid and the dataprovider for this grid is the result of a RPC call. The result set has the following structure[code]...

View 2 Replies

ActionScript 3.0 :: Make HtmlText Unordered Lists?

Jan 29, 2009

Ive been searching everywhere to try and find a way to add a bit more styling to my htmlText fields, apparently the flash developers really half-*****ed the abilities of html and especially css.my biggest complaint would be with the unordered lists, the giant, ugly, black bullets. these things would break all but the worst designs and stand out like a sore thumb in every use I could find.

View 2 Replies

Flex - Displaying List Containing XMLListCollection?

May 30, 2011

I'm a Flex noob and I've been struggling with this problem for a last week, and I'm at my wits end.

I have opened the following XML file

<root>
<person>
<city-of-death>asdf</city-of-death>
<place-of-death>qwert</place-of-death>
</person>

[Code]...

I would be so incredibly grateful if someone could help. I am pulling out my hair!

View 1 Replies

ActionScript 3.0 :: List Text Not Displaying

Oct 14, 2009

Since my original post got moved to Components thread, but no one is responding and the majority of the people on the Forum are here, I'm gonna repost it here. I have an AS created List Component that is dynamically populated using a dataProvider populated from an XML document. When I addChild to the main timeline, everything works. When I addChild it into a MovieClip, the list shows up with the appropriate number of rows, but no text.[url]...

View 0 Replies

ActionScript 3.0 :: Displaying List From ArrayCollection

Feb 22, 2011

I would like to have a List displayed that displays data collected from the user into an ArrayCollection. I have a main DataHandling.as class that "adds" the data to the AC as an Object, but when I use trace() on the AC from another class, it does not show any values being present in the AC.

I also added some test data to make sure I was populating the AC correctly and that works just fine. I just can't seem to figure out how to add data (text specifically) to the array from another class. (The other file is .mxml)Here is my mxml code (MyCards.mxml):

ActionScript Code:
protected function myCardsList_creationCompleteHandler(event:FlexEvent):void
{
// This traces the 'cards' ArrayCollection from the other .as class
// No values are listed

[code]....

View 0 Replies

ActionScript 1/2 :: Combo Box Only Displaying First Item Of A List?

Jul 21, 2011

I have a screen which is essentially an address screen. Amongst other fields. there are two fields on the screen which are used to enter the region of the user. One is a combo box,  the other is a plain text field.

After the user selects their country from a drop down list, if that country has a list of regions associated with it, a Combobox is populated and displayed,  with the text field being hidden. If there are no regions associated with the country then the combobox is hidden and the text field is displayed:

[Code]...

View 4 Replies

Flex :: List Displaying Wrong Until Scrolled?

Nov 6, 2009

I have a List, that is not showing any items until you scroll, then the items show up. Does anyone know how to fix this? I tried calling list.invalidateDisplayList(); and list.invalidateList();

EDIT: Here is some code:

<mx:Script>
<![CDATA[
[Bindable][code]...........

I found that if I add creationComplete="{list.dataProvider = _xmlList }" It solves the problem.

View 2 Replies

Flex :: Why List Not Displaying Data From ArrayCollection

Feb 23, 2011

I'm working on a flash cards application and am using an ArrayCollection of Objects to store each cards individual data. When the user click the 'save' button, the text from the two textAreas and the 'title' textinput are stored in the AC as one object with .title, .side1 and .side2 properties that contain the text from the flash card. I have made a List in a separate class I want to have display the title of each card the user has created, but after days of researching and looking around, I still cannot get the display to list the titles.

Part of my NewCard.mxml:
<?xml version="1.0" encoding="utf-8"?>
<fx:Script><![CDATA[
import flash.events.EventDispatcher;
import mx.collections.ArrayCollection;
import spark.effects.SlideViewTransition;
[Code] .....

View 1 Replies

ActionScript 2.0 :: Displaying Images In A List Component?

Jan 19, 2007

I am trying to create a thumbnail viewer using a list component. I used list.cellRenderer to display a test image and it displays that image about 50 times vertically down the list component. how to use this component with images?

View 1 Replies

ActionScript 3.0 :: Displaying Images With List Component For Flash CS4?

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

Actionscript 2.0 :: EmbedFonts, List Component Not Displaying Font

May 4, 2009

the embed fonts stuff in flash, it sometimes works and then again it does not. my problem I need to embed a greek font to be used with the List Component. what I did so far:

1. library-> new Font ( Named it myFont, exported it as:MyFont )

2. put a list comp on stage called it myList

3. got a xml file called index.xml encoded in UTF-8 (so it displays greek chars) that gets loaded (makes no diff if you use component inspector to insert the labels)

4. set system.codepage to false;

Code: Select allmyList.setStyle("embedFonts", true);
myList.setStyle("fontSize", 13);
myList.setStyle("fontFamily" , "MyFont");

what it does not work. I am at a loss as to how to get this to work. I am attaching the file and the font used. (verdana arial should work too, but even they don't embed)

Mabe it has something to do with the xml encoding, but if you try to just copy the greek characters into the component inspectors lable field they are still not displayed. So I guess xml encoding is not the problem.

View 3 Replies

Flex :: Resize Nested Mx:Lists To Display All List Items?

Aug 17, 2010

I'm trying to create a nested list in Flex which will dynamically resize to display all children when the data provider changes.

Here's a simplified example which illustrates the problem:

<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;

[Code].....

The list sizes remain static when items are added.

If I add variableRowHeight="true" to the outer list then the inner lists will correctly resize. But the outer list itself remains at a fixed size.

How can I have both lists resize automatically to display all children?

View 1 Replies

Actionscript 3 :: Autocomplete In Flex 4.0 Not Displaying Items In Dropdown List

Aug 23, 2010

I seem to have is that the Autocomplete component that seems to be part of flex extras is not displaying the list of items in the dropdown list. Basically, I get a list of blank items. I know they are there and they are the right items because as soon as I click on one, I get the right text in the combobox.

my Code in the mxml looks something like this

<mx:FormItem label="Company:" width="750" fontSize="20" horizontalAlign="right" color="#000000" required="true">
<ns1:AutoComplete enabled="true" labelField="CompanyName" textAlign="left" dropdownWidth="450" id="txtCompany" width="450" />

[Code]....

Again, when I type "T" in the text box I see a dropdown list with 3 empty items. Clicking on the third item puts "Test3" in the textbox. But the items themselves are not visible.

It almost as if its a font/foreground color thing, but I've played around with some of those settings too with no success.

View 1 Replies

Actionscript :: List Displaying Multiple Lines Adobe Flex?

Mar 30, 2011

Im currently creating a list in Adobe Flex/Actionscript for a person search app. At the moment, the list shows 1 line of text:

<fx:Script>
<![CDATA[
import model.PersonSummary;

[Code].....

View 3 Replies

Flex :: Spark List Not Displaying Selection When An Item Is Removed

Aug 3, 2011

I have an issue with Spark Lists whereby I am trying to ensure that an item is always selected and ensure that the GUI displays this to the user.

The application (full code below) creates a List, a Label and a Button. The Label states what is selected in the List. The button removes the selected item. Changing the selection, updates the text in the Label. Important: The List has "requireSelection" set to true to ensure that an item is always selected.

If I select the first item in the List, the selection is correctly reflected in the label. Clicking "Remove" removes the item and the next item is selected. This is all working correctly.[code]...

View 1 Replies

ActionScript 2.0 :: Limiting The Speed While Browsing A List And Displaying Pictures Accordingly

Sep 7, 2006

In a kind of image browser where navigation is done through keyboard's arrow keys, I get the case where the user keeps the finger pressed on the arrow key. There, the list scroll faster and the screenshot doesn't have time to draw that the next item is already called.

I can see that in that case the CPU goes from an usual 1% when browsing "gently"..to about 20% when leaving the arrow key pressed and raging through the list of images.

I was thinking to:

1) Force the scroll rate to max out at 10 items per second

or

2) Only show pictures if key downs are > 10fps

or

3) Find a function that would wait for the last image to be drawn before continuing in the list.

So, to summarize:

- how to skip drawing pictures if the list is browsed to fast...or

- how to force the script to wait for the current image to be drawn before passing to the next item...or

Here is the script part containing the PNG loader, I've the feeling that this is the place where such a "limiter" should take place:

Code:
MC_loader.loadClip(displayArray[masterindex]".png", "screenshot_mc.screenHolder_mc");
//

[Code]....

View 1 Replies

Android :: List Component Good For Chat Displaying Chat Data?

Mar 29, 2012

i want to create a chat app using flex 4.5 mobile project for android device. For the chat screen, i wanted it to look glossy and stylish. Hence i thought i would use the list component and disable the selection in it. I m able to add the chat messages into the list. But i doubt if large chat data might hinder the performance. Im using a collection and i ve binded it with the list. Whenever i receive a chat i update the collection and it gets displayed in the list. Can someone tell me if his could pose a performance problem as list component is not intended for this purpose.

View 1 Replies

Flex :: Displaying List Of Flex Progressbar Using Itemrenderer?

Sep 25, 2010

I want to create a list of progress bars and update the list accordingly.I have group data in an Array as

<mx:Array id="arr">
<mx:Object label="Group One" min="0" max="200" currentValue="60" />
<mx:Object label="Group Two" min="0" max="300" currentValue="50" />[code]....

The values in the array object indicate name of group,minimum,maximum and current value for the group (to be used in progressbar).I used the list with "mx.controls.ProgressBar" as itemRenderer as

<mx:List width="100%" dataProvider="{arr}"
itemRenderer="mx.controls.ProgressBar"/>

Now what I need is whenever currentValue field of Array "arr" changes i want to update the progressbar "progress" value to currentValue (where min and maximum value of progressbar are stored in Array "arr").

View 3 Replies

Professional :: Linking Nested MC's?

Jul 2, 2010

I was able to come up with a menu bar to display on my non-flash website, and left linking to absolute last because I assumed it would be the "easy" part.What I have is a menu bar where each item (about, home etc) is a mc, and some of those mcs have animated sub menus within them (mcs as well).My problem is that when any item in a sub menu is clicked, instead of redirecting to their own link, flash it redirects to the link of the mc that contains the submenu.I'm attaching a link to the file so you guys can understand what I'm talking about.The items with submenus are "services" and "markets".

View 3 Replies

Professional :: Nested Movieclip Become Smaller ?

Nov 27, 2011

I created a stage size 960 by 640, than i create a movieclip exactly the same size as the stage, but when i double click to get into the movieclip everything get smaller an object with 960 by 640 has reduce to 184by 140??? How do I get it back to the original size?

View 2 Replies

Professional :: Swf Files Lag In Displaying?

Feb 10, 2010

I have several swf files embedded in my website, but they don't display immediately in the browser. The rest of the page (html) displays without delay, but there's always about a 1 or 2 second lag for the swf. Is there a way to optimize the swf files so they load immediately along with the rest of the page?

View 4 Replies

Professional :: Movie Not Displaying In IE8?

Mar 20, 2010

I have a flash movie atwww.cityofhillcrestvillage.org that will not display either locally or remotely in IE8. It is written in actionscript 2 and requires Flash Player 7 or greater. It displays fine in Chrome and Firefox. I tested it in all three browsers when I first developed it a couple of months ago and it worked fine.When the page first loads, it flashes on for a second, then disappears, and the alternate content does not display. If you reload the page, it flashes on again for a split second.

View 1 Replies

Professional :: Loading And Displaying A Swf?

May 11, 2010

I have six buttons, and I want each one to display a corresponding externally loaded swf, 01.swf, 02.swf.
 
It works fine, except that sometimes swfs load up, and sometimes they don't.  For example, if I hit button 6, the 06.swf loads.  but if I hit button 6 after hitting 3 other buttons, SOMETIMES 06.swf loads, other times it doens't and I get an error that relates to the removeChild
  
var loader2:Loader = new Loader();
function showVid (evt): void {
if (e1.data.childAdded2 == true) {this.removeChild(loader2);};

[Code]....

View 7 Replies

Professional :: Nested Movie Clips As Navigation Bar?

Jun 24, 2010

I just had my first flash lesson a couple of days  ago, but decided to venture myself into trying to build a navigation  tool bar with movie clips grouped together. My intention is that once  the mouse rolls over one particular movie clip, another movie clip fades  in under it (my version of a "drop down" menu). Just so it happens, the  movie clip that fades in, is also comprised of particular movie clips  with their own behaviors (roll over tween effects).

I can make  each individual movie clip behave as it should, but I cannot get them to  work once they are pieced together. I'm attaching a link that contains  the file I'm talking about (submenu), in the hopes that one of you good  Samaritans would take a look at it and tell me where I went wrong.[URL]..

View 2 Replies

Professional :: Nested Boxes - Place All The Objects

Sep 15, 2010

I am creating series of rectangles dynamically and placing them into a grid pattern under a function called createGrid(). I am than creating another single larger rectangle in a function called drawTimelinecontainer. I than want to place all the objects that were created in the createGrid() function into the object that was created in the drawTimelineContainer function. It seems I get an undefined property error when I add it to the display list like this timeLineContainer.addChild(timeLineCell). Is there a way to do this and have the creation of both objects done in separate functions?

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved