PDA

View Full Version : four simple questions...



kragster
May 21st, 2007, 04:50 PM
Hi,
I have been working on a simple family website for me and my girlfriend (not something I got a lot of time for) --> www.kraghkrogh.dk (http://www.kraghkrogh.dk), but I have run into a couple of problems that I can't seem to solve googling :*(

1. No matter what settings I use to publish the document, my flashsite is in the left upper corner. Any idea on how to change that? I wan't it to be centered in the top.

2. I have found this site that explains how to remove the active x control, by including a javascript in the html document. It semi works, but IE keeps saying "(1 item remaining) Opening page......". Any other way to do this properly?

3. On the "nyheder" page, I got a scrolling area consisting of a dynamic textfield and two buttons for scrolling. How can I format the text inside the dynamic textarea or is there a smarter way to do this? (i think the kirupa tutorial is to complex)

4. On the scrolling buttons, I have the following code:



on (release) {
scrollbar.scroll -= 4;
}


Is there anyway to make it scroll continuously while the button is pressed?

Help is appreciated!!

Regards
Kragh

graylensman
May 21st, 2007, 05:28 PM
1) If you've got Dreamweaver (or the smarts to hand code it!) open the HTML file that's generated by Flash when you publish it. Then create a CSS style for the div tag that centers the swf. I'll admit there may be a better/other way, but I don't know it.

2) Look into the SWF Object. I've never messed with it, but previous posts on the subject mention it.

3) use the TextFormat object.

4) onClipEvent(enterFrame){
//assuming scroll is a variable that includes a _y value
scrollbar.scroll-=4;
}

Syous
May 21st, 2007, 05:36 PM
1.


<center><body>
</body></center>



Basically put the center tag before and after the body tag, not inside of it like you would usually.

kragster
May 22nd, 2007, 09:37 AM
Thx guys, Ill have a look at it when I come home from job.

kragster
May 23rd, 2007, 04:24 PM
Hi,

1. Thx Syous, that worked perfectly!

2. Hmm, I'll live with the active x ;)

3-4. I managed to get the kirupa tutorial to work on my page, so I don't need to format inside the dynamix text.

I got another problem thou..I wan't to link some text to an URL, so I highlight the text and write the URL in the propertiespanel. Only problem is when I do it that way it links to www.kraghkrogh.dk/URL. How do I make it link to URL only?

Thanks in advance.