User Tag List

Results 1 to 9 of 9

Thread: Easy XML example - Badly documented

  1. #1
    Clicker Fusion 2.5 DeveloperSWF Export ModuleInstall Creator Pro

    Join Date
    Jun 2006
    Location
    France
    Posts
    1,266
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Easy XML example - Badly documented

    Greetings,

    The Easy XML object has a nice Auto Parsing feature, but its very UNusefull to me it does not give the control required.
    However, i love the object. Its very good.

    Maby someone can help me out because i dont know how todo this, ok here we go;

    I have this XML loaded:
    <scripts>
    <event x="44" y="23" layer="1" label="some label">//some script;</event>
    <event x="7" y="86" layer="2" label="some label 2">//some script 2;</event>
    </scripts>

    I want a list that gets filled wit this text:
    "Event 44,23,1"
    "Event 7,86,2"

    Then, when clicking one of the items in the listbox we just filled, (lets say we select "Event 44,23,1") i want it to load the event tag into a textbox.
    It should fill with "//some script;"

    Now i want also a SAVE function that writes the changed text back to the element.
    And a DELETE function that deletes the whole <event> tag selected.
    And the ability to add new "<event x="44" y="23" layer="1" label="some label">//some script;</event>" like things...

    You might have guessed that this is something like storing/reading/deleting differend scripts in 1 file.

    I don't have a clue a.t.m.

    For your ease while helping me i added what i made so far to this post.

  2. #2
    No Products Registered

    Join Date
    Jun 2006
    Location
    Texas
    Posts
    1,002
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Easy XML example - Badly documented

    Hey, I will take a look at this sometime tommorow.

  3. #3
    Clicker Fusion 2.5 DeveloperSWF Export ModuleInstall Creator Pro

    Join Date
    Jun 2006
    Location
    France
    Posts
    1,266
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Easy XML example - Badly documented

    Ok

  4. #4
    No Products Registered

    Join Date
    Sep 2006
    Location
    Netherlands
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Easy XML example - Badly documented

    Hey Patrick!

    I've made you an example that hopefully answers to all your problems. I didn't used your MFA-file.

    If you have any questions, post it here at te forum or PM me.
    Attached files Attached files

  5. #5
    Clicker Fusion 2.5 DeveloperSWF Export ModuleInstall Creator Pro

    Join Date
    Jun 2006
    Location
    France
    Posts
    1,266
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Easy XML example - Badly documented

    Man, thats awesome! Thank you so much

  6. #6
    Clicker Fusion 2.5 DeveloperSWF Export ModuleInstall Creator Pro

    Join Date
    Jun 2006
    Location
    France
    Posts
    1,266
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Easy XML example - Badly documented

    Okey, i redone everything, however, im facing some issues:
    1st, it does not load the data in the textbox named:"Script" in the 1st dialog box.

    Just a minute ago i got that working, but that resulted in every item being listed as a duplicate.
    Because that was so confusing, i turned it back and decided to post it like i did.
    Things i found out is that it has todo with the "Auto Parse Start/Stop" features.

    2nd issue is that it does not delete elements named "deleted".

    EDIT:
    Issue2, it does delete it from the list, and from the frame (the event object) however, the source still contains the "deleted" code.

  7. #7
    No Products Registered

    Join Date
    Sep 2006
    Location
    Netherlands
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Easy XML example - Badly documented

    I don't have the developer version of MMF2, so I can't view your example. For that reason I'm not able to give you a solution for your first issue. But if I understand your problem correctly, I think I can help you with the second issue.

    The Easy XML object loads the source into itself. Because of that the source itself (I mean the external file on your disc) will not change when you edit things within the Easy XML object.
    If the xml (I mean your deleted code) inside the Easy XML object is deleted correctly, which should work when you have used my example (you said: "it does delete it from the frame (the event object)"), the solution is to use the "Save file" action of the Easy XML object to save your edited xml to the desired file on your disc. Only then the original source (the external file on your disc) will be changed and the deleted code should not exist in the source anymore.

    I hope this is the solution for your second issue.

  8. #8
    No Products Registered

    Join Date
    Jun 2006
    Location
    Texas
    Posts
    1,002
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Easy XML example - Badly documented

    Yeah, if you want the XML file to change, you must save it .

    I will play around with the delete actions of the extension and see if I can find any bugs. Thanks.

  9. #9
    Clicker Fusion 2.5 DeveloperSWF Export ModuleInstall Creator Pro

    Join Date
    Jun 2006
    Location
    France
    Posts
    1,266
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Easy XML example - Badly documented

    Ofcorse, i know that. But the deletion aint working. Anyway, has one of you looked up into my example? Because they awnsers given don't really match the content of it :P But thanks for tying to help me out anyway

Similar Threads

  1. Little easy help about a mfa example
    By paobrasil in forum Android Export Module Version 2.0
    Replies: 2
    Last Post: 3rd October 2013, 06:55 PM
  2. Easy 3D project
    By PandaExplosion in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 13th May 2010, 08:47 AM
  3. File performing badly after conversion to MMF2
    By Crash86 in forum Multimedia Fusion 2 - Technical Support
    Replies: 21
    Last Post: 14th June 2007, 12:56 PM
  4. This must be easy
    By Shmoo in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 19th January 2007, 05:01 AM
  5. OGG looping badly.
    By konjak in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 13th September 2006, 11:46 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •