Author |
Topic  |
|
rmmarsh
Super User
    
USA
396 Posts |
Posted - 02 Mar 2008 : 16:10:36
|
I have multiple flash files I want to place on my website (they are tutorials on how to use my software). I would like the user to be able to choose which tutorial he wants to watch.
What's the best way to accomplish this? |
|
Edigital
Master
   
107 Posts |
Posted - 02 Mar 2008 : 17:05:23
|
Rmmarsh
I suggest to use a Master-page with container and grafical Menu
1. Create a Master Page 2. Create a Container 3. Build one page for each tutor-flash movie 4. Associate each page/tutor to Master-Container page 5. Back to Master page and Build Navigation Menu (Vertical if you have many tutorials)
(See this topic http://www.hexagora.com/forum/topic.asp?TOPIC_ID=1253 if you want an example) Regards..
|
Edited by - Edigital on 02 Mar 2008 20:51:29 |
 |
|
rmmarsh
Super User
    
USA
396 Posts |
Posted - 21 Mar 2008 : 19:29:17
|
One more question: is there a way I can populate an iFrame with the necessary information when a user clicks a button to play a flash file? If I have 6 flash files, I don't want to load all 6 of them; I only want to load and play when the user chooses a particular file by clicking on a button (kind of like a menu) |
 |
|
T00N
Super User
    
573 Posts |
Posted - 21 Mar 2008 : 20:08:09
|
You mean like:
When you hit button 'ABCD' then the source of the iframe is ABCD.
That would be usefull for me too. |
 |
|
rmmarsh
Super User
    
USA
396 Posts |
Posted - 22 Mar 2008 : 13:40:48
|
Toon: yep, that's exactly what I want... |
 |
|
s.dav
Site Admin
    
Italy
3364 Posts |
Posted - 22 Mar 2008 : 16:21:20
|
You can do it with a very simple code without using Javascript
1- give your IFRAME a name <iframe name="pippo" src="mypage.html"></iframe> 2- create link and set the "target" property to "pippo" if your IFrame has the name="pippo"; the link will be loaded into the Iframe
Very simple ;-)
|
Regards, Davide |
 |
|
T00N
Super User
    
573 Posts |
Posted - 23 Mar 2008 : 06:37:34
|
Nope that's not what we mean.
We want to be able to change the source of the iframe.
|
 |
|
s.dav
Site Admin
    
Italy
3364 Posts |
Posted - 23 Mar 2008 : 12:12:08
|
Ok very simple again:
1- give your Iframe an ID so you can find it on the page
ex: <iframe id="pippo" src="pluto.htm"></iframe>
2- use this simple script to change the src, put in into the "header" section of your page
<script language="javascript" type="text/javascript"> <!--
function changeIframeSrc(url) {
document.getElementById("pippo").document.location=url;
// also this should work but the previous is more compatible //document.getElementById("pippo").src=url;
}
//--> </script>
3- create an event, javacall and write "changeIframeSrc("http://www.google.com");"
|
Regards, Davide |
 |
|
rmmarsh
Super User
    
USA
396 Posts |
Posted - 24 Mar 2008 : 02:52:14
|
That looks like it might work... I'll give it a try and post my results... thanks |
 |
|
Tonivel
Practical
 
27 Posts |
Posted - 25 Mar 2008 : 13:58:27
|
Hi everybody,
I already tested... but, thus he only works:
1- give your Iframe an ID so you can find it on the page
ex: <iframe id="pippo" src="pluto.htm"></iframe>
2- use this simple script to change the src, put in into the "header" section of your page
<script language="javascript" type="text/javascript"> <!--
function changeIframeSrc(url) {
//document.getElementById("pippo").document.location=url; (not work)
document.getElementById("pippo").src=url;
}
//--> </script>
3- create an event, javacall and write "changeIframeSrc('http://www.google.com');"
Note: 'http://www.google.com' (With ' not ")
|
Regards, Tonivel |
 |
|
|
Topic  |
|