Hi, sorry for late response, had other work on my hands. Back to subject: I added movieMat.interactive = false; but it still registers events on material ( fonts ), I also added mouseEnabled = false etc.
http://farm.dev.gameafrica.net/valts%20stuff/planeTest.swf public function generateMenuItem(_text:String):void { planeElements++; var mc:MovieClip = new MovieClip(); var textfield:TextField = new TextField(); textfield.text = _text; textfield.setTextFormat(new TextFormat("Arial", 20, 0xFFFFFF)); textfield.autoSize = "left"; mc.mouseChildren = false; textfield.mouseEnabled = false; mc.addChild(textfield); var textPlane:Plane = new Plane( { width:_text.length * 11, height: 20, yUp:false, ownCanvas:true } ) var movieMat:MovieMaterial = new MovieMaterial(mc); movieMat.interactive = false; textPlane.material = movieMat; textPlane.x = initialX + (planeElements * 100); textPlane.y = initialY; this.addChild(textPlane); initEvents(textPlane); } On Aug 2, 4:10 pm, savagelook <[email protected]> wrote: > I see... joe's right, and you might also have to set interactive=false > for the moviematerial. > > On Aug 2, 8:38 am, joebass <[email protected]> wrote: > > > > > If you want the container of Text2 to handle the events, have you > > tried setting mouseChildren = false? > > > On Aug 2, 8:26 am, savagelook <[email protected]> wrote: > > > > I'm not sure I understand, can you post some code showing where you > > > create the text and plane, as well as how you apply the event > > > listener? > > > > On Aug 2, 4:19 am, Valts Darznieks <[email protected]> wrote: > > > > > I understand how to addEventListener to plane, but it only will > > > > register event when mouse is on MovieMaterial t.i on text I added to > > > > movieclip, not on plane. > > > > See text,text2 in > > > > examplehttp://farm.dev.gameafrica.net/valts%20stuff/planeTest.swf > > > > > On Aug 2, 12:54 am, savagelook <[email protected]> wrote: > > > > > > plane.addEventListener(MouseEvent3D.MOUSE_OVER, yourMouseHandler); > > > > > > On Aug 1, 5:31 pm, Valts Darznieks <[email protected]> wrote: > > > > > > > Not related to this topic, but.. > > > > > > How to enable mouse events on plane (not the material). > > > > > > I have plane 300x20 and it has MovieMaterial with TextField, I need > > > > > > to > > > > > > register hover on plane, not on MovieMaterial. > > > > > > I hope you`l understand what I meant to explain here. > > > > > > > On Aug 1, 9:11 pm, savagelook <[email protected]> wrote: > > > > > > > > The FLA files available in other away3d text demos generally use > > > > > > > earlier versions, usually cs3. Check them out. In fact, i'm > > > > > > > pretty > > > > > > > sure i used an FLA from an existing demo that was cs3 and just > > > > > > > loaded > > > > > > > it in cs5. > > > > > > > > On Aug 1, 12:49 pm, Valts Darznieks <[email protected]> wrote: > > > > > > > > > Too bad fla is for cs5 > > > > > > > > > On Aug 1, 7:01 pm, Valts Darznieks <[email protected]> wrote: > > > > > > > > > > Thank you this is perfect! > > > > > > > > > Should add this in away3d home demos or smth, a lot better > > > > > > > > > then all > > > > > > > > > other examples of 3d text. > > > > > > > > > > On Aug 1, 6:48 pm, savagelook <[email protected]> > > > > > > > > > wrote: > > > > > > > > > > > Check out the demo (with source) I did on text in > > > > > > > > > > away3d:http://savagelook.com/blog/away3d/the-many-forms-of-away3d-text > > > > > > > > > > > You can download the FLA and SWF files I used for the fonts > > > > > > > > > > there. > > > > > > > > > > You can use the arial.swf as a font, or create your own > > > > > > > > > > with the FLA I > > > > > > > > > > provided. > > > > > > > > > > > On Aug 1, 11:28 am, Valts Darznieks <[email protected]> > > > > > > > > > > wrote: > > > > > > > > > > > > Hello I am trying to get 3d fonts to work, but I don`t > > > > > > > > > > > understand how > > > > > > > > > > > to create assets.swf file. > > > > > > > > > > > Every example states that I should make new fla then new > > > > > > > > > > > textField > > > > > > > > > > > then embed font in options, there is no embed font option > > > > > > > > > > > in text > > > > > > > > > > > tool. Anyway could someone please explane about > > > > > > > > > > > assets.swf ? Or is > > > > > > > > > > > there a way to embed font directly (I guess not if > > > > > > > > > > > everyone uses this > > > > > > > > > > > assets.swf file) ? > > > > > > > > > > > Thank you for any help.- Hide quoted text - > > > > - Show quoted text -
