Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

load pictures dynamically at runtime?

Status
Not open for further replies.

mlindsey

Programmer
Feb 13, 2001
1
US
I have two questions.
1. is it possible to load pics into a flash movie from an external source?
2. is it possible to get the coordinates from a rectangle that is drawn on an image so that the coordinates coorespond to the image's actual height and width not the height and width that is displayed?

Thanks for any help

Mikey
 
on (release) {
gotoAndPlay ("Scene#", 1);
loadMovie ("your_SWF_file_here.swf", "Holder");
setProperty ("holder", _x, "111.8");
setProperty ("holder", _y, "105.7");
}
where "holder" is the instance name of the box drawn on the stage that the SWF will be imported to(i Suggest that you delete the fill color and bring the alpha level down to make your "holder" invisible) I think the rest is self explanitory.

Hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top