[Flashr] Help with correct language.

Jørund Skarvang Olsen jor_s_olsen at hotmail.com
Thu May 7 07:15:38 PDT 2009


Hi again.

Thanks for the answer Mario, the method with using BitmapData seems an awsome solution..
But i can't get it working properly when trying to intergrate it with the files i am using..
I'm adapting this (http://www.forestandthetrees.com/mashupTalk/mashupCodeExample/index.htm) project to make a continous slideshow that can go on for days, and autoupdate it's image array without restarting the show etc etc. And i need the bitmapdata on these images for effects im gonna add in the transitions.

Thing is, my script wont load Flash.Display.BitmapData, and i can't figure out whats wrong.
It's quite an extensive script, as it's based on Flashr, so im just putting it all up here.

www.vogonic.com/files/slideshow.rar

The lines im wondering about can be found in the \com\forestandthetrees\slideShow\slideShowPlayer.as , lines 52, 59-63.

I don't know if it's a big job or not to look at/tips me on how to do this correctly or what not, so if it's a big job, then just fuck it :)

Big thanks for all the help, Jørund.

Date: Mon, 4 May 2009 16:23:22 +0200
From: mario at quasimondo.com
To: flashr at osflash.org
Subject: Re: [Flashr] Help with correct language.






  


You might want to have a look at this:
http://www.quasimondo.com/archives/000407.php, but AFAIK even in AS2 it
is not necessary anymore to proxy the image as long as you load the
crossdomain.xml files from each flickr farm into your security context:
http://www.quasimondo.com/archives/000650.php



Cheers

Mario



Jørund Skarvang Olsen schrieb:

  Hi again Kelvin.

  

LoaderContext doesn't work in AS2 i'm afraid, but your second
suggestion got me thinking, so i'm gonna go with that concept for now :)

Thanks for all the help, for now..

The threat that i may bug you with silly questions again is always
present..

  

Big thanks, Jørund.

  

> Date: Tue, 28 Apr 2009 10:12:45 -0700

> To: flashr at osflash.org

> From: kelvin at kelvinluck.com

> Subject: Re: [Flashr] Help with correct language.

> 

> 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/

> 

> 

> 

> _______________________________________________

> Flashr mailing list

> Flashr at osflash.org

> http://osflash.org/mailman/listinfo/flashr_osflash.org

  

  What can you do with the new Windows Live? Find out
  
_______________________________________________
Flashr mailing list
Flashr at osflash.org
http://osflash.org/mailman/listinfo/flashr_osflash.org
  



-- 

	Mario Klingemann / Quasimondo
	Computational Artisan
	http://www.quasimondo.com

	Blutenburgstr. 51
	80636 Munich - Germany

	mario at quasimondo.com
	Mobile: +49(0)172 860 53 24
	Studio: +49(0)89 90 54 89 74
_________________________________________________________________
Windows Live™: Keep your life in sync. Check it out!
http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t1_allup_explore_012009
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/flashr_osflash.org/attachments/20090507/95341322/attachment.html>


More information about the Flashr mailing list