Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Using complex controls in flex4 skins?

Posted on 2010-11-25
4
Medium Priority
?
564 Views
Last Modified: 2013-11-11
Hi,
 
I am currently evaluating tools for integration testing of Flex applications. Currently I am working with Ranorex and am pretty sattisfied with it ... except that I was having some problems with a spark DropDownList that I use for selecting the language in my main applications skin. The Ranorex support claimed that I shouldn't use "complex controls" such as a DropDownList in a Spark Skin and that a Skin should be treated as nothing else than a complex CSS File.
 
Well this statement stands in extreme contrast to the way I understood the skinning in flex4. I allways thought the Idea is to define Components in Code (ActionScript ... or MXML) leaving away the design-considerations and to define a skin that places, layouts, formats the controls a component needs. The Component is ideally developed by a Software-Developer and the Skin can be entirely provided by the Designer. This way everybody can work in that domain of expertise that he is best in.
 
I thought in the component implementation I define SkinParts. These tell the Designer which controls I need and he defines them accordingly in his skin. By giving the control in the skin the same id as the variable-name in the component implementation the Flex framework sets the instance of the control in the component and then calls the partAdded function to tell the component that the control is now available ... well at least this is the way I understood this.
 
I hope that I understood this correctly and that simply the tool-creators are on the wrong track. If not, I would be really glad to know how I should introduce a DropDownList in my applications skin without actually using a DropDownList.
 
Chris
0
Comment
Question by:ChristoferDutz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 1

Accepted Solution

by:
PankajRai earned 2000 total points
ID: 34213340
Yes,  You are right, Skinning in flex 4 is more complex than complex css file.  But you can use CSS in Flex 4 also in efficient way.

for more detail you can go to link:
http://www.adobe.com/devnet/flex/videotraining.html#day5
and see these: Styling the visual display  videos For CSS

and Skinning Flex applications with Adobe Flash Catalyst videos for Skinning.
0
 
LVL 1

Expert Comment

by:PankajRai
ID: 34213350
The main advantage of skinning is to support FXG format.
0
 
LVL 20

Author Comment

by:ChristoferDutz
ID: 34214399
Hi PankajRai,

I have done quite a lot of work with Flex4 and Skins "the way I understood it" and was really looking for confirmation that I am using it correctly. Thanks for that. Just a Tool manufacturer that told me I was writing my code wrong made me suspicios ... Using is as a CSS++ sort of sounded like a total under-usage of the whole concept. If this was not the way you do it, I think I still would have ;-)

Chris
0
 
LVL 1

Expert Comment

by:PankajRai
ID: 34215521
Hi ChristoferDutz,

I think, you are using it correctly.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question