Hi,
I recently purchased a Flash/PHP calendar script from www.phpjabbers.com/web-calendar. The way it works is that it has a .swf and 2 PHP files. The changes to the calendar are made from a web-based admin site that is set up by one of the PHP files namely “calendar-admin.php”. It works perfectly on the html sites that I’ve used it on. However, when I try to incorporate it into my Flash site, it’s not exactly coming up roses. I have to admit, too, that I’m not PHP educated.
First, I tried just using loadMovie to load the external .swf. All that happens is a skeleton of the calendar shows up.
The way that the admin site is set up is it has 3 pages: the settings page, the data page (where appointments and such are added to the calendar), and the html code page which gives the code that is pasted into an html document. Below is the html code for my calendar:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="500" height="417" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="calendar.swf?link=calendar-data.php&cid=2&owner=phpjabbers.com" /><param name="quality" value="high" />
<param name="bgcolor" value="#FFFFFF" />
<embed src="calendar.swf?link=calendar-data.php&cid=2&owner=phpjabbers.com" quality="high" bgcolor="#FFFFFF" width="500" height="417" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
So I came up with another way to embed the calendar into my flash site. I inserted this code:
loadVariables("calendar.swf?link=calendar-data.php&cid=2&owner=phpjabbers.com","cal_MC");
This actually almost works, however, the size comes up as 180px by 150px when the calendar should be 500px by 417px. The calendar.swf is actually the smaller dimensions above, but the admin site changes this in the html code. So my question is, how do I fix it? I really have no clue here as to why it’s doing this. Should I be approaching it in a different way?
I would appreciate any help I get can with this. The people who designed the script said they only support customers who use it with html but did say that other customers have been able to get it to work using loadMovie. HELP!! I so want this work on my photography site in order for clients to see my availability.
Thanks in advance to anyone that can help me out.
Jen H.
P.S. I use FlashMX, and that’s why I posted it here.