Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Pre-sales

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-24-2009, 01:46 PM
Junior Member
 
Join Date: Nov 2008
Posts: 7
Default Form doesn't load from function

Hello everybody,

1. In my application there will be a lot of forms to load from the mainmovie, so I'll wrote a function instead of calling a script each time. But the problem is that when calling a SCRIPT, the modeless form loads fine, but loading from a FUNCTION does nothing (also the screen flickers once, there's happening something... but no form).

Here's the function code:

//Initialize script
//first read displaysetting for full screen display
var ds = SysInfo.displaySetting;
var swidth = ds.pelsWidth;
var sheight = ds.pelsHeight;

function openForm(myMovie) {
var form = new Form();
FlashPlayer.backgroundColor = 0xB2AFE0; //for filling wide 21', 22' screens
form.movie = getAdditionalFile(myMovie);
form.showCaption = false;
form.canDrag = false;
form.show(false); //show modeless form, so change displaysettings directly to fullscreen
form.window.width = swidth;
form.window.height = sheight;
form.window.center();
return;
}

//In Flash
btnkr_btn.onRelease = function() {
fscommand("FFish_Eval", "openForm('test.swf');");
};

Again, calling a modeless form from whitin a function seems to do nothing. Someone any idea whats going wrong?
WHEN THE FORM.SHOW = TRUE, the (modal)form will load fine, but I can't change to fullscreen, so I want a modeless form.


2. There is also a short but (nasty) grey flicker when the form loads (when you click the button). Is there a way to avoid this, or at least change that color to the mainmovies backgroundcolor when the form is building up?

3. Is there a way to avoid closing the modeless form with ESC? Or to take over the settings from the mainscreen?

A lot of questions for a pre-user, but I want to be sure some things work ok before developing more applications with SWFkit.

Thanks.
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 04:03 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.