Hello,
I have a menu in swf which is composed of four part.
Each part called an html file.
The problem is that in one html file I have internal links and I can't use them when this html file is inserted in the animation.
Does anybody ever try to do something like that?
Does anybody know an actionscript 2 code?
Thank you very much.
Jessica.
Management of links html in a swf...you have a swf menu that's loading html pages??if so, show a typical line of code that does that.
Management of links html in a swf...OK. It is the code of the animation of the menu which calls my html file.
stop();
myData = new LoadVars();
myData.onLoad = addItems;
//URL du fichier html 鑴?loader
if (_parent.page==4){myData.load(''aux_menu.html'');}
function addItems() {
?
// propri鑼卼鑼卻 du champ texte dynamique.
contenu_text.multiline?= true;
contenu_text.wordWrap?= true;
contenu_text.type = ''dynamic'';
//contenu_text.background?= true;
//contenu_text.backgroundColor = ''0xFFFFFF'';
contenu_text.border = false;
contenu_text.html = true;
// content_text.charset = UTF-8;
//%26lt;meta http-equiv=''Content-Type'' content=''text/html; charset=UTF-8''/%26gt;
contenu_text.htmlText = myData.contenu_text;
ScrollBar.setScrollTarget(contenu_text);
//Mise en forme du texte
textFormat?= new TextFormat();
textFormat.color?= ''0x000000'';
textFormat.bullet?= false;
textFormat.underline = false;
textFormat.bullet = false;
textFormat.size = 11;
textFormat.font = ''arial'';
//contenu_text.setTextFormat(textFormat);
}
is aux_menu.html a regular html page??if so, what's myData.contenu_text after loading is complete?
I don't know exactly what is myData.contenu_text.
In fact, I am not the creator of this file.
I just have to enhance it and to complete it.
So it is a bit difficult for me. Sorry...
So my html file is a regular html page which contains internal links.
To be more concrete, it's a glossary, and when you click on the letter Y, it's linked to the list of word beginning by Y.
post a link to the zipped fla and html files.
Hello,
In fact I have ask for myData.contenu_text.
It is the variable which contains the html files. And all html files begin by:
%26amp;contenu_text=
%26lt;b%26gt;MENU%26lt;/b%26gt;
Does it help you?
PS: It's not that it is confidential but it's not allowed for me to share this file. It is for my job.
yes, that helps.
1.?you're not loading an html file.?you're loading a text file that has an html extension.?adding an html extension to your text files doesn't make it an html file.
2.?show one of your files with links that fail.
Hello,
yes you're right it's a text file.
So I have given you an example in attached file.
It's this file which appears when I press on the button of my menu.
So I can read it, but the problem is that when I press on a link, it refresh all my project from the beginning.
Oh a detail maybe but I haven't notice that before. This menu is inserted in a Captivate project. Do you know Captivate?
So in captivate it is possible to insert swf file. My menu is inserted in the project and when I click on a link, in refresh all my captivate project.
Am I understood?
Thank you very much for your help.
Jessica.
do you have those anchors defined on the embedding html page??if you did, they would work.
What do you heard by ''embedding html page''?
Is this in the swf file that I have to insert a code to define my anchors??
Or in my html file which is called by the swf file?
Or in the html file which is generated by Captivate?
you need anchors in the html file that embeds your swf.?ie, there's a html file that you use in your browser's url and that embeds/displays your swf.?that's the html file that needs those anchors.
p.s.?you'll need to test in a browser.?you can't test those links in the flash test environment.
Ok I unsderstand what you mean. But in fact I think it is more complicated.
I have send you an example of HTML file that is generated by Captivate. So this HTML file embeds my swf. This swf embeds itself my menu in swf, in which I have inserted an html file containing internal anchors: it's like Russian dolls .
So in fact I don't understand how i can insert anchors in this html file although the links must be in another html file which is displayed in a swf file.
swf's don't embed other swfs.?you're probably loading a swf (that contains links) in a main (embedded) swf.
that adds no additional complexity.?add the anchors to the _level0 (main) embedding html.
OK I will try to do that.
Thank you very much for your help.
you're welcome.
No comments:
Post a Comment