PDA

View Full Version : help with "back button" - xml/asfunction + actionscript


seravlaoigres
08-05-2009, 06:22 PM
I am customizing a dynamic flash gallery (free template from monster templates - http://www.templatemonster.com/free-dynamic-flash-photo-galleries.html). So far everything works fine. except for one little detail:

I just needed to add in some pages a simple "back button" to go back to the previous page within the .swf file (not a browser back button function). It's actually a text link that says "BACK" not a real button.

It's only one .swf file with 5 main pages + sub-pages. Once the user enter in a sub-page I'd like to have the "back button" available in the bottom of this sub-page.

Sounds simple but I couldn't figure it out with my limited knowledge of xml and action script. :confused:

I was wondering if anyone could give me a hand setting up:

- An action script in the .fla file for this function.
- the corespondent asfunction for the .xml file.

<a href="asfunction:???????????????????">BACK</a>

Thanks a lot!