• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Call jquery function on objet

New Here ,
Sep 27, 2024 Sep 27, 2024

Copy link to clipboard

Copied

Hi everyone,

I am trying to apply an erase effect to a jpg file. I want the lower one to be visible as I erase the upper one from two separate layers. I made an example of this. But I had to "break apart" the jpg file. However, I saw at the address below that this can be done with JQuery to image files (PNG, JPG). I added JQuery to my project by following the Global>include steps from the actions panel. I made the image object on the layer that I want to apply the erase effect to a movie clip and set its instance name as "myImage". As in this JQuery explanation, I also wrote the following code to the first frame on a separate layer. "$('#myImage').eraser({});"
However, no matter what I did, I couldn't get the result. I can't apply the erase effect to the upper image. Can you help me run this code or add this effect to an image file with a different method?

 

JQuery: This page has an explanation and demo
https://www.jqueryscript.net/other/scratch-reveal-image-eraser.html

 

Below is the output of the project I made using Brake Apart. What I want to do is apply it to the image file (PNG, JPG).

Ekran Alıntısı.PNG

Views

66

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation