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

displaying an uploaded swf


  • Subject: displaying an uploaded swf
  • From: Theodore Petrosky <email@hidden>
  • Date: Thu, 06 Nov 2014 13:52:08 -0500

Maybe i am going about this all wrong but I have a custom page in my D2W app to display a swf.

I am passing in the attachment with:

public void setTheAttachment (ERFileAttachment anAttachment) {
_theAttachment = anAttachment;
}

I am trying to use this:

<object type="application/x-shockwave-flash"
data=""   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="" > 

where attachData:

public String attachData() {
String returnString = theAttachment().toString();
return returnString;
}

which returns in the HTML:

<object type="application/x-shockwave-flash" data="" 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>

public String attachData() {
String returnString = theAttachment().webPath();
return returnString;
}

<object type="application/x-shockwave-flash" data="" width="100" height="100">
  <param name="movie" value="/1.swf" <param="">
</object>

So, webPath() isn’t correct. It is the name of the file, but obviously doesn’t get me to the data. 

public String attachData() {
String returnString = theAttachment().filesystemPath();
return returnString;
}
filesystemPath is returning   /clientFiles/attachments/2/f/e/1.swf which is where the file lives.

Am I barking up the wrong tree? Is there some component that does something like this that I can examine?

Ted
 _______________________________________________
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: Paul Hoadley <email@hidden>
  • Prev by Date: Re: D2W Tiered Navigation
  • Next by Date: Re: D2W Tiered Navigation
  • Previous by thread: Re: D2W Tiered Navigation
  • Next by thread: Re: displaying an uploaded swf
  • Index(es):
    • Date
    • Thread