Flash As3 Change texture material on my model(smalljob);

This project received 6 bids from talented freelancers with an average bid price of $67 AUD.

Get free quotes for a project like this
Employer working
Skills Required
Project Budget
Total Bids
Project Description

i cant seem to change a Texture-material on my model Dynamically:
Firstly i load a 3D model into flash with its embedded texture with no problems..
During run-time i would like to change this texture to a new one that i have created like below:

var bitmapData:BitmapData = new BitmapData(256, 256, false,0xFF0000);
var texture:BitmapTexture = new BitmapTexture(bitmapData);

function onMouseDown(e:MouseEvent):void{
[url removed, login to view] = new TextureMaterial([url removed, login to view](texture));

no errors are in the output, my model is not changing to its new texture:

Im using an away3d gold engine

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online