• 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: David LeBer <email@hidden>
  • Date: Tue, 14 Nov 2006 09:08:35 -0500


On 14-Nov-06, at 1:16 AM, James Cicenia wrote:

Ok I am in the same boat and very confused...

1) I have a flash front end menu. They click on a link and it takes them to a normal html/css webobjects page.
2) Next, if they hit home on the html/css page to go to an almost static flash page.


I need to:

1) What URL can I use in the flash? I can't seem to make a relative reference work to a direct action from flash. Do they have to be full URLs?

Yup. As far as I can tell, they need to be fully qualified. I set the root url as a property and pass it in to the Flash doohickey.


2) How do I let flash know the sessionid and then pass it back?

We passed the sessionID into the Flash doohickey by appending it to the URL that opened it. In our WO app, we spawned a new page that would wrap the Flash doohickey and used the embed tag. Something like this:


<embed name="Interface_217" type="application/x-shockwave-flash" pluginspace="http://www.macromedia.com/go/getflashplayer"; align="" width="100%" height="99%" bgcolor="#fffff0" quality="high" src="http://localhost/sc/Interface_232.swf?url=http://localhost:55055/ cgi-bin/WebObjects/SCTools.woa/wa/ ec&id=1&entity=exercise&wosid=Nl5kooT5lHLCS1VNCk25q0"></embed>

The "src" attribute contains the path to the Flash thingie with the base url to the DirectActions we'll be calling along with some other parameters including the SessionID.

After the Flash goober is initialized the rest of the communication was through XML messages, each contained the SessionID as an attribute. However we could have just appended the SessionID to the DirectAction URL as a parameter and that would have worked as well (see the bottom of this post <http://david.codeferous.com/?p=77>).

Hope that helps.

--
;david

--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site:   http://www.codeferous.com
blog: http://david.codeferous.com
--
Toronto Area Cocoa / WebObjects developers group:
http://www.tacow.org


_______________________________________________ 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>)
 >Re: Flash/WebObjects (From: James Cicenia <email@hidden>)

  • Prev by Date: Re: embedded frameworks + split install
  • Next by Date: Ajax Drag and Drop (dumb one)
  • Previous by thread: Re: Flash/WebObjects
  • Next by thread: Re: Flash/WebObjects
  • Index(es):
    • Date
    • Thread