[Papervision3D] BitmapFileMaterial cached load events firingtoo early
xero
xero.nu at gmail.com
Tue Jan 6 06:15:07 PST 2009
agreed,
i was having a similar problem with
http://hexarray.nu/
bulk-loader solved all my problems.
plus, its SUPER easy to use :D
____ ___
\ \/ /___________ ____
.\ // __ \_ __ \/ _ \
./ \ ___/ | | \( <_> )
/___/\ \___ >__|---\____/
| \_/ \/ |
| xero harrison |
| xero.nu at gmail.com |
| http://xero.nu |
| http://fontvir.us |
| http://hexarray.nu |
| http://xero.owns.us |
`---------------------'
---------- Forwarded message ----------
> From: "Pablo Lemos" <pablo at cabanacriacao.com>
> To: <papervision3d at osflash.org>
> Date: Mon, 5 Jan 2009 22:08:54 -0200
> Subject: Re: [Papervision3D] FW: BitmapFileMaterial cached load events
> firingtoo early
> I am in a project that deals with a lot of Bitmaps-Materials. I´ve
> made some questions here and received a lot of tips. But the BEST one is,
> for sure,
> use BulkLoader to control loading (because this library has a lot of
> features to do that and PPV3D LoadEvent has not) and then create Materials
> and, after that, create planes or cubes, etc.
>
> http://code.google.com/p/bulk-loader/
>
> Hope it helps,
>
> Pablo Cabana
> (21) 9338-0388
> Cabana Criação
> (21) 2707-7020
> www.cabanacriacao.com
> Visite também o Cabanoblog:
> www.cabanacriacao.com/blog
>
> ----- Original Message -----
> *From:* Alan Skinner <alan.skinner at digimania.com>
> *To:* papervision3d at osflash.org
> *Sent:* Monday, January 05, 2009 11:54 AM
> *Subject:* [Papervision3D] FW: BitmapFileMaterial cached load events
> firingtoo early
>
> Hi everybody.
>
> Im having a problem with BitmapFileMaterial, although i may be using it
> wrong.
> my code is as follows
> *
>
> Line 1: var
> *bmpMaterial :BitmapFileMaterial;
> *Line 2: *bmpMaterial = *new* BitmapFileMaterial(asset.ThumbnailUrl, false
> );
> *Line 3: *bmpMaterial.addEventListener(FileLoadEvent.*LOAD_COMPLETE*,
> onFileComplete, false, 0, true);
>
> I create a plane and will eventually set the material of this plane to this
> bitmap material
>
> Now if i wait until this material has *fully* *loaded* and then add a
> second plane with a new BitmapFileMaterial but using the *same* URL.
>
> The BitmapFileMaterial recognises that this URL has already been loaded and
> fires the load complete event!
>
> this all happens in the BitmapFileMaterial constructor (Line 2) and *
> before* i attach my event listener (Line 3).
>
> therefore i never get the message that my URL has loaded
>
> seeing as i need this message so i can hide the loading bar and attach the
> image properly this is not good.
>
> Any ideas am i doing this wrong, how can i attach my event listener before
> the cached image load event fires!
>
> At the moment i have disabled bitmap/url caching on the
> BitmapFileMaterial by removing references but its not the ideal solution.
>
> any ideas would be great!!
>
> Cheers, alan
>
> --
> This email and any files transmitted with it are confidential and intended
> solely for the use of the individual or entity to whom they are addressed.
>
> If you have received this email in error please notify the originator of
> the message. This footer also confirms that this email message has been
> scanned for the presence of computer viruses.
>
> Any views expressed in this message are those of the individual sender,
> except where the sender specifies and with authority, states them to be the
> views of DA Group.
>
> Yomego is an entertainment division of DA Group (UK) Limited a company
> registered in Scotland with registration number SC121558 having its
> registered office at The Lighthouse, 70 Mitchell Street, Glasgow, G1 3LX.
>
> ------------------------------
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20090106/ff229b1f/attachment.html>
More information about the Papervision3D
mailing list