Discussion:
Displaying a preloader for a Collada (.DAE) file
garion1
2007-12-25 19:47:16 UTC
Permalink
Can someone please explain how to display a preloader for a .dae file.

Your assistance will be appreciated.
--
View this message in context: http://www.nabble.com/Displaying-a-preloader-for-a-Collada-%28.DAE%29-file-tp14491213p14491213.html
Sent from the Papervision3D mailing list archive at Nabble.com.
Tim Knip
2007-12-26 10:51:09 UTC
Permalink
dae = new DAE();

dae.addEventListener( ProgressEvent.PROGRESS, myLoadHandler );

dae.load( "myfile.DAE" );

Tim
Post by garion1
Can someone please explain how to display a preloader for a .dae file.
Your assistance will be appreciated.
--
View this message in context: http://www.nabble.com/Displaying-a-preloader-for-a-Collada-%28.DAE%29-file-tp14491213p14491213.html
Sent from the Papervision3D mailing list archive at Nabble.com.
_______________________________________________
Papervision3D mailing list
http://osflash.org/mailman/listinfo/papervision3d_osflash.org
-a-
2007-12-26 11:51:39 UTC
Permalink
_pf = new ParticleField(_pm,
4000// number of particles,
*null//alternative container*
800//Field width,
100//Field height,
800//Field depth);

In the Effects branch what role does the alternative container play. If
you do have an alternate container how does it link up with the rest of
the logic flow.

a/
garion1
2007-12-26 18:33:49 UTC
Permalink
Thanks. I'll try it out. When successful, I'll post a link to the source
here. I'm sure that it will be a useful resource for Papervision3D
developers.
--
View this message in context: http://www.nabble.com/Displaying-a-preloader-for-a-Collada-%28.DAE%29-file-tp14491213p14504911.html
Sent from the Papervision3D mailing list archive at Nabble.com.
-a-
2007-12-26 19:30:00 UTC
Permalink
Can any one explain to me why I seem to be able to load a Panel as a
MovieMaterial argument when its on stage in MXML and not when I
instantiate it by code? Instead I get a 1009 error.

a/
Eric-Paul Lecluse
2007-12-26 19:19:38 UTC
Permalink
Hey Tim,



The ProgressEvent.PROGRESS works great for the DAE/XML, but not for
possible bitmap textures that are loaded in automatically. The Collada
class used the FileLoadEvent.COLLADA_MATERIALS_DONE, but this seems to
be unimplemented in the DAE.



Now, there is the static BitmapFileMaterial.callback
<http://lostboys.epologee.net/papervision/greatwhite.doc/html/org_paperv
ision3d_materials_BitmapFileMaterial.html#callback> , to which you could
assign a method that's triggered when all bitmap loading has finished.
But I'm not sure if you want us abusing that property instead of maybe
listening to an event of a kind.



What's your advice?



Cheers,

Eric-Paul.



-----Original Message-----
On Behalf Of Tim Knip
Subject: Re: [Papervision3D] Displaying a preloader for a Collada (.DAE)
file



dae = new DAE();



dae.addEventListener( ProgressEvent.PROGRESS, myLoadHandler );



dae.load( "myfile.DAE" );



Tim
Post by garion1
Can someone please explain how to display a preloader for a .dae file.
Admiral
2009-01-23 01:39:05 UTC
Permalink
I am very interested in learning about how you would go about applying a
callback function to a material that already exists on a DAE. Does anyone
know how you would go about using BitmapFileMaterial.callback?

As it is in my scene, I have a function that I call when a DAE has completed
loading, and I apply it like this:

<pre>
package {

//...import everything...

public class myScene extends Sprite {

//...set up all my variables, camera, scene, viewport...
var model = new DAE();

public function myScene(){
//...position the camera, add the viewport, all of that...

model.addEventListener(FileLoadEvent.ANIMATIONS_COMPLETE,
daeLoadHandler);
model.load('model.dae');

addEventListener(Event.ENTER_FRAME, loop);
}

//...define the loop function, make it render...

public function daeLoadHandler(event:Event){
var daeInstance = event.target;
for (var matName:String in daeInstance.materials.materialsByName) {
var daeMat:MaterialObject3D = daeInstance.materials.materialsByName[
matName ];
daeMat.callback = callbackFunction;
}
}

public function callbackFunction(event:Event){
//...make my preloader animation go away...
}

}
}
</pre>

My code breaks at the bolded line above; I'm not sure how to use 'callback'.
Any ideas, anyone?

For the longest time, I had been battling with the issue of not being able
to display a progress bar for the percent loaded of all of the DAE files I
was pulling into my scenes. Now that I've got that figured out, it seems
that my next challenge is to find a way to find out the download progress of
all of the bitmap files that belong to the materials that come on those DAEs
by default... I really don't want to have to spend the time to put those
materials on my DAEs in my 3D app just to have to assign them to the model
again in my actionscript.

I think it would be the greatest thing since sliced bread if someone could
find a way to return an overall download progress percentage from an array
of assets they want loaded.

Eric-Paul Lecluse, thank you for bringing to my attention the 'callback'
property and 'COLLADA_MATERIALS_DONE' event.

Has anyone been able to make any use of the 'COLLADA_MATERIALS_DONE' event?
Might you be kind enough to post a quick example of how to use it?

-Admiral
Post by Eric-Paul Lecluse
Hey Tim,
The ProgressEvent.PROGRESS works great for the DAE/XML, but not for
possible bitmap textures that are loaded in automatically. The Collada
class used the FileLoadEvent.COLLADA_MATERIALS_DONE, but this seems to
be unimplemented in the DAE.
Now, there is the static BitmapFileMaterial.callback
<http://lostboys.epologee.net/papervision/greatwhite.doc/html/org_paperv
ision3d_materials_BitmapFileMaterial.html#callback> , to which you could
assign a method that's triggered when all bitmap loading has finished.
But I'm not sure if you want us abusing that property instead of maybe
listening to an event of a kind.
What's your advice?
Cheers,
Eric-Paul.
-----Original Message-----
On Behalf Of Tim Knip
Subject: Re: [Papervision3D] Displaying a preloader for a Collada (.DAE)
file
dae = new DAE();
dae.addEventListener( ProgressEvent.PROGRESS, myLoadHandler );
dae.load( "myfile.DAE" );
Tim
Post by garion1
Can someone please explain how to display a preloader for a .dae file.
_______________________________________________
Papervision3D mailing list
http://osflash.org/mailman/listinfo/papervision3d_osflash.org
--
View this message in context: http://www.nabble.com/Displaying-a-preloader-for-a-Collada-%28.DAE%29-file-tp14491213p21617330.html
Sent from the Papervision3D mailing list archive at Nabble.com.
Huge Ontoman
2010-01-18 04:29:23 UTC
Permalink
Hello Eric-Paul,

it is 2010 now (pv3d 2.1.9200, branch CS4, dated '18.09.08'), and still the
same VOID with DAE and materials loading...
But the good news is...that applying these patches in both DAE.as and
BitmapFileMaterial.as You can have a working solution.
My idea was re-dispatching the FileLoadEvent from the DAE class. While i was
at it, i added a new FileLoadEvent type, COLLADA_LOADED, because the method
Tim wrote about ProgressEvent.PROGRESS in my case actually didn't register
anything (i'm wondering how YOU got Your listener get called)...

For all the control-over-load-process-geeks, here is the deal:

in...org/papervision3d/objects/parsers/DAE.as:
...
/**
* Loads the next material.
*
* @param event
*/
private function loadNextMaterial(event:FileLoadEvent=null):void
{
...
var material:BitmapFileMaterial = data.material;
material.addEventListener(FileLoadEvent.LOAD_COMPLETE, loadNextMaterial);
material.addEventListener(FileLoadEvent.LOAD_ERROR, onMaterialError);
// dbam added...support for monitoring material loading progress.
material.addEventListener(FileLoadEvent.LOAD_PROGRESS,
onMaterialProgress);
// dbam out.
...
}
// dbam added...redispatching event into the flow.
private function onMaterialProgress( event: FileLoadEvent ):void {
dispatchEvent( event );
}
// dbam out.
...
/**
* Called on parsing progress.
*
* @param event
*/
private function onParseProgress(event:ProgressEvent):void
{
// dbam added...event dispatch to actually DO somethig here.
// let the outside know how the .DAE is doing.
dispatchEvent ( new FileLoadEvent( FileLoadEvent.LOAD_PROGRESS,
this.filename, event.bytesLoaded, event.bytesTotal));
// dbam out.
}
...
/**
* Called when the DaeReader completed parsing.
*
* @param event
*/
private function onParseComplete(event:Event):void
{
...
// dbam added...dispatching the fact that the DAE was completely loaded.
// IT DID NOT LOAD NO MATERIALS YET, JUST THE ACTUAL .DAE FILE!
dispatchEvent ( new FileLoadEvent( FileLoadEvent.COLLADA_LOADED,
this.filename ));
buildMaterials();
loadNextMaterial();
...
}
...
org/papervision3d/objects/parsers/DAE.as...out.

So far the "bridge" is set up, but because of a typo(?bug) the 'file' string
of the BitmapFileMaterial won't reflect the actual url of the files when
loading a bunch (more than one) of them via DAE.as,
so You have to set it as follows to get the CORRECT url up with the event..

in...org/papervision3d/materials/BitmapFileMaterials.as:
...
// ___________________________________________________________________ LOAD
BITMAP PROGRESS HANDLER

private function loadBitmapProgressHandler( e:ProgressEvent ):void
{
// dbam changed...
// var progressEvent:FileLoadEvent = new FileLoadEvent(
FileLoadEvent.LOAD_PROGRESS, url, e.bytesLoaded, e.bytesTotal);
// to...
var progressEvent:FileLoadEvent = new FileLoadEvent(
FileLoadEvent.LOAD_PROGRESS, _loaderUrls[e.target.loader], e.bytesLoaded,
e.bytesTotal);
// dbam out.
dispatchEvent( progressEvent );
}
...
org/papervision3d/materials/BitmapFileMaterials.as...out.

and to make it complete, here's what is new in my FileLoadEvent.as:

in...org/papervision3d/events/FileLoadEvent.as:
...
public class FileLoadEvent extends Event
{

...
public static const ANIMATIONS_PROGRESS :String = "animationsProgress";
// dbam added...
// to send load complete after file loaded,
// before MaterialBitmaps start to load...
public static const COLLADA_LOADED :String = "colladaLoaded";
// dbam out.
...
}
...
// dto added: Adobe standard
// every event MUST override clone...still asking myself why.
public override function clone():Event {
return new FileLoadEvent(type, file, bytesLoaded, bytesTotal, message,
dataObj, bubbles, cancelable);
}
}

This is fresh out the oven (5:30 in the morning), works so far, but not
heavy tested.
If anything goes wrong later on (this stuff breaks something), please feel
warned. (If so, please let me know.)

Hope that this will help. And if so, please let me know...

cheers,
dbam.
Post by Eric-Paul Lecluse
Hey Tim,
The ProgressEvent.PROGRESS works great for the DAE/XML, but not for
possible bitmap textures that are loaded in automatically. The Collada
class used the FileLoadEvent.COLLADA_MATERIALS_DONE, but this seems to
be unimplemented in the DAE.
Now, there is the static BitmapFileMaterial.callback
<http://lostboys.epologee.net/papervision/greatwhite.doc/html/org_paperv
ision3d_materials_BitmapFileMaterial.html#callback> , to which you could
assign a method that's triggered when all bitmap loading has finished.
But I'm not sure if you want us abusing that property instead of maybe
listening to an event of a kind.
What's your advice?
Cheers,
Eric-Paul.
-----Original Message-----
On Behalf Of Tim Knip
Subject: Re: [Papervision3D] Displaying a preloader for a Collada (.DAE)
file
dae = new DAE();
dae.addEventListener( ProgressEvent.PROGRESS, myLoadHandler );
dae.load( "myfile.DAE" );
Tim
Post by garion1
Can someone please explain how to display a preloader for a .dae file.
_______________________________________________
Papervision3D mailing list
http://osflash.org/mailman/listinfo/papervision3d_osflash.org
--
View this message in context: http://n4.nabble.com/Displaying-a-preloader-for-a-Collada-DAE-file-tp782807p1016362.html
Sent from the Papervision3D mailing list archive at Nabble.com.
Huge Ontoman
2010-08-18 09:07:06 UTC
Permalink
Good day,

it is as You wrote. It only gets the separate files "DONE" registered.
It is NOT how it should be - it is HOW IT IS at the moment.
Sorry for any inconvenience. I haven't touched that piece of code since - but i put it on my ToDo list, and let You know. I hope You don't have short deadlines...

In the project i used it i had a "Texture X out of MAX" text displaying the process, i suppose that was my solution to the problem of not getting all the info during loading (or i never had the intention of displaying a separate progressbar for each - as that could have been misleading).

Cheers,
dbam.

ps: and of course, if You find a solution in the meantime, let me know.
Date: Mon, 16 Aug 2010 13:21:05 -0700
From: ml-node+2327406-96822927-73352-***@public.gmane.org
To: darbam-***@public.gmane.org
Subject: Re: Displaying a preloader for a Collada (.DAE) file



Hi dbam,


I made the changes you suggested and used the code below


private function load():void{

daeFile = new DAE();

daeFile.addEventListener(FileLoadEvent.LOAD_PROGRESS, handleProgress);

daeFile.addEventListener(FileLoadEvent.LOAD_COMPLETE, init);

daeFile.load("lib/dae/nature.dae");

}



private function handleProgress(e:FileLoadEvent):void{

per = Math.floor(e.bytesLoaded/e.bytesTotal)*100;

tf.text = String(per) + "% loaded";

}


it compiled but the "handleProgress" function displayed only "0% loaded" and "100% loaded" for each texture associated with the .dae, is this the functionality your changes were supposed to implement? I'd like to display a growing percentage as the textures load, but don't know how to edit the code =P


thanx,


sixtus



Huge Ontoman wrote:
Hello Eric-Paul,


it is 2010 now (pv3d 2.1.9200, branch CS4, dated '18.09.08'), and still the same VOID with DAE and materials loading...

But the good news is...that applying these patches in both DAE.as and BitmapFileMaterial.as You can have a working solution.

My idea was re-dispatching the FileLoadEvent from the DAE class. While i was at it, i added a new FileLoadEvent type, COLLADA_LOADED, because the method Tim wrote about ProgressEvent.PROGRESS in my case actually didn't register anything (i'm wondering how YOU got Your listener get called)...


For all the control-over-load-process-geeks, here is the deal:


in...org/papervision3d/objects/parsers/DAE.as:

...

/**

* Loads the next material.

*

* @param event

*/

private function loadNextMaterial(event:FileLoadEvent=null):void

{

...

var material:BitmapFileMaterial = data.material;

material.addEventListener(FileLoadEvent.LOAD_COMPLETE, loadNextMaterial);

material.addEventListener(FileLoadEvent.LOAD_ERROR, onMaterialError);

// dbam added...support for monitoring material loading progress.

material.addEventListener(FileLoadEvent.LOAD_PROGRESS, onMaterialProgress);

// dbam out.
...

}

// dbam added...redispatching event into the flow.

private function onMaterialProgress( event: FileLoadEvent ):void {

dispatchEvent( event );

}

// dbam out.
...

/**

* Called on parsing progress.

*

* @param event

*/

private function onParseProgress(event:ProgressEvent):void

{

// dbam added...event dispatch to actually DO somethig here.

// let the outside know how the .DAE is doing.

dispatchEvent ( new FileLoadEvent( FileLoadEvent.LOAD_PROGRESS, this.filename, event.bytesLoaded, event.bytesTotal));

// dbam out.
}

...

/**

* Called when the DaeReader completed parsing.

*

* @param event

*/

private function onParseComplete(event:Event):void

{

...

// dbam added...dispatching the fact that the DAE was completely loaded.

// IT DID NOT LOAD NO MATERIALS YET, JUST THE ACTUAL .DAE FILE!

dispatchEvent ( new FileLoadEvent( FileLoadEvent.COLLADA_LOADED, this.filename ));

buildMaterials();

loadNextMaterial();

...

}

...

org/papervision3d/objects/parsers/DAE.as...out.


So far the "bridge" is set up, but because of a typo(?bug) the 'file' string of the BitmapFileMaterial won't reflect the actual url of the files when loading a bunch (more than one) of them via DAE.as,

so You have to set it as follows to get the CORRECT url up with the event..


in...org/papervision3d/materials/BitmapFileMaterials.as:

...

// ___________________________________________________________________ LOAD BITMAP PROGRESS HANDLER


private function loadBitmapProgressHandler( e:ProgressEvent ):void

{

// dbam changed...

// var progressEvent:FileLoadEvent = new FileLoadEvent( FileLoadEvent.LOAD_PROGRESS, url, e.bytesLoaded, e.bytesTotal);

// to...

var progressEvent:FileLoadEvent = new FileLoadEvent( FileLoadEvent.LOAD_PROGRESS, _loaderUrls[e.target.loader], e.bytesLoaded, e.bytesTotal);

// dbam out.

dispatchEvent( progressEvent );

}

...

org/papervision3d/materials/BitmapFileMaterials.as...out.


and to make it complete, here's what is new in my FileLoadEvent.as:


in...org/papervision3d/events/FileLoadEvent.as:

...

public class FileLoadEvent extends Event

{


...

public static const ANIMATIONS_PROGRESS :String = "animationsProgress";

// dbam added...

// to send load complete after file loaded,

// before MaterialBitmaps start to load...

public static const COLLADA_LOADED :String = "colladaLoaded";

// dbam out.

...

}

...

// dto added: Adobe standard

// every event MUST override clone...still asking myself why.

public override function clone():Event {

return new FileLoadEvent(type, file, bytesLoaded, bytesTotal, message, dataObj, bubbles, cancelable);

}

}


This is fresh out the oven (5:30 in the morning), works so far, but not heavy tested.

If anything goes wrong later on (this stuff breaks something), please feel warned. (If so, please let me know.)


Hope that this will help. And if so, please let me know...


cheers,

dbam.



Eric-Paul Lecluse wrote:
Hey Tim,





The ProgressEvent.PROGRESS works great for the DAE/XML, but not for

possible bitmap textures that are loaded in automatically. The Collada

class used the FileLoadEvent.COLLADA_MATERIALS_DONE, but this seems to

be unimplemented in the DAE.





Now, there is the static BitmapFileMaterial.callback

<http://lostboys.epologee.net/papervision/greatwhite.doc/html/org_paperv
ision3d_materials_BitmapFileMaterial.html#callback> , to which you could

assign a method that's triggered when all bitmap loading has finished.

But I'm not sure if you want us abusing that property instead of maybe

listening to an event of a kind.





What's your advice?





Cheers,


Eric-Paul.





-----Original Message-----

On Behalf Of Tim Knip

Subject: Re: [Papervision3D] Displaying a preloader for a Collada (.DAE)

file





dae = new DAE();





dae.addEventListener( ProgressEvent.PROGRESS, myLoadHandler );





dae.load( "myfile.DAE" );





Tim
Post by garion1
Can someone please explain how to display a preloader for a .dae file.
_______________________________________________

Papervision3D mailing list

Papervision3D-***@public.gmane.org

http://osflash.org/mailman/listinfo/papervision3d_osflash.org









View message @ http://papervision3d.758870.n4.nabble.com/Displaying-a-preloader-for-a-Collada-DAE-file-tp782807p2327406.html


To unsubscribe from Re: Displaying a preloader for a Collada (.DAE) file, click here.
--
View this message in context: http://papervision3d.758870.n4.nabble.com/Displaying-a-preloader-for-a-Collada-DAE-file-tp782807p2329529.html
Sent from the Papervision3D mailing list archive at Nabble.com.
Fábio Burkard
2010-08-19 14:35:34 UTC
Permalink
Can I avoid an object from being culled?

It's a plane, 0 segments; while the camera rotates, sometimes only 1
triangle appears, sometimes both, and other times none. When all vertices
are outside the camera, it disappears, but should not (it's kinda BIG
floor).

I've tried to use (objName).culled = false but didn't work, and I don't want
to use lots of segments for the plane (it doesn't need to).
Admiral
2010-09-03 04:05:58 UTC
Permalink
Pardon, what?
In the message that you just sent to me, there are so many chains of
conversation going that I have lost track of any original message you
might have meant to send to me.
Can you please clarify?
Talk with you soon,
-Admiral
Post by Admiral
I am very interested in learning about how you would go about
applying a callback function to a material that already exists on a
DAE. Does anyone know how you would go about using
BitmapFileMaterial.callback?
As it is in my scene, I have a function that I call when a DAE has
<pre>
package {
//...import everything...
public class myScene extends Sprite {
//...set up all my variables, camera, scene,
viewport...
var model = new DAE();
public function myScene(){
//...position the camera, add the viewport,
all of that...
model.addEventListener(FileLoadEvent.ANIMATIONS_COMPLETE,
daeLoadHandler);
model.load('model.dae');
addEventListener(Event.ENTER_FRAME, loop);
}
//...define the loop function, make it render...
public function daeLoadHandler(event:Event){
var daeInstance = event.target;
for (var matName:String in
daeInstance.materials.materialsByName) {
var daeMat:MaterialObject3D =
daeInstance.materials.materialsByName[ matName ];
daeMat.callback = callbackFunction;
}
}
public function callbackFunction(event:Event){
//...make my preloader animation go away...
}
}
}
</pre>
My code breaks at the bolded line above; I'm not sure how to use
'callback'. Any ideas, anyone?
For the longest time, I had been battling with the issue of not
being able to display a progress bar for the percent loaded of all
of the DAE files I was pulling into my scenes. Now that I've got
that figured out, it seems that my next challenge is to find a way
to find out the download progress of all of the bitmap files that
belong to the materials that come on those DAEs by default... I
really don't want to have to spend the time to put those materials
on my DAEs in my 3D app just to have to assign them to the model
again in my actionscript.
I think it would be the greatest thing since sliced bread if someone
could find a way to return an overall download progress percentage
from an array of assets they want loaded.
Eric-Paul Lecluse, thank you for bringing to my attention the
'callback' property and 'COLLADA_MATERIALS_DONE' event.
Has anyone been able to make any use of the 'COLLADA_MATERIALS_DONE'
event? Might you be kind enough to post a quick example of how to
use it?
-Admiral
Hey Tim,
The ProgressEvent.PROGRESS works great for the DAE/XML, but not for
possible bitmap textures that are loaded in automatically. The Collada
class used the FileLoadEvent.COLLADA_MATERIALS_DONE, but this seems to
be unimplemented in the DAE.
Now, there is the static BitmapFileMaterial.callback
<http://lostboys.epologee.net/papervision/greatwhite.doc/html/org_paperv
ision3d_materials_BitmapFileMaterial.html#callback> , to which you could
assign a method that's triggered when all bitmap loading has finished.
But I'm not sure if you want us abusing that property instead of maybe
listening to an event of a kind.
What's your advice?
Cheers,
Eric-Paul.
-----Original Message-----
On Behalf Of Tim Knip
Subject: Re: [Papervision3D] Displaying a preloader for a Collada
(.DAE) file
dae = new DAE();
dae.addEventListener( ProgressEvent.PROGRESS, myLoadHandler );
dae.load( "myfile.DAE" );
Tim
Post by garion1
Can someone please explain how to display a preloader for a .dae
file.
_______________________________________________
Papervision3D mailing list
http://osflash.org/mailman/listinfo/papervision3d_osflash.org
Thanks you for the post.
http://moviesonlineworld.com
To unsubscribe from Re: Displaying a preloader for a Collada (.DAE)
file, click here.
--
View this message in context: http://papervision3d.758870.n4.nabble.com/Displaying-a-preloader-for-a-Collada-DAE-file-tp782807p2525091.html
Sent from the Papervision3D mailing list archive at Nabble.com.
Thomas Saunders
2007-12-26 19:42:58 UTC
Permalink
Try using MovieAssetMaterial instead-

Thomas



Message: 11
Date: Wed, 26 Dec 2007 19:30:00 +0000
From: -a- <aYo-***@public.gmane.org>
Subject: [Papervision3D] Actionscript Panel does not load to MovieMaterial
To: papervision3d-***@public.gmane.org
Message-ID: <4772ABB8.8050300-***@public.gmane.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Can any one explain to me why I seem to be able to load a Panel as a
MovieMaterial argument when its on stage in MXML and not when I
instantiate it by code? Instead I get a 1009 error.

a/
-a-
2007-12-26 21:04:03 UTC
Permalink
Its the "Bloody" creationComplete business. Sometimes I wish I could
pinch AS3, GGRRRRR!!!

a/
Post by Thomas Saunders
Try using MovieAssetMaterial instead-
Thomas
Message: 11
Date: Wed, 26 Dec 2007 19:30:00 +0000
Subject: [Papervision3D] Actionscript Panel does not load to
MovieMaterial
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Can any one explain to me why I seem to be able to load a Panel as a
MovieMaterial argument when its on stage in MXML and not when I
instantiate it by code? Instead I get a 1009 error.
a/
------------------------------------------------------------------------
_______________________________________________
Papervision3D mailing list
http://osflash.org/mailman/listinfo/papervision3d_osflash.org
-a-
2007-12-26 22:17:47 UTC
Permalink
I will try that too though
Post by -a-
Its the "Bloody" creationComplete business. Sometimes I wish I could
pinch AS3, GGRRRRR!!!
a/
Post by Thomas Saunders
Try using MovieAssetMaterial instead-
Thomas
Message: 11
Date: Wed, 26 Dec 2007 19:30:00 +0000
Subject: [Papervision3D] Actionscript Panel does not load to
MovieMaterial
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Can any one explain to me why I seem to be able to load a Panel as a
MovieMaterial argument when its on stage in MXML and not when I
instantiate it by code? Instead I get a 1009 error.
a/
------------------------------------------------------------------------
_______________________________________________
Papervision3D mailing list
http://osflash.org/mailman/listinfo/papervision3d_osflash.org
_______________________________________________
Papervision3D mailing list
http://osflash.org/mailman/listinfo/papervision3d_osflash.org
Loading...