I have a textbox with an external txt file with html. The thing that i want, is a link that will open a popup with a different width and height. I putted this code for the link
But flash loads the external file good, but the link is not working, its just restarting the flash player when I click on it. Maybe my code is not good… Is there a way to make a html link (pop-up with a diffenrent width and height) in a txt file so it can work with flash ?
thx
Note : Maybe its the ( ’ that are making it crash…?
onClick isn’t a feature supported by HTML formatted text in Flash. Replace the “#” in the HREF with the window.open() code and see how that works.
Also be sure to check this when the movie is embedded in a browser, window.open() is a javascript function interpreted by the browser and requires a browser to launch the window properly.
Pop-Up Problem: So you HTML encoded the text, but did you switch the HREF with the onClick and then remove the onClick since that is not a supported feature in HTML formatted text in Flash?
As for the special characters, try adding this to frame 1 of your movie.
[AS]System.useCodePage = true;[/AS]
This will instruct your browser to use it’s default codepage to interpret certain special characters. In your case it should work.
Well I am glad your special characters thing is working now =)
As for that pop-up, I just tried and for some reason I am getting an error about an unterminated string and I have no clue why… so what you may need to do is use add some javascript to the HTML file your .swf file is embedded into and then call upon that function in your A HREF tag… check this thread for an example…