March 21, 2019
JavaScript works in HTML 5 output but not SWFoutput
Comments
(5)
March 21, 2019
JavaScript works in HTML 5 output but not SWFoutput
Newbie 2 posts
Followers: 0 people
(5)

Hi,

When I test my JavaScript it works in HTML5 in browser. Yet I have some roll over captions I cannot remove and so must publish in SWF. In SWF in browser and in final publishing the JavaScipt won’t work. The script is below. Please let me know what I can do.

$(“#” + “AudioOn”).css(“visibility”,”hidden”);   // hide the audio button

5 Comments
2019-03-22 13:01:58
2019-03-22 13:01:58

Hi, that won’t work as I’m using numbers and then when the user rollovers the caption appear. For states the object size for rollover has to be the same size. Thanks but not a solution for my project. What would the AS scripting version be of my JS? I’m trying to remove the audio button from the playbar for one slide only as indicated in my JS example.

Like
2019-03-22 12:35:10
2019-03-22 12:35:10

Here is the link to the blog post I mentioned in a previous comment:

http://blog.lilybiri.com/rollover-in-fluid-boxes

Like
2019-03-22 12:30:17
2019-03-22 12:30:17

Yes, know SWF will no longer be an option, but must use a roll over caption which is only available in SWF. Seems Adobe should update this sooner rather than later. I don’t know of an advanced action that will remove the audio button from the playbar for a slide that does not have audio then add it back in on the slide that does. If you could recommend a system variable that impacts the buttons on the playbar, please do.

Thank you!

Like
(1)
>
cunyocss
's comment
2019-03-22 12:33:58
2019-03-22 12:33:58
>
cunyocss
's comment

Not totally true. Rollover caption will be functional in HTML5 output, but only for desktop/laptop screens, using trackpad or mouse. I wrote a blog post explaining how you can mmick a rollover in fluid boxes responsive projects, which do not allow rollovers at all. Will post a link in a separate comment.

Yoi cannot edit the default playbar like you wanted, it has to be set in the skin editor. I never use a default playbar, bu custom buttons. Then it is of course possible.

Like
2019-03-22 08:38:50
2019-03-22 08:38:50

For SWF output you should use AS, not JS. That is the reason why advanced/shared actions are converted to AS when published to SWF and to JS when published to HTML5.

Hope you know that Flash player dies soon.

Like
Add Comment