Skip to content

Commit 0912c71

Browse files
committed
Merge pull request #432 from silexlabs/update-samples
Update samples
2 parents 08e1334 + 7ff2797 commit 0912c71

File tree

129 files changed

+497
-3762
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

129 files changed

+497
-3762
lines changed

cocktail/core/html/HTMLMediaElement.hx

+2-2
Original file line numberDiff line numberDiff line change
@@ -659,14 +659,14 @@ class HTMLMediaElement extends EmbeddedElement
659659
var sourceChild:HTMLSourceElement = cast(childNodes[i]);
660660
if (sourceChild.type != null)
661661
{
662-
if (canPlayType(sourceChild.type) == CAN_PLAY_TYPE_PROBABLY)
662+
if (canPlayType(Reflect.getProperty(sourceChild, 'type')) == CAN_PLAY_TYPE_PROBABLY)
663663
{
664664
currentSrc = sourceChild.src;
665665
fetchResource(currentSrc);
666666
return;
667667
}
668668
}
669-
else if (sourceChild.src != null)
669+
else if (Reflect.getProperty(sourceChild, 'src') != null)
670670
{
671671
if (canPlayType(sourceChild.src) == CAN_PLAY_TYPE_PROBABLY)
672672
{

samples/01-HelloWorld/bin/Main.js

-297
This file was deleted.

samples/01-HelloWorld/bin/Main.swf

-179 KB
Binary file not shown.

samples/01-HelloWorld/bin/index_flash.html

-23
This file was deleted.

samples/01-HelloWorld/build/compile-js.hxml

-3
This file was deleted.

samples/01-HelloWorld/build/compile-nme.nmml

-24
This file was deleted.

samples/01-HelloWorld/build/compile-swf.hxml

-7
This file was deleted.

samples/01-HelloWorld/project.xml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<project>
3+
4+
<meta title="HelloWorld" package="com.samples.cocktail" version="1.0.0" company="SilexLabs" />
5+
<app main="src.Main" path="bin" file="HelloWorld" />
6+
7+
<source path="src" />
8+
<assets path="res">
9+
<text path="index.html" />
10+
</assets>
11+
12+
<haxelib name="openfl" />
13+
<haxelib name="cocktail" />
14+
15+
</project>
File renamed without changes.

0 commit comments

Comments
 (0)