[Flashr] simple search

Gareth Jones gjones84 at gmail.com
Mon May 1 12:23:46 EDT 2006


many thanks Kevin :-)

i will definitely check out that book..

in the meantime i have done what you have said, but all i get back is the
trace from the doSearch function. how do i make it fire off the whole search
sequence?

cheers,
G



On 01/05/06, Flashr-request at osflash.org <Flashr-request at osflash.org> wrote:
>
> Send Flashr mailing list submissions to
>        Flashr at osflash.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://osflash.org/mailman/listinfo/flashr_osflash.org
> or, via email, send a message with subject or body 'help' to
>        Flashr-request at osflash.org
>
> You can reach the person managing the list at
>        Flashr-owner at osflash.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Flashr digest..."
>
>
> Today's Topics:
>
>   1. Re: simple tag search (Gareth Jones)
>   2. Re: simple tag search (Gareth Jones)
>   3. Re: Flashr Digest, Vol 8, Issue 9 ( ?zg?r ALTAY )
>   4. Re: simple tag search (Kelvin Luck)
>   5. Re: tags for a photoset (Kelvin Luck)
>   6. Re: simple tag search (Kelvin Luck)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sun, 30 Apr 2006 17:33:24 +0100
> From: "Gareth Jones" <studioeightyfour at gmail.com>
> Subject: Re: [Flashr] simple tag search
> To: kelvin at kelvinluck.com, Flashr at osflash.org
> Message-ID:
>        <c26ffeb70604300933l284f211bq9a2b4c84541c3e3b at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> thank you! looks great
>
> On 4/30/06, Kelvin Luck <kelvin at kelvinluck.com> wrote:
> >
> > Hi,
> >
> > This is very simple. The basic syntax is:
> >
> > photosSearch({tags:"tag1,tag2"});
> >
> > The exact syntax depends on which version of Flashr you are using. There
> > is an example using Flashr 0.5 (the upcoming new version of Flashr)
> here:
> >
> > http://kelvinluck.com/article/flashrsimplesearch
> >
> > If you are using Flashr 0.5 then the docs are available here:
> >
> >
> >
> http://kelvinluck.com/assets/flickr_api/0.5/docs/files/com/kelvinluck/flashr/core/Flashr-as.html
> >
> > It's not quite finished yet but is pretty stable and I would recommend
> > using it over 0.4 if you are just starting a project,
> >
> > Hope this helps,
> >
> > Kelvin :)
> >
> > Gareth Jones wrote:
> > > Hi,
> > >
> > > i am trying to do a a photosearch based on a tag, but i can seem to to
> > > get anything to work. does anyone have a sample of the photosearch
> > > function? i am just not getting how it works.
> > >
> > > many thanks,
> > > D.
> >
> > _______________________________________________
> > Flashr mailing list
> > Flashr at osflash.org
> > http://osflash.org/mailman/listinfo/flashr_osflash.org
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://osflash.org/pipermail/flashr_osflash.org/attachments/20060430/db8a99b1/attachment-0001.htm
>
> ------------------------------
>
> Message: 2
> Date: Sun, 30 Apr 2006 20:11:26 +0100
> From: "Gareth Jones" <studioeightyfour at gmail.com>
> Subject: Re: [Flashr] simple tag search
> To: kelvin at kelvinluck.com, Flashr at osflash.org
> Message-ID:
>        <c26ffeb70604301211w7e57db6cg5ac7bc53f64e7043 at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi,
>
> sorry i have a few quick questions about the simple search example :-)
>
> I am a bit of a newbie when it comes to classes.. how do i change a class
> varibles from within my fla? for example the tag var:
>
> public static var SEARCH_TAG:String = "red" i want to be able to change
> from
> an input box in my fla.
>
> also how do i stop the function running right away, i want to run it after
> a
> value has been entered into the input box.
>
> many thanks,
> Gareth
>
>
>
>
> cheers,
> G
>
> On 4/30/06, Gareth Jones <studioeightyfour at gmail.com> wrote:
> >
> > thank you! looks great
> >
> >
> > On 4/30/06, Kelvin Luck <kelvin at kelvinluck.com > wrote:
> > >
> > > Hi,
> > >
> > > This is very simple. The basic syntax is:
> > >
> > > photosSearch({tags:"tag1,tag2"});
> > >
> > > The exact syntax depends on which version of Flashr you are using.
> There
> > > is an example using Flashr 0.5 (the upcoming new version of Flashr)
> > > here:
> > >
> > > http://kelvinluck.com/article/flashrsimplesearch
> > >
> > > If you are using Flashr 0.5 then the docs are available here:
> > >
> > >
> http://kelvinluck.com/assets/flickr_api/0.5/docs/files/com/kelvinluck/flashr/core/Flashr-as.html
> > >
> > >
> > > It's not quite finished yet but is pretty stable and I would recommend
> > > using it over 0.4 if you are just starting a project,
> > >
> > > Hope this helps,
> > >
> > > Kelvin :)
> > >
> > > Gareth Jones wrote:
> > > > Hi,
> > > >
> > > > i am trying to do a a photosearch based on a tag, but i can seem to
> to
> > > > get anything to work. does anyone have a sample of the photosearch
> > > > function? i am just not getting how it works.
> > > >
> > > > many thanks,
> > > > D.
> > >
> > > _______________________________________________
> > > Flashr mailing list
> > > Flashr at osflash.org
> > > http://osflash.org/mailman/listinfo/flashr_osflash.org
> > >
> >
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://osflash.org/pipermail/flashr_osflash.org/attachments/20060430/c26213f9/attachment-0001.htm
>
> ------------------------------
>
> Message: 3
> Date: Mon, 1 May 2006 09:26:45 +0300
> From: " ?zg?r ALTAY " <altay.ozgur at gmail.com>
> Subject: Re: [Flashr] Flashr Digest, Vol 8, Issue 9
> To: Flashr at osflash.org
> Message-ID:
>        <ef01dddd0604302326w6d4e9cc4n3f8b26aa068ec5cb at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Kelvin, is that possible to get all the tags for a specified photoSet ID?
> how?
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://osflash.org/pipermail/flashr_osflash.org/attachments/20060501/8f391ec2/attachment-0001.htm
>
> ------------------------------
>
> Message: 4
> Date: Mon, 01 May 2006 11:46:42 +0100
> From: Kelvin Luck <kelvin at kelvinluck.com>
> Subject: Re: [Flashr] simple tag search
> To: Flashr at osflash.org
> Message-ID: <4455E712.4080703 at kelvinluck.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi,
>
> I've attached a copy of the AS file from the simple search example with
> a very minor change. There is now a function called "doSearch" which
> starts the whole search process running...
>
> If you open up the fla you will see there is a small dot in the top left
> hand corner. This is an instance of "FlashrSimpleSearch" and is
> associated in the library with the class
> com.kelvinluck.flashr.example.FlashrSimpleSearch. This basically means
> that the actionscript in the FlashrSimpleSearch.as file is basically all
> in this clip. (that's not a very good description - I'd recommend Colin
> Moock's EAS2 [1] as an introduction to AS2 and classes etc).
>
> Basically, if you give that clip on the stage an instance name (lets say
> "simpleSearch") then from the timeline you would be able to do:
>
> simpleSearch.doSearch("your,tags");
>
> Hope that helps,
>
> Kelvin :)
>
> [1] http://www.moock.org/eas2/
>
> Gareth Jones wrote:
> > Hi,
> >
> > sorry i have a few quick questions about the simple search example :-)
> >
> > I am a bit of a newbie when it comes to classes.. how do i change a
> > class varibles from within my fla? for example the tag var:
> >
> > public static var SEARCH_TAG:String = "red" i want to be able to change
> > from an input box in my fla.
> >
> > also how do i stop the function running right away, i want to run it
> > after a value has been entered into the input box.
> >
> > many thanks,
> > Gareth
> >
>
> -------------- next part --------------
> An embedded and charset-unspecified text was scrubbed...
> Name: FlashrSimpleSearch.as
> Url:
> http://osflash.org/pipermail/flashr_osflash.org/attachments/20060501/30607072/FlashrSimpleSearch-0001.bat
>
> ------------------------------
>
> Message: 5
> Date: Mon, 01 May 2006 11:54:04 +0100
> From: Kelvin Luck <kelvin at kelvinluck.com>
> Subject: Re: [Flashr] tags for a photoset
> To: Flashr at osflash.org
> Message-ID: <4455E8CC.1010603 at kelvinluck.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Hi,
>
> Unfortunately I don't think there is an easy way to do this using the
> Flickr API :(
>
> You would have to do something like this:
>
> * Call photosetsGetPhotos to get a list of all the photos in the photoset.
> * Loop over these photos calling photosGetInfo on each one.
>
> You would then have information (including the tags) for every photo in
> the photoset and it would be easy enough to combine this into a list of
> all the tags for the photoset.
>
> This seems a bit awkward and like it requires lots of API calls but I
> don't think there is an easier way. I have made requests to the flickr
> team previously to get some way of returning tags for a list of photos
> at once but afaik this hasn't been implemented.
>
> Hope this helps,
>
> Kelvin :)
>
> P.S. Please try and give your messages descriptive subjects rather than
> just "Re: [Flashr] Flashr Digest..."
>
> ?zg?r ALTAY wrote:
> > Kelvin, is that possible to get all the tags for a specified photoSet
> > ID? how?
>
>
>
> ------------------------------
>
> Message: 6
> Date: Mon, 01 May 2006 11:56:10 +0100
> From: Kelvin Luck <kelvin at kelvinluck.com>
> Subject: Re: [Flashr] simple tag search
> To: Flashr at osflash.org
> Message-ID: <4455E94A.6010701 at kelvinluck.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Whoops - slight fix in the attached .as file... Line 56 should read:
>
> trace("Searching for " + NUM_RESULTS + " photos matching tag '" + tags +
> "'");
>
> Cheers,
>
> Kelvin :)
>
> Kelvin Luck wrote:
> > Hi,
> >
> > I've attached a copy of the AS file from the simple search example with
> > a very minor change.
>
>
>
> ------------------------------
>
> _______________________________________________
> Flashr mailing list
> Flashr at osflash.org
> http://osflash.org/mailman/listinfo/flashr_osflash.org
>
>
> End of Flashr Digest, Vol 9, Issue 1
> ************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/flashr_osflash.org/attachments/20060501/3aca539a/attachment.htm


More information about the Flashr mailing list