External textfile and pop-up

Hi,

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

<A HREF="#" onClick="window.open('lithomatic.html','_blank','toolbar=0, location=0, directories=0, status=0, scrollbars=0, resizable=0, copyhistory=0, menuBar=0, width=527, height=291');return(false)">LithoMatic</A>

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…?

Which code did you say you put? And did you see the tute about this on Kirupa.com?

  1. What Ilyas said :wink:

  2. 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.

I tried what u said,but it’s not working…

I have the code on ltest.zip in that flash file. It’s working great. And I need to make a pop-up that is linked in the txt file

http://www.kirupaforum.com/forums/showthread.php?s=&threadid=30003

And humm, is those txt file, some symbols are not working. I know that I need to replace them with the code showed in that page
http://www.macromedia.com/support/flash/ts/documents/url_encoding.htm

but é à è are not working…

thx for your time

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.

yay ok nice special characters are working fine,thx a lot
But that link…argh :m: its not working at all… maybe show me the code, if u found out… thx

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…

http://www.kirupaforum.com/forums/showthread.php?s=&threadid=10121