Using the list of my icon and ar text label does not align correctly!

AS3: In the list of components my ar icon and the text label is aligned properly, when the application is started, the label text is on icon and when I put the mouse on any item in the list then alignment is ok. What's not here?

That's when I test flash application:

screen1_start.jpg

And when I put the mouse pointer on any element, the alignment of the icon and the label is ok! and it's like this:

screen2_mouse over item.jpg

I do not understand where is the problem, please help! Here is the code:

Stop();

Import fl.controls.listClasses.CellRenderer;

import flash.text.TextFormat;

Import fl.controls.List;

Import fl.controls.Slider;

Import fl.events.SliderEvent;

Import fl.controls.List;

import flash.display.Loader;

import flash.display.MovieClip;

import flash.net.URLRequest;

Import fl.data.DataProvider;

initialization

var imageLoader:Loader = new Loader();

friends of the var: Array = [];

var dp:DataProvider = new DataProvider();

friends [0] = "icon/general.png";

list.iconField = "iconSource";

list.rowHeight = 40;

list.dataProvider = dp;

/////////////////////////////////////////////////////////////////

Loading XML

/////////////////////////////////////////////////////////////////

var xmlData:XML;

var xmlLoader:URLLoader = new URLLoader();

xmlLoader.addEventListener (Event.COMPLETE, LoadXML);

xmlLoader.load (new URLRequest("Media/materijali.xml"));

function LoadXML(e:Event):void

{

trace (LoadXml);

xmlData = new XML (e.target.data);

function getValues(input:XML)

{

var xmlCategoryList:XMLList = input.children ();

var point: XML;

var intCount:int = 0;

for each (item xmlCategoryList)

{

imageLoader.load (new URLRequest(friends[0]));

imageLoader.scaleX = 0.3;

imageLoader.scaleY = 0.3;

dp.addItem ({iconSource:imageLoader, label: item.naziv, data: item.autor, data1:item.putanja, data2:item.opis, data3:item.mapa, data4:item.tip});})

intCount = intCount + 1;

imageLoader = new Loader();

}

} //end for function values

getValues (xmlData);

} / / end of loading XML

/////////////////////////////////////////////////////////////////

Start the function of list manager, itemClick

/////////////////////////////////////////////////////////////////

var varime, varautori, varurl_dok, varurl_opis, varurl_mapa, vartip:String = "";

list.addEventListener (Event.CHANGE, itemClick);

var opis_rada:URLLoader = new URLLoader();

function itemClick(event:Event):void

{

XML podaci

var ime:String = event.target.selectedItem.label;

authorized var: String = event.target.selectedItem.data;

var url_dok:String = event.target.selectedItem.data1;

var url_opis:String = event.target.selectedItem.data2;

var url_mapa:String = event.target.selectedItem.data3;

Tip of the var: String = event.target.selectedItem.data4;

varime = ime;

varautori = allowed;

varurl_dok = url_dok;

varurl_opis = url_opis;

varurl_mapa = url_mapa;

vartip = tip;

}

fill your dataprovider after the icon loading is complete.

Tags: Adobe Animate

Similar Questions

  • When I use Windows Maovie Maker, the program keeps freezing upwards and says that it does not.

    When I use Windows Maovie Maker, the program keeps freezing upwards and says that it does not. I close and try again, but get the same question. in the past, I used this program very well without any problem. Now I do one or two things in the tyring program to create a video and it freezes. Any suggestions how I can fix this problem?

    The three main causes of problems of Movie Maker are:

    (1) incompatible or damaged source files.
    (Photos / videos / Audio clips)

    Several formats are apparently compatible with
    Movie Maker, but the most reliable choices are:

    Photos - bmp
    Video - wmv or dv - avi
    Audio - wav, wma, wmv

    (2) problems with video filters

    Open Movie Maker and go... Tools / Options /.
    Compatibility tab and disable all filters / OK.

    If this does not help, try going back to the same
    location and on the left, click on the 'all the default settings.
    button. / OK.

    (3) too large or complex project

    Create small projects.
    Add less Transitions, effects, etc...

  • My PC does not connect to the Internet, a window opens and says DNS server does not respond.

    Original title: programs network networking Internet site Internet Site Web Web Site URL of the network

    My PC does not connect to the internet, a window opens and says DNS server does not respond.

    Hello

    Follow the steps in the article mentioned below and check if it solves the problem:
    http://support.Microsoft.com/kb/314095

    Kind regards
    Afzal Taher
    Microsoft technical support engineer

  • I downloaded el Capitan and now my outlook does not work correctly

    I downloaded el Capitan and now my outlook will not work correctly. I'm unable to synchronize and the program crashes

    What version of office do you use?  If Office 2011, you must ensure that you are the 14.5.8 version at least, since 8 fixed the problem of synchronization.  Later seems to be 14.6.0 (update this morning).

  • I am the administrator on my pc. and my user profile does not load.

    recently, when I connect I get a message saying that the user profile does not, or will not, support. How can I fix it? Be admin, I can't make all the changes that my profile does not load. I can connect with my husband and children, as their loading user profiles, but, when I try to make changes and type my password properly, it won't connect so I can't do anything! Help! Thank you!

    Yes, you will lose everything when you re-install.

    If you are able to logon to an account that can back up personal files as much as you want to keep on an external hard drive, or Flash drives or DVDs.

    You will need to re - install all the programs you already have installed.

  • The mouse pointer passed, touchpad and l + r buttons does not.

    Hi, I had my laptop HP Pavilion for nearly two weeks and only today, I blocked my phone and I noticed that my L + R and the touchpad buttons are not working and my mouse pointer had completely disappeared.

    Can someone help me by telling me how to fix this? I would be very grateful.

    Thank you.

    Hello, @cf159

    Welcome to the HP Forums.

    It seems that, after the blocking of your laptop, you have lost the function of the touchpad. I will try to help you with this.

    Have you tried to restart the laptop yet? Try this first.

    If this does not work, turn off the computer, unplug the power adapter (if connected) and remove the battery. Press and hold the power for 30 seconds. Connect the dough or power adapter, turn on the laptop and the test.

    If the problem is still present, you can try to do a restore on the laptop.

    If it still does not, then try to update the drivers. You can do so here: drivers & downloads.

    I'll let you start with that. If you need other assistance please provide the model number and product for your laptop and the currently installed operating system.

    Thanks for posting on the HP Forums.

  • MY probook 4530 s runsreally slow, mouse and keyboard delay, music does not play correctly. Is it the battery?

    I contacted the support, the tech told me I have a virus, I did multiple scans with different products anti antivirus and came up with nothing.  He told me to do a restore to recover the operating system to factory settings.  I did, and as always, the first thing I do is install an av program and update all definitions and do a full scan.

    Nothing has changed, it is always the same.

    Any ideas?

    With the Dell printer, I always had to replace the battery because it was bad.

    I can understand everything, it's the battery to inform the system that it was bad has suck resources and the bad battery slowly damaged adapter.

    VRP have external LCD, MajicJack, headsets and mice USB connected. "Who use CPU resources.

    This can help.

    http://www.TomsHardware.com/Forum/49975-35-typing-keyboard-slow

    This one is all PCMService.

    http://www.randomsupport.com/RS/blogs/index.php?title=dell_laptop_slow_lagging_delayed_keyboar&more=1&c=1&TB=1&pb=1

  • The toolbar in which ID and Unicode is entered does not open in the program.

    I worked with MS VOLTS for some time without problem. Now, suddenly, the Panel toolbar narrowed it down, and I am not able to enter the glyph Editor ID or Unicode. The glyph name and type have no problem. What I can do about it. I reinstalled VOLT several times without success.

    Hi AazimMir,

    I suggest you post your question on the following link to get more support about your question.

    http://Forum.FontLab.com/Microsoft-Visual-OpenType-layout-tool-Volt-B24.0

  • I have the latest version of Lightroom CC2015.  My problem / question is with the Radial filter.  The circle, PIN and anchor point are not displayed.  Ask for help via Chat told me to uninstall and reinstall.  This does not help / correct the problem

    Can someone hepl with Radial filter / circle, PIN and anchor point are not displayed.  Thank you

    Try asking your question in the Lightroom Photoshop Lightroom forum

  • Muse produced automatically from the "canonical" tags for phone and tablet, but it does not include "www". How to fix?

    So if I have my site j - 26.com redirect to www.j-26.com then my canonical url should be: " " http://www.j-26.com/ "right? "

    Adobe Muse automatically inserts the tags for the version of phone as " " http://j-26.com/ "is there a way to fix this or should I switch my www.j-26.com redirect to j - 26.com? "

    It's a kind of confusion so I hope it made sense.

    Muse is to use what you entered the download to the FTP host domain... or export as HTML dialog boxes.

  • In windows media player, cannot change the album art view in the list of music icon.

    * - Original title - in windows media player, I can not change the album art view in the list of music icon...

    I recently deleted a lot of my music library, the Media Player (not while in the music folder in my library, but all using the MP). but now, in the classic view (and when I click on an album cover to view follow-up for an artist or album), it will only allow me see the tracks/albums with expanded tile or Details views we don't let me use the display of the icon; Indeed, this listening option is grayed out. I don't know what I did, but before that I deleted the music I could see the icon display in the library. Can I fix somehow?

    Here's how I put it in an e-mail to a friend, maybe the problem is clearer in this way:

    Very well - so the other night, I did a purge in my music folder, deleting a lot of tracks how much I did not listen. I was doing this WMP. Now, the default view in my WMP since always the view icon, with the great icons of the album covers next to the track. (large, compared to other views) But now, I can't get that discover more, not when I'm looking for the titles of music st - only when I look by Album, artist, Genre or year. In the opinion of music suddenly the only options I been authorized were expanded tile and details - icon option is grayed out and the purge he was not! I looked in the WMP folder in Program Files and there was a folder called icons; It was empty. I had never watched there before; so I don't know if this is normal or not. How can I fix it? I remove and reinstall WMP?

    Had the same problem and you probably already figured out the answer, but it's here... Media Player 12.

    HERE a THE FIX... go to the top near the top of the media player window and directly to the left of the search bar in the media player is a drop down for the choice of the view menu. It is somehow changed to "Détails" view in the mine... CHANGE "Expanded Tile" view and your icon appears again in the Middle as I had initially.  ;)

  • I have an Apple computer, use the browsers Firefox and Safari, use Comcast for my email. Lately, when the Firefox, my email does not work correctly. Why?

    I have an Apple computer, use the browsers Safari and Firefox. I use Apple mail and Comcast to my email. Lately, in the case of Firefox, my email does not work correctly. I get a message "your server license has expired. While usually, I can access my emails, I can't delete the unwanted emails. This problem will not occur when I use Safari and Apple mail. Is this a problem of Firefox or Comcast? Do you know what license is expired?

    Hello

    Many issues of the site can be caused by corrupted cookies or cache. To try to solve these problems, the first step is to clear cookies and cache.
    Note: This will be you temporarily disconnect all sites, you're connected to.
    To clear the cache and cookies to do the following:

    1. Go to Firefox > history > clear recent history or (if no Firefox button is displayed) go to tools > clear recent history.
    2. Under "Time range to clear", select "all".
    3. Now, click the arrow next to details to toggle the active details list.
    4. In the list of details, see the Cache and Cookies and uncheck everything.
    5. Now click the clear now button.

    More information can be found in article to clear your cache, history, and other personal information in Firefox .

    This solve your problems? Please report to us!

    Thank you.

  • my button is not the top of my list of contacts - when I start typing a name, a list does not appear, for me to choose and my spell checker does not work

    my button is not the top of my list of contacts - when I start typing a name, a list does not appear, for me to choose and my spell checker does not work

    Hi Lynn,

    What mail client do you use?

    Using Windows Live Mail or Outlook?

    For Windows Live Mail:

    The best place to ask your question of Windows Live is inside Windows Live help forums. The experts he specialize in all things, Windows Live and I would be happy to help you with your questions! Please choose a product below to be redirected to the appropriate community:

    Windows Live Mail

    Windows Live Hotmail

    Looking for a different product to Windows Live? Visit the home page Windows Live Help for the complete list of Windows Live forums at www.windowslivehelp.com.

    For Outlook:

    http://answers.Microsoft.com/en-us/Office/Forum/Outlook

    If you are not using one of the people then please let us know what you use so that we can help you further.
  • How can I reinstall the my working folder icon and the icon of internet explorer in my desktop

    How can I reinstall the my working folder icon and the icon of internet explore on my desk that had been removed in some sort tried to watch in recycle bin bit is not there also tried to restore to an earlier date, but it will not reinstall

    Assuming you are using Windows XP (you asked this question in a forum of Windows XP), download TweakUI for XP http://windows.microsoft.com/en-US/windows/downloads/windows-xp (left column, third item down).

    Install and run TweakUI.  Click "Desktop", and then select the items you want to have appear on the desktop.  Click OK.

  • Cannot use the Organizer in Photoshop Elements and elements of first

    I am unable to use the Organizer in Photoshop Elements and Prime Minister. An error message is displayed, "the catalog could not be opened. An internal program error has occurred. »

    I tried to repair the catalog from a new catalogue and re-installed both programs, but the error persists.

    I use elements and first elements on Windows 8.1 V12.

    Any help yet get me would be appreciated.

    Thank you


    Colin

    Hello

    Thanks for the suggestion, but it made no difference.

    However, by trail and error, I found a solution to 99%.

    Right-click on the desktop, the icon of elements.

    Select Troubleshoot Compatibility.

    Select troubleshoot program

    Select a problem (I used the other)

    Select the Version of Windows (Windows 8 for me)

    Select the Test program

    If it works, which he did in my case, save the settings.

    This seems to have solved my problem, except that I now get an extra screen at the opening of the elements to allow the program to make changes to my computer. I can live with that.

    When I get time I will check if there is any Adobe or updates to Windows that will make this unnecessary step.

    I hope this helps other people with the same problem.

    Thanks for responding.

    Colin

Maybe you are looking for