thanks for all!

2010/7/25 kannan leo <[email protected]>

> Thank you pranav
>
>
> On Sun, Jul 25, 2010 at 12:08 AM, Pranav Negandhi <[email protected]>wrote:
>
>> Actually, it turned out to be much easier than I thought, using a regular
>> Loader. Working example pasted below.
>>
>> package
>> {
>> import flash.display.Loader;
>>  import flash.display.LoaderInfo;
>> import flash.display.Sprite;
>> import flash.events.Event;
>>  import flash.net.URLLoader;
>> import flash.net.URLRequest;
>>  /**
>>  * ...
>>  * @author Pranav Negandhi ([email protected])
>>  */
>> public class Main extends Sprite
>> {
>>  private static const HOST:String = "http://localhost";;
>> private static const PORT:uint = 8080;
>>  public function Main():void
>> {
>>  var ld:Loader = new Loader();
>> var rq:URLRequest = new URLRequest(Main.HOST + ":" + String(Main.PORT) +
>> "/foo");
>>  ld.contentLoaderInfo.addEventListener(Event.COMPLETE,
>> this.m_downloadComplete);
>> ld.load(rq);
>>  }
>>  private function m_downloadComplete(e:Event):void
>>  {
>> trace(LoaderInfo(e.target).contentType); // traces the MIME-type of the
>> file
>>  }
>> }
>> }
>>
>> On Fri, Jul 23, 2010 at 11:16 PM, Pranav Negandhi <[email protected]>wrote:
>>
>>> You can use Sockets to retrieve the mime-type of the file.
>>>
>>> .p
>>>
>>>
>>> On Fri, Jul 23, 2010 at 5:59 PM, zhucm <[email protected]> wrote:
>>>
>>>> here is a url, this is a image ,a gif image:
>>>> http://ss6.sinaimg.cn/orignal/6927e7a5g8c0b46dad845&690
>>>>
>>>> but the url is not use the image file name directly.
>>>>
>>>> How can I get the image type from this url ?
>>>>
>>>> any help/idea is great help for me
>>>> thanks...
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Flex India Community" group.
>>>> To post to this group, send email to [email protected].
>>>> To unsubscribe from this group, send email to
>>>> [email protected]<flex_india%[email protected]>
>>>> .
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/flex_india?hl=en.
>>>>
>>>>
>>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Flex India Community" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<flex_india%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/flex_india?hl=en.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Flex India Community" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<flex_india%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/flex_india?hl=en.
>



-- 
※※※※※※※※※※※※※※※※※※
QQ : 5804 9870
Mobile : 189 5176 5230
[email protected]
[email protected]

-- 
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.

Reply via email to