Posted: Sun Nov 29, 2009 3:18 pm Post subject: FREE FLASH WIDGET BUSINESS CARDS
DC is proud to provide this giveaway to everyone on IMVU - Caleb68 (The Flash King) was nice enough to provide this for all of you and DC is proud to provide the support and facilities to distribute it.
We have a special Item for you Developers here, and we are providing it free for all to use, there are two versions, one can be used on homepages and the other can be used within products, below you will find instructions on how to use these within your products and webpages.
Web Page Card
To use the Web Page Card you will need webspace where you can upload files to in order for it to work for you.
The first thing you'll need to do is grab the zip file containing the needed files for you to make this work, it can be gotten from the below url:
There are 4 files contained within this zip file: card1.html, card1.swf, card1.xml, and carddc.png
STEP 1: Lets get started with editing the xml file, open it up in a text editor and you should see something like this:
Case is very important for the tags (<card></card>) so be sure not to change the case of these.
cardpic is the name of the background image you want to use for the card, do not include a url to the cardpic, just the name of the picture.
cardType is the vertical text on the left hand side of the card, the <!CDATA[ and ]]> tags are put in there so that if your text contains any special characters it does not break the xml file.
lTitle1 is the large text at the top of the card
img is the avatar image you want shown on the card itself, this requires the full url of the image
sTitle1 is the small text just under the large text of the card, this can be used for simple little slogans
sTitle2 is a second block of text just below the first slogan area
link1text is the title for the animated button on the card
link1 is the link that they will be taken to when they click the animated button
link2text is the title for the link just below the animated button
link2 is the link that they will be taken to when they click the link2text
STEP 2: after you've edited the xml save the file and upload it to your website
STEP 3: Edit the carddc.png to look like how you want your business card to look, the image is the exact size to fit within the file, if you make it larger the larger area wont show, and if you make it smaller the card might look funny so use this image as a base for creating your background picture.
STEP 4: once you've created the background picture you will need to upload it to the same directory as your xml file.
STEP 5: next you'll need to upload the swf file somewhere on your server, and after that, we get to the tricky part.
STEP 6: We've included card1.html to help you get started, open it up in your html editor or a text editor, you'll see something like the following:
if your looking to only insert it to your imvu page or a product page, you wont need to stick it in a iframe, you'll simply need to copy everything between the <body> and </body> tags and paste it into the page. But before you do that, there are some changes we need to make to this file.
the first one is you'll need to find the line:
<param name="movie" value="card1.swf" />
and edit it to reflect where on the web your shock wave flash file is, you'll also need to change it at this spot as well:
The next thing that we will need to do is tell it where to find your xml file, and what the name of your xml file is, there are two spots that this information needs to be placed, just like the last, the first one that you will need to change is:
one more thing you might want to change is where it defines the background color, so that it matches the colors of your pages for the transparent areas, you just need to edit the following:
<param name="bgcolor" value="#ffffff" />
and in the embed tag:
STEP 7: once thats all done you should be ready to add it to your page, we suggest that you save card1.html, upload it to your website and test the page to ensure that everything is displaying properly before adding it to your IMVU pages.
Remember to add it to your IMVU pages you just need to copy everything between <body> and </body>
Client Widget Business Card
Yep we made one for you to use in the client as well, and its abit simpler to add in then adding it to a webpage.
This card uses the same xml format as the webpage card, so if you've already created a xml file for that one your one step ahead already, open up card2.xml and edit the xml as outlined in STEP 1 for the webpage flash, if you already have your card1.xml created just copy everrything from that and paste it into card2.xml. Do not change the name of card2.xml, save the file.
the carddc.png is the background for the card, just edit it to be the background you want for your card in the IMVU client.
After you have those two files done, its off to the previewer! *clap clap* fire up the previewer and load a product that you want to add the card to.
after you've got a product loaded in, click the "Special" tab, down at the bottom you will see a area for the flash swf, flash parameters and trigger type.
first in flash swf load in card2.swf
leave flash parameters blank
now this part is important, for funiture you need to set it to seat, for clothing objects and accessories, change it to None.
Now we need to go to the CFL Assets tab
down at the bottom there is a 'Add' Button, click the 'Add' button and select the card2.xml file, and click open, it will then be added to the CFL Assets tab and you should see it in the list.
we need to repeat this step and add in the cards background image, so click 'Add' and select your background image and click 'Open' it too should now be in the CFL Asset list.
Now we need to save the file upload it to IMVU and test it in the Client. The Previewer lacks the ability for you to be able to test flash files in it (just like actions) so you have to upload it to the server and test it in the client to see if everything is working properly
We hope you enjoy these flash objects and that you find them useful.
flash file made by caleb68 for free use by everyone _________________
Joined: 15 Jul 2006 Posts: 3427 Location: USA - WA
Posted: Sun Nov 29, 2009 3:20 pm Post subject:
hope people find it useful, it does make it nice to have a widget that you dont have to derive from someone else in order to use, and hey, free is a very good price
PLEASE NOTE THIS - Some of you may need to add a crossdomain.xml file to your site in order for the swf file to be allowed to open the xml file for the html version Card. _________________ My Products I like the idea of Humanity, its the people I hate.
Last edited by caleb68 on Wed Dec 02, 2009 6:27 pm; edited 1 time in total