Access to the library data

Hi all

I have a problem, and I hope you can help me.

First of all, I must say, I have an air application, which includes Flex library projects. I would like to read the XML file, which is in the library project, folder - this possible? I did have a problem with playback of files, which are located in the application folder, but I can't find a solution to the folder in the library folder. (each library project is merged into code, no RSL are used).

Thank you very much and sorry for my English

Hello

You can do this by inserting the XML code in the library project.

Code Project Library:

package com.example.library{     public class MyClass     {          [Embed(source="MyFile.xml",mimeType="application/octet-stream")]          public static const MyXml:Class;

     }}

Project code:

var obj:Object = new MyClass.MyXml();var xml:XML = new XML(obj);

You can now use the instance variable xml within your code project that you wanted.

I do not recommend you to use this approach to load XML data. You can do that the loading of the external XML file using class URLLoader instead of embedded in your library project.

I hope that helps!

Best regards

Pablo Souza

Tags: Flex

Similar Questions

  • If I sell my iPhone 6, indicating the error 53, for parts, should I worry about the person buying it have some sort of access to the personal data registered on this phone?

    If I sell my iPhone 6, indicating the error 53, for parts, should I worry about the person buying it have some sort of access to the personal data registered on this phone?

    Hello error 53 matched a UN failure to the home button you had to replace the screen or the home button alone or outside apple store so if you replace the button man of origin and you restored the iPhone error will be fixed but if you sell the buyer has no access to the data of the iPhone

  • When you try to share Windows Media Player, error, you must first be allow access to the library

    I want to share my Windows Media Player and have checked all the boxes according to the needs

    But when I go to another identical computer, it displays the name of the library to share but said

    "Before you can play items in the library, you must first access to the library" it works the opposite way round - I can see the other computer media and play from there, but cannot read any media on this computer.

    In the box, I want to run the media on I can see the name but not the small triangle to expand the options

    Am running Vista professional

    Any ideas please?

    Hi TonyCope,

    1 are you able to share files both ways on both computers?

    Have you checked if you have configured media sharing on the computer that doesn't work properly?

    For more information, see the link:

    http://Windows.Microsoft.com/en-us/Windows-Vista/change-settings-for-sharing-media-in-Windows-Media-Player

    2 are the two machines running Windows Vista Business?

    3 a share already worked on both computers, or has it always been this way?

  • Access to the library of the user on the backup drive

    I need to access my preferences of old logic disk clone.  I know that if I worked this system I would just press option/GB and I could access the user library but I try to access to the outside, the last time I tried to restart from that clone drive it wouldn't work.

    Open the copy in your folder on this drive, choose go to folder from the Finder menu and provide exactly the library as the path.

    (139232)

  • Access to the library via another application

    I am putting together a photo book with a 3rd party software and am unable to access my photo library on the mac book.  This seems to have become a problem since the migration of iPhotos to photos.  When I try to send pictures of this library, it is grayed out and is not accessible.  Also seems to be the case if trying to attach a photo in gmail.  Any ideas anyone?

    What software do you use?  Done is to have an option to import file ➙

    and, if so, is there an option of media browser in the next window?  It might resemble the following Preview:

    If you can access the library of Photos in this way with your software, you need to export the photos you want to use a folder on the desktop and access them with your software.

    With Gmail, you must set up E-mail as a client for your Gmail account

    and then you can use the Share button to get the pictures selected in a Gmail email:

  • Can't access to the application data Windows 7

    I am logged on as administrator, but cannot access the Application Data folder. It shows that the folder as being locked (padlock). I have the security settings for this workstation, but cannot access many files? Where can I change the settings?

    Bruce

    The application data folder is just a re - direct to the new version of the short name.  It is only there for compatibility, and since he is not a real file, you cannot open it.

    To get the files you want, you must do this:

    1. Press +R to display the race.
    2. Type %AppData% , and then click OK.
  • Access the views Where the access to the underlying data, through a role

    I have a user (say User1) who granted select access to motherlode via a role table

    User1 has a bunch of useful views created I want User2 to have access to the. User2 should have access only to these points of view, not to the underlying table.

    User1 can grant access to his point of view because it has no direct access granted to motherlode tables.

    I managed, based on a technique that I have for the most part, but do not entirely understand, give User2 access to data through a function. The solution is below.

    My general question is: y at - it an easier way (other than the grant direct access to the motherlode User1 tables)?

    My question is: the definition is possible shorter somehow. I know I can automate the production of the code for some of the statements using metadata, but, for example, is it possible to base the declaration of type (t_p5) on the existing view? (I have about 15 views I need to provide access)

    Solution is, where v_p5 is the original view:

    User 1:

    CREATE or replace type t_p5 as an object

    (< columns and data types of v_p5 >

    )  ;

    CREATE or REPLACE TYPE t_p5_tab AS TABLE OF THE t_p5;

    FUNCTION to CREATE or REPLACE f_provide_p5 RETURN t_p5_tab

    PIPELINED IS

    l_cur SYS_REFCURSOR;

    l_rec v_p5% rowtype;

    BEGIN

    L_cur OPEN FOR ' SELECT * FROM v_p5';

    LOOP

    EXTRACTION l_cur

    IN l_rec;

    EXIT WHEN l_cur % NOTFOUND;

    GUIDELINE (t_p5 (area = > l_rec.region))

    , district_name = > l_rec.district_name

    , current_month = > l_rec.current_month

    , p_current = > l_rec.p_current

    , previous_month = > l_rec.previous_month

    , p_prev = > l_rec.p_prev

    , diffp = > l_rec.diffp

    , diff_perc = > l_rec.diff_perc

    , previous_year = > l_rec.previous_year

    , p_year = > l_rec.p_year

    , diffy = > l_rec.diffy

    , perc_diffy = > l_rec.perc_diffy

    ));

    END LOOP;

    RETURN;

    EXCEPTION

    WHILE OTHERS THEN

    raise_application_error (-20000, SQLERRM |) Chr (10) | l_sql);

    END;

    And user2:

    VIEW to CREATE or REPLACE v_p5 AS

    SELECT * FROM TABLE (User1.f_provide_p5);

    I can then do a select * from v_p5 in User2 and return the view data.

    Thank you.

    Hello

    Don't bother with the pipeline and PL/SQL functions.  Everything will be easier, more effective and more reliable if you use only views.

    Privileges through roles do not create a view on a table in another schema.

    If user1 can create a view on motherlode.table_x, then user1 should have direct privileges already (or user1 must have a privilege of system as SELECT ANY TABLE).

    User1 needs the same privileges WITH GRANT OPTION in order to grant privileges on his point of view to User2.  To do this, have motherlode grant privileges to user1, like this:

    GRANT SELECT ON table_x to User1 WITH GRANT OPTION;

    GRANT SELECT ON table_y to User1 WITH GRANT OPTION;

    Repeat for each table that user1 uses in the views.

    Then user1 will be able to grant privileges on views to User2 like this:

    GRANT SELECT ON my_view_01 TO user2.

    This will NOT allow user2 directly see the motherlode.table_x.  User1 will have the power to give privileges to User2, but simply grant privileges on the view does not give User2 these privileges.

    If you don't want User1 to have this power, then create the views in the motherlode scheme, or create a new schema only for the putpose to own these views.

  • access to the library of content vSphere 6 in vRA

    is it possible to access vSphere 6 library of content in the vRA?

    Not at the moment, but it's something that we are considering in the near future.

  • Access to the library in ActionScript code


    I'm totally confused. I'm modifying the code written by someone else and need to access a class that is never directly created. The author did write a class and assign it to a library object by using the properties of binding | AS 2.0 class. It creates a form to aid as the name of the library clip contentpath (see attachment code.)

    When the window is created, the frmPublishVideoStream object creates an instance of the class, I need access to, "PublishVideoStreamForm". But I can't do it in my code. It is not kept anywhere, in fact, that it is not referenced anywhere. The class must be a property of the clip to which it is attached. But how do it?

    If I can't access this class, I have to go through a process painful and ugly of all my open windows of closing and reopening of their. This will make for a poor user experience.

    Can someone tell me how to access it? I know that I can use getProperty to get the other properties such as allowMaximize. I tried the 'PublishVideoStreamForm' property, just in case where the class is going as property under his own name, but that didn't work. I get a compile error, "GetProperty expected property name."

    In any case, it is accessible?

    PROBLEM SOLVED!

    I did it in a unique way, however. Because I could not get what was suggested here for work, I created an array of objects in my main session class. In the constructor for my inaccessible class, I add a reference to itself. I can then browse the list of windows and have access to individual instances whenever I want.

    It's an average point round, but anything that works!

    Thanks for your help.

  • Access to the XML data file

    OK, I need a quick lesson on the access of different tags in an xml file and display them. I have a rather messy xml generated dynamically and the structure cannot be modified due to an Excel application that is already there access.

    The following xml code:
    <? XML version = "1.0" encoding = "utf-8" standalone = "yes"? >
    < files >
    < active >
    account <>
    < sendto > Joe D < / sendto >
    < head >
    < level1 >
    < Envoy > true < / sent >
    < name > MIKE B < / name >
    < str > 1 < / str >
    < date > 18/07/2006 < / date >
    < notes > get this load! < / notes >
    < / level1 >
    < level2 >
    false < sent > < / sent >
    < name > < / name >
    < str > < / str >
    < date > < / date >
    < notes > < / notes >
    < / level2 >
    < level3 >
    false < sent > < / sent >
    < name > < / name >
    < str > < / str >
    < date > < / date >
    < notes > < / notes >
    < / level3 >
    < level4 >
    false < sent > < / sent >
    < name > < / name >
    < str > < / str >
    < date > < / date >
    < notes > < / notes >
    < / level4 >
    < / head >
    < itemcd > 1234567 < / itemcd >
    < desc > TEST < / desc >
    < detail > 5 < / sale >
    < go > AA01 < / go >
    < replcst > 2 < / replcst >
    < Pack1 > < / pack >
    < code > 123456789999 < / upc >
    < vendor name > EMRYW < / seller >
    < venditemcd > 1234567 < / venditemcd >
    < grp > 2 < / grp >
    < s > < / s >
    < insaft > < / insaft >
    < default shallum = 'every' > < / shallum >
    < default fracu = "i" > < / fracu >
    < default occurrence = '0' > < / occurrence >
    "< default allowfr =" "> < / allowfr >.
    < default prium = 'every' > < / prium >
    < default selluf = '1.00000' > < / selluf >
    < default Kathy = "1" > < / Alexandra >
    < default stockum = 'every' > < / stockum >
    < default itemstyp = '0' > < / itemstyp >
    < default traqoh = 'y' > < / traqoh >
    < default rcvum = 'every' > < / rcvum >
    < default rcvuf = '1.00000' > < / rcvuf >
    < default rcvscal = "1" > < / rcvscal >
    < default shipum = 'every' > < / shipum >
    < default shipuf = '1.00000' > < / shipuf >
    < stockingstr >
    < str1 > true < / str1 >
    false < str2 > < / str2 >
    false < str3 > < / str3 >
    < / stockingstr >
    < default pricematlev = '0' > < / pricematlev >
    < default qbreaktable = '0' > < / qbreaktable >
    < default taxflg = 'y' > < / taxflg >
    < default gstcd = '0' > < / gstcd >
    < default tradedisf = "n" > < / tradedisf >
    < default promptpayf = 'y' > < / promptpayf >
    < default commflg = 'y' > < / commflg >
    < default additdescf = "n" > < / additdescf >
    < default talleyitemf = "n" > < / talleyitemf >
    < default nonstkitem = "n" > < / nonstkitem >
    < default assemblyitemf = "n" > < / assemblyitemf >
    < default assemblyitemtype = '0' > < / assemblyitemtype >
    < default assemblyledtm = '0' > < / assemblyledtm >
    < default assemblywrkuts = "n" / > < / assemblywrkuts >
    < default billmattyp = '0' > < / billmattyp >
    < default serialnumf = "n" > < / serialnumf >
    < default bascomitemf = "n" > < / bascomitemf >
    < bascomitemcd > < / bascomitemcd >
    < default lotctrlf = "n" > < / lotctrlf >
    < default lotctrlnum = '0' > < / lotctrlnum >
    < default relitemmsgnum = '0' > < / relitemmsgnum >
    < default hazmatnum = '0' > < / hazmatnum >
    < default strydf = "s" > < / strydf >
    < default keyitemf = "n" > < / keyitemf >
    < default ctrlitemf = "n" > < / ctrlitemf >
    < talleyindiv > < / talleyindiv >

    < textfld2 > < / textfld2 >
    < default numfld1 = '0' > < / numfld1 >
    < default numfld2 = '0' > < / numfld2 >
    < default glacctcd = "" > < / glacctcd >
    < default stkitemrptf = 'y' > < / stkitemrptf >
    < default lifopolnum = '0' > < / lifopolnum >
    < default lifosampf = "n" > < / lifosampf >
    < default pricetabname = "" > < / pricetabname >
    < invcstperc default '0.00' = >
    < str1 > < / str1 >
    < str2 > < / str2 >
    < str3 > < / str3 >
    < / invcstperc >
    < default invcritfac = "0.00" > < str1 > < / str1 > < str2 > < / str2 > < str3 > < / str3 > < / invcritfac >
    < default invglnum = '0' > < str1 > < / str1 > < str2 > < / str2 > < str3 > < / str3 > < / invglnum >
    < default invlngrngfac = "0.00" > < str1 > < / str1 > < str2 > < / str2 > < str3 > < / str3 > < / invlngrngfac >
    < default invminq = "1" >
    < str1 > < / str1 >
    < str2 > < / str2 >
    < str3 > < / str3 >
    < / invminq >
    < default invmaxq = "2" >
    < str1 > < / str1 >
    < str2 > < / str2 >
    < str3 > < / str3 >
    < / invmaxq >
    < default minmaxtab = "DO_NOT_ORDER" >
    < str1 > < / str1 >
    < str2 > < / str2 >
    < str3 > < / str3 >
    < / minmaxtab >
    < default invmingpperc = "49" >
    < str1 > < / str1 >
    < str2 > < / str2 >
    < str3 > < / str3 >
    < / invmingpperc >
    < default invordq = '0' > < str1 > < / str1 > < str2 > < / str2 > < str3 > < / str3 > < / invordq >
    < price1 > < str1 > < / str1 > < str2 > < / str2 > < str3 > < / str3 > < / price1 >
    < price2 > < str1 > < / str1 > < str2 > < / str2 > < str3 > < / str3 > < / price2 >
    < 3 > < str1 > < / str1 > < str2 > < / str2 > < str3 > < / str3 > < / 3 >
    < price4 > < str1 > < / str1 > < str2 > < / str2 > < str3 > < / str3 > < / price4 >
    < price5 > < str1 > < / str1 > < str2 > < / str2 > < str3 > < / str3 > < / price5 >
    < price6 > < str1 > < / str1 > < str2 > < / str2 > < str3 > < / str3 > < / price6 >
    < price7 > < str1 > < / str1 > < str2 > < / str2 > < str3 > < / str3 > < / price7 >
    < price8 > < str1 > < / str1 > < str2 > < / str2 > < str3 > < / str3 > < / price8 >
    < default alley = "XXXXX" >
    AA01 < str1 > < / str1 >
    < str2 > < / str2 >
    < str3 > < / str3 >
    < / go >
    < bin > < str1 > < / str1 > < str2 > < / str2 > < str3 > < / str3 > < / bin >
    < shelf > < str1 > < / str1 > < str2 > < / str2 > < str3 > < / str3 > < / Tablet >
    < invstdcst > < str1 > < / str1 > < str2 > < / str2 > < str3 > < / str3 > < / invstdcst >
    < manminmax > < str1 > < / str1 > < str2 > < / str2 > < str3 > < / str3 > < / manminmax >
    < Text2 > < str1 > < / str1 > < str2 > < / str2 > < str3 > < / str3 > < / text2 >
    < numer1 > < str1 > < / str1 > < str2 > < / str2 > < str3 > < / str3 > < / numer1 >
    < numer2 > < str1 > < / str1 > < str2 > < / str2 > < str3 > < / str3 > < / numer2 >
    < default keyword = "" > < / keyword >
    < default score = "" > that load! < / note >
    < / recording >
    < / current >
    < / files >


    Here is the code I have so far:
    <? XML version = "1.0" encoding = "utf-8"? >
    "" < application xmlns = " http://www.adobe.com/2006/mxml ' layout ="absolute"xmlns:local =" * ">
    < id XML = 'feedData"source ="index.xml"/ >
    < DataGrid dataProvider = "{feedData... active.record}" = "324" XY = "138" width = "500" >
    < columns >
    < DataGridColumn id = "Folder" headerText = "presented by" dataField = "" / >

    < DataGridColumn headerText = "Item" dataField = "itemcd" / >
    < DataGridColumn headerText = "Description" dataField = "desc" / >
    < / columns >
    < / DataGrid >
    < / application >

    What I want to know is how to access and put in the column ' presented by"< files > < active > < record > < head > < level1 > < name >

    Any help would be great, because I'm stuck.

    After digging a little and a few cups of coffee, I managed to shoot some extraction of an XML data in a datagrid control. I can access attributes, node values, etc...

    One thing I noticed, is that you need to refresh the application if you have constantly updated dynamic data up-to-date. So here is some code to help some of you on:

    First some XML (index.xml) examples:




    Architect

    111 Salisbury Rd


    Web Designer

    888 Orchard Rd

    Name of code with two tabs one ( Active), other name ( inactive):

    "http://www.adobe.com/2006/MXML" layout = "absolute" xmlns:local = "" * "pageTitle ="Test App"creationComplete =" srv.send () ">

    http://www.domain.com/index.XML?RAND=math.random (); "resultFormat ="e4x"useProxy ="false"showBusyCursor ="true"/ >


    <>
    private void RefreshData (): void {}
    xActive.refresh ();
    xInActive.refresh ();
    }
    ]]>
























  • Access to the library of the complete instrument when starting a new project

    It is not so much a problem with the software (i suspect) with my ignorance. As you guess, I am the newest of newbies.

    When I started to play with GarageBand - and that's all I have to do - starting a new project gave me a complete list of the instruments in the library of instruments, as well as the categories and corresponding patches. Now, when I start a new project just as I get in the library is the electric piano vintage. How to return the full list, which I had originally, when I start a new project? It is most likely that I did something that caused the situation I have just described, but I have no idea what.

    OS X El Capitan 10.11.4

    GarageBand 10.1.1

    Instruments in the library depend on the type of track you have currently selected.

    If you have a software instrument track selected, you should see all software instruments.

    If the instruments seem to be missing, click the GarageBAnd menu and select "sound library".

    Download all the available sounds.  Who can take a long time.

  • Access to the library of photos from other applications

    This question is so ridiculous, I don't know even how to describe.

    When I use Photoshop or Facebook or even mail and I want to open a photo from my library, I'm not able to do it with pictures.  I can get to a picture category in the drop down menu below for the location of the photo, but in the category, it lists a library which no longer opens.  By clicking on that leads to an error message ("this file format is not recognized", or something to that effect.)  I have to go to Photos and send the picture to myself and to save it to my desktop in order to to use.  It didn't happen with iPhoto.

    I use an iMac of 2013 and El Capitan 10.11.3.

    Everyone knows this?  Can it be fixed?

    Thank you.

    In mail, click the photo browser to access the photo library: it will display a list of libraries of photos:

    Using Photoshop "file > open and scroll down to the media section in the sidebar." Click on the Photo icon. Then wait Photos appear in theistic and be prepared to wait awhile, until what the pictures will be displayed.

  • Access to the new data in Event Message user callback?

    I use the Simple OI LabVIEW as a template for my user interface for TestStand.

    The sequence sends a Message to the user to the IO to the string array of tests to run.

    But I'm having a lot of difficulties this string data in table for the VI event reminder.

    I don't want to use a global variable and so my method without success so far has been as follows:

    1. use a Refnum at the matrix and pass in the event reminders VI through the cluster Config

    2. the "selected Tests" in the entry in the Config cluster event reminders VI is a generic control Refnum

    3. the selected Tests (below) is then delivered and passed in the User parameter

    4 but how to convert the refnum control Tests that are selected in the original array of strings in the real callback?

    ???????

    Also if there is someone who can suggest a better way to do this then please let me know.

    The line at the bottom is - how to get the most recent data in the event callback function when it is called?

    Thank you very much

    Ronnie

    Ultimately to get this working, I gave up on the string table and changed to a ListBox instead. It was easy then to access the properties of the listbox through the refnum. Probably a major flaw in my understanding of how string refnum work tables.

  • problem with access to the image data after you have installed latest windows

    Hi, my name s mayur, I got the problem when I open my photos data, actuly I have a computer laptop sony vaio there and I m a photographer so usually I saved my data in my vista drive was slove, so I upgraded mwan Formate c drive and install windows 7 in there then when I cheack my image data in f drive I cant able to see the thuumbs when I open it in the windows image viewer He told me i dnt have the permission to access

    I did this solutions

    I changed my user to administrator - has not worked
    I changed the security settings and gives full control to user - does not work
    I've changed owner ship - does not work, I reinstalled vista - not worked
    I used hodden administrator - has not worked
    I have attached the HDD in the pc of windows genuen - has not worked
    I opened my hard drive under linux and not worked

    I am a hardware engineer also so can someone tell me what will be the reson when I cheak the propertese folder there are a few user (s16561613) with red qustion mark in the authenticated user, my laptop has a genuien windows and now I have installed the windows is not genuine and I dnt have the original windows. so is this problem related to the license... or is the problem of pricing to someone please help me... the security and

    Hello

    There will not be any support for a pirated copy of Windows. I suggest you install a genuine Windows 7 on the computer and test the issue. If you face the same problem let us know so that we can help you further.

    Reference:

    Windows Genuine

    http://Windows.Microsoft.com/en-us/Windows/genuine

  • ITunes 64-bit program requires access to the library

    Cannot use ITunes 64-bit after uninstalling regualr ITunes but have a 64-bit Windows 7

    Just UN-installing iTunes is not enough, there is a specific procedure to follow.

    See here for the exact instructions.

    Do the same for the 64-bit version, (then re-upload if necessary and) install the 64-bit version again.

    And then tap iTunes to your library or re to the.

    See you soon,.
    Jerry

Maybe you are looking for