7 Replies Latest reply on Oct 14, 2009 8:38 PM by Tara Jane Feener

    FC beta 2 issue with datalist interactions

    arpstorm Level 1

      ok I took the default data list, and then tried to do an interaction where on change goto a different state.  When I setup the interaction I set it to be change, on selection of a specific item.  I then tried to run the project.  It wont run due to an error in change line 2.  Not being a flash coder not sure what the issue is.  I tried to delete the interactoin and I get the same error.  I tried deleting the data list and I get the same error.  Anyone have any suggestions?

       

      <?xml version="1.0" encoding="utf-8"?>
      <s:Group xmlns:s="library://ns.adobe.com/flex/spark" xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:d="http://ns.adobe.com/fxg/2008/dt" change="group_changeHandler()">
          <fx:Script>
              <![CDATA[
                  protected function group_changeHandler():void
                  {
                      if ( list1.selectedIndex == 1 ) {
                          currentState='CaseNotes2';
                      }
                  }

       

                  ]]>

       

          </fx:Script>
          <s:states>
              <s:State name="CaseNotes"/>
              <s:State name="CaseNotes2"/>
              <s:State name="Informants"/>
          </s:states>

        • 1. Re: FC beta 2 issue with datalist interactions
          Tara Jane Feener Level 3

          Hey Arpstorm,

          Any chance you could post a zipped copy of your .fxp project?

          Did you drag the datalist onto your main application?

          Thanks,

          Tara

          • 2. Re: FC beta 2 issue with datalist interactions
            arpstorm Level 1

            Sure thing here is the FXP doc

            • 3. Re: FC beta 2 issue with datalist interactions
              Tara Jane Feener Level 3

              The problem is the 'change' property on the group.

              Group doesn't support a change event.

              But I'm wondering how it even got there to begin with.

              It looks like the change event on group is the one you set up for the datalist (being, if I click one item in my list, bring me to one state).

              In the meantime, the change event on your list "change="caseNotes_changeHandler()" changes to the CaseNotes2 state whenever the selected item is changed in the list.

              Was this application generated completely by using Flash Catalyst?

              If so, do you know the steps taken to create the Pane3 component?

              If you could provide them I'd love to look into this further.

              Thanks,

              Tara

              • 4. Re: FC beta 2 issue with datalist interactions
                arpstorm Level 1

                Tara,

                 

                Yes this was completely done through catalyst.  Here are the rough steps I went through.  I have flagged where I am not sure what I did first.

                 

                1. create new project and background object

                2. creat building blocks layer and set colors for the four components there

                3. create PDA layer import graphic

                4. Create pane3 player

                 

                Those four steps may have been in different orders

                 

                5. Import video

                6. create square that is the background for pane3

                7. create square that is the case notes button

                8 create custom component pane3

                9 add line, add empty rounded corner square, and text in square

                10 add data list, type in some text, resize it

                11 I then went to add interation but all I ad was the edit parts HUD, I did not have an interactions area anywhere.  I clicked on edit parts, and then canceled it.  This caused my datalist to revert to a default size and I could not change its size.  I then hit cntrl-z it went back to its original size.

                12 rightclick add interaction found (also later found that reset workspace added the interactions area in the tools panel. added transisiton change on selection change with a specific selection (item 2 to casenotes2)

                13 added a second interaction to change back to casenotes on selection of item1

                14 run project and recieve error.

                 

                Hope that helps.

                 

                brian

                • 5. Re: FC beta 2 issue with datalist interactions
                  Tara Jane Feener Level 3

                  Hey Brian,

                  Thanks for the steps, but I still can't seem to reproduce this issue.

                   

                  If you delete Pane3, and try again using the steps you listed can you reproduce the issue?

                   

                  Maybe I'm missing something/completed one of the steps wrong.

                  Please let me know, I'm very anxious to figure out how a 'change' event was added to the group, which is definitely a bug.

                  Thanks for taking the time to look at this with me,

                  Tara

                  • 6. Re: FC beta 2 issue with datalist interactions
                    arpstorm Level 1

                    Tara,

                     

                    Sorry I tried a bunch of different thigns and I can not seem to replicate it.

                     

                    Brian

                    • 7. Re: FC beta 2 issue with datalist interactions
                      Tara Jane Feener Level 3

                      Thanks for trying!

                      If it resurfaces, let me know.

                      I'm going to keep a look out for it and discuss it with some of the experts in this area.

                      Tara