if the map is totally white in Away while you expect a colored one, make sure
url is correct.
again these are applied as default. So seeing only white means, you're almost
there :)
your url must be relative to swf.
fabrice
On Jul 1, 2010, at 3:40 PM, Freddie schroots wrote:
> Hey i got it to work again, im wondering if i am doing something wrong.
>
> The exporting works good and i can walk around and stuff, im testing a simple
> plane now made from the primitives in Prefab, i've added a simple texture map
> in Prefab and a simple light, i can see how the light effects the plane with
> the texture and all, but when i generate the AS3 with BSP and set up the
> flash document, the plane is white.
>
> I've removed the 2 slash before: [SWF(frameRate="60",
> backgroundColor="0x000000", width="800", height="600")] (or else the swf
> would be completely white)
>
> I've tried removing the slash in the actionscript at:
> {customPath:"./images/"})); I see that the .png file is in the images map,
> but it won't show it, when i publish it i only see a black background and a
> white plane.
>
> Do i have to add some AS to get the images to work or am i missing something
> in Prefab? I hope someone can give me some tips!
>
> 2010/7/1 Fabrice3D <[email protected]>
> thats normal, in fact I need to build a warning asap for this case.
> BSP awd are not ment/made to be reedited, at least for now.
> plus materials handing is totally alien to Prefab structure
>
> Fabrice
>
> On Jul 1, 2010, at 12:14 PM, Freddie schroots wrote:
>
> > Another strange thing i found, and maybe it's the cause of the
> > problem, when i drag the .awd file back into prefab, nothing shows up.
> >
> > On 1 jul, 12:13, Freddie schroots <[email protected]> wrote:
> >> Hello, i'm having a problem since i downgraded my adobe air to 1.5
> >>
> >> I've made a simple box with 1 light and 1 texture map, generated an
> >> AS3 class with the BSP/PVS generator and then coupled the document
> >> class to the .fla.
> >>
> >> The away3d source and the Flex 3.5 is coupled properly but now i get
> >> these errors, i didn't get these errors before downgrading to air 2.0,
> >> i'm not good at actionscript so most of it looks like chinese to me.
> >>
> >> TypeError: Error #1009: Cannot access a property or method of a null
> >> object reference.
> >> at away3d.loaders::AWData/linkBSPNodes()
> >> at away3d.loaders::AWData/prepareData()
> >> at away3d.loaders::AbstractParser/parseGeometry()
> >> at away3d.loaders::Loader3D/loadTextures()
> >> at away3d.loaders::Loader3D$/parse()
> >> at away3d.loaders::AWData$/parse()
> >> at MyBSPTree/initAway3D()
> >> at MyBSPTree/init()
> >> TypeError: Error #1009: Cannot access a property or method of a null
> >> object reference.
> >> at away3d.loaders::Loader3D/notifySuccess()
> >> at away3d.loaders::Loader3D/notifyMaterialLibrary()
> >> at away3d.loaders::Loader3D/onParserComplete()
> >> at flash.events::EventDispatcher/dispatchEventFunction()
> >> at flash.events::EventDispatcher/dispatchEvent()
> >> at away3d.loaders::AbstractParser/notifySuccess()
> >> at away3d.loaders::AbstractParser/parseNext()
> >> at away3d.loaders::AbstractParser/update()
>
>