Anyone else got any ideas on this?
If it's a bug can I file it somewhere?
Does Laszlo have a bugzilla?
Martin Allchin wrote:
Thank you for the suggestion, no luck though. Unless I am mistaken
referencing elements via their id is correct, and indeed it works to an
extent, it's just the video plays the audio without any picture.
I think it is a bug, it seems as if the play() is triggered but it only
plays the video's audio. Something in the play="false" attribute is
stopping the video's picture from showing even when the video is told
to play.
Stéphane . wrote:
Try using name attribute instead of id to identify your
objects !
Can't try where I am.
BTW, as far as I know you should always use name attribute
instead of id, as id is generated by laszlo compiler for internal stuff.
Best,
Stéphane.
2006/6/26, Martin Allchin <[EMAIL PROTECTED]>:
The following
code loads an swf file (a video) into a view using a datapath:
code: <view id="videoviewer2" y="22" width="200" height="150" stretches="both" play="false" align="center" resource="$path{'video/text()'}">
<method event="onlastframe">
this.stop(1);
</method>
</view>
<!-- Play button -->
<basebutton x="5" y="22" resource="viewProfile_btn">
<method event="onclick">
videoviewer2.play();
</method>
</basebutton>
As you can see it has play="false" to stop it from playing the video,
and a button with an onclick event to trigger play().
Clicking the button causes the video's audio to play, but the view is
black, there is no visual. Removing play="false" causes the video to
play correctly with both visual and audio, but I need it on an onclick.
Am I doing something wrong or is this a bug? I have tried setting an
oninit event to stop() the video instead of setting the play attribute
but I get the same error, no visual.
Please help.
Mallchin
_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user
_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user
|
_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user