[kupu-dev] Kupu Flash Support

Duncan Booth duncan.booth at suttoncourtenay.org.uk
Tue May 15 12:37:19 CEST 2007


I've checked in support for Flash files on the trunk. This is somewhat 
experimental, but it should have no impact unless you actually enable it 
from the configlet. I'd love to get feedback especially if anyone can 
suggest better ways to handle the issues.

The biggest issue is that when editing in Firefox you cannot see the Flash 
object at all without a kludge in the CSS, and even with that there is no 
way to move or resize the Flash object once it has been inserted.

IE has its own problems: if you click inside the Flash object kupu gets no 
event to trigger the code which tracks the selection. You have to click on 
the edge of the Flash object to get it properly selected. Fortunately there 
is visual feedback (a cross-hatched border means that kupu will mess up if 
you try to replace the Flash object, a border with sizing handles only 
means you got it right).

>From the documentation:

Flash
-----
Kupu has some support for embedding Flash objects using the
ATFlashMovie content type, but requires some configuration. Other
Flash content types may also work but have not been tested.

  1. Install ATFlashMovie.

  2. Got to the resource types tab of the configlet.

  3. Under the resource ``mediaobject`` add Flash Movie to the
     selection and save.

  4. In the action urls table at the bottom of the page, add a new
     entry for the type Flash Movie. The preview may be left blank or be
     the same as the 'normal' image. For 'normal image' you should enter
     ``string:${object_url}/download``. Leave fieldname blank and in the
     'type' field select 'Flash'.

Flash movies should now appear in the image drawer and be insertable
into the document. Using IE the Flash movie will appear in the
document and may be edited or moved as desired. Firefox will not play
the movie while you are editing, so a 'flash placeholder' image is
displayed instead: you cannot select it in Firefox so if you need to
delete a Flash movie you will need to include the image in a slightly
larger selection (e.g. spaces before and after) and delete that.



More information about the kupu-dev mailing list