Copy link to clipboard
Copied
I'm trying to make something like this http://www.keramikakanjiza.com/en/moj-ambijent/kupatilo002.html
You can choose EN on the top right to view the page in English.
I need to make a flash application that allows me to test floor tiles on a 3D scene using drag and drop (or any other way really).
I have couple of questions:
1) I was planing on doing this in ActionScript 3 since I haven't really done much flash before and I only worked in ActionScript a bit. Is there a better way to do this?
2) How do I go about importing a 3D scene into my flash app and making it "interactible"?
3) How do I change the texture of a floor tile on the 3D sceene? Is there a method for it or something? ( I thought about it like this: When the user drags the tile from the selection on the right, in the startDrag method i would take the texture of the floor tile and somehow "store" it in a variable or something and then when the user releases the mouse on top of a wall on the 3D scene it would change the texture of the wall to the "stored" texture. Is this doable or am I just talking nonsense?
Thank you for your time!
Copy link to clipboard
Copied
that doesn't actually need to be 3d and you can create that entire app in flash using flash'es 3d (actually 2.5d) capabilities.
most of that could be done by importing a bitmap and vectorizing it in flash. you could create a tile movieclip and use bitmapdata fills and actionscript for the 2.5d positioning/rotating.
Copy link to clipboard
Copied
Thank you for your response.
Could you elaborate a bit?
As I said, I didn't do much flash in the past.
What would vectorizing a bitmap do? You mean I could import a premade picture of a scene and then use trace bitmap? But how would that help me?
Thank you.
Copy link to clipboard
Copied
i assumed you had basic bitmaps of those textures and the basic scene. if you don't have those i'm not sure how you plan to create your project.
some of that could be created with a vector drawing program but drawing those textures would be onerous.
Copy link to clipboard
Copied
The textures aren't really important. I can use whatever texture I find, but the problem is I don't know how to "assign" those textures to the floor tiles at runtime. Especially in 3D or 2.5D if you will.
The only thing I found out so far is how to use bitmaps to texture a shape object using the bitmap fill. But that only works on shapes(not in runtime) and I don't know how to access shapes in actionscript as they have no names or identifiers.
Thank you for your response.
Copy link to clipboard
Copied
you can use the bitmapdatafill() method to add textures. this should get you started:
var mc:MovieClip = new MovieClip();
addChild(mc);
mc.x=mc.y=100;
mc.rotationY = 45;
var bmpd:BitmapData = new A(); // import a bitmap and assign it class = A
mc.graphics.beginBitmapFill(bmpd);
mc.graphics.drawRect(0,0,200,50);
mc.graphics.endFill();
Find more inspiration, events, and resources on the new Adobe Community
Explore Now