]> source.dussan.org Git - vaadin-framework.git/commitdiff
Added proper flash-support. Fixes #320
authorJoonas Lehtinen <joonas.lehtinen@itmill.com>
Sun, 11 Feb 2007 13:35:12 +0000 (13:35 +0000)
committerJoonas Lehtinen <joonas.lehtinen@itmill.com>
Sun, 11 Feb 2007 13:35:12 +0000 (13:35 +0000)
svn changeset:661/svn branch:toolkit

src/com/itmill/toolkit/demo/features/FeatureEmbedded.java

index 78490ccf5e77b21defb7e6c9e326ab112b1bc440..e152e38ed858c30ccd0444e0fd2b2f38527fe45e 100644 (file)
@@ -45,10 +45,13 @@ public class FeatureEmbedded extends Feature {
                ClassResource flashResource = new ClassResource(
                                "itmill_spin.swf", this.getApplication());
                Embedded emb = new Embedded("Embedded Caption", flashResource);
+               emb.setType(Embedded.TYPE_OBJECT);
+               emb.setMimeType("application/x-shockwave-flash");
                emb.setWidth(250);
                emb.setHeight(100);
                l.addComponent(emb);
 
+               
                // Properties
                propertyPanel = null;
                if (false) {