A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: LoadMovie and Blur Filter Question

  1. #1
    Member
    Join Date
    Feb 2001
    Posts
    90

    LoadMovie and Blur Filter Question

    I created a movie with the blur filter applied via Actionscript which works great. If I try and load that movie into another movie via loadMovie, the filter is lost. Can a parent movie load a child movie and apply a filter to it?

    My test case is pretty simply, the child movie contains a text movie clip with no actions or filters. My parent movie loads the child movie and applies the blur filter to the child movie (and fails). If I use the Actionscript to apply the blur filter from the parent movie in the child movie by itself it works fine.

    This is the simplified version of the code I use to apply the filter which works when I use it directly on the child movie:

    Code:
    var myBlurFilter = new BlurFilter(8, 8, 3);
    var filterArray:Array = new Array();
    filterArray.push(myBlurFilter);
    mc1.filters = filterArray;
    Is there an issue with using loadMovie to do this or is this related to the targeting of the correct movieclip instance name?

  2. #2
    Registered User nunomira's Avatar
    Join Date
    May 2002
    Location
    portugal
    Posts
    7,003
    hi prometheus2k,

    The idea is not deleting posts users found answers to, is sharing the solution.
    So, I kindly ask you to share what you've found out which may end up being a precious help to others.

Tags for this Thread

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