Class ID?

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Class ID?
Recoil
CZ Addict
Recoil has been a member for over 20 year's 20 Year Member
usa.gif louisiana.gif
Occupation: Manager
Gender: Male
Fav. Sports Team: New Orleans
Website:
Status: Offline
Joined: Jan 17, 2004
0.06 posts per day
Posts: 427
Points: 8,650
   ICQ Number
How can I find the class ID for a flash movie that I want to use in a block? Thanks in advance!



Back to top Reply with quote
#2   re: Class ID?
GoddsEgo
PayPal Donation
CZ Moderator
Status: Offline
Joined: Jun 26, 2003
0.16 posts per day
Posts: 1211
Points: 69,166
 Yahoo Messenger  
I believe the Id you are looking for is an attribute to the object tags used to embed a flash on a web page


classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"



We get that from here


<OBJECT
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
WIDTH=337
HEIGHT=159>
<PARAM NAME=movie VALUE="themes/MStudio/hd/logo.swf">
<PARAM NAME=wmode VALUE=transparent>
<PARAM NAME=menu VALUE=false>
<PARAM NAME=quality VALUE=best>
<PARAM NAME=bgcolor VALUE=#000000>
<EMBED
src="themes/MStudio/hd/logo.swf"
menu=false
quality=best
bgcolor=#000000
WIDTH=337
HEIGHT=159
TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
</EMBED>
</OBJECT>



Back to top Reply with quote
#3   re: Class ID?
Recoil
CZ Addict
Recoil has been a member for over 20 year's 20 Year Member
usa.gif louisiana.gif
Occupation: Manager
Gender: Male
Fav. Sports Team: New Orleans
Website:
Status: Offline
Joined: Jan 17, 2004
0.06 posts per day
Posts: 427
Points: 8,650
   ICQ Number
I found a flash clock that i want to use in a block. i don't even know where to start to make my own block. can u point me in the right direction?



Back to top Reply with quote
#4   re: Class ID?
GoddsEgo
PayPal Donation
CZ Moderator
Status: Offline
Joined: Jun 26, 2003
0.16 posts per day
Posts: 1211
Points: 69,166
 Yahoo Messenger  
Here's a thought seeing I know absoluting nothing about php but if I was going to try it I would go to D/L section and download a nuke clock and follow the instruction of installing it. And instead of upload the clock that came with d/l I would rename the one I have to and upload that.



Back to top Reply with quote
#5   re: Class ID?
Kelly_Hero
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
usa.gif southcarolina.gif
Occupation: Web Developer
Age: 59
Gender: Female
Website:
Status: Offline
Joined: Aug 20, 2003
0.49 posts per day
Posts: 3765
Points: 351,412
   
I don't know if this will help or not, but here's a block creator.

[ Register or login to view links on this board.]



Back to top Reply with quote
#6   re: Class ID?
Recoil
CZ Addict
Recoil has been a member for over 20 year's 20 Year Member
usa.gif louisiana.gif
Occupation: Manager
Gender: Male
Fav. Sports Team: New Orleans
Website:
Status: Offline
Joined: Jan 17, 2004
0.06 posts per day
Posts: 427
Points: 8,650
   ICQ Number
thanks Kelly and GE for the replies tho, i think i'm still lost lol.

GE, I tried the method u suggested b4 I made this post but, no luck. I tried it a second time(after reading ur reply and found that i missed a "file name change" in the code and it worked! woot!

Kelly, i don't know what I'm supposed to do with the block creator. Do I just type in the code or do i need to concern myself with the structure?

This is a block made by Telli:
<?php
#### block-CZclock Generated by Telli (www.codezwiz.com) ###
if (eregi("block-CZclockblu.php",$PHP_SELF)) {
    Header("Location: index.php");
    die();
}
$content  =  "<center><OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/";
$content  .= "cabs/flash/swflash.cab#version=5,0,0,0\" width=\"150\" height=\"152\">";
$content  .= "<PARAM NAME=\"movie\" VALUE=\"images/CZclocksciblu.swf\">";
$content  .= "<PARAM NAME=\"quality\" VALUE=\"high\">";
$content  .= "<PARAM NAME=\"menu\" VALUE=\"true\">";
$content  .= "<PARAM NAME=\"bgcolor\" VALUE=\"#000000\">";
$content  .= "<EMBED src=\"images/CZclocksciblu.swf\" quality=\"high\" menu=\"true\" pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?";
$content  .= "P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\"";
$content  .= "width=\"150\" height=\"152\">";
$content  .= "</EMBED>";
$content  .= "</OBJECT></center>";


i know that when i create a new block it has to start with:
<?php
#### block-credits ###
if (eregi("block-filename.php",$varible)) {
    Header("Location: index.php");
    die();
}


I "think" that these lines are what is being called by the block and the attributes for the clock to run in:
$content  =  "<center><OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/";
$content  .= "cabs/flash/swflash.cab#version=5,0,0,0\" width=\"150\" height=\"152\">";
$content  .= "<PARAM NAME=\"movie\" VALUE=\"images/CZclocksciblu.swf\">";
$content  .= "<PARAM NAME=\"quality\" VALUE=\"high\">";
$content  .= "<PARAM NAME=\"menu\" VALUE=\"true\">";
$content  .= "<PARAM NAME=\"bgcolor\" VALUE=\"#000000\">";
$content  .= "<EMBED src=\"images/CZclocksciblu.swf\" quality=\"high\" menu=\"true\" pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?";
$content  .= "P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\"";
$content  .= "width=\"150\" height=\"152\">";


I also "think" that the classid is just saying that that # is the classid for a flash movie. IS THIS TRUE? or does it change for each movie that u want to use?

Also, where it says "cabs/flash/swflash.cab#version=5,0,0,0\"... is this just saying that the image was made with flash mx or 5 and why cabs; is this refering to a cab file on the machine on which the image was designed?

Then the closing tags but no need to post them.

Thanks for any help offered.


Back to top Reply with quote
#7   re: Class ID?
Kelly_Hero
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
usa.gif southcarolina.gif
Occupation: Web Developer
Age: 59
Gender: Female
Website:
Status: Offline
Joined: Aug 20, 2003
0.49 posts per day
Posts: 3765
Points: 351,412
   
Well, you're ahead of me in knowing what to do....lol I was thinking it would just be a matter of putting your Flash code inside the block creator box and hitting the button. Of course, I could possibly have no clue what I'm talking aobut either. icon_rolleyes.gif

Guess Telli will have to pick this one up from here.

As far as the clsid, I think it's the same for every movie. The reason I say this is because I've often used the same codes over and over just changing the filenames of the flash movie (and the widths/heights, etc.) and never noticed anything different. I'll check out some of the different codes where red's published flash movies to verify this and post back if it's not true.



Back to top Reply with quote
#8   re: Class ID?
Kelly_Hero
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
usa.gif southcarolina.gif
Occupation: Web Developer
Age: 59
Gender: Female
Website:
Status: Offline
Joined: Aug 20, 2003
0.49 posts per day
Posts: 3765
Points: 351,412
   
OK, I couldn't stand being so close and not knowing so I tested it.

I pasted my straight HTML code for a Flash movie into the Block creator:

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0"
ID=meters WIDTH=154 HEIGHT=103>
<PARAM NAME=movie VALUE="pmeter.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=scale VALUE=exactfit> <PARAM NAME=wmode VALUE=opaque> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src="pmeter.swf" quality=high scale=exactfit wmode=opaque bgcolor=#FFFFFF  WIDTH=154 HEIGHT=103 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>
</OBJECT>


and this is what I got:

<?php
#### Generated by Block Creator by Disipal Site (www.disipal.net) ###
if (eregi("block-Block_Creator.php",$PHP_SELF)) {
    Header("Location: index.php");
    die();
}
$content  =  "<OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"";
$content  .= " codebase=\"http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0\"";
$content  .= " ID=meters WIDTH=154 HEIGHT=103>";
$content  .= " <PARAM NAME=movie VALUE=\"pmeter.swf\"> <PARAM NAME=quality VALUE=high> <PARAM NAME=scale VALUE=exactfit> <PARAM NAME=wmode VALUE=opaque> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src=\"pmeter.swf\" quality=high scale=exactfit wmode=opaque bgcolor=#FFFFFF  WIDTH=154 HEIGHT=103 TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\"></EMBED>";
$content  .= "</OBJECT>";
?>


Also, if you look at the clsid and codebase of my code, it's the same as yours, so I guess that answers that question too. LOL


Back to top Reply with quote
#9   re: Class ID?
Recoil
CZ Addict
Recoil has been a member for over 20 year's 20 Year Member
usa.gif louisiana.gif
Occupation: Manager
Gender: Male
Fav. Sports Team: New Orleans
Website:
Status: Offline
Joined: Jan 17, 2004
0.06 posts per day
Posts: 427
Points: 8,650
   ICQ Number
Good job Kelly! U get a real big "atta girl!" I must admit that I didn't even try the block creator because, it says, "iinsert code." When I saw this, I thought if I knew the code, why would I use a block creator LOL. I would edit the block creator so other people that tend to make things more difficult than what they are can use it too laughing7.gif

CZ IZ DA BOMB!

P.S. Telli, can I move in next door and act like Kramer from "Friends?" 5hypnodisk.gif



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum