Everybody! This is important. In a few days, these forums will be moving over to using the totally sweet Discourse platform. To ensure this migration happens smoothly with no loss of content, these forums are currently in a read-only mode. I do apologize for the inconvenience.

There is never a good time to turn the forums off for an extended period of time, but I promise the new forums will be a billion times better. I'm pretty sure of it.

See you all on the other side in a few days, and if you have any (non-technical) questions, please e-mail me at kirupa@kirupa.com. For technical questions, try to find a tutorial that corresponds to what you are looking for and post in the comments section of that page.


Results 1 to 4 of 4

Thread: Need help embedding calendar using PHP

  1. #1

    Need help embedding calendar using PHP

    Hey there,

    I posted this same question over in the FlashMX forum but am realizing that maybe it's not the place to post this...I would really appreciate any help I can get:

    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...ersion=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" />
    So I came up with another way to embed the calendar into my flash site. I inserted this code:

    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.

  2. #2
    Anyone? Please?

  3. #3
    You'll need to set:
    cal_MC._width = 500;
    cal_MC._height = 417;
    That should work, or am I misunderstanding you?
    COLOURlovers | Member #2 of the kirupa XBox 360 Club
    "I think most people would agree that your computer breaking is a Christmas miracle." ~shane-c to Timmytots

  4. #4
    Like I said, my knowledge is limited in this area, so I don't know if that's the remedy. I'll try it though and let you know. Thanks a bunch!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Home About kirupa.com Meet the Moderators Advertise

 Link to Us


Copyright 1999 - 2012