[Fling] adding and asset with the same name/key

John Grden neoriley at gmail.com
Fri Jun 30 10:19:01 EDT 2006


I think we need to talk further about the configuration file.  The way I've
always dealt with this issue is with a parent/child relationship.

In the xml, you have the equivelant of a dot path like you do with objects
in Flash.

IE:

<home>
    <news>
        <archives>
        </archives>
    </news>
</home>

in this example, this maps to home.news.archives and that's what I'd use in
the list as a key:

list["home.news.archive"]

this is extremely useful in that it's completely in sync with what you're
doing with the site relationally and that key is very useful later on.  And
yes, I'm thinking beyond AssetLoader right now, but I think you get the
point.  It's a full path, if you will, to the asset, rather than just the
asset name.  This allows for duplicate names.

Make sense?

On 6/30/06, Luke Hubbard <luke at codegent.com> wrote:
>
> Lo,
>
> I think it should replace the first element with an array,
> then add the two elements to that array.
> Hows that for a third way?
>
> - Luke
>
>
> On 6/30/06, Grant Davies <grant at bluetube.com> wrote:
> >
> >   Sorry Scott, chris asked a question on my behalf and I didn;t see
> > anyone reply, I thought there were around 10 people on the list but maybe
> > its just our small group :)
> >
> > Grant
> >
> > ------------------------------
> > *From:* scotty.hyndman at gmail.com on behalf of Scott Hyndman
> > *Sent:* Fri 6/30/2006 9:48 AM
> > *To:* Grant Davies
> > *Cc:* Fling at osflash.org
> > *Subject:* Re: [Fling] adding and asset with the same name/key
> >
> >  What replies are you speaking of?
> >
> > Am I not getting some replies? I only see you me and Chris.
> >
> > Scott
> >
> > On 30/06/06, Grant Davies <grant at bluetube.com> wrote:
> > >
> > >
> > >
> > > I'm overwhelemed by responses to this question :)
> > >
> > > can someone fix his cheap and nasty list so that it replies to group
> > instead
> > > of th poster ? :)
> > >
> > > grant
> > >
> > >  ________________________________
> > >  From: Fling-bounces at osflash.org on behalf of Chris Allen
> > > Sent: Mon 6/26/2006 2:29 PM
> > > To: Fling at osflash.org
> > > Subject: [Fling] adding and asset with the same name/key
> > >
> > >
> > >
> > >
> > > What should the asset loader do, if you add an asset with the same
> > > name as another asset, throw an error, or replace the asset?
> > >
> > > This was the question asked by Grant today. Any thoughts on a
> > solution?
> > >
> > > -Chris
> > >
> > > _______________________________________________
> > > Fling mailing list
> > > Fling at osflash.org
> > > http://osflash.org/mailman/listinfo/fling_osflash.org
> > >
> > >
> > > _______________________________________________
> > > Fling mailing list
> > > Fling at osflash.org
> > > http://osflash.org/mailman/listinfo/fling_osflash.org
> > >
> > >
> > >
> >
> > _______________________________________________
> > Fling mailing list
> > Fling at osflash.org
> > http://osflash.org/mailman/listinfo/fling_osflash.org
> >
> >
> >
>
> _______________________________________________
> Fling mailing list
> Fling at osflash.org
> http://osflash.org/mailman/listinfo/fling_osflash.org
>
>
>


-- 
John Grden - Blitz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/fling_osflash.org/attachments/20060630/38c7222c/attachment-0001.htm


More information about the Fling mailing list