dcsimg
A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: How to show image over actionscript animation in AS3

Hybrid View

  1. #1
    Junior Member
    Join Date
    Jul 2009
    Posts
    14

    Question How to show image over actionscript animation in AS3

    Hi

    I have just get a actionscript. Plz see url below

    http://64.131.70.95/~archit/flashdemo/test.html


    The cloud is created with actionscript and Text is image as bitmap. I want cloud below image.

    Image loading script is below:

    var myLoader:Loader = new Loader();
    var myURLRequest:URLRequest = new URLRequest("CloudExampleLogoCS3.swf");
    myLoader.load(myURLRequest);
    stage.addChild(myLoader);

    Plz help as level is removed in AS3

    thx

  2. #2
    Ө_ө sleepy mod
    Join Date
    Mar 2003
    Location
    Oregon, USA
    Posts
    2,441
    Try this:

    stage.addChildAt(myLoader, 0);

  3. #3
    Junior Member
    Join Date
    Jul 2009
    Posts
    14
    Not working. see code below.

    var myLoader:Loader = new Loader();
    var myURLRequest:URLRequest = new URLRequest("CloudExampleLogoCS3.swf");
    myLoader.load(myURLRequest);
    //stage.addChild(myLoader);

    stage.addChildAt(myLoader, 0);
    The text image is not loading.
    Last edited by websoftexpert; 07-31-2009 at 10:05 AM.

  4. #4
    Ө_ө sleepy mod
    Join Date
    Mar 2003
    Location
    Oregon, USA
    Posts
    2,441
    Is the text transparent or is it flattened onto the blue background?

  5. #5
    Junior Member
    Join Date
    Jul 2009
    Posts
    14
    The text is created as png image and embedded in another swf and loading in flash file.

    Do want see fla file?

    thx

  6. #6
    Junior Member
    Join Date
    Jul 2009
    Posts
    14
    see attached file for text.

    thx
    Last edited by websoftexpert; 11-20-2009 at 12:02 AM.

  7. #7
    Ө_ө sleepy mod
    Join Date
    Mar 2003
    Location
    Oregon, USA
    Posts
    2,441
    Hrmm - ok so I'm not sure which is getting created first...if the clouds exist first, just use addChild in order:

    addChild(cloud);
    addChild(logo);


    or if it's the other way around, you'll want to use addChildAt:

    addChild(logo);
    addChildAt(cloud, 0);

  8. #8
    Junior Member
    Join Date
    Jul 2009
    Posts
    14
    its not working. Can send you all flash files?

    thx

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