@ questions from a beginner

Hello there:mu:

Í have 2 questions this time. First of all how can i change the title from a swf movie in html coding it’s just < title>frametitle< / title>
but jhow can i change that in a .swf movie. Now i just see the url and i hate that actually :scream:

My second question is i wan’t to make an auto pop-up that opens automatically after 1 sec. and closes after let’s say 8 or 9 seconds. I have a code for that on html but i can’t change the body of that code. So does someone knows how to open one after starting my home.swf file for the first time? i’m so thankfull for the one who can help me.
:cool: :crazy: :cyclops: :trout: :p: :block: :blush: :rap: :?) :rap: :crazy: :flower:
Jos Koomen, the Netherlands
DE-STOK.COM

i don’t know about the second question, but i think for the first, as a sole .swf movie, you can’t change the title- it essentially works as a file in a web browser, which by default displays the url. to give it a title, just write it into an html code. if you want it to stretch it to fill the browser size, then do something like this:

<html><head>
<title>Your Title</title>
</head>
<body topmargin=“0” leftmargin=“0”>
<table border=“0” cellspacing=“0” width=“100%” height=“100%”>
<tr><td width=“100%” height=“100%”>
<object>code for .swf file here (set the width and height of the .swf to 100% as well)</object>
</td></tr></table>
</body></html>

but if that’s not what you wanted, then uh… i got nothing.

I think you shold embed your .swf in a html file as well.

For the PopUp you could do something like this:

In your main html put in the following in your body tag:

<body onLoad='Java-Script:setTimeout("popUpWindow()", 1000);'>

This calls the JavaScript function popUpWindow() 1 second - 1000 ms - after the page has finished loading.
Note: Remember to remove the - from JavaScript - for some reason I’m not allowed to post it without the -

Put the following somewhere else on the page (the header or in the body, it doesn’t matter):


<Script Languange="JavaScript">
<!--

function popUpWindow() {
  window.open('another.html','PopUp', 'scrollbars=yes,width=500,height=400');
}

// -->
</script>

The function is pretty self explaining - it opens a new window with the file another.html.

In the body tag of the file to be opend (another.html in this case) put in the following line:

<body onLoad='Java-Script:setTimeout("self.close()", 8000);'>

It’s the same as the part we put in the other body section. This one closes the window after 8 seconds.

Hope it helps :slight_smile:

no sorry that will give an error. but thanx anyway. i will find another way :azn:

popup window??

write a JS function in ure HTML and call it from
Flash. ie. getURL > “javascript:popup()”