• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Flash/WebObjects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Flash/WebObjects


  • Subject: Re: Flash/WebObjects
  • From: james o <email@hidden>
  • Date: Mon, 13 Nov 2006 12:22:31 -0500

a couple of years ago i accomplished this by placing the WOSession into a cookie accessible by Flash and WO. This was done in flash 6 or 7.
basically, WO sets cookie, Flash loads data based on cookie and Flash sends XML/pain text data back to WO.


not sure what your flash application is and if you need flash<- asynchronous ->WO communication. but last week i installed a Flash slideshow into my WO CMS using the Flash8 "FlashVars" variable in the <object> and <embed> tages. passing data into flash was real simple.

i bound a WOString to the FlashVars variable that tells flash where to load the XML. then flash grabs the appropriate XML

one GOTCHA i've found is that Flash doesn't parse the "&" symbol in long links properly. i.e, "/doThis?id=2&section=45&group=5".

<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="550" height="400" id="slideshow" align="middle">
<param name="FlashVars" value="xmlfile=/cgi-bin/WebObjects/ PWDA.woa/wa/loadFlashSlideXML?galleryId=50" />
<param name="allowScriptAccess" value="always" />
<param name="movie" value="/slideshow.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed FlashVars="xmlfile=/cgi-bin/WebObjects/PWDA.woa/wa/ loadFlashSlideXML?galleryId=50" src="/slideshow.swf" quality="high" bgcolor="#ffffff" width="550" height="400"
name="slideshow" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http:// www.macromedia.com/go/getflashplayer"
/> </object>


you can see the result on this page:
http://cms.effortboards.com/cgi-bin/WebObjects/PWDA.woa/wa/loadPage? pageId=5542


hth,
./james





On Nov 9, 2006, at 11:43 PM, Anthony Martello wrote:

I need to integrate a user interface built in Flash with WebObjects so that the Flash interface is associated with the current user (through the session). I see that in a recent post Chuck Hill mentioned that he has done this before. Can Chuck or someone else explain how this is done? How do I pass data from and to the Flash interface using WebObjects? What are the main steps? Code examples of any Java, JavaScript, HTML, ActionScript, etc. would be very helpful. :)

Thanks,

Anthony Martello
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40primax.com


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Flash/WebObjects (From: Anthony Martello <email@hidden>)

  • Prev by Date: Re: embedded frameworks + split install
  • Next by Date: WebObjects Exception Details...
  • Previous by thread: Re: Flash/WebObjects
  • Next by thread: WebObjects Exception Details...
  • Index(es):
    • Date
    • Thread