Ask a Question related to Macromedia Flash Data Integration, Design and Development.

  1. #1

    Default xml display issue

    I have a problem with XML data not displaying when the flash playhead goes
    backward in the timeline. Is this a bug or is there something that needs to be
    set or scripted to make sure this works correctly? Either way, can anyone
    suggest a workaround?

    Here is the situation, for the most part it is very simple:
    -The flash file is one scene with different sections, the user clicks a button
    to go to a specific frame in the timeline to see different info, etc.
    -There is one static XML file with all data, all Flash has to do is receive
    the data and display it.
    -Flash uses the XML component and all data is diplayed by using a text area
    component.
    -There are multiple text areas to each display a certain node from the XML
    file, the user navigates to whatever area to view whichever block of text.
    -(Since it seems that XML components need to start at the first frame, I
    experimented with different approaches and finally settled on using layer masks
    to hide all text areas except for the desired one for each area of the timeline)
    -I doublechecked all of the settings for each object, and the first frame has
    the this.main.trigger(); script

    It seems to work fine, but only if you navigate in order of where each section
    appears on the timeline. (If you click on a button to view a section at frame
    10, then navigate to the section at frame 20, etc. everything shows up fine. If
    you click on the button to go back to the section at frame 10, then the field
    is empty and everywhere else you go from that point is empty as well.) It seems
    like somehow going backwards makes flash forget all of the XML data. I tried
    making the data reload at each desired frame by inserting this.main.trigger();
    but that had no effect.

    Other notes: This is using Flash Pro and the current version of flash player.
    I tried doing test movies as well as publishing full projectors. I have tried
    publishing for different versions of flash, actionscript, etc. all with same
    results.

    Does anyone have any ideas? Thanks.



    billburg Guest

  2. Similar Questions and Discussions

    1. Multiliingual char display issue
      Hi, We are using Japanese characters from XML to display data on a flash canvas. The XML files are on a HTTP server and this works with flash 7 ,...
    2. horizontal display issue
      I am trying to get the following cfinputs to dispaly horizontally. They do not. <cfform method="get" name="srchResults" preloader="no"...
    3. Display issue in the browser
      I have updated my OS (windows XP) using Windows update manager. After that, when I try to open my mxml files, they are not rendered properly. The...
    4. Cold Fusion display issue
      If you look at this page in Firefox you will see that it is severly broken. Works fine in IE and the individual components that make up the file...
    5. DataGrid Display Issue
      Hi, I have one datagrig which is inside a Panel. I am having problems with the height . If I don't give height in datagrid then it displays all...
  3. #2

    Default Re: xml display issue

    Well, without seeing any code, it's difficult to say where the error is. But
    using layer masks is probably not the best way to go since the components offer
    options to do this more efficiently. How did you bind the data? Code or
    visually? Do the text area components all have unique instance names? If you
    can post your fla or attach code I might be able to help you.

    LuigiL Guest

  4. #3

    Default Re: xml display issue

    There isn't any special code, it is all done using the built-in xml components,
    with different text areas on different layers. The tutorial for the Bike Trips
    here served as a model, except without the pull down options menu:
    [url]http://www.macromedia.com/devnet/mx/flash/articles/xmlconnector.html[/url]

    Like I said, everything works fine with the masks, etc. as long as you don't
    go backwards. If there is a better way to do it I would be open to suggestions.

    billburg Guest

  5. #4

    Default Re: xml display issue

    A follow up:
    Should there be more than 1 XML compnent in the Timeline? Just a thought but it seems unnecessary since there is only 1 XML source.

    Thanks...
    billburg Guest

  6. #5

    Default Re: xml display issue

    Once you load the xml the data is available throughout the movie by accessing
    the created xml-object (moving forward works as expected). My guess is that the
    layer masks are the problem. Unfortunately I didn't use layer masks that much
    so I can't identify the problem (if any). I recently finished a company
    presentation which required going backwards too. I used the XML class.
    Basically, I used a text field and attached it dynamically and filled it by
    running a function and passing it the correct node in the XML-file. Moving
    backward involved 'clearing memory' by removing the text field and setting the
    content to empty and running the function again - meaning, to Flash you are not
    returning to a previous frame but you're there for the first time.

    How to identify the problem or an alternative approach:
    Well, since this involves 'visibility' I would try to achieve the same effect
    by using the visible property of the text area component. Copy your fla and
    save it with a new name. Initialize all Text Area Components as invisible:
    myTextAreaA.visible=false; on frame 1 of the fla in your layer 'code'. Remove
    the layer masks and attach actions on the frames where you need the changes in
    visibility: myTextAreaB.visible=true;
    And let's see what happens then.

    LuigiL Guest

  7. #6

    Default Re: xml display issue

    Damn, that seems to work fine now. I wasn't aware of the visibility option and
    that did make things much simpler. Before using masks I had also tried just
    covering up text areas with the layers above it but that had the same problem.
    Thanks for your help!

    billburg Guest

  8. #7

    Default Re: xml display issue

    You're welcome. Good luck!
    LuigiL Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139