Questions tagged [lzx]

LZX (or Laszlo XML) is an XML-based declarative language created as part of the OpenLaszlo rich Internet application platform.

LZX is the declarative user interface language used by the OpenLaszlo rich Internet applications platform, which was created by Laszlo Systems and open sourced in 2004.

LZX consists of a number of predefined tags for UI widgets, data management, application layout and scripting elements (using JavaScript) . LZX supports a class based development with inheritance and offers support for mixins. LZX tags represent components written either in LZX or in JavaScript and ActionScript under the hood. LZX is runtime agnostic, since the OpenLaszlo compiler supports compiling LZX source code into either JavaScript 1.5 (the DHTML/HTML5 runtime) or ActionScript 3 (SWF10/SWF11 runtime).

When compiling an OpenLaszlo application, the LZX code is compiled into an intermediary JavaScript 2 code, and then - depending on the runtime - further compiled into either JavaScript 1.5 (DHTML runtime), or ActionScript 3 (SWF runtime). For the SWF runtime, an embedded version of the Adobe Flex compiler is used to generate the SWF file.

67 questions
1
vote
1 answer

What is the equivalent for getMCRef().attachAudio() in open laszlo?

I want to know the equivalent for getMCRef().attachAudio() in openlaszlo 4.9. Earlier i used this method to get the audio input to a view to displace based on the audio. But in the recent version i tried attaching it to the sprite but it's not…
karthick
  • 11,998
  • 6
  • 56
  • 88
1
vote
1 answer

Disabling the Flash Player default context menu in OpenLaszlo applications

When an OpenLaszlo application is deployed using the SWF10/11 runtime, is it possible to completely disable the Flash Player context menu on desktop computers?
raju-bitter
  • 8,906
  • 4
  • 42
  • 53
1
vote
1 answer

How do you create a more accurate timer in OpenLaszlo than the lz.Timer class that can pause and loop?

The lz.Timer class in OpenLaszlo can sometimes fire up to 256ms late, how do you create one that fires more accurately?
Kmeixner
  • 1,664
  • 4
  • 22
  • 32
1
vote
2 answers

Is it possible to have a while loop connected to the mouseover state in an OpenLaszlo app?

Is it possible to do something like this while (view.mouseover == true) { preform action } I want to have an action repeat for as long as the mouse is over a specific view. (asked on the laszlo-user mailing list)
raju-bitter
  • 8,906
  • 4
  • 42
  • 53
1
vote
1 answer

How to determine xscale and yscale programmatically in openlaszlo for different aspect ratios?

I had some problem with stretching the views so finally i used xscale and yscale to scale the view. This problem is solved in my machine which has a resolution canvas.width -1280 canvas.height - 1023 in a full screen mode. But when i check the…
karthick
  • 11,998
  • 6
  • 56
  • 88
1
vote
0 answers

How to upload a file attachment in HTML5/DHTML mode of OpenLaszlo 4.9.0+

How do you upload a file attachment using the DHTML/HTML5 run-time of OpenLaszlo 4.9.0/5.0.x? I know that it is not officially supported by OpenLaszlo but I know that at least two people have done it in proprietary code that they are not allowed to…
Kmeixner
  • 1,664
  • 4
  • 22
  • 32
1
vote
1 answer

Using animated GIFs in OpenLaszlo 5.0 in DHTML and SWF10/11 runtime

The Flash Player does not offer native support for animated GIF files. In the DHTML runtime, you can just use an animated GIF like any other image resource. But how can an image be used as a resource for a view in the SWF10 or SWF11 runtime?
raju-bitter
  • 8,906
  • 4
  • 42
  • 53
1
vote
1 answer

What is the equivalent of getMCRef().unloadMovie() in Openlaszlo 4.9

I want to know the equivalent of getMCRef().unloadMovie() in OL 4.9 I know that getDisplayObject() gives the display object will getDisplayObject.unload() similar to this getMCRef().unloadMovie() ?
karthick
  • 11,998
  • 6
  • 56
  • 88
1
vote
1 answer

View is not stretching properly in Open Laszlo 4.9

i created one view which will scale the views inside that particular view. The code is working properly in OL 3.3 but its not working inOL 4.9
karthick
  • 11,998
  • 6
  • 56
  • 88
1
vote
1 answer

OpenLaszlo DataPointer not working properly

I have a following code snippet which gives the expected result in OL 3.3 and in OL 4.9. When i integrate the code with my OL4.9 application, for some reason, i am getting 'parts' as null in Openlaszlo 4.9. I cannot figure out the reason. Is the…
karthick
  • 11,998
  • 6
  • 56
  • 88
1
vote
1 answer

Is it possible to play an swf8 resource in swf10 environment in OpenLaszlo?

I know that its not possible to play a swf 8 resource in swf10. But is there any workaround for this? I want to change the frame value of one resource by using this.viewname.setAttribute('frame',3). Any ideas?
karthick
  • 11,998
  • 6
  • 56
  • 88
1
vote
1 answer

Migrating code from Open Laszlo 3.3 to 5.0: TypeError: Error #1009: Cannot access a property or method of a null object reference

I am facing the problem when i am running this code in 5.0 but it's working fine in 3.3. I have set every thing but still it's giving the problem. Am i doing this in a wrong way?
karthick
  • 11,998
  • 6
  • 56
  • 88
1
vote
1 answer

Open Laszlo onkeydown event issue

I need to check whether any key is pressed or not. I am using this code. When i run this it's not doing anything unless i click on the laszlo screen why is this happening?
karthick
  • 11,998
  • 6
  • 56
  • 88
1
vote
1 answer

Does openlaszlo has a feature like data uri?

i want to know wheter open laszlo has data uri feature. The following example will show a red dot where the red dot is an image and base64 data is passed to it. Is it possible to do something like this? example is given below

Taken from…

karthick
  • 11,998
  • 6
  • 56
  • 88
1
vote
1 answer

Is this build script a valid build script for openlazlo 4.9 compilation

Is this a valid ant build script for Open laszlo 4.9. I am not able to build that with this file.
karthick
  • 11,998
  • 6
  • 56
  • 88