User/Score XML file integration

Hi, i've got a project due in around one year from now. One
of the main features i'd like to include in this project is the
ability to save/load a user and their score.
I've had a look at some tutorials and it seems that a local
XML file would be the easiest way to go, but i haven't quite found
anything that really suits my needs.
So basically i'd like for it to have a list of users and
their scores (this involves parsing the XML file and setting the
strings to variables right?) and then be able to log in (is it
possible to create new users through flash??), then after gaining
more points, their score is updated in the XML file.
Any suggestions as to where i should start with this?

You should go with the ShareObject I think. The shared object
stores the
data in a Flash specific location (C:\Documents and
Settings\[USER]\Application Data\Macromedia\Flash Player)
All you do is creating a local SharedObject and then store
data in it -
this data can be read again later on in a new session. It
works like a
cookie.
Try look in the Flash help on SharedObject :)
Or try this code:
var so:SharedObject = SharedObject.getLocal("userHighScore");
if (so.data.highScore == undefined)
trace("no high-score found");
else
trace("high-score = "+so.data.highScore);
// set a new highscore:
so.data.highScore = Math.ceil(Math.random() * 1000);
so.flush();
trace("new high-score = "+so.data.highScore);
- Magnus
Golbez_AU wrote:
> Right now i intend for it to be installed locally.
>
> With the SharedObject class, where does that save the
information? Is it in a
> separate file or what?
>
> How hard would it be to implement a system where you
could select which user
> to continue with/create a new user?
>
> Once it's implemented, is it as simple as loading the
score associated with
> that username as a variable?
>
> Sorry for the uneducated questions, it's just that i
want to know which
> direction i should be heading in so that i can begin
planning/experimenting for
> my project.
>

Similar Messages

  • How to paste DTD in XML file. (not reference to .dtd file)

    Hello!
    I create XML file using DOM. How can I create DTD on the top of the file?
    I need the DTD, not a reference to it. So the next method won't work.
    transformer.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM, "Resources\\Settings\\projectFile.dtd") since it is paste a reference to .dtd file. It means that if user moves XML file to other place he need to move .dtd file also, and I don't want this method. I want paste next DTD
    <!DOCTYPE project [
                        <!ELEMENT project (component*) >
                        <!ELEMENT component ANY >
                        <!ATTLIST component id  ID  #REQUIRED >
    ]>from the .dtd file on the top of my XML file. How can I do this?
    Thank you.

    I've found that by opening a inputstream to the XML file and wrapping it to filter the DTD out altogether and passing that inputstream to JAXB does the trick.
    this seems actually faster, since it doesn't go off on the net to look for the dtd!
    is this not catered for already somewhere??
    thanks,

  • BPEL XML Files

    What are jazn-data.xml and user-properties.xml files used for?
    These files are useful in what? and what does these files do?
    Thanks in Advance
    Deepak

    They are used for the authentication of the users.
    In production you mostly wont use these and authenticate against ldap, but for development you maybe dont want to configurate this and use those files.

  • I am receiving the 'Could not sign you in [Access denied: 530]. Check your user name and password' problem on Adobe Muse CC 2014 and I cannot access the xml file that is supposed to fix this issue?

    I am a PC user and I have Adobe Creative Cloud Muse 2014. I have received the 'Could not sign you in [Access denied: 530]. Check your user name and password' error when trying to upload my muse site to my ftp host, GoDaddy. I have successfully done this in the past and only recently it has stopped working. I looked online at the FAQ Adobe Muse Help | Uploading an Adobe Muse Site to a third-party hosting service and it said to download the ftpprefs.xml file but this file simply leads to a blank page that says /*Not found*//*Not found*/.
    Can someone direct me to a working page with this file or provide a different solution? Thank you!

    Hello,
    As you are getting error [Access denied: 530] it means issue is with access. Either the username and password you are entering is incorrect or you do not have proper permissions.
    I would suggest you to contact Godaddy to either reset password or reset the permissions.
    Regards
    Vivek

  • Error while loading XML files into scott user

    Hi All,
    I'm new to xml files. I need to load xml files into database through OWB.
    I have xml file in my local machine & am trying to load into table PO of Scott. Scott is registered as repository user.
    Followed same steps as specified in userguide.
    But, when executing the procedure ( in two ways one as just table name, and other as user.table name) it is showing the below error:
    Procedure is:(1)--with username.tablename
    begin
    wb_xml_load(
    '<OWBXMLRuntime>'||
    '<XMLSource>'||
    '<file>&&SAMPLES_DIR.sample1.xml</file>'||
    '</XMLSource>'||
    '<targets>'||
    '<target dateFormat="yyyy.MM.dd">scott.PO</target>'||
    '</targets>'||
    '</OWBXMLRuntime>'
    end;
    ERROR at line 1:
    ORA-20006: Error occurred while truncating target database object SCOTT.PO.
    Base exception: ORA-01031: insufficient privileges
    ORA-06512: at "OWBSYS.WB_XML_LOAD_F", line 12
    ORA-06512: at "OWBSYS.WB_XML_LOAD", line 4
    ORA-06512: at "SCOTT.SAMPLE1", line 3
    ORA-06512: at line 1
    Procedure is:(2) with out username
    begin
    wb_xml_load(
    '<OWBXMLRuntime>'||
    '<XMLSource>'||
    '<file>&&SAMPLES_DIR.sample1.xml</file>'||
    '</XMLSource>'||
    '<targets>'||
    '<target dateFormat="yyyy.MM.dd">PO</target>'||
    '</targets>'||
    '</OWBXMLRuntime>'
    end;
    ERROR at line 1:
    ORA-20006: Error occurred while truncating target database object PO.
    Base exception: ORA-00942: table or view does not exist
    ORA-06512: at "OWBSYS.WB_XML_LOAD_F", line 12
    ORA-06512: at "OWBSYS.WB_XML_LOAD", line 4
    ORA-06512: at line 2
    xml file:
    <ROWSET>
    <ROW>
    <ID>100</ID>
    <ORDER_DATE>2000.12.20</ORDER_DATE>
    <SHIPTO_NAME>Adrian Howard</SHIPTO_NAME>
    <SHIPTO_STREET>500 Marine World Parkway</SHIPTO_STREET>
    <SHIPTO_CITY>Redwood City</SHIPTO_CITY>
    <SHIPTO_STATE>CA</SHIPTO_STATE>
    <SHIPTO_ZIP>94065</SHIPTO_ZIP>
    </ROW>     
    </ROWSET>
    Note: Everything works fine if I create PO table in OWBSYS user and execute the procedurein OWBSYS user. OWBSYS.PO table will be loaded.
    What privileges are missing, what shouldI do if I want to execute the procedure from scott user and load the table of scott.
    Thanks in advance for the help.
    Regards,
    Joshna

    Hi Joshna,
    Please follow below steps to load xml file to oracle database.
    1.First connect to owb (Design Center) through your repository owner user (ex : REP_OWNER).
    2. Import WB_XML_LOAD procedure . and exit to repository owner.
    3. connect to owb design center through your repository user (ex : REP_USER)
    Create New mapping and drag one Constant Operator and create one attribute, paste / edit following code
    '<OWBXMLRuntime>'||
    '<XMLSource>'||
    '<file>E:\SOURCE\emp.xml</file>'||
    '</XMLSource>'||
    '<targets>'||
    '<target truncateFirst = "FALSE" dateFormat="yyyy.MM.dd">rep_user.emp</target>'||
    '</targets>'||
    '</OWBXMLRuntime>'
    4. Drag pre mapping operator and select WB_XML_LOAD procedure
    5. Connect Constant Operator attribute to pre mapping operator.
    6. Drag two dummy tables and connect source to target. (ex : drag t1 (table) tab two times and connect.
    7. Validate and deploy the mapping.
    8. grant necessary grant command to rep_owner user to rep_user user.
    (Note : target truncateFirst = "FALSE" by default truncate the table. So you have to give grant privileges
    To rep_user , select ,insert, delete privileges.
    9. Execute the mapping , and check EMP table. (Note : before loading EMP table delete all records ).
    10 . If you want more description please go through the below link
    http://download.oracle.com/docs/html/A95931_01/apf.htm
    Regards
    Venkat

  • AIR application request a xml file from a server (but only legal users)

    Hello guys
    I am conceptualizing a project at the moment and I am thinking of using Adobe AIR to develop the application related to that project.
    But it depends on the ability of AIR to fulfill my project requirements.
    I want your ideas, please...
    Imagine, I finished developing my application and compiled the distributed version using Adobe AIR.
    And I am going to distribute the installation files of the intended application by burning on to a CD.
    Imagine, the user who got that CD, installed it it on his computer and launched the application.
    When the application is running, it needs to load a XML file which is saved in our company server.
    Since it is an important data file I don't want to dispatch it with the installation CD.
    So I am thinking of using URLRequest and URLLoader classes to load this XML file from server dynamically.
    Lets imagine I did codes like this....
    var request:URLRequest = new URLRequest("http://www.mycompany.com/sereverfolder/blabla.xml");
    request.method = URLRequestMethod.POST;
    var loader:URLLoader = new URLLoader();
    loader.load(request);
    But my question is, how safe hardcoding the path for the xml file in the class file as shown above.
    Can anyone get access to xml file path by looking into installation files dispatched via CD?
    Or is there any other safer way to do this?
    Thank you for taking time to read my question and please add your input if you would like to share your knowledge.
    cheers

    wrong forum.

  • Creating XML file and transport to GIS (gentran integration suite)

    Hello Experts,
    I have a requirement. I need to convert the data from an internal table to    XML Format file   , and send that XML file to
    GIS application   [  gentran integration suite -   middleware applicationa ]
    i need to save that file to  Unix-Filesystem and call an FTP transfer routine to GIS.
    [   Purpose of   GIS  -->  Transforming data (using services) from different applications so that it can be communicated to other
    systems.Moving and communicating data between different systems external to Gentran Integration Suite,using adapters. ]
    Please kindly reply me....
    Thanks

    I do not think that you need to know more than the basics of Gentran, as you will have to upgrade PI, not Gentran.
    Just check the Homepage of Gentran to find an overview about it:
    http://www.sterlingcommerce.com/products/b2b-integration/sterling-integrator/
    or find more information with google.

  • How to transfer a (XML) file from EJB to WebDynpro / User ??

    Hello!
    Actually I'm working on an EJB which is able to generate an XML file by the data I saved before in a JDBC database.
    Now I'd like to create a WebDynpro view, from where the user can download this file (after giving the order to generate it) to his local machine.
    For the UI element FileDownload I already have inserted the binary type element into the context.
    Now I'm looking for the best way to transfer the XML file from the EJB to the view, so that it can be downloaded.
    Is it better to transfer it by DOMSource and to create the file in the view or to create the file in the EJB and transfer the binary data to the view?
    Or is there another possibility?
    Greetings,
    Ramó

    In transaction SM69 external operating system commands can be set up and then these can be executed using function SXPG_CALL_SYSTEM from ABAP or using SM49 transaction.
    See documentation in the function module and application help in the SM69 / SM49 transactions.
    You could set up commands for copy, move, delete for the relevant directories.  Be careful to limit the directories and set security appropriately.
    Andrew

  • XML file, with multiple customer records - post DEBMAS over Integr.Process

    Hi all,
    is it possible to map a single XML file message that contains multiple records for customer master to multiple messages ?
    I know that it is possible to do a "multi IDOC " mapping but then the splitting of the messages is done by the IDOC adapter, not earlier.
    I have to process every single customer master record by an integration process to check if its creation or change (and get the customer number).
    When I try in the interface mapping to set the receiver to "0 to unbound" then also the message format of the sender requires two additional hierarchie levels "...message, message1" . My orginal file does not contain these tags.
    Is XI not able to handle this easy requirement without making a university study out of it?
    Thank you very much for your help
    best regards
    Hans

    You need not worry about those tags to be in your file. Those are added while mapping is being executed. All that you need to do is use file content conversion in sender adapter and put your lookup logic in Integration Process and mapping..!!
    You do not need a university degree, if you understadn the concepts..!!
    VJ

  • How to customize the XML file name from user entered field value when submitting

    How can I customize the name of an HTTP submitted XML file from data entered by the user in a text field?
    The field in question contains user identification information and would ease the sorting of files received for easy identification.
    Thank you,

    How can I customize the name of an HTTP submitted XML file from data entered by the user in a text field?
    The field in question contains user identification information and would ease the sorting of files received for easy identification.
    Thank you,

  • Using XML File As Target- Data Integrator (SAP BODI Tool)

    I am trying to populate records to an XML File from a table. The XML schema has a node say 'Address'. When I run my job, I get duplicate records in the output XML File. For example: under the element address, the fields are address1 and addres2 then these fields are getting repeated as many times as the number of records in the output file.
    Source Data Looks like this                                                                   Target Schema Looks like this
    EmployeeRecord                                                                                EmployeeDetails
                  FirstName                                                                                FirstName
                  LastName                                                                                LastName
                  EmployeeID                                                                                EmployeeTrack
                  Address                                                                                |
                                                                                    Details
                                                                                    |
                                                                                    EmployeeID
                                                                                    Address
    Note: Where EmployeeTrack Complex element has to repeat only once (Min =1 and Max =1 Occurances)
    I need the output like
    <EmployeeDetails>
    <FirstName>ABC</FirstName>
    <LastName>XYZ</LastName>
    <EmployeeTrack>    
            <Details>
                  <EmployeeID>12345</EmployeeID>
                  <Address>12tyytyt</Address>
            </Details>
    </EmployeeTrack>
    <EmployeeDetails>
    As what i said earliet here i am getting duplication of the data, and if i try to validate the schema its throwing error
    Looking forward to get help from you all experts.
    Regards
    S

    Hi,
    would suggest you put the question into the Einterprise Information Management area. This forum is about the Integration Kit for SAP.
    ingo

  • User Defined Extension functions XML file

    Hi,
    Can we define exception In custom XSLT function XML file.
    Like i have following Custom XSLT function XML-
    <?xml version="1.0" encoding="UTF-8"?>
    <extension-functions>
    <functions xmlns:uppercase="http://www.oracle.com/XSL/Transform/java/oracle.Uppercase">
    <function name="uppercase:GetName" as="string">
    <param name="fname" as="string"/>
    <param name="lname" as="string"/>
    </function>
    </functions>
    </extension-functions>
    So in case i need to throw an exception in my java function GetName so how can i define that in XML?
    Please give some suggestion?
    Thanks.

    Hi,
    Thanks for your reply. When I created extensions.xml (as advised by you) and tried specifying it as User Defined Extension Functions Config file, I get the following error:
    Invalid User Extension Functions Config File
    Invalid value 'object' for attribute:'as' line 5 column 52
    i.e. the following line:
    <function name="extensions:getMSPDate" as="object">
    Any pointers on what will be the correct value for attribute 'as' for element 'function'?
    Also, what is the default namespace being used in the extensions.xml?
    Is there a link for more documentation on the format for extensions.xml?

  • Unable to generate users.xml file

    Hi All,
    I have installed OCS 10.1.2.0.0.and applied the cumulative patchset and now on OCS 10.1.2.3.0
    Now i am trying to migrate users and their mail box from exchange 5.5 running on Windows NT 4 server.
    I have installed the esmigration tool on a machine running Windows XP SP2, Outlook 2003 client installed. I ran the tool and successfully created the system profile. Once done when i try extract users which should generate a users.xml file, i get an error saying "Unable to generate users.xml" file. When i look at the log file i can see the error which says invalid domain which is not true. The domain name is right and i have repeated the process more than 10 times, but still keep getting the same error. I tried using IMPA to IMAP as well as with MBOX , but still the same error. Has anyone seen such a behavior ?
    So i tried to choose plan B. As i do not have too many users i decided to export the users mail box as a pst file and then import it. This is not a problem, but what i do not know is that what do i need to do to enable coexistence mode on exchange, meaning when an email arrives, it first goes to exchange and then forwards a copy to OCS.Please note on my research i have found some notes on how to do this on exchange 2000 on a windows 2000 server with AD, but i couldn't find anything for Exchange 5.5 on NT4.
    Any assistance on this would be very helpful.
    Regards,
    Dipak

    Hi Dipak,
    If you do the migration from the Windows 2000 machine with outlook 2000 installed, and connected to Exchange 5.5 via an admin profile, then you will not see this issue.
    In case, it is not possible for you to move to new machine where above said environment exists, then you can request for a patch of migration tool that has fix for this issue. Please send an email to [email protected] or [email protected], for the fixed version.
    For your co-existence query: Please make use of alternate-recipient setup that exists on exchange 5.5 user properties. So, the emails will be routed to both exchange, and ocs server mailboxes of that user.
    If you have any further queries please send an email to [email protected]
    Thanks,
    Venkat

  • Saving user variable data in XML file

    I am using Captivate 5.5. Can I save user variable data of several variables on an XML file ?

    Can be done with Javascript, have a look at the Javascript articles by Jim Leichliter, here is one link:
    Retrieve variables in Captivate
    Lilybiri

  • I have 100 groups in planning for those 100 groups i want to build roles like interactive,view user,planner etc.for those how to change in export -import folder .xml file  in that edit  how  to change user roles in that xml it will generate automatic id.h

    I have 100 groups in planning for those 100 groups i want to build roles like interactive,view user,planner etc.for those how to change in export -import folder .xml file  in that edit  how  to change user roles in that xml it will generate automatic id.how to do that in xml file ?

    Thanks john for you are reply.
    I had tried what you sad.I open shared service in that foundation project i had export shared service.after that in import-export file.In that role.csv,user.csv,group.csv.Like this file have.When i open user file added some users after i trying save in excel it shown messgse
    I click yes and save the .csv file and import from share servie. i got error like this
    am i doing right way john.or explain clearly

Maybe you are looking for

  • Dynamic Creation of UI Elements

    Hi, Can anyone help me to create a DropDownByIndex and CheckBox dynamically in the Implementation tab of a View. Also I am not able to insert values into the dropdown. If someone send the code it would be very helpful Thanks Kalyan

  • AC Adaptor prongs

    I have had my current AC adaptor for 11 months. Since the adaptor seems prone to overheat if it remains connected to the power outlet, I disconnect the AC adaptor when it's not in use. About 2 weeks ago, when I unplugged the adaptor, one of the adapt

  • Getting total number of instances (objects) running in a JVM

    Hello, Is there any way to get total number of objects in the heap of a JVM without using any profiling tools like JProbe Regards, Nikhil.K.R

  • Snap shot hangs AE (CS5)

    Hi, So I take snap shots while Im colour grading. Ive been using Colorista II a lot lately and anytime I use the snap shot feature AE hangs. It's fine when I initially take the shot. The problem happens when I review the snap shot. I only mention Col

  • Not able to download iPhoto on Mavericks

    I have a clean installed Mavericks 10.9.5 system since yesterday. The local macstore installed it because my hardware was slowing down and they placed 2x4GB ram and a samsung SSD after which they clean installed Mavericks (i think not yosemite becaus