Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

My application works on a .swf but not .exe?

New Here ,
Nov 25, 2013 Nov 25, 2013

My application works perfects when I open it in its .swf format, but some buttons don't work correctly when I open it in its .exe format. It doesn't work correctly in HTML as well.  This is the error that flash gives me when I publish: Warning: No libraries were linked as Runtime Shared Libraries (RSLs) because of your publish settings: Windows Projector  I have tried to merge code, but it only removes the error and does not solve the problem?

P.S: I am using graphics and sounds that are linked inside the library

TOPICS
ActionScript
1.3K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 26, 2013 Nov 26, 2013

copy and paste the code for one of the buttons that doesn't work.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 26, 2013 Nov 26, 2013

There are a number of buttons that don't work, but they all work in .swf. All the buttons have a simple addEventListener(MouseEvent.CLICK, method) name

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 26, 2013 Nov 26, 2013

i understood that from your first message.

again, copy and paste the code for one of the buttons that doesn't work. 

you can pick the shortest simplest function body to make debugging easier.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 26, 2013 Nov 26, 2013

import flash.events.MouseEvent;

startMenu.information_btn.addEventListener(MouseEvent.CLICK, info);

function info(event:MouseEvent)

{

          information.visible = true

          startMenu.visible = false;

}

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 26, 2013 Nov 26, 2013

there's no problem with that code.  it works on my computer.

see if updating your stand-alone player resolves the issue, http://www.adobe.com/products/flashplayer/distribution3.html

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 26, 2013 Nov 26, 2013

It still hasn't resolved my issue. Would this be because I have tlf text or something? If it is, do I switch the embeded fonts from tlf to classic, or do I just change the texts inside my layers from tlf to classic static?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 27, 2013 Nov 27, 2013

using a tlf textfield would only have an impact if your security settings don't allow flash player to access the online tlf framework.  and, if that were the case, merging the tlf would solve the problem.

in any case, create a new fla.  save to a new directory.  then copy the assets from your original fla to your new fla and see if publishing an exe from that new fla into that new directory solves your problem.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Nov 27, 2013 Nov 27, 2013
LATEST

Hi,

I had the same problem, when i use TLF text box, mouse event also not working when i play in the browser. But i got the solution.

you have to change the setting in Library path, merged in to code. so TLF error won't come.

Then you have to install the player what kglad said, then it will work in browser also.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines