Be a Supporter!

How to set 'wmode=direct"?

  • 538 Views
  • 13 Replies
New Topic Respond to this Topic
YFC
YFC
  • Member since: Jun. 19, 2013
  • Offline.
Forum Stats
Member
Level 01
Blank Slate
How to set 'wmode=direct"? 2013-06-19 04:37:34 Reply

Hi, guys, my game need to set the 'wmode=direct", Otherwise my game cann't run.
Please tell me ,where to set 'wmode=direct"?

kkots
kkots
  • Member since: Apr. 16, 2013
  • Offline.
Forum Stats
Supporter
Level 10
Blank Slate
Response to How to set 'wmode=direct"? 2013-06-19 07:01:13 Reply

At 6/19/13 04:37 AM, YFC wrote: Please tell me ,where to set 'wmode=direct"?

In your HTML page, in the tag where you embed the swf


BBS Signature
YFC
YFC
  • Member since: Jun. 19, 2013
  • Offline.
Forum Stats
Member
Level 01
Blank Slate
Response to How to set 'wmode=direct"? 2013-06-19 07:10:35 Reply

At 6/19/13 07:01 AM, kkots wrote:
At 6/19/13 04:37 AM, YFC wrote: Please tell me ,where to set 'wmode=direct"?
In your HTML page, in the tag where you embed the swf

Thank you
but my url is http://www.newgrounds.com/projects/games/687854/preview
not in my site.

nitokov
nitokov
  • Member since: May. 8, 2012
  • Offline.
Forum Stats
Member
Level 05
Programmer
Response to How to set 'wmode=direct"? 2013-06-19 07:54:38 Reply

At 6/19/13 04:37 AM, YFC wrote: Hi, guys, my game need to set the 'wmode=direct", Otherwise my game cann't run.
Please tell me ,where to set 'wmode=direct"?

your game runs fine, only its white screen for some time, probably loader is not well implemented. spartans au au au


RangeError: Error #1125: The index 4 is out of range 4.

kkots
kkots
  • Member since: Apr. 16, 2013
  • Offline.
Forum Stats
Supporter
Level 10
Blank Slate
Response to How to set 'wmode=direct"? 2013-06-19 09:13:00 Reply

http://www.newgrounds.com/bbs/topic/1259855
http://www.newgrounds.com/bbs/topic/1318156?footer_feature=a rt
http://forum.starling-framework.org/topic/portals-that-suppo rt-wmode-starling
Newgrounds supports wmode=direct

Why are you asking your question in the first place? Let's get to the core of your problem.


BBS Signature
YFC
YFC
  • Member since: Jun. 19, 2013
  • Offline.
Forum Stats
Member
Level 01
Blank Slate
Response to How to set 'wmode=direct"? 2013-06-20 00:45:34 Reply

At 6/19/13 09:13 AM, kkots wrote: http://www.newgrounds.com/bbs/topic/1259855
http://www.newgrounds.com/bbs/topic/1318156?footer_feature=a rt
http://forum.starling-framework.org/topic/portals-that-suppo rt-wmode-starling
Newgrounds supports wmode=direct

Why are you asking your question in the first place? Let's get to the core of your problem.

Thanks a lot, but my game is still blank screen.

I don't konw why.

milchreis
milchreis
  • Member since: Jan. 11, 2008
  • Offline.
Forum Stats
Member
Level 26
Programmer
Response to How to set 'wmode=direct"? 2013-06-20 05:08:15 Reply

At 6/20/13 12:45 AM, YFC wrote: Thanks a lot, but my game is still blank screen.
I don't konw why.
At 6/19/13 07:54 AM, nitokov wrote: your game runs fine, only its white screen for some time, probably loader is not well implemented.

.

4urentertainment
4urentertainment
  • Member since: Aug. 1, 2008
  • Offline.
Forum Stats
Moderator
Level 13
Game Developer
Response to How to set 'wmode=direct"? 2013-06-20 05:15:39 Reply

At 6/20/13 05:08 AM, milchreis wrote:
At 6/20/13 12:45 AM, YFC wrote: Thanks a lot, but my game is still blank screen.
I don't konw why.
At 6/19/13 07:54 AM, nitokov wrote: your game runs fine, only its white screen for some time, probably loader is not well implemented.

I guess maybe he means that he wants his preloader to show up instead of a white screen while loading?

If so, this link might be useful. Quote from the answer:

You might need to set the actionscript settings' export frame to 2, depending on what classes/components you're using.

This is what you might want to try. A white screen shows up because it tries to load all the assets in the first frame, which defeats the purpose of the preloader. Try having the assets that are dynamically linked from the library to "Export on Frame 2" instead of on Frame 1.

FlyingColours
FlyingColours
  • Member since: Jul. 3, 2011
  • Offline.
Forum Stats
Member
Level 06
Programmer
Response to How to set 'wmode=direct"? 2013-06-20 09:54:14 Reply

Speaking of wmode=direct, I'm coding in FD and I've been getting the 'This application is not correctly embedded (wrong wmode value)' line error CTRl+ENTER. (The SWF works fine.) I know that means I have to set wmode=direct, but I have no idea where the .html file is located. My bin folder is empty except for the SWF.

Can anyone tell me where the html file is? Thanks.

kkots
kkots
  • Member since: Apr. 16, 2013
  • Offline.
Forum Stats
Supporter
Level 10
Blank Slate
Response to How to set 'wmode=direct"? 2013-06-20 14:32:43 Reply

At 6/20/13 09:54 AM, FlyingColours wrote: Can anyone tell me where the html file is? Thanks.

You need to go to 'File'-->'Publish Settings...' and publish the application as html. Once you get the generated html page, you need to inject wmode="direct" code into it. Keep the html and swf in same folder. Then you only need to update the swf, and not change html page every time. After updating the swf (by pressing Ctrl+Enter) you need to open html page in your browser.


BBS Signature
nitokov
nitokov
  • Member since: May. 8, 2012
  • Offline.
Forum Stats
Member
Level 05
Programmer
Response to How to set 'wmode=direct"? 2013-06-20 14:35:11 Reply

At 6/20/13 09:54 AM, FlyingColours wrote: Can anyone tell me where the html file is? Thanks.

bin -> index.html


RangeError: Error #1125: The index 4 is out of range 4.

FlyingColours
FlyingColours
  • Member since: Jul. 3, 2011
  • Offline.
Forum Stats
Member
Level 06
Programmer
Response to How to set 'wmode=direct"? 2013-06-20 18:34:47 Reply

At 6/20/13 02:32 PM, kkots wrote: You need to go to 'File'-->'Publish Settings...' and publish the application as html. Once you get the generated html page, you need to inject wmode="direct" code into it. Keep the html and swf in same folder. Then you only need to update the swf, and not change html page every time. After updating the swf (by pressing Ctrl+Enter) you need to open html page in your browser.

I'm using FD...

At 6/20/13 02:35 PM, nitokov wrote: bin -> index.html

I figured the bin folder was the logical place to look, too, but it wasn't there; only the SWF was there...

kkots
kkots
  • Member since: Apr. 16, 2013
  • Offline.
Forum Stats
Supporter
Level 10
Blank Slate
Response to How to set 'wmode=direct"? 2013-06-20 19:05:10 Reply

Try this html page generated by Flash CS4. It's sort of insanely complex, try to find where SWF is embedded. My SWF is called MadnessDayFighter.swf.

Download it, edit it, run it in browser, and then simply keep updating the SWF and keep testing the html+swf in browser.


BBS Signature
FlyingColours
FlyingColours
  • Member since: Jul. 3, 2011
  • Offline.
Forum Stats
Member
Level 06
Programmer
Response to How to set 'wmode=direct"? 2013-06-20 19:28:45 Reply

At 6/20/13 07:05 PM, kkots wrote: Try this html page generated by Flash CS4. It's sort of insanely complex, try to find where SWF is embedded. My SWF is called MadnessDayFighter.swf.

Download it, edit it, run it in browser, and then simply keep updating the SWF and keep testing the html+swf in browser.

Never mind; Mint's helped me with it. Thanks anyway! :)