Hello, I’ve got an issue with buttons in my flash navigation buttons being both dynamic and connecting with html via swfobject and staying in the down state once clicked. Everything thing I’ve tried only lets me do one of the above at the time, not both. Could someone please help me combine the AS or give me some tips on how to resolve my problem another way? Oh, by the way, I’m a total noob to AS, but I really want to resolve this issue!
AS for the button, “DynamicButton” mc will only work with this:
left_btn.addEventListener(MouseEvent.CLICK, btn_math);
function btn_math(event: MouseEvent) {
import flash.external.*;
var attriURL:String = "math.html"; //The URL of the page that you want loaded
var attriID:String = "rightcolumn"; //The ID of the div that you want it loaded in to
var jsFunc:String = "ajaxpage"; //The name of the function
ExternalInterface.call(jsFunc,attriURL,attriID) //I bet you can understand this part :)
//import flash.external.*;
// The name of a JavaScript function to call
//var callJasFunction:String = "callJavascript";
}
For the down state: edited version of “ButtonTypeOne” mc from onebyonedesign’s Complex Button design.
Any help is much appreciated! Thank you!