Hexagora Forum
Hexagora Forum
Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Dynamic HTML Editor
 Dynamic HTML Editor
 Multiple flash files; how to do?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

rmmarsh
Super User

USA
396 Posts

Posted - 02 Mar 2008 :  16:10:36  Show Profile  Visit rmmarsh's Homepage  Reply with Quote
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  Show Profile  Visit Edigital's Homepage  Reply with Quote
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
Go to Top of Page

rmmarsh
Super User

USA
396 Posts

Posted - 21 Mar 2008 :  19:29:17  Show Profile  Visit rmmarsh's Homepage  Reply with Quote
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)
Go to Top of Page

T00N
Super User

573 Posts

Posted - 21 Mar 2008 :  20:08:09  Show Profile  Visit T00N's Homepage  Reply with Quote
You mean like:

When you hit button 'ABCD' then the source of the iframe is ABCD.

That would be usefull for me too.
Go to Top of Page

rmmarsh
Super User

USA
396 Posts

Posted - 22 Mar 2008 :  13:40:48  Show Profile  Visit rmmarsh's Homepage  Reply with Quote
Toon: yep, that's exactly what I want...
Go to Top of Page

s.dav
Site Admin

Italy
3364 Posts

Posted - 22 Mar 2008 :  16:21:20  Show Profile  Visit s.dav's Homepage  Reply with Quote
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
Go to Top of Page

T00N
Super User

573 Posts

Posted - 23 Mar 2008 :  06:37:34  Show Profile  Visit T00N's Homepage  Reply with Quote
Nope that's not what we mean.

We want to be able to change the source of the iframe.

Go to Top of Page

s.dav
Site Admin

Italy
3364 Posts

Posted - 23 Mar 2008 :  12:12:08  Show Profile  Visit s.dav's Homepage  Reply with Quote
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
Go to Top of Page

rmmarsh
Super User

USA
396 Posts

Posted - 24 Mar 2008 :  02:52:14  Show Profile  Visit rmmarsh's Homepage  Reply with Quote
That looks like it might work... I'll give it a try and post my results... thanks
Go to Top of Page

Tonivel
Practical

27 Posts

Posted - 25 Mar 2008 :  13:58:27  Show Profile  Visit Tonivel's Homepage  Reply with Quote
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Hexagora Forum © s.dav Go To Top Of Page
Snitz Forums 2000