[Flashcoders] Form app questions, frustrations

2006-10-19 Thread Chris Douglass
I have a mx2004Pro form application I'm working on and the following bizarre
behavior is happening:

- switch back and forth between screens, working on this and that, and over
time the visible property for various forms revert to true at run-time
although their property value in the design environment is still set
correctly to false.  That is, when my app starts, randomly some forms
start defaulting to visible.  I've taken ALL code out of the project to
verify this is not something with my code.  It's not.  Is the form
application support in MX2004 just that buggy?  If so, wtf?  

- also, why does ONLY absolute pathing work for setting values/properties on
forms in a form application?  In the code layer for my main form, the top
level form, I have code that is attached to a menu that has the requisite
setVisible(true/false) code to show and hide various screens(forms) based on
menu selections by the user.  But, I've verified that ONLY absolute pathing
works e.g.  

_root.frmMain.frmDesktop.setVisible(false);  //frmMain is the top level form
with a child of frmDesktop

But,

Since the code exists in a code layer for frmMain, why doesn't this work:

This.frmDesktop 

or even,

this._parent.frmDesktop when referenced from within a contained component's
function handler?

Thx!!  Chris

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] How to generate a swf and convert it to adownloadable screensaver serverside?

2006-10-13 Thread Chris Douglass
I'm writing a win32 app that will host a swf as its GUI and also a portion
of that application will be used as a screensaver.  I'm not sure my
deployment strategy (a typical windows installer the includes the exe and
its dependencies) would work for you but the screensaver host app(exe) will
be programmed to download SWFs to execute as the screen saver graphics
module.  

In fact, I'm going to use asp.net web services as the means to determine
which SWFs are available to display, etc.  This could be pretty easily
adapted to dynamically determine the SWF your customer wants to display,
download it and then display it.  Once downloaded they wouldn't have to do
anything to configure the saver, etc though my application will support the
settings selected by the standard windows screen saver configuration dialog.


Anyway, I'll probably open source what I'm doing and when it's ready send
you a link if you're interested.  But, I'm not sure if the deployment
strategy for the exe and the discovery mechanism of which SWF to display are
workable for you.  If so, just drop me a line off-list and I'll see what I
can do to help.

Chris

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Martin
Baltzer Hennelund
Sent: Friday, October 13, 2006 2:50 AM
To: Flashcoders mailing list
Subject: [Flashcoders] How to generate a swf and convert it to adownloadable
screensaver serverside?

Hi all,

Hope someone has a solution to this issue.

I client of mine wants a 'create screensaver' feature on their flash
website. Based on some default flash template the user should be able to
customize it and finally download it as a personal screensaver.

In the old days I would use Generator to create and export the customized
swf - but it has been deprecated for since flash 6!? After that step I would
then need to convert the generated swf to a screensaver/exe file on the
server which finally can be downloaded by the user.

The question is if that is possible at all and if so which setup/software
would I need. BTW I'm on a .Net platform if that matters.


Thanks a lot
Martin Hennelund
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] C++ flash host supporting transparency

2006-10-12 Thread Chris Douglass
Very interesting, no I hadn't heard of this library.  But, I'm looking
through the docs very carefully right now...  Very interesting.  

Thanks Mark! 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark
Winterhalder
Sent: Wednesday, October 11, 2006 8:09 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] C++ flash host supporting transparency

Why reinvent the wheel?

Did you have a look at SWHX yet? It works for Windows and OSX, Linux support
AFAIK would need FP9, maybe more. I'm not sure about transparency, but since
Screenweaver could do it, it's probably there.

http://haxe.org/swhx

I don't want to stop you from rolling your own, if that's what you want, I
just thought I'd point you to it in case you haven't heard about it yet.

Mark



On 10/11/06, Chris Douglass [EMAIL PROTECTED] wrote:
 Hey, I'm building a C++ app to run on Windows (then maybe on Mac and 
 X) that will host SWFs.  On Windows I'm using the Flash activeX 
 control to host my Flash app.  I'd like to render the Flash 
 viewport/window onto my application's surface with transparency such 
 that only the content on the stage is drawn to my window.

 Does anyone know how you would implement this within a custom 
 host/container like mine?  How do the browsers implement this (well 
 the ones that support it)?  Does Flash tell the host the key color being
used for transparency?
 I've seen a few articles here and there that Flash sends its output to 
 an off-screen buffer that the browsers use to render Flash content 
 with non-rectangular transparency.  But, I'm not sure how as a host 
 container the Flash frame buffers and transparency key color are
accessible to me.

 Does the stage color become the RGB key color value that Flash 
 communicates to the browser to assist with this process?  What if that 
 same color is used in the content of your movie/content within your 
 SWF?  Do the browsers render those pixels transparently as well?

 Anyway, I'm going to start some tests but thought maybe someone could 
 shed some light for me.  Also, does anyone have experience building 
 their own SWF host application that runs on Windows and Mac?  I need 
 to port my app (and am not interested in using the commercial swf/exe 
 hosts out there, at least not yet ;]) to the Mac, so whatever 
 transparency technique I use on Win32 would hopefully not require a
full-rewrite on the Mac (yeah right).

 Is there an SDK for people wanting to build their own hosts for Flash
apps?
 Is there a lower-level interface/API I can tap into that exposes the 
 Flash content/internals so that developers can write their own unique 
 hosts?  What wrapper/API is exposed to the Mac platform developers for 
 creating containers on OSX?

 Thanks for ANY input :)  I'll start fiddling with WMODE and see what 
 happens for starters...  Where is the definitive internals book on the 
 Flash runtime engine?  Does one exist?

 Chris Douglass
 Innovative Code  Design
 Atlanta, GA
 www.innovativecode.com

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] C++ flash host supporting transparency

2006-10-11 Thread Chris Douglass
Hey, I'm building a C++ app to run on Windows (then maybe on Mac and X) that
will host SWFs.  On Windows I'm using the Flash activeX control to host my
Flash app.  I'd like to render the Flash viewport/window onto my
application's surface with transparency such that only the content on the
stage is drawn to my window.  

Does anyone know how you would implement this within a custom host/container
like mine?  How do the browsers implement this (well the ones that support
it)?  Does Flash tell the host the key color being used for transparency?
I've seen a few articles here and there that Flash sends its output to an
off-screen buffer that the browsers use to render Flash content with
non-rectangular transparency.  But, I'm not sure how as a host container the
Flash frame buffers and transparency key color are accessible to me.

Does the stage color become the RGB key color value that Flash communicates
to the browser to assist with this process?  What if that same color is used
in the content of your movie/content within your SWF?  Do the browsers
render those pixels transparently as well?  

Anyway, I'm going to start some tests but thought maybe someone could shed
some light for me.  Also, does anyone have experience building their own SWF
host application that runs on Windows and Mac?  I need to port my app (and
am not interested in using the commercial swf/exe hosts out there, at least
not yet ;]) to the Mac, so whatever transparency technique I use on Win32
would hopefully not require a full-rewrite on the Mac (yeah right).

Is there an SDK for people wanting to build their own hosts for Flash apps?
Is there a lower-level interface/API I can tap into that exposes the Flash
content/internals so that developers can write their own unique hosts?  What
wrapper/API is exposed to the Mac platform developers for creating
containers on OSX?

Thanks for ANY input :)  I'll start fiddling with WMODE and see what happens
for starters...  Where is the definitive internals book on the Flash runtime
engine?  Does one exist?

Chris Douglass
Innovative Code  Design
Atlanta, GA
www.innovativecode.com 

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Re: zinc kills a variable with a new String()?

2006-10-11 Thread Chris Douglass
Does AS support explicit byRef and byVal function argument modifiers?  If
so, maybe that would help. 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of grimmwerks
Sent: Wednesday, October 11, 2006 11:11 AM
To: Flashcoders mailing list
Subject: [Flashcoders] Re: zinc kills a variable with a new String()?

 Of course, the var i fixed it (in the 'for') -- but I don't get why it
blewup; I've noticed this elsewhere too today.

Say I had a function that calls a subfunction, ie

mainStuff = function(){
for(i=0; itheList.length; i++){
ret = subStuff(tList[i]);
}
}

subStuff = function(which){
for(i=0; iwhich.length; i++){
//whatever
}
}

I noticed that 'i' would get shared across the instances, that it wouldn't
work. ie it would work in mainstuff, bounce to subStuff which would iterate
more, get mainStuff confused, etc.

This is in direct violation to what the local var should be, no? I mean,
I've never experienced that before.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com