Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FlashPlayer does not change its size #2676

Open
shaman4d opened this issue Nov 11, 2023 · 4 comments
Open

FlashPlayer does not change its size #2676

shaman4d opened this issue Nov 11, 2023 · 4 comments

Comments

@shaman4d
Copy link

Describe the bug
FlashPlayer does not change its size regardless what set in project.xml. This behavior continues until add some picture in assets folder in project.

To Reproduce
Steps to reproduce the behavior:

  1. Create empty project with: openfl create project some_project_name
  2. In project.xml set window size: <window width="800" height="600" fps="61" />
  3. Build and run project with correspondent commands
  4. FlashPlayer will launch in its default size (about 400x300 px)

How to fix
Add some image in assets folder then build and run project.

Expected behavior
FlashPlayer must be opened with 800x600 px its window size

OpenFL Targets
Flash

Example of the project with such issue attached.
helloOpenflFlash.zip

@joshtynjala
Copy link
Member

I am unable to reproduce this issue. When I ran openfl test flash, the Flash Player window seemed to be 800x600. To be sure, I changed it to width="1024" height="320" and ran openfl test flash again. It was clearly a very wide, but not very tall window that was different than the original size.

@shaman4d
Copy link
Author

I am unable to reproduce this issue. When I ran openfl test flash, the Flash Player window seemed to be 800x600. To be sure, I changed it to width="1024" height="320" and ran openfl test flash again. It was clearly a very wide, but not very tall window that was different than the original size.

Did you remove all files from assets folder? It must be empty that issue will happen.

@joshtynjala
Copy link
Member

You attached a .zip file containing a project with an empty assets folder. I tested that project, and I could not reproduce.

I also followed the steps in your description to create a completely new project, and I also could not reproduce.

In both cases, I could successfully set the window dimensions to anything I wanted.

@barisyild
Copy link
Contributor

barisyild commented Nov 23, 2023

Can you please give more details?

-Which version of flash player are you experiencing the problem with?
-What is your operating system?
-Are you viewing swf output with flash player projector?
-By flash player, you mean adobe air?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants