dcsimg
A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Simple question on image layer

  1. #1
    Junior Member
    Join Date
    May 2007
    Posts
    6

    Simple question on image layer

    Hi!
    I'm currently working on an advent calender in flash. It's supposed to be on a website and show an image when you click it.

    This is how it looks:
    http://ecigaretten.dk/julekalender/julekalender.html

    As you can see, the image is not behind the two hatches i've made (hatches? is that what you call them)

    I used this AS3 code to import the image:

    Code:
    stop();
    var imageLoader:Loader = new Loader();
    var image:URLRequest = new URLRequest("http://ecigaretten.dk/custom_advertising.jpg");
    imageLoader.load(image);
    addChild (imageLoader);
    imageLoader.x = 92;
    imageLoader.y = 25;
    I need the image behind the calenders hatches. Is there a way to do that?

    Best regards
    Anders

  2. #2
    Junior Member
    Join Date
    May 2007
    Posts
    6
    Currently the imagine is in the swf file iself, as when using the code to import the image it overlaps the two hatches i made.

  3. #3
    ___________________
    Join Date
    May 2004
    Posts
    3,174
    it looks like it's behind them to me...

  4. #4
    Junior Member
    Join Date
    May 2007
    Posts
    6
    It was just me being stupid!
    I simply put it into a seperate movieclip and moved it down a couple of layers.

  5. #5
    ___________________
    Join Date
    May 2004
    Posts
    3,174
    glad you got it worked out

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