List Info

Thread: the number of times this Person uses this Tag




the number of times this Person uses this Tag
country flaguser name
Belgium
2007-06-21 01:59:00
Hi,

thanks Kelvin for your reply ;)

it's was so easy, I'm sorry for my dumb question

I have an other question... I can retrieve all my tags in that way ...

function onTagsGetListUser(person:Person)
{
       myAllTags = person.getTags();
       getInfoObject(myAllTags);
}
etc...

in the function 'getInfoObject(obj:Object)' I retrieve all object tag from last result ...

and when I parse obj  I can find this 'obj[prop].tag'

and then I parse again 'obj[prop].tag' I can find 3 properties 

- relatedTags
- raw
-_photos

at this point I don't know how to find the number of times a tag is used...

When I parse raw ok, it give me a String of the title of the Tag
When I try  to parse _photos prop  in the outpout there is nothing ...

Thanks for your work, flashr rocks !!!


Découvrez sans tarder l'expérience ultime de messagerie en ligne Windows Live Hotmail !
Re: the number of times this Person uses this Tag
country flaguser name
United States
2007-06-22 03:41:52
Hi Sébastien,

You can see a description of what person.getTags returns
here:

http://flashr.kelvinluck.com/assets/0.
5/docs/files/com/kelvinluck/flashr/core/Person-as.html#com.k
elvinluck.flashr.core.Person.getTags

You should be able loop over the results something like
this:

myAllTags = person.getTags();
for (var raw:String in myAllTags) {
	var tagInfo:Object = myAllTags[raw];
	trace(tagInfo.tag.raw + ' is used ' + tagInfo.tag.count + '
times by ' 
+ person.username);
}


By the way, you might find it useful to use the LogWrapper
class 
included in Flashr to easily see what is inside any
object...

Set it up like so:

LogWrapper.getInstance().init();
LogWrapper.getInstance().addTracePublisher();

And then you can do something like this:

LogWrapper.getLog().debug(myAllTags);

Which will introspect the object you pass it and let you see
easily 
what's inside it...

Hope that helps,

Kelvin 

Sébastien Kafif wrote:
> Hi,
> 
> thanks Kelvin for your reply ;)
> 
> it's was so easy, I'm sorry for my dumb question 
> 
> I have an other question... I can retrieve all my tags
in that way ...
> 
> function onTagsGetListUser(person:Person)
> {
>        myAllTags = person.getTags();
>        getInfoObject(myAllTags);
> }
> etc...
> 
> in the function 'getInfoObject(obj:Object)' I retrieve
all object tag 
> from last result ...
> 
> and when I parse obj  I can find this 'obj[prop].tag'
> 
> and then I parse again 'obj[prop].tag' I can find 3
properties 
> 
> - relatedTags
> - raw
> -_photos
> 
> at this point I don't know how to find the number of
times a tag is used...
> 
> When I parse raw ok, it give me a String of the title
of the Tag
> When I try  to parse _photos prop  in the outpout there
is nothing ...
> 
> Thanks for your work, flashr rocks !!!
> 
>
------------------------------------------------------------
------------
> Découvrez sans tarder l'expérience ultime de messagerie
en ligne Windows 
> Live Hotmail ! <http://get.live
.com/mail/overview>
> 
> 
>
------------------------------------------------------------
------------
> 
> _______________________________________________
> Flashr mailing list
> Flashrosflash.org
> http://osflash.org/mailman/listinfo/flashr_osflash.org


_______________________________________________
Flashr mailing list
Flashrosflash.org
http://osflash.org/mailman/listinfo/flashr_osflash.org


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )