• 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: displaying an uploaded swf
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: displaying an uploaded swf


  • Subject: Re: displaying an uploaded swf
  • From: Paul Hoadley <email@hidden>
  • Date: Fri, 07 Nov 2014 10:04:29 +1030

Hi Ted,

On 7 Nov 2014, at 5:22 am, Theodore Petrosky <email@hidden> wrote:

> I am trying to use this:
>
> <object type="application/x-shockwave-flash"
> data="your-flash-file.swf"   width="0" height="0">
> <param name="movie" value="your-flash-file.swf" />
> <param name="quality" value="high"/>
> </object>
>
> I was thinking I could adjust the data and value to be WOStrings. I am passing the attachment to my page and I wanted to access the attachment in the data element like
>
> data=<wo:WOString value = "$attachData"/ >
>
> where attachData:
>
> public String attachData() {
> 	String returnString = theAttachment().toString();
> 	return returnString;
> }
>
> which returns in the HTML:
>
> <object type="application/x-shockwave-flash" data="&lt;er.attachment.model.ERFileAttachment" pk:&quot;1&quot;&gt;="" width="100" height="100">
>   <param name="movie" value="&lt;er.attachment.model.ERFileAttachment" pk:&quot;1&quot;&gt;="" <param="">
> </object>

I’m not sure I can solve your larger problem, but if you’re trying to set attribute values in the rendered HTML, the best approach is to use WOGenericContainer or WOGenericElement.  For example:

<wo:WOGenericContainer elementName=“object” type=“application/x-shockwave-flash” data=“$attachData” …>
  <wo:WOGenericElement elementName=“param” name=“movie” value=“$filename” />
  …
</wo:WOGenericContainer>

You would then need a method attachData() to return the value for the ‘data' attribute, and filename() to return the value for the ‘value' attribute.  These are obviously just examples—I’m otherwise not sure how to achieve what you want, though calling toString() on ERAttachment can’t be right, can it?


--
Paul Hoadley
http://logicsquad.net/



 _______________________________________________
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


  • Follow-Ups:
    • Re: displaying an uploaded swf
      • From: Theodore Petrosky <email@hidden>
References: 
 >displaying an uploaded swf (From: Theodore Petrosky <email@hidden>)

  • Prev by Date: Re: D2W Tiered Navigation
  • Next by Date: Re: displaying an uploaded swf
  • Previous by thread: displaying an uploaded swf
  • Next by thread: Re: displaying an uploaded swf
  • Index(es):
    • Date
    • Thread