Skip to main content
Participant
May 26, 2006
Question

AS question: So simple - I'm embarrased

  • May 26, 2006
  • 3 replies
  • 196 views
I am really new to AS. I've created a navigational menu movie clip (looks like a ferris wheel with 12 "boxes" that rotate. Each "box is a button and each has an incidence name within that movie.
The flash consists of one frame with all action script within one Action Script layer.
The movie clip is called: "nav_mc"
One of the button's incidence name is "contact_btn"
The action script written as:

nav_mc.contact_btn.onRelease = function() {
getURL(" http://www.anyurl.com", "_self");
};

simplebutton_btn.onRelease = function() {
getURL (" http://www.anyurl.com", "_self");
};

...and it won't work when I publish it to http. The simple getURL button that exists on that frame does work. What am I doing wrong? what do I need to check?
This topic has been closed for replies.

3 replies

Participant
May 30, 2006
don't use // in the link.
Inspiring
May 26, 2006
>>...button's incidence name...
It's instance name.

You need to have a look at getURL in the Help. You don't put <a tags or
specify target within the URL. Your function should more resemble this:

nav_mc.contact_btn.onRelease = function() {
getURL("hppt://www.anywhere.com", "_blank");
}

Note I used 'hppt' so outlook wouldn't remove the quotes and make it a link.


--
Dave -
Adobe Community Expert
www.blurredistinction.com
www.macromedia.com/support/forums/team_macromedia/


Craig Grummitt
Inspiring
May 26, 2006
check your publish settings - local playback security should be 'access network only'