-
1. Re: Management of links html in a swf animation
kglad Jul 8, 2009 7:33 AM (in response to e-jess)you have a swf menu that's loading html pages? if so, show a typical line of code that does that.
-
2. Re: Management of links html in a swf animation
e-jess Jul 8, 2009 8:08 AM (in response to kglad)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étés 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;
//<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
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);
} -
3. Re: Management of links html in a swf animation
kglad Jul 8, 2009 8:48 AM (in response to e-jess)is aux_menu.html a regular html page? if so, what's myData.contenu_text after loading is complete?
-
4. Re: Management of links html in a swf animation
e-jess Jul 8, 2009 9:13 AM (in response to kglad)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.
-
5. Re: Management of links html in a swf animation
kglad Jul 8, 2009 10:04 AM (in response to e-jess)post a link to the zipped fla and html files.
-
6. Re: Management of links html in a swf animation
e-jess Jul 9, 2009 12:40 AM (in response to kglad)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:
&contenu_text=
<b>MENU</b>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.
-
7. Re: Management of links html in a swf animation
kglad Jul 9, 2009 7:41 AM (in response to e-jess)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.
-
8. Re: Management of links html in a swf animation
e-jess Jul 10, 2009 12:44 AM (in response to kglad)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.
-
aux_menu.html 874 bytes
-
-
9. Re: Management of links html in a swf animation
kglad Jul 10, 2009 6:44 AM (in response to e-jess)do you have those anchors defined on the embedding html page? if you did, they would work.
-
10. Re: Management of links html in a swf animation
e-jess Jul 10, 2009 8:54 AM (in response to kglad)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?
-
11. Re: Management of links html in a swf animation
kglad Jul 10, 2009 9:28 AM (in response to e-jess)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.
-
12. Re: Management of links html in a swf animation
e-jess Jul 15, 2009 8:45 AM (in response to kglad)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.
-
project_name.htm 1.7 K
-
-
13. Re: Management of links html in a swf animation
kglad Jul 15, 2009 8:57 AM (in response to e-jess)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.
-
14. Re: Management of links html in a swf animation
e-jess Jul 16, 2009 8:12 AM (in response to kglad)OK I will try to do that.
Thank you very much for your help.
-
15. Re: Management of links html in a swf animation
kglad Jul 16, 2009 8:18 AM (in response to e-jess)you're welcome.