Copy link to clipboard
Copied
Hey there - I am looking for help.
I am new to Adobe Animate, but working on a project to create a Portfolio/Webpage.
I have created an HTML5 document, and have created a WORKING legend (with Code Snippets) that skips from one page to another.
On my Homepage (Frame 1) there are three images. I have added a code snipped to each so that they open a new web page (the same photo opens in a new window FROM MAILCHIMP, where I have housed the images.)
THESE IMAGES, AND BUTTON WORK NO PROBLEM!
My issue comes on FRAME 5. I have similarly set up multiple images and am trying, as I did in frame 1, to link them to their source file so they will open larger in a new window. I've used the SAME CODING AS ABOVE, but they will NOT OPEN when I test the file!!! I have the same issue with the BUTTON on the FIFTH FRAME!
I have been pulling my hair out for a week trying to figure out what my issue is, and I would SO GREATLY APPRECIATE ANY GUIDANCE!!!
HERE IS THE CODING (and screenshot) I HAVE USED FOR FRAME 1 - EVERYTHING WORKS NO PROBLEM!!:
this.HOME.addEventListener("click", fl_ClickToGoToAndStopAtFrame_27.bind(this));
function fl_ClickToGoToAndStopAtFrame_27()
{
this.gotoAndStop(1);
}
this.PORTFOLIO.addEventListener("click", fl_ClickToGoToAndStopAtFrame_28.bind(this));
function fl_ClickToGoToAndStopAtFrame_28()
{
this.gotoAndStop(5);
}
this.STORE.addEventListener("click", fl_ClickToGoToAndStopAtFrame_29.bind(this));
function fl_ClickToGoToAndStopAtFrame_29()
{
this.gotoAndStop(10);
}
this.CONTACT.addEventListener("click", fl_ClickToGoToAndStopAtFrame_30.bind(this));
function fl_ClickToGoToAndStopAtFrame_30()
{
this.gotoAndStop(15);
}
this.PERSONALIZE.addEventListener("click", fl_ClickToGoToAndStopAtFrame_31.bind(this));
function fl_ClickToGoToAndStopAtFrame_31()
{
this.gotoAndStop(20);
}
this.button_1.addEventListener("click", fl_ClickToGoToWebPage_2);
function fl_ClickToGoToWebPage_2() {
window.open("https://www.instagram.com/cole.illustration/", "_blank");
}
this.MAILINGLIST.addEventListener("click", fl_ClickToGoToWebPage_10);
function fl_ClickToGoToWebPage_10() {
window.open("https://mailchi.mp/e8cac7e81bc9/u0qfsfrans", "_blank");
}
this.DREAM.addEventListener("click", fl_ClickToGoToWebPage_25);
function fl_ClickToGoToWebPage_25() {
window.open("https://gallery.mailchimp.com/88199473229b60d9e90951af6/images/34bd355b-126b-4e81-87fa-fe2efd7f7ad9....", "_blank");
}
this.CAKE.addEventListener("click", fl_ClickToGoToWebPage_26);
function fl_ClickToGoToWebPage_26() {
window.open("https://gallery.mailchimp.com/88199473229b60d9e90951af6/images/c46a3d5f-4e8b-4db9-afda-224b10f5403c....", "_blank");
}
this.WORKING.addEventListener("click", fl_ClickToGoToWebPage_28);
function fl_ClickToGoToWebPage_28() {
window.open("https://gallery.mailchimp.com/88199473229b60d9e90951af6/images/49df4cba-3829-475b-b1eb-eda2b48145a6....", "_blank");
}
HERE IS THE CODING (and screenshot) I HAVE USED FOR FRAME 5 - WHEN I TEST THE FILE, EVERYTHING APPEARS, BUT (aside from everything ABOVE THE LINE) DOES NOT PLAY!
this.SUNDAYMORNING.addEventListener("click", fl_ClickToGoToWebPage_36);
function fl_ClickToGoToWebPage_36() {
window.open("https://www.dropbox.com/s/zldzz4gr0wk82vp/sundaymorning.png?dl=0", "_blank");
}
this.LIPSTICK.addEventListener("click", fl_ClickToGoToWebPage_37);
function fl_ClickToGoToWebPage_37() {
window.open("https://www.dropbox.com/s/xn59ygszz1wagvv/lipstick.png?dl=0", "_blank");
}
this.GORD.addEventListener("click", fl_ClickToGoToWebPage_38);
function fl_ClickToGoToWebPage_38() {
window.open("https://www.dropbox.com/s/2rrnr8cqnfqepc7/gord.png?dl=0", "_blank");
}
this.NASHVILLE.addEventListener("click", fl_ClickToGoToWebPage_39);
function fl_ClickToGoToWebPage_39() {
window.open("https://www.dropbox.com/s/f0jhjm3gczia67l/nashville.png?dl=0", "_blank");
}
this.BEDROOM.addEventListener("click", fl_ClickToGoToWebPage_40);
function fl_ClickToGoToWebPage_40() {
window.open("https://www.dropbox.com/s/ygq1wkrm0s5xt3w/bedroom.jpg?dl=0", "_blank");
}
this.ABBEY.addEventListener("click", fl_ClickToGoToWebPage_41);
function fl_ClickToGoToWebPage_41() {
window.open("https://www.dropbox.com/s/bfssgesqpzua9xu/wallart.png?dl=0", "_blank");
}
CHRISTMAS.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage); function fl_ClickToGoToWebPage(event:MouseEvent):void { navigateToURL(new URLRequest("https://www.dropbox.com/s/933jjd5ldccuoq9/christmas.png?dl=0"), "_blank"); }
Open your browser's developer tools (F12). Select the the Console tab. Run through the page and see if any error messages appear.
If that doesn't come up with anything, then in the code near where you assign your frame 5 event listeners, put:
alert(this.SUNDAYMORNING);
If it pops up "undefined", then you're trying to assign a listener to an object that doesn't exist.
Also, stop screaming things in ALL CAPS. It is annoying. It does not make people more inclined to help you. If anything it has the opp
...Copy link to clipboard
Copied
upload to a file server and test.
or open your browser's developers console to check the error.
Copy link to clipboard
Copied
Open your browser's developer tools (F12). Select the the Console tab. Run through the page and see if any error messages appear.
If that doesn't come up with anything, then in the code near where you assign your frame 5 event listeners, put:
alert(this.SUNDAYMORNING);
If it pops up "undefined", then you're trying to assign a listener to an object that doesn't exist.
Also, stop screaming things in ALL CAPS. It is annoying. It does not make people more inclined to help you. If anything it has the opposite effect.
Copy link to clipboard
Copied
Thank you for your response and suggestion - I appreciate it greatly!
Apologies for the misunderstanding, but was not intending to scream! You'll notice my coding also includes uppercase letters, as it's a personal organizational tactic. I also find that generally people do not read everything and so I try to emphasis the key points that people may look for when scanning through a message!
Appreciate your help!
Find more inspiration, events, and resources on the new Adobe Community
Explore Now