Hi again RW, I am once again just a step away from finishing my project and reached a dead end.
Quickly, to clarify I am using AS2 and MX Pro 2004
In my main frame I have MovieClip1 which contains 2 dynamic text fields and another button or movieclip ...(need your choosing which is best here) I have tried both. I have checked the values of my variables from my aspx page and they are fine
Below is the code for the action of "MovieClip1": (my main mc)
onClipEvent(load)
{
var myLoadVars:LoadVars = new LoadVars;
loadMovie("
http://localhost/dpob/flash/FlashPhoto_A.jpg",mc_button1) //used for another peice of the puzzle
myLoadVars.load("
http://localhost/dpob/flash/flash.aspx?fid=1");
myLoadVars.onLoad = function(success:Boolean){
if(success){
VarStrTitle.htmlText = this.VarStrTitle;
VarStrSubTitle.htmlText = this.VarStrSubTitle;
VarLink.htmlText = this.VarLink;
}
}
}
Now, for that button (or MovieClip) that I mention above I need to have the value of the variable named "VarLink" to be used as the URL that I send to a new browser window when the button is clicked. I have primarily tried using the folling in the action of the button:
on (release) {
Geturl(_parent.VarLink,"_blank")
}
I have also tried a bunch of othercombinations using _root,_global,_level0, etc...nothing works. If I hard code a URL in place of the var I am calling it work perfectly, just cant get that damn value.
This seems so damn easy yet I have speant a week going througha 1000 different sets of code and cannot get this to work. Currently I get "undefined" as my URL. In a previous set of code I used LoadVariables instead of LoadVars and got the link to work but experienced issue with it adding a bunch of other code. regardless I seem to understand that LoadVars is the way to go.
In the following example you will see what I am doing visually. "PAGE ONE" of this example shows what I want. The large image and two lines of text are coming back from the aspx and DB. Hell I even already have the exact URL that I need being passed to one of the dyanmic text areas where it says "Downtown Dining promotions Will..... click here" (that "click here" takes you to the proper URL.
I am at my whits end here. Any help and example of code would be greatly appreciated!
Thanks,
j