Cable Forum

Cable Forum (https://www.cableforum.uk/board/index.php)
-   Internet Discussion (https://www.cableforum.uk/board/forumdisplay.php?f=25)
-   -   Flash HTML Code Questions..... (https://www.cableforum.uk/board/showthread.php?t=44517)

JediMaster 15-03-2006 17:28

Flash HTML Code Questions.....
 
Hi.... I am new to Flash, but I created a small file & it tok ages lol. Now I preview it & I spot 1 HUGE error. The Page size is 550x400.

I have the HTML code & SWF file.. But the SWF has about 100 Pixel border in white NOT used. I reied to edit the Size in HTML code but it re-sizes the WHOLE SWF. Is there a way to CROP the SWF with HTML?

I have done this last year & lost the code..... :(

Code would HIDE Bottom 100pixel & left side 100 pixel...

Any tips?
Cheers

punky 15-03-2006 17:53

Re: Flash HTML Code Questions.....
 
You could try a putting the flash within a div and then clipping the div...

Something like...

Code:


<div style="clip:rect(auto auto 100px 100px);">

<!-- put flash code here -->

</div>


ikthius 15-03-2006 17:54

Re: Flash HTML Code Questions.....
 
some people might want to see the code of the html!

ik

JediMaster 15-03-2006 18:17

Re: Flash HTML Code Questions.....
 
Code:

<body bgcolor="#000000">
<!--url's used in the movie-->
<!--text used in the movie-->
<div style="clip:rect(auto auto 200px 100px);">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/s...ersion=7,0,0,0" width="550" height="400" id="s" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="s.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="s.swf" quality="high" bgcolor="#ffffff" width="550" height="400" name="s" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</div>
</body>

The DIV Tag did NOWT to the Page :(

Any ideas?

ikthius 15-03-2006 19:11

Re: Flash HTML Code Questions.....
 
what about changing this part of teh code in your first div tag?
"clip:rect(auto auto 200px 100px)

ik

punky 15-03-2006 19:16

Re: Flash HTML Code Questions.....
 
Quote:

Originally Posted by JediMaster
The DIV Tag did NOWT to the Page :(

Any ideas?

Sorry, try this:

Code:


<div style="position:absolute;clip:rect(0px, 450px, 300px, 0px);">


JediMaster 16-03-2006 10:55

Re: Flash HTML Code Questions.....
 
Quote:

Originally Posted by punky
Sorry, try this:

Code:


<div style="position:absolute;clip:rect(0px, 450px, 300px, 0px);">


Makes no difference either :(
I may have to re-do the SWF file... Thanks for trying to assist ;)


All times are GMT. The time now is 23:30.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum