Skip to main content
Participant
March 13, 2008
Answered

newbie, need help with ActionScript 3.0

  • March 13, 2008
  • 1 reply
  • 303 views
Hi All,
I am a newbie to flash and have limited experience with OOP (and thus action script), so I apologize up front for my lack of knowledge. I think it is pretty easy to fix, just don't know the syntax or if there is a better way to do this. Here is my problem:

I have created a flash file which has a map (as a base image layer) with 4 quadrants, I have created separate layer (converted to a button) that matches the boundary of 1 of the 4 quadrants and added some simple script I copied and modified from an Adobe tutorial (see attached syntax). Instead of a new webpage popping up and the output text "I'm Clicked" I want a new window to appear with the individual quadrant map (which is a separate image, ,jpg).

I just don't know what the syntax is to call that new image up once you mouse over the individual quadrant.

Thanks
This topic has been closed for replies.
Correct answer robdillon
Try this code. It should simplify what you want to do. Just substitute the actual names of the new html documents that you want to open.

1 reply

robdillon
robdillonCorrect answer
Participating Frequently
March 13, 2008
Try this code. It should simplify what you want to do. Just substitute the actual names of the new html documents that you want to open.
wrightcbwAuthor
Participant
March 13, 2008
Hi Rob,
Thanks for the reply. I guess I wasn't clear in that I don't want button to go to a URL, but rather a specific jpeg (smaller scale map) on my hard-drive that correlates with the assoicated index map.Can I just change the URL to the jpeg name and folder location?

Thanks so much, I'll try to implement your code and see if I can me the necessary tweaks.

Hope to hear back from you!
-Chris
robdillon
Participating Frequently
March 14, 2008
What do you want to do with this jpeg? I thought that you wanted to open a new html doc. How do you want to show this jpeg?