Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Supporting Technologies > HTML and JavaScript

Reply
 
Thread Tools Rate Thread Display Modes
Old 10-16-2004, 03:32 AM   #1
onejames
Registered User
 
Join Date: Oct 2004
Posts: 5
Default setting flash frame when entering new page

hi im a relative newb to scripting and was wondering if anyone new how to do this. i have a flash file that resides within multiple html files just sitting in the top table. Thing is i do not want the flash to replay after changing pages. Is there:
A. a way to set flash to open in a certain frame of the timeline upon entering a new html page.

B. Setting the html up to leave the top flash file static without using traditional frames.

Any help would be appreciated.

Jamie
onejames is offline   Reply With Quote
Old 10-16-2004, 12:55 PM   #2
Ruben
Me
 
Ruben's Avatar
 
Join Date: Jul 2002
Location: Netherlands, Europe
Posts: 3,510
Send a message via MSN to Ruben Send a message via Skype™ to Ruben
Default

HTML Code:
<script language="javascript">
  document.window.getElementById('íd_of_movie').setVariable('goHere',5);
</script>
the keep checking for the variable like this:
ActionScript Code:
if (_root.goHere != undefined){   gotoAndStop(_root.gohere); }

- Ruben
__________________
.
Originally Posted by MichaelxxOA
"He sounded like he knew which words he was going to use before he knew what he was going to say. I hate that shit."
Ruben is offline   Reply With Quote
Old 10-17-2004, 12:08 AM   #3
onejames
Registered User
 
Join Date: Oct 2004
Posts: 5
Default THanks much

Thankyou Ruben
onejames is offline   Reply With Quote
Old 10-17-2004, 01:06 AM   #4
Ruben
Me
 
Ruben's Avatar
 
Join Date: Jul 2002
Location: Netherlands, Europe
Posts: 3,510
Send a message via MSN to Ruben Send a message via Skype™ to Ruben
Default

Quote:
Originally Posted by onejames
Thankyou Ruben
No problem, tell me whether or not it worked out

- Ruben
__________________
.
Originally Posted by MichaelxxOA
"He sounded like he knew which words he was going to use before he knew what he was going to say. I hate that shit."
Ruben is offline   Reply With Quote
Old 10-22-2004, 03:12 AM   #5
onejames
Registered User
 
Join Date: Oct 2004
Posts: 5
Default

Well i played with it for awhile and couldn't get it. I figured what i am trying to do must simpler so ill explain more. I have a flash file as the navigation bar up top and i call new html pages on the bottom, so the flash refreshes everytime i click a link. Is there a easier way to keep the flash file static while still changing the relevant html below. ive read into using css for this so im gonna try some article searches about it and see what i can find out.

pardon the ignorance and thanks again.
J.
onejames is offline   Reply With Quote
Old 10-22-2004, 07:46 AM   #6
Ruben
Me
 
Ruben's Avatar
 
Join Date: Jul 2002
Location: Netherlands, Europe
Posts: 3,510
Send a message via MSN to Ruben Send a message via Skype™ to Ruben
Default

....erm, why don't you use inline-frames (<iframe>)?

- Ruben
__________________
.
Originally Posted by MichaelxxOA
"He sounded like he knew which words he was going to use before he knew what he was going to say. I hate that shit."
Ruben is offline   Reply With Quote
Old 10-27-2004, 02:24 AM   #7
onejames
Registered User
 
Join Date: Oct 2004
Posts: 5
Default

Thanks again Ruben the Iframes worked perfectly for that problem, but opened up a few more now with the Iframe you can jump into a portion of the sight with out the top menu (parent frame page) showing up. I've also read that this may cause problems with search engines. Is there a way to have the page check to see if main page with the iframe tags has loaded before loading the child page that was requested?
onejames is offline   Reply With Quote
Old 10-27-2004, 08:56 AM   #8
Ruben
Me
 
Ruben's Avatar
 
Join Date: Jul 2002
Location: Netherlands, Europe
Posts: 3,510
Send a message via MSN to Ruben Send a message via Skype™ to Ruben
Default

pfff....that'd be javascript, I'm not that much of a hero with that...

Maybe you could send some variables from the main-page (using onload) to the child-page....dunno

- Ruben
__________________
.
Originally Posted by MichaelxxOA
"He sounded like he knew which words he was going to use before he knew what he was going to say. I hate that shit."
Ruben is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:54 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.