• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Why are manual changes in design mode being reflected in my State declaration

Guest
Aug 09, 2014 Aug 09, 2014

Copy link to clipboard

Copied

I am using the following to create 2 states..

<mx:states>

     <s:State name = "default"/>

     <s:State name = "fileUpload"/>

</mx:states>

When I move an object or make any other changes to controls in the Design view those changes are reflected in the source as follows...

<mx:states>

     <s:State name = "default">

          <mx:SetProperty name="x" target="{bUploadRegForm}" value="642"/>

          <mx:SetProperty name="y" target="{bUploadRegForm}" value="654"/>

     </s:State> <s:State name = "fileUpload"/>

</mx:states>

I want the change being made in design mode to be reflected in both states, but the changes as they are being applied in the source would only be reflected in the default state.

I can work around the problem by either making the changes directly to the source or by cutting the mx:state statement out of the source before manually moving anything in Design mode, then pasting it back in after making the changes. Kind of a pain.

Can someone explain this behavior and possibly suggest a way to prevent it from happening.

Thanks,

John

Views

167

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines