Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

What should I use?

New Here ,
Jul 26, 2013 Jul 26, 2013

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!

TOPICS
ActionScript
865
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 26, 2013 Jul 26, 2013

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 26, 2013 Jul 26, 2013

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 26, 2013 Jul 26, 2013

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 26, 2013 Jul 26, 2013

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 26, 2013 Jul 26, 2013
LATEST

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();

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines