Help - displacementmapfilter (learn something new)

I'm tring to improve my skills as2 with some animations. I found this and interested in learning more. I went on the web and found a simple tutorail

http://www.emanueleferonato.com/2007/12/03/understanding-Flash-displacement-map-filter/

It features her in a way, I can understand and experiment with, however the example I'm use/re-use to draw does not work as expected. I was hoping that someone familuar with this filter could see what Im doing wrong.

Problem: when the displacementmapfilter is executed, it leaves a white border on the right edge to egde and down (as if the card is not the right size)

Screen shot 2013-08-29 at 3.44.14 PM.png

I can't see why your mismatched upward. I hope that someone can show me my mistake. I hope then to experiment with the filter somemore

If anyone has websites that have tutorials for this filter Please add them to the post.

Here is my code if you need it. It should be the same as the tutorail

attachMovie("bg","bg",1);

attachMovie("ball","displace",2);

place objects on stage

channel 1 = 1;

Assign the value 1 (red) to the variable that represents the X component

canal2 = 2;

Assign the value 2 (green) to the variable that represents the component Y

x_mult = 40;

Definition of the variable representing the scale X 40

y_mult = 40;

Definition of the variable representing the scale Y to 40

mode = "clamp."

Definition of the variable representing the mode filter to "fix".

offset = new flash.geom.Point (0, 0);

set a new mark for the displacement map offset

BMP = new flash.display.BitmapData (bg._width, bg._height);

creating a new item of the same size BitmapData of the film.

displacement_map = new flash.filters.DisplacementMapFilter (bmp, offset, channel 1, canal2, x_mult, y_mult, mode);

Create the displacement map itself

BMP. Draw (Displace);

Draw the travel plan in the bitmap data

BG.filters = [displacement_map];

Apply the displacement filter to the grid object

move ._visible = false;

Affecting the invisible displacement map.

Oh, the filter of your move is bg size and moves its background pixels in bitmap of destination

transparent and set transparent bg of the bmp:

BMP = new flash.display.BitmapData (bg._width, bg._height, true, 0xff000000);

Tags: Adobe Animate

Similar Questions

  • Just learned something new today - can include a column complete zero in a UNION statement

    I just thought it was pretty cool.

    SELECT null, job_id, NULL as manager_id, AVG (salary) as AVGSAL

    Employees

    GROUP BY department_id, job_id

    UNION ALL

    SELECT NULL, null, null, avg (salary) as AVGSAL

    OF hr.employees

    GROUP BY job_id, manager_id;

    I watched this and me "... sounds weird, how are the corresponding data types up."

    then I tried to run some scripts of myself and it works great. I guess that since the "datatype" NULL is not who collide with other data types, it makes sense.

    Huh? Why wouldn't you be able to include a null full column in a set of query results?

    Why do you think that it does not work?

    SELECT null, job_id, NULL as manager_id, AVG (salary) as AVGSAL

    Employees

    GROUP BY department_id, job_id

    UNION ALL

    SELECT NULL, null, null, avg (salary) as AVGSAL

    OF hr.employees

    GROUP BY job_id, manager_id;

    I watched this and me "... sounds weird, how are the corresponding data types up."

    then I tried to run some scripts of myself and it works great. I guess that since the "datatype" NULL is not who collide with other data types, it makes sense.

    No - there is NO SUCH THING as a NULL data type. A null is NOT a type of data: it represents an UNKNOWN value and does NOT have a data type.

    Because NULL is not a dataype is NOT in conflict with ANY data type of a column to a different query.

    See the sections of Oracle doc on NULL values

    http://docs.Oracle.com/CD/B28359_01/server.111/b28286/sql_elements005.htm

    You can convert a NULL value to a data type specific well and then because you have a conflict of data type, you will get an exception:

    SELECT cast (null as varchar2 (10)), job_id, cast (NULL as number (10)) as manager_id,.

    AVG (salary) as AVGSAL FROM employees

    GROUP BY department_id, job_id

    UNION ALL

    SELECT cast (NULL as number (10)), null, cast (null as varchar2 (10)).

    AVG (salary) as hr.employees AVGSAL

    GROUP BY job_id, manager_id;

    ORA-01790: expression must have same type of data, matching expression

    This exception is due to the incompatibility of data type of explicit CASTs.

    See the CAST operator in the Oracle documentation

    http://docs.Oracle.com/CD/B28359_01/server.111/b28286/functions016.htm

    CASTConverts a type of built-in data or value typed collection to another type of built-in data or value-typed collection.

  • Favorite new feature or something new learned to EE11SF

    Since I won't be in EE11SF this year (sigh), I thought that the best thing would be to ask everyone what their favorite new feature or something new learned was to EE11SF. If you could be my eyes and ears and tell me what I missed, I'd be grateful. I'm looking for something like the following:

    • Favorite new feature announced (in general)
    • New favorite thing you learned specific on details
    • Favorite existing feature you learned new details on
    • The new directions it looks like the company/product is
    • Of new learning opportunities

    Since I can't be there, can you help me get an idea of what was new and cool (or even just improved)?

    Thank you very much

    Kurt Stoll

    It was my first EE if everything was amazing, but my larger dishes thought takeaway - "people do not want to be sold, they want to buy" and as a geek marketing and phone numbers, I need to use the numbers to get to the history, but history is always present not figures to affect change.

    More great product takeways - I want it to be December!  New social features coming to Eloqua in December & Eloqua will the cloud & going mobile - new features designed specifically for both

  • Help HP & Learn Center... links lead to "page not found" at HP. Never worked months owned printer.

    Link on the 'HP help and Learn Center' software is almost never going nowhere on the HP site.  This software was installed that I installed the driver on my new HP LaserJet M251mw.  I guess that most of the people have because the printer model is not old.  Also that the software installed, he writes a check that he check my version of the software is the latest version.

    Except for the links of the menu bar at the top they all end in an error page 'page not found '...

    http://h20000.www2.HP.com/service/site/404/Bsc404_en.html

    who said: "we are very sorry!  ... The requested page is not found. ... " We apologize for the inconvenience!"

    I looked at the browser history to see what the links are like before he spread.  Here is the part of the link to 'Print information Pages...

    http://h20000.www2.HP.com/BC/docs/support/SupportManual/ [...] [....]. PDF #nameddest = PrintInformationPa...

    I removed the part with "[...]" in which case it is printer personal identification information.  But as you can see it trying to access a specific PDF bookmark but is redirected to this URL to error.  It has been like that for the months that I have owned my printer.  I'm shocked that even if HP was a web maintenance that it still does not.

    I tried already support cat (I'm under warranty) but the person could not explain why the software did not work.  The tech just kept asking me my OS and if I wanted to install the driver or other software.  I told the tech...  Not as I said I have already installed the driver.  And that this software HP help and Learn Center was simply not working.  We went round and round on this point.  Very frustrating.

    This seems like a simple case of HP Web sites are broken and must be corrected.

    So, anyone can check the help links help & Learn Center are broken?

    Or does anyone have suggestions?

    Thank you.

    Hello uncore

    I'm sorry that you are having problems with help and Learning Center. Links should now work. Let me know if this isn't the case.

  • How to remove a password from a router have not used in like 4 years should be able to delete the password or reset it if I can put something new on it

    I have not used in like 4 years must either be able to clear the password or reset it if I can put something new on it. try to get the password required to connect to the web on a new device and can not remember the password I want to erase the password he please someone help me!

    Is what kind of router? Most routers have a reset on the back of them, you'll need something like a paper clip or pen to press the button. Basically you hold down the button for like 10 seconds, and all the lights start flashing, when this happens, you can stop it by pressing the button. When everything goes back to normal, we must reset factory default mind. The default ip address is usually 192.168.0.1 or 192.168.1.1, the username is usually admin and the password is password. Sometimes these are the admin admin, or admin without password, or no username and admin or password for the password. However it may be something completely different. If you have the make and model, I can tell you with certainty what it is :D

  • After the closure of 7.0.1, win7 64 bit and reopenning firefox, tabs on the toolbar are there but does not (something new).

    Something new today. I have seen on the taskbar tabs (each of them can present a few tabs) that appear on the task bar, but the open habit. In order to get something to open I have to set on the Firefox icon on the desktop. Then this session opens with several windows and tabs... but the other tabs remain unopennable. When you move them on the taskbar, they show the empty boxes, while others look ok.

    Try *http://kb.mozillazine.org/Corrupt_localstore.rdf

  • Help me learn Webcenter portal...

    Hi all

    I'm willing to learn webcenter portal. Please someone help me learn webcenter portal.

    Please give me all the articles proposed, links or materials.

    Thank you

    From my experience Yannick Ongenaarticles are the best to learn - Webcenter

    WebCenter 11g PS3 Tutorial: Introduction | Yannick Ongena WebCenter and Enterprise 2.0 Blog

  • I have CS5 drives that were installed on an old laptop which is dead. I would like to reinstall this product on a new computer. I installed the disks on my computer, but I can't activate the product. Can you help me get a new serial number?

    I have CS5 drives that were installed on an old laptop which is dead. I would like to reinstall this product on a new computer. I installed the disks on my computer, but I can't activate the product. Can you help me get a new serial number?

    As far as I know, Adobe won't give you a new serial number

    Mac or Windows and EXACTLY what version of the operating system?

    Recent Mac AND Windows operating systems have been known to cause problems "weird."

    Invalid License http://helpx.adobe.com/creative-suite/kb/error-serial-number-valid-product.html

    -http://helpx.adobe.com/creative-suite/kb/invalid-serial-number-cs4.html

    - and http://forums.adobe.com/thread/1038761

  • How can I get rid of him?  Have long subscription to Acrobat Pro DC, all of a sudden whenever I open a PDF from the Web, it opens in the player, which is useless; I don't want to learn a new system.  Previoius unilateral of the player installation, open a

    How can I get rid of him?  Have long subscription to Acrobat Pro DC, all of a sudden whenever I open a PDF from the Web, it opens in the player, which is useless; I don't want to learn a new system.  Previoius unilateral install drive, open a PDF file in Acrobat, and I treat here.  Thus, the reader is disturbing and needs to go. HOW?

    Here is a link that addresses disabling reader: display PDF in browser Adobe Acrobat DC, Acrobat Reader DC

    Let us know if it works for you.

    RonB

  • I have lightroom 5 and I'm trying to merge some pictures to make a panorama, I saw on the tutorial there is a function under the photos to merge into panorama. I do not see this option in my lightroom 5, it is something new in Lightroom 6?

    I have lightroom 5 and I'm trying to merge some pictures to make a panorama, I saw on the tutorial there is a function under the photos to merge into panorama. I do not see this option in my lightroom 5, it is something new in Lightroom 6? I don't have photoshop.

    Hi santanu_rudra,

    The Photomerge option is available in 6 of Lightroom, and not in Lightroom 5.

    Kind regards

    Tanuj

  • I need help to download the new LiveCycle Designer ES3 that comes with Acrobat Pro 11

    I need help to download the new LiveCycle Designer ES3 that comes with Acrobat Pro 11

    With Acrobat 11 us is no longer the LC Designer ES3 package with her. It is sold separately.

    Kind regards
    Rave

  • Acrobat 9 in CS5 vs. CS4: something new?

    I have Acrobat 9, which came with CS4 Design Premium. I just got the CS5 Master Collection, and it also comes with Acrobat 9. I've been juggling with the Adobe Updater (which sometimes makes things worse, but that's another story), so is there something new in version 9 of Acrobat, I just got? I don't see any point to an uninstall and installation to another, unless there is something I don't know.

    No, nothing new.

  • BlackBerry smartphones, I need help to download the new updated jour.03... something is weird...

    If some of you know how to do that, maybe u can you help me out?...

    I downloaded the jour.03 from the Crackberry site updated.   I saved it on my desktop.

    -J' open the downloaded file that has been saved on my desktop and click on 'Run' then chose my language...

    -then is asked me if I wanted to repair or remove BB device softwear and I hit the NEXT...

    -Then, I hit finish, but no office maneger mounted on its own so I opened it myself.

    -Phone was looking for updates and says no update is available for my phone. ???

    I've been messing around with this for seriously almost 4 hours to try to understand and I have to be brain dead or something, but I can't understand what I'm doing wrong...

    Help me if you know how please

    You mean the version.83.

    mjbesen310 wrote:

    -then is asked me if I wanted to repair or remove BB device softwear and I hit the NEXT...

    So, did you say to repair or remove?

    try to install new OS le.83.

    1. download the OS files to the PC then install on the PC by running (double click) the downloaded file.
    2. go in c:\program files Research in motion\apploader and delete the file named "vendor.xml."
    3. plug in the BB and double-click on "Loader.exe." It is located in the same place as the above vendor.xml file.

    The process takes about 45 minutes to an hour depending on the amount of data you need to back up and restore during the process. Once he did load the new OS, it will reboot (it may do it twice during the entire process.) You will see a white screen with a hourglass up to 20 minutes at a time while the DM says "waiting for initialization."
    If, for any reason, you end up with a white screen with small icons and the number 507, simply reconnect to the PC and run Loader.exe again and it should load the operating system on the device.

    Good luck.

  • Going to need help to get my new composition

    I use AE 13.7.   I'm very new to AE, and essentially I learned by doing, as opposed to the meeting through tutorials without end that does not give me answers my questions.

    So, here are my questions.

    1. when I open a new composition, I choose the height and width.  How can I know what they are supposed to be?   I guess I have to choose the dimensions based on the video I'm importing, but do not know how to find this information.

    2. once I imported a video file and hung out with success since the upper left corner in the main typing area in the center of the screen, I can either press the SPACEBAR to start my video or switch to the preview in the upper right quarter and press Play.  But once I get the video to play, he just moves along.  I noticed that as the blue indicator now inches along, it leaves a thin horizontal trace of green or dark blue line.  I have deduced that this has something to do with how much of the video is actually recognized somehow by AE, because if I try manually move the CTI beyond the blue or green line, breaks down the video.

    I guess that there must be a step or two that I'm missing here.  I think that the video, once imported into a new publication, would be immediately available in its entirety.  What I'm missing or doing wrong here?  Thanks for your help!

    1. when I open a new composition, I choose the height and width. How can I know what they are supposed to be?

    Depends entirely on your target output specifications and your workflow. Of course we'd take a HD for broadcast television, other presets for other stuff. This may be the same as the input source, but not necessarily. Still nothing prevents you to create arbitrary comp sizes when they are needed for example to the compositions nested when creating the project. It is not uncommon to create for example compositions of towel-long /-wide for all kinds of scroll, Parallax and effects just panorama regarding the effects of particle instance can a model of aspect square small pixel size to be used as custom particle shape. Beyond what I said in the first sentence as there may be a definitive answer in marble.

    2. once I imported a video file and successfully... [snip]

    Uh, well... You know, I would scream in your face if you stood in front of me. Sorry, there is no other way to say it, but that's all just a thing ' Why oh why don't people read the help? How preview of AE and caching system works is carefully explained here, including what those fancy color average.

    What I'm missing or doing wrong here?

    According to the above: do not read the help files is your greater negligence.

    Mylenium

  • Why every new page I do suddenly appear in a website has become a popup? It's something new and a major PITA!

    It was that, when I clicked on a link in a Web page, a new page opens. Now, since the last update, nothing happens... THEN I see at the top of the page that Firefox has blocked a "popup". But these aren't popups, they asked new pages! To see them, I now allow all popups on almost all sites, which totally destroyed the value of the trainer because it allows pop up windows!

    I appreciate your efforts to protect us, but in fixing things that were not broken, you broke them.

    So please tell me how I can substitute your hotfixes without having to deal with 'em, whenever I click on a link in a Web site!

    (You also made it almost impossible to use any program that requires Java, but that's a topic for another thread!)

    Normally, the Blocker allows the actions triggered by the user. Certainly if you click on a link, it should not be blocked, unless there is something very strange about the link (for example, it is not a normal link but runs a very unusual script).

    Is it possible that you have installed an extension that changes how popup works block - or who joined popups to links? You can review and configure, disable, or remove extensions here:

    Firefox orange (or the Tools menu) button > addons > Extensions category

    Typically, a link will appear above at least an extension disabled to restart Firefox. You can complete your work on the tab and click one of the links in the last step.

    Alternately, you could test mode without failure of Firefox. It is a standard diagnostic tool in order to avoid interference by extensions (and some custom settings). More info: questions to troubleshoot Firefox in Safe Mode.

    You can restart Firefox in Mode safe help

    Help > restart with disabled modules

    In the dialog box, click on 'Start mode safe' (not Reset)

    Any difference, anyway?

Maybe you are looking for

  • Unknown icon in the calendar

    I use the modular face for my Apple Watch, and looking at my calendar, sometimes I see a unusual icon next to calendar events that I can't find an explanation to. I think I know what he calls after a few tests, but I was looking for another opinion.

  • help with code

    I'm trying to get the code to run after that he completed the film at the end and display results on a map of contours. The problem is that I can't seem to end. It restarts the film after reaching 4000ms. can I change the last loop to loop for?

  • HP Photosmart Premium C310a: Applications with internet connectivity problems

    My printer has developed recently a problem with printing applications does not connect to the internet. The wi - fi connection is very strong, and the printer will always print things wireless laptops on the network. However, when I press to access

  • error install Vista sp1 installation file Windows6 0x8007000D. 0-KB936330 - X 86

    Hello I use a vista home basic windows which was preinstalled on my computer laptop compaq presario to THE V6608 that I bought in January 2008. Recently, I got my laptop to its factory settings. After that I tried to install the full windows vista sp

  • 1000 1401AU

    Hello experts, My portable 1000 1401AU Boot Manager screen shows no CD/DVD-ROM DRIVE. I followed the solution given in link http://support.HP.com/us-en/document/c03736054 Boot Manager still shows no rom dvd drive. Dave.