On 29 Mar, 13:25, Peter Bienstman <[email protected]> wrote:
> On Thursday, March 29, 2012 03:09:28 AM Gnome wrote:
>
> > Hello, flash plugin in mnemosyne now actually works!
>
> Nice!
>
> > But I have not
> > found no other way than to link to the *.swf using an direct path.
> > Example: "file:///C:/Users/Gnome/AppData/Roaming/Mnemosyne/
> > default.db_media/makePicture.swf"
>
> Not really surprising, because the path expansion currently only happens for
> video and sound.
>
> It wouldn't be so hard to add support for a special flash tag to Mnemosyne,
> e.g. <flash src="makePicture.swf">, which would then get expanded to the full
> container when the card gets shown. That way, you don't have to see all this
> ugly boiler plate code in your cards.
>
> Can you verify that the following simpler container also works?
>
> <div id="flashContent">
> <object type="application/x-shockwave-flash"
> data="makePicture.swf" width="600" height="500">
> <param name="movie"
> value="makePicture.swf" />
> <param name="quality" value="high" />
> <param name="bgcolor" value="#ffffff"
> />
> <param name="play" value="true" />
> <param name="loop" value="true" />
> <param name="wmode" value="window" />
> <param name="scale" value="showall" />
> <param name="menu" value="true" />
> <param name="devicefont" value="false"
> />
> <param name="salign" value="" />
> <param name="allowScriptAccess"
> value="sameDomain" />
> </object>
> </div>
>
This container works.
> Also, If you omit the values for width and height, do you get sensible
> defaults based on the contents of the actual flash file?
When omiting the width and height the canvas displays as about 50% of
its orginal size for some reason.
It would be great to have an special flash tag like the one you
suggested. I'm working on an "flash app" for mnemosyne for naming
parts of an picture. It is supposed to reuse the same picture and
display an arrow on the part that should be named. The picture
filname, a label and x, y cordinates for where the arrow should be
displayed was thought to get passed into the swf file using this
parameter:
<param name=FlashVars
value="img=myImage.jpg&t=Label1&x=111.8&y=53.75" />
So an example an flash container where the parameter i declared looks
like this:
<div id="flashContent">
<object
classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
width="550" height="400" id="imageHelper" align="middle">
<param name="movie" value="imageHelper.swf" />
<param name=FlashVars
value="img=myImage.jpg&n=3&t0=Label1&x0=111.8&y0=53.75" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="imageHelper.swf"
width="550" height="400">
<param name="movie" value="imageHelper.swf" />
<param name=FlashVars
value="img=myImage.jpg&n=3&t0=Label1&x0=111.8&y0=53.75&t1=Label2&x1=74.45&y1=121.45&t2=Label3&x2=108.2&y2=132.8"
/
>
<!--<![endif]-->
<a href="http://www.adobe.com/go/getflash">
<img
src="http://www.adobe.com/images/shared/download_buttons/
get_flash_player.gif" alt="Get Adobe Flash player" />
</a>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
<!--<![endif]-->
</object>
</div>
--
You received this message because you are subscribed to the Google Groups
"mnemosyne-proj-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/mnemosyne-proj-users?hl=en.