ActionScript 3.0 :: XML Lines Into Flash Component List, And Saving?

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


Similar Posts:


Flash :: List Component - Change Pointer Icon To Hand For List Items?

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

List Component - Populate A List Box Component Located Within A Separate Mc In Swf With An Array?

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

Actionscript 3 :: Get A Navigation Through The List Items In A List Component Of Flash?

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

ActionScript 2.0 :: Combobox & List - Each Selection Triggers The Specific Xml File To Load Into The List Component?

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

ActionScript 3.0 :: Altering List Box Lines?

Jan 27, 2011

I am using a listbox and have worked out how to alter the format of the text. However, how do i:make the black lines between each item a different colouralter the height of each item - I thought that by making the font bigger, and the leading this would force the list item deeper - but it didn't work

View 3 Replies

AIR Included Files List Not Saving

Aug 20, 2010

I am publishing and AIR 1.5 application from Flash CS4 on Mac OS X. I add a list of files to include in the Installer Settings>Included Files box. Sometimes when I publish or click "OK", the included files listing is not saved except for app swf and xml listings. This means I have to select all the files again. This does work sometimes, the files list is saved, but other times, not. It doesn't require opening and closing the Flash app, just opening and closing the dialog for it to fail to retain the list.

View 2 Replies

Flex :: Display Grid Lines In A List?

May 27, 2011

I am using a spark list control to display certain items with my custom Item Renderer. I am trying to achieve the following: (1) show a separating line between rows in my list control (2) even when not a single row has been added, I want a horizontal grid lines to be displayed in the background

I am not sure whether (1) and (2) can be achieved in one go. I can solve (1) by modifying my item renderer to have a border, I guess. But I want to know whether there is a better or more conventional way.

View 1 Replies

Flex :: Make A Custom Component Or Extend The List Component For A 2D Top Down View MAP ?

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

ActionScript 3.0 :: XML To List Component In Flash?

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

ActionScript 3.0 :: Regarding The List Component Of Flash?

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

Add Buttons In A Flash List Component?

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

ActionScript 2.0 :: XML From Xml - Load The Second List On The Other List Component?

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

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

ActionScript 3.0 :: Flash List Component With MP3 Player?

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

Flash :: Reset List Component So That Nothing Is Selected

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

Flash Cs4 :: How To Display Image In List Component

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

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

Flash :: Load XML Into A List Component In MXML Builder 4?

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

ActionScript 2.0 :: Make A List Component With Links In Flash 8

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

ActionScript 3.0 :: Flash Control List Component - How To Unpopulate

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

ActionScript 3.0 :: Flash List Component SelectedItem Position

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

Flex :: Saving An Image Of A Component?

Oct 7, 2009

Im currently trying to work the imageSnapshot function in flex. Ive been looking hard but I cant seem to find a solution to my problem. I wish to take a screenshot of one of my components, to capture the final output of my program, since a plain "printscreen" cuts off some of the output due to it scrolling. My current code looks like -

<mx:ApplicationControlBar dock="true">
<mx:Button label="Take snapshot of Profile"
click="takeSnapshot();" />

[Code]....

Now i think this is taking the image of the viewstack which I want... But Im stumped on what to do from here! Is it not possible to now just copy the image to the clipboard, or produce a new window in my browser with the entire image inside?

View 3 Replies

ActionScript 2.0 :: Loading XML Data Embedded In PHP In Flash List Component?

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

ActionScript 3.0 :: Flash CS4 Professional - External SWF Loading - Having List Component?

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

ActionScript 3.0 :: Flash Seeking Elegant Code For List Component?

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

ActionScript 3.0 :: Remove Background And Border Color Of Tile List Component In Flash?

Feb 20, 2012

I want to Remove The background Color and Border color of a tile list component in flash

View 1 Replies

Way To Save A Custom Component That Enters Lines Of Code Automatically?

May 10, 2010

I work as a Flash Developer. There are lines of code I use maybe hundreds of times a day that I have to type out each time. Is there any way to save these custom lines of code to the ActionScript tools library?Or would there be a way to save a custom component that enters the lines of code automatically?

View 1 Replies

ActionScript 3.0 :: Saving BitmapData In Image Component And Clear Canvas

Feb 10, 2009

I made a program in Flex that uses the actionscript 3 drawing api. I am drawing on a Canvas and on every mouseUp event I save the bitmapData in an Image component and clear the the Canvas. That works great, but the problem appears if I want to add a background to the paint that was drawn.

Here are the mxml components:
Code:
<mx:Canvas id="_backgroundColor" width="100%" height="100%" x="0" y="0" />
<mx:Image id="_image" x="0" y="0" mouseEnabled="false" />
<mx:Canvas id="_paper" x="0" y="0" />

And here it is the function I have on the Canvas (_paper) mouseUp
Code:
private function onSaveModifications(evt:PaperEvents):void{
var bmpData:BitmapData = new BitmapData(this._paper.width,this._paper.height,true,0x00FFFFFF);
bmpData.draw(this._paper);
this._image.source = new Bitmap(bmpData);
this._paper.graphics.clear()
}

I want when I set the _background Canvas background color to see it, but I cannot because the Image component(_image) where I save the bitmap is masking it.

This is how I set the background
Code:
this._background.setStyle("backgroundColor",0xff0000)
Do you know how can I make the pixels of the bitmap that weren't drawn to be transparent?

View 2 Replies

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







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