Hello,
I am relatively new to action script programming
and I have the following problem. Guess most of
you laugh about it - but I tried various ways and
still don’t get it.
I created a movieclip and putted a textfield on
it. That works good. Now I wanted to add to that
movieclip another clip in which I want to load
a PNG file.
This is the first part ( creating first movieclip
and adding textbox) which works :
//
// create main_area movie clip
//
_root.createEmptyMovieClip("main_area", this.getNextHighestDepth());
main_area.beginFill(0xFF0000, 100);
main_area.moveTo(0, 0);
main_area.lineTo(770, 0);
main_area.lineTo(770, 510);
main_area.lineTo(0, 510);
main_area.lineTo(0, 0);
main_area.endFill();
main_area._x = 0;
main_area._y = 105;
//
// create long_desc text field for long description
//
main_area.createTextField( "long_desc", 1, 38, 40, 300, 420 );
main_area.long_desc.multiline = true;
main_area.long_desc.wordWrap = true;
main_area.long_desc.border = true;
var long_desc_fmt:TextFormat = new TextFormat();
long_desc_fmt.color = 0x00FF00;
long_desc_fmt.underline = true;
main_area.long_desc.text = "this is a testdddd";
main_area.long_desc.setTextFormat( long_desc_fmt );
The following code doesn’t work - and I do not
know what’s wrong with it. Actually I hope to see
the loaded picutre - but it is not shown. There is
no error message either.
//
// create page_logo movie clip to store image
//
main_area.createEmptyMovieClip( "page_logo", this.getNextHighestDepth() );
main_area.loadMovie( "img/wdp_produktdetails.png", "page_logo" );
main_area.page_logo._x = 0;
main_area.page_logo._y = 200;
Any help is appreciated !!! Thanks in advance !!!