New to JavaScript and trying to understand the Hype 4+ coding layout

I am trying to marry my training and knowledge of JavaScript with the Hype 4+ interface.

As I am new to JS and the code portion of Hype, I am have difficulty understanding where/ how to create & insert the JavaScript values and elements in the Hype 4+ document (e.g. HTML Head/ creating the function), as this function is not working on the browser.

Attached Screenshots:

Sample Training Screenshot:

My hype Screenshots:


I know that I’m closer than I am further away dangit! :joy:
Please Help,
tg2k

Remove all the stuff from the head. Then create a rectangle and give the ID to it. Add a button to the stage and run your second Screenshot from it but without the function wrapper. That should do it.

1 Like
  1. Remove all the stuff from the head :white_check_mark:

  2. Create a Rectangle & give the ID to it. :white_check_mark:

  3. Add a button to the stage. :white_check_mark:

  4. Run your 2nd Screenshot from it without the function wrapper ?

Thanks MaxZieb…

Hei,
just have a look… This is, what Max means. The function is assigned in the Hype part.

showDate.zip (13.7 KB)

2 Likes

Thanks ktewes & MaxZieb,

I now understand what MaxZieb meant through your example file ktewes.

Thanks again!:pray:

1 Like