لون محتوى اللوحة المرن
-
26-09-2019 - |
سؤال
أحاول ضبط لون الخلفية التدرج للوحة الخاصة بي عبر الجلود. أحاول تغيير الكود الخاص بي ولكن لا شيء يبدو أنه يتغير. لست متأكدا ما يجب القيام به. شكرا على أي رد.
ملف بشرتي
/<!-- layer 2: background fill --/>
<!--- Defines the appearance of the PanelSkin class's background. -->
<s:Rect id="background" left="1" top="1" right="1" bottom="1">
<s:fill>
<!--- @private
Defines the PanelSkin class's background fill. The default color is 0xFFFFFF. -->
<s:SolidColor id="backgroundFill" color="red"/> //Change to red but
//nothing happen....
</s:fill>
</s:Rect>
المحلول
محاولة :
<s:fill>
<s:SolidColor color="0xFF0000"/>
</s:fill>
تعديل:
<s:Rect id="background" left="1" top="1" right="1" bottom="1">
<s:fill>
<s:SolidColor id="backgroundFill" color="0xFF0000"/>
</s:fill>
</s:Rect>
لقد جربت الرمز أعلاه. أنه يعمل بشكل جيد.
نصائح أخرى
كان لي نفس المشكلة.
يتمثل الحل في إزالة الخط في وظيفة updatedisplaylist المفرطة: backgroundfill.color = getStyle ("BackgroundColor") ؛
ربما يمكن أن يكون مفيدًا للباحثين الآخرين. قون
لا تنتمي إلى StackOverflow