ybootin
i’m going to try this :
Try to load a very simple haxe class with flex, and then access a static method of haxe
In the SLplayer source code of Application.init, it is say that the parameter “appendTo” can […]
i’m going to try this :
Try to load a very simple haxe class with flex, and then access a static method of haxe
In the SLplayer source code of Application.init, it is say that the parameter “appendTo” can […]
thx for your reply
But own to access ’this’ in a cocktail/SLPlayer application ?
how do you do this :
> use the -compiler.keep-generated-actionscript haxe compiler
Hi Lexa
1st of all, can you do it without slplayer?
No actually this is a SLPlayer application that can’t be instantiate without it, that why i post here
In fact, is there a mechanism, like the […]
Hi
I need to embed my SLPlayer application in an flex or AS3 application (even another haxe application);
Is it possible to do this with slplayer :
http://haxe.org/doc/flash/flex
I try, but i’m unable […]
Hi
I ‘ve got some issue in loading in an swf another embed swf made with haxe/cocktail/SLPlayer.
When i try to access to the flashvars with flash.Lib.current.loaderInfo.parameters in the loaded swf, it […]
actually SLPlayer allow extends of the Application.main but not the application.init() (or other).
In my application, the swf launch the Application.main, but the js target launch Application.init with the […]
Ok, i find the solution
juste use @:expose(‘myClassName) in the class you want to expose.
so
@:expose(‘myClassName’)
class Application extends slplayer.core.Application
{
public static function […]
this is very simple, in your code, you call the “init” method of your class in the “main” method of your class. But with the option noAutostart of SLPLAYER, you can call init AFTER include the library.
In […]
Hi Alex
With your method you can only define the “main”, but not the init with the option noAutostart.
Simply because with the noAutostart, you must call your application.init() in the code. And due to the […]
Hi
And how redefine the init method. Because splayer use hxExpose to redefine the main class to slplayer.core.Application, you can’t use custom “init” method
$hxClasses["slplayer.core.Application"] = […]
Hi
I need to get the nativeMedia object (In flash the cocktail/port/flash_player/NativeVideo.hx) to be able to execute specific code or listen to an event.
I think the simple way to do this is to put a […]
Hi Lexa
for me the more simple way is to adapt data to the target. I’m not sure that retrieve flashvars as a meta is the best way to do, because sometimes, you need to pass flashvars directly bu URL […]
Hi
Sorry Thomas, i haven’t reply to my post, but there is no initialisation problem with SLPlayer/Cocktail . You solve it a long time by change the Hash that store all the component by an Array
thx
sorry Yannick but this does not work
var o:Dynamic = Lib.document.createElement(‘object’);
o.data = ‘myswf.swf’;
o._imageLoader._nativeElement.addEventListener(‘load’,onLoaderInit);
onLoader init is never trigger …
yes but o._imageLoader.nativeElement.addEventListener(‘load’,onLoad);
return this error in flash debugger
Il est impossible d’accéder à la propriété ou à la méthode d’une référence d’objet nul.
ok, so i use this :
var o:Dynamic = Lib.document.createElement(‘object’);
o.data = ‘mysrc.swf’;
but on which object does i put the listener.
if i do this, i’ve got an error :
loader = o._imageLoader.nativeElement;
loader.addEventListener(‘load’,onLoad);
and its logic because the loader…[Read more]
var o:Dynamic = js.Lib.document.createElement(‘object’);
o.src = ‘mysrc.swf’;
the flash debug return an error :
unable to create property src on cocktail.core.html.HTMLElement.
wihich kind of object i need to create to use src attribute
thx,
Yohan
Or login with :
Enter your WordPress.com blog URL
http://.wordpress.com
Proceed