Some Useful Links, Scripts, and Web Design Resources
Loading external HTML in Flash movie
myData = new LoadVars();
myData.onLoad = function() {
stage_txt.html = true;
stage_txt.htmlText = this.myVariable;
};
myData.load("mytext.txt");
And that is it. You will need to test which HTML tags work, and how it does the formatting. But it does allow the HTML to be external and that is a good thing for maintainability. (source)
Create a button that animates in forward on mouse over and on reverse on mouse out:
- Create a movie symbol
- Double click the symbol
- Create a little animation (motion or shape)
- Create a new layer on top (name it "actions")
- Add keyframes in the first and last frames of the "actions" layer
- Add this action script to the first frame:
stop();
this.onEnterFrame = function(){
if(rewind == true){
prevFrame();
}
}
this.onRollOver = function(){
rewind = false;
play();
}
this.onRollOut = function(){
rewind = true;
}
this.onRelease = function(){
getURL("page.html");
}
- Change the "getURL" target to your own page
- Add a "stop" action to the last frame of this movie
- Go back to your scene and test the button you were just editing
|