|
INTERVIEW QUESTIONS
WEB
ACTION SCRIPT
DETAILS
Question: I am going to add images into a tag. How will it resize itself in adobe flex actionscript?
Answer: To let Flex resize the image as part of laying out your application, set the height or width properties to a percentage value. Flex attempts to resize components with percentage values for these properties to the specified percentage of their parent container.
Or by default, Flex does not resize the image. The scaleContent property has a default value of true, therefore, Flex scales the image as it resizes it to fit the specified height and width. The aspect ratio is maintained by default, so the image may not completely fill the designated space. Set the scaleContent property to false to disable scaling. Set the maintainAspectRatio property to false to allow an image to fill all available space regardless of its dimensions.
|
|
|
Category |
Action Script Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.2) By 8989 users |
Added on |
9/22/2014 |
Views |
69317 |
Rate it! |
|
|
Question:
I am going to add images into a tag. How will it resize itself in adobe flex actionscript?
Answer:
To let Flex resize the image as part of laying out your application, set the height or width properties to a percentage value. Flex attempts to resize components with percentage values for these properties to the specified percentage of their parent container.
Or by default, Flex does not resize the image. The scaleContent property has a default value of true, therefore, Flex scales the image as it resizes it to fit the specified height and width. The aspect ratio is maintained by default, so the image may not completely fill the designated space. Set the scaleContent property to false to disable scaling. Set the maintainAspectRatio property to false to allow an image to fill all available space regardless of its dimensions. Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
|
Related Questions |
View Answer |
|
How do you implement push on a flex applications?
|
View Answer
|
|
Have you built any components with actionscript? If so explain how you did it?
|
View Answer
|
|
How do you generate random numbers within a given limit with actionscript?
|
View Answer
|
|
What is the difference between httpService and Data Service?
|
View Answer
|
|
I need to load an image from flickr into my application. Do I need a crossdomain.xml file on flickr?
|
View Answer
|
|
Is it possible to make httpService Requests synchronous in adobe flex?
|
View Answer
|
Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.
View All Action Script Interview Questions & Answers - Exam Mode /
Learning Mode
|