A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Loading an external picture

  1. #1
    Junior Member
    Join Date
    Sep 2006
    Posts
    24

    Loading an external picture

    I have the following code
    _root.mcpicture.loadMovie("http://www.mysite.com./images/1.jpg");
    Is there a way I can get the loaded picture to be a certain size and position using actionscript?

    Any examples would be much appreciated.

    Cheers

  2. #2
    Senior Member
    Join Date
    Apr 2006
    Posts
    1,059
    _root.mcpicture._width = 50
    _root.mcpicture._height = 50


    _root.mcpicture._xscale = _root.mcpicture._yscale = 75

    _root.mcpicture._x = 25
    _root.mcpicture._y = 50

    (I think the size stuff only works if you call it after the image loads.)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center