[Flashr] Help with correct language.
Kelvin Luck
kelvin at kelvinluck.com
Tue Apr 28 10:12:45 PDT 2009
Hi Jørund (not Ty!),
afaik the images hosted by flickr are all jpeg, gif or png and all of
these formats can be directly loaded in flash. I think the reason Mario
would have passed the images via his server is because of security
restrictions in flash that prevent you from accessing the BitmapData of
images that have been loaded cross domain. In as3 you can get around this
using a LoaderContext - it's been a long time since I've written any as2
so I'm not sure if they added something similar to as2. I would suggest
searching for this.
Alternatively all you need to do is write a simple proxy script for your
server which will take the URL to a flickr photo and pass the image file
through to the requestor. Then edit Photo.as from flashr and change the
_urlStart getter to point to the proxy script on your server passing the
photo URL rather than pointing directly to the image on Flickr.
Hope that helps,
Kelvin :)
On Tue, 28 Apr 2009 09:33:49 -0700, Jørund Skarvang Olsen
<jor_s_olsen at hotmail.com> wrote:
>
> Thank you for the response..
>
> Well yes it's a serverside script, and i'm gonna convert the images from
> whatever format they come in, to BMP for example.
> But the thing is, i need it to happen in Flash, the actual viewing of
> the images, but as far as i know (which ain't very far) AS2 don't have
> any image converting abilities..?
> I need to retrive images to a serverside script, convert them to BMP,
> and send them into a slideshow in Flash, which is going go on for many
> weeks of the time.
> In the background it will from time to time refresh the array of images
> that will be retrived by tag, and send the new ones in to the slideshow.
> So, can i retrive the images with Flashr, send them out to for example a
> PHP script converting them, and the send them back in?
> Or would it be easier if i retrive them with the PHP, then send it in to
> flashr afterwards?
>
> To sum up, i need to retrive and convert images to BMP and show them in
> Flashr, in some way.
> The people that i'm working with spoke with Mario Klingemann, and he
> does this, converting the images before sending them into Flashr, as BMP
> is much easier to apply effects on etc, much easier to fuck around with,
> to put it straight.
> He didn't specify anything tho, so now i'm asking here.
>
> I don't really know if this made it any clearer.
>
> ~Jørund Skarvang Olsen.
>
> PS: The "Ty" was just a short for thank you :)
>
>> Date: Mon, 27 Apr 2009 21:45:59 -0700
>> To: flashr at osflash.org
>> From: kelvin at kelvinluck.com
>> Subject: Re: [Flashr] Help with correct language.
>>
>> Hi Ty,
>>
>> Sorry for the slow response...
>>
>> I'm not I understand exactly what you are trying to do... You want to
>> have
>> a serverside script which grabs some images from Flickr and manipulates
>> them and then sends them to flash? If so then it seems like your
>> interactions with the Flickr API will happen in whichever serverside
>> language you are programming in.
>>
>> What kind of manipulations are you intending to do to the images? You
>> can
>> do quite a lot of stuff in Flash itself these days. But if you must do
>> it
>> serverside then Image Magick or the GD libraries built into PHP should
>> help you (depending on your serverside programming language). And on the
>> flash side you will be communicating directly with your own serverside
>> scripts so you won't need to use Flashr at all. There are Flickr API
>> wrappers available in a number of serverside languages - you can find
>> them
>> listed on Flickrs site.
>>
>> Unless I misunderstand exactly what it is you are trying to do?
>>
>> Cheers,
>>
>> Kelvin :)
>>
>> On Thu, 23 Apr 2009 06:38:17 -0700, Jørund Skarvang Olsen
>> <jor_s_olsen at hotmail.com> wrote:
>>
>> >
>> > I'm not after detailed answers or anyting like that, but if i could
>> get
>> > a push in the right direction it would be nice..
>> >
>> > I want to retrive photos from Flickr and convert them before sending
>> > them into my flashdocument, sending them in with XML.
>> > But what language or software will be best to do so? The retriving of
>> > the images and the converting.
>> >
>> > I found this: http://www.imagemagick.org/script/index.php
>> > May this be a good solution?
>> > Implementing it into a XML script that retrives the photos, and
>> sending
>> > it back into another that forwards it into the flash file?
>> >
>> > Kinda new at this, so don't kill me.
>> >
>> > Ty.
>> >
>> > _________________________________________________________________
>> > More than messages–check out the rest of the Windows Live™.
>> > http://www.microsoft.com/windows/windowslive/
>>
>>
>>
>> _______________________________________________
>> Flashr mailing list
>> Flashr at osflash.org
>> http://osflash.org/mailman/listinfo/flashr_osflash.org
>
> _________________________________________________________________
> More than messages–check out the rest of the Windows Live™.
> http://www.microsoft.com/windows/windowslive/
More information about the Flashr
mailing list