I took what CrackerJack said and started working on the template.
Here’s where i ask for help about a new script I made.
http://pastie.org/1340060
When I try to run the script from the main class, it throws an error like:
“A super statement can be used only inside class instance contructors”.
I’m trying to make a variable available to 4 different OTHER classes, and I’m using dispatchEvent to fire the function in order to get the value… supposedly. But that’s not working for some reason. Because before I can test it, the error shouts… NOOOO !! YOU CAN ’T DO THAT !!
http://urprogressions.com/awshucks/envisiontemplate/index.html
As you can see from the link above, the footer and mp3 player change their Y positions upon clicking a menu item. But when opening the “Image Gallery”, “Video Gallery”, and “Portfolio” pages, actually AFTER opening them, the footer stays in its last position even though the content changes when interacting with it.
Might someone be able to tell me what I’m doing wrong with that class I posted on Pastie.org? Why is it throwing that error? Honestly, I don’t understand super statements very well. Its my first time using one.
4243 posts
- Has been a member for 3-4 years
- Contributed a Blog Post
- Attended a Community Meetup
- Item was Featured
- Author was Featured
- Exclusive Author
- Sold between 10 000 and 50 000 dollars
- Bought between 10 and 49 items
Aw_Shucks
says
4243 posts
- Has been a member for 3-4 years
- Contributed a Blog Post
- Attended a Community Meetup
- Item was Featured
- Author was Featured
- Exclusive Author
- Sold between 10 000 and 50 000 dollars
- Bought between 10 and 49 items
4209 posts
- Has been a member for 3-4 years
- Contributed a Tutorial to a Tuts+ Site
- Contributed a Blog Post
- Community Superstar
- Author had a Free File of the Month
- Item was Featured
- Author was Featured
- Exclusive Author
- Sold between 50 000 and 100 000 dollars
- Bought between 100 and 499 items
- United States
- Referred between 50 and 99 users
CodingJack
says
Yo Joe, It’s because you have a semi-colon in the class constructor before the brackets begin 
4243 posts
- Has been a member for 3-4 years
- Contributed a Blog Post
- Attended a Community Meetup
- Item was Featured
- Author was Featured
- Exclusive Author
- Sold between 10 000 and 50 000 dollars
- Bought between 10 and 49 items
Aw_Shucks
says
Oh, you mean I didn’t have to delete it and do something else? Hmm, oh well. I couldn’t wait, so I went ahead and changed it. But thanks, that’s very helpful. I usually don’t make that mistake. 
1448 posts
- Has been a member for 3-4 years
- Won a Competition
- Repeatedly Helped protect Envato Marketplaces against copyright violations
- Contributed a Tutorial to a Tuts+ Site
- Community Superstar
- Item was Featured
- Author was Featured
- Beta Tester
- Exclusive Author
- Sold between 5 000 and 10 000 dollars
- Bought between 10 and 49 items
- United States
- Referred between 1 and 9 users
4243 posts
- Has been a member for 3-4 years
- Contributed a Blog Post
- Attended a Community Meetup
- Item was Featured
- Author was Featured
- Exclusive Author
- Sold between 10 000 and 50 000 dollars
- Bought between 10 and 49 items
Aw_Shucks
says
Yeah, I went back and ended up using the code anyway. I had to change it up a bit, but it works.

I’m about to finish the 3rd part of my 1st tutorial on 