1 :: Is it possible to make httpService Requests synchronous in adobe flex?
No.Basically, what we are about to do is creating XMLHttpRequest with Javascript in Flex, and calling a server data with the parameters we will give to the object.
e.g. xmlHttpRequest.open("GET","http://localhost/Default.aspx",false);
1. Request Type: GET or POST
2. Requested URL
3. Communication Type: true for asynchronous, false for synchronous.
|
2 :: I need to load an image from flickr into my application. Do I need a crossdomain.xml file on flickr?
File is already there , we need to register our ip address to flicker’s crossdomain.xmlSince the images are located on a flickr server like farm1.static.flickr.com and there is no crossdomain.xml file on that server (there is a crossdomain.xml for api.flickr.com so you can use the api) that means you can’t get access to the bitmapData of the loaded images when you load them from flickr. This is dumb, but that’s the way it is. So you can load images just fine, but the reflection class copies the bitmapData of the image, so that doesn’t work if you load them straight from the flickr server. I also wanted to set bitmap smoothing to true on the images so the thumbnails don’t look as pixelated, and that also requires access to the bitmapData of the loaded image.
So the answer is to create a proxy that loads the flickr image so it appears to come from the same domain.
|
3 :: What is the difference between httpService and Data Service?
The services-config.xml configuration file is required at compile time if the Flex application uses Flex Data Services. In the case of RPC services, this applies to all applications that use RemoteObject or proxy-based WebService or HTTPService.
|
4 :: How do you generate random numbers within a given limit with actionscript?
Math.round(Math.random() * (high - low)) + low
|
5 :: Have you built any components with actionscript? If so explain how you did it?
CountryComboBox.aspackage components
{ import mx.controls.ComboBox;
public class CountryComboBox extends ComboBox
{ public function CountryComboBox()
{ dataProvider = [ "United States", "United Kingdom" ];
}
}
}
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:custom="components.*"
width="220" height="115"
>
<custom:CountryComboBox />
</mx:Application>
|




Webmaster Said:
Thank you.
deepthi Said:
meenakshi Said:
in order to create a custom visual components in AS3,u must extend the UI component class?
which class is at the root of the AS3 class hierarchy?
vipul Said:
Surendra Gurjar Said: