Re: [flexcoders]Where does my SWF gain it's weight?

2009-05-04 Thread Anirudh Sasikumar
You could also restrict the character glyphs in your embedded font to
reduce the size taken up by the font.

This can be done by specifying the unicodeRange property in CSS:

@font-face
{
  src:url("/embed_assets/fonts/Inconsolata-ani.otf");
  font-family: "mycodefont";
  unicodeRange: U+0041-U+005A,
  U+0061-U+007A,
  U+0030-U+0039,
  U+0020-U+002F,
  U+003A-U+0040,
  U+005B-U+0060,
  U+007B-U+007E;
}

Cheers,
-- 
Anirudh Sasikumar
http://anirudhs.chaosnet.org/

On Fri, May 1, 2009 at 4:28 AM, dorkie dork from dorktown
 wrote:
>
>
> Ah forgot I had embedded fonts. About 620kb was shaved off when I commented
> out those bad boys. FWIW it was "lucinda grand" bold and normal. I didn't
> think they would weigh in that much.
>
> Has Adobe thought of hosting common embedded font RSLs like they are hosting
> the Flex Framework RSL?
>
> For example,
> Once someone downloads, "Lucinda Grand" embedded font from Adobe's site it
> gets cached, just like the Flex framework RSL and they never have to
> download that font again.


RE: [flexcoders] for better performance, use "as" rather than just leaving an object as Object?

2009-05-04 Thread Alex Harui
I published similar results on my blog a few years back.

The reason it is slower is that there are more byte codes involved and those 
byte codes take more time.  The more you know, and the more information you 
have handy, the less work there is to do and we can make more assumptions.

For "b.id", the byte code is more or less:
Push "id"
Push "b"
GetProperty

For "(b as button).id", the byte code is roughly:
Push "id"
Push b
Push button
Coerce
GetProperty

For "o.id", the byte code is roughly:
Push "id"
Push "o"
FindProperty

and FindProperty is much slower.

Note that it takes 1000 accesses to feel a 1 second difference.  There's 
more byte code involved in using "as" so if you did it everywhere your SWF will 
be larger and take up more memory at runtime and could offset those gains.  
However, if you've got the time, it might be worth doing from a code 
maintenance standpoint as the compiler will help you find misspellings and what 
not.



Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Pan Troglodytes
Sent: Monday, May 04, 2009 7:19 PM
To: flexcoders
Subject: [flexcoders] for better performance, use "as" rather than just leaving 
an object as Object?





I was curious as to the difference between a few different ways of approaching 
the situation of an itemRenderer having a "data" property and deciding whether 
or not to use "as" to make all the type checking happy.  So I tried some test 
code and found that it made a big difference whether you use "as" or just leave 
the data property as an Object.  If you leave it as an Object, you get a 
performance hit on the order of 40%+ longer than if you use "as" to cast it 
first.

Here are the ways I tested it.  I just decided to pull the "id" property 
because it's something that is just a simple access of a private variable, no 
complicated stuff.

var b:Button = new Button;
var o:Object = b;
var s:String;

s = b.id;
s = (o as Button).id;
s = Button(o).id;
s = UIComponent(o).id;
s = (o as UIComponent).id;
s = o.id;

I did get a bit fancy and put them in a loop and a timer to isolate each one.  
The full code is included below.

What I found was along the lines of this (give or take a few %):

Button: 3.16
Button():   4.06  129%
as Button:  4.14  131%
UIComponent():  3.98  126%
as UIComponent: 4.03  128%
Object: 5.38  170%

I put in the UIComponent ones because sometimes I cast it to a superclass 
because I might get several different subclasses passed into a function.

So what I've found is that if you ignore than noise, the middle four methods 
are also approximately the same in timings.  But the Object one is far worse.  
This probably won't come as any surprise to the Adobe folks or the people who 
have been working with Flex a bit more in-depth.  I found it rather useful 
information, though, considering I'm trying to shave off some time in various 
places in one of my apps.  Granted, it won't matter as much outside of loops.

So many things return the items as objects, such as Arrays/ArrayCollection, the 
"data" property of item renderers, etc.  I think I'm just going to make it a 
habit to put "as" in my code (and not the format of Class(variable) because 
sometimes that triggers a function rather than just doing a casting) all the 
time.  It helps catch errors by doing strict type checking (as long as you 
aren't using dynamic classes) and it's a little faster to boot.

Still, I wish it was as fast as the top line where you don't have to do any 
casting/as at all.  Any thoughts on that or anything else I've missed?  Any 
flash insiders want to give your insight on why it works this way under the 
hood?



http://www.adobe.com/2006/mxml";
  >
  
http://b.id>;
time = (new Date().time - traceStart.time);
trace("Button:\t\t",

[flexcoders] SWF File Causing CPU Overload in Firefox on Windows

2009-05-04 Thread Kyle

For some reason a swf file published from flash is overloading my cpu when 
viewed in Firefox 2 or 3 with Flash player 10 on Windows. It works fine in 
Internet Explorer, Safari on both PC and MAC, and in Firefox on MAC. I've tried 
everything I can think of including removing almost all animation, and it is 
still overloading the cpu. The result of this overload is that when you click 
on one of the elements in the swf that makes a call via ExternalInterface to 
Javascript, and then re-routes the page, it takes upwards of 60 seconds to move 
on to the next page.

The page containing the swf can be seen at http://www.freakatars.com . Again, 
the issue only occurs in Firefox 2/3 on Windows.

Any thoughts or ideas greatly appreciated..





[flexcoders] Re: How do you read Gumbo source code?

2009-05-04 Thread Matt Garland
http://opensource.adobe.com/wiki/display/flexsdk/Get+Source+Code

I thought it was in the sdk, but you have to create a repo.

--- In flexcoders@yahoogroups.com, "Matt Garland"  wrote:
>
> I have "Hello World" compiling, but now I want to look at the source code. I 
> especially want to look at the Spark skin classes. 
> 
> I remember liberating source code from a framework swc with the sdk 
> build.xml, but that is not working, ant gives an error:
> 
> Basedir /Users/Matt/Desktop/flex_sdk_4/modules/asc/build/java does not exist
> 
> Thanks
> 
> Matt Garland
> pet-theory.com
>




[flexcoders] Re: Help with Tomcat / Flex issue

2009-05-04 Thread Greg Morphis
Never mind I think I found it.. it created an xml file in the Catalina
directory. I saw in there the dev info and commented it out.
Whew!! dodged a bullet there...

Thanks

On Mon, May 4, 2009 at 10:46 PM, Greg Morphis  wrote:
> We have an app running on a Apache Tomcat server. I was asked to added
> some updates to it, everything went well in developing it.
> I created a .war locally using jar -cfv *.* myapp.war
>
> I placed the file locally in my tomcat directory and started up
> tomcat, it worked fine.
> It expanded the files and I was able to log into it using a dev login
> and saw dev data.
> I moved this WAR to our prod server and forgot to change the dev data
> to prod (in the meta-inf/context.xml)
> Now it looks like it's loading up into development, production login
> doesnt work, only dev and it looks like it's dev data.
>
> I deleted the .war, I deleted the directory it created (I had renamed
> it to ROOT.war because that's what it is on the prod server...
> D:\Tomcat5.5\webapps\ROOT\
> I moved the copied directory back into the tomcat/webapps folder and
> restarted tomcat. So everything should have been back the way it was.
> It's still only allowing the dev logins.
> Any ideas, I desperately need help. I checked the context.xml file in
> root/META-INF/context.xml and only the production info is uncommented.
> Strange thing is I renamed the file to context.xml_ (notice the
> underspace). Restarted the server and it's still only allowing dev
> logins and dev data.
> It's almost as if it's not even using that context.xml file for it.
> Where else is this stored at? I'm begging! Please help!
>


[flexcoders] How do you read Gumbo source code?

2009-05-04 Thread Matt Garland
I have "Hello World" compiling, but now I want to look at the source code. I 
especially want to look at the Spark skin classes. 

I remember liberating source code from a framework swc with the sdk build.xml, 
but that is not working, ant gives an error:

Basedir /Users/Matt/Desktop/flex_sdk_4/modules/asc/build/java does not exist

Thanks

Matt Garland
pet-theory.com



[flexcoders] Re: Help Needed

2009-05-04 Thread Tim Hoff

Take a look at Flash Media Server
  and Adobe
Flash Collaboration Service  .
Also, check out NetStream and NetConnection in the docs.

-TH

--- In flexcoders@yahoogroups.com, Gopal Anne  wrote:
>
> Hi,
>
> Does anyone knows how to
> -streaming videos, connecting to webcam and recording videos and
stream the same to servers
> -Stream voice mails and recording using flex
>
> Regards,
> Gopal
>




[flexcoders] Help with Tomcat / Flex issue

2009-05-04 Thread Greg Morphis
We have an app running on a Apache Tomcat server. I was asked to added
some updates to it, everything went well in developing it.
I created a .war locally using jar -cfv *.* myapp.war

I placed the file locally in my tomcat directory and started up
tomcat, it worked fine.
It expanded the files and I was able to log into it using a dev login
and saw dev data.
I moved this WAR to our prod server and forgot to change the dev data
to prod (in the meta-inf/context.xml)
Now it looks like it's loading up into development, production login
doesnt work, only dev and it looks like it's dev data.

I deleted the .war, I deleted the directory it created (I had renamed
it to ROOT.war because that's what it is on the prod server...
D:\Tomcat5.5\webapps\ROOT\
I moved the copied directory back into the tomcat/webapps folder and
restarted tomcat. So everything should have been back the way it was.
It's still only allowing the dev logins.
Any ideas, I desperately need help. I checked the context.xml file in
root/META-INF/context.xml and only the production info is uncommented.
Strange thing is I renamed the file to context.xml_ (notice the
underspace). Restarted the server and it's still only allowing dev
logins and dev data.
It's almost as if it's not even using that context.xml file for it.
Where else is this stored at? I'm begging! Please help!


RE: [flexcoders] Data changed in xml file does not updated in

2009-05-04 Thread Tracy Spratt
Tht is because this:

source="../../data/bag.xml" 

Is a *compile-time* operation.  The XML gets baked into the swf.

 

You want to use HTTPService to load your xml at run time.  You should find
plenty of examples of that.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of jam35bond
Sent: Monday, May 04, 2009 9:42 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Data changed in xml file does not updated in 

 






Hi all,
My mxml has 2 components like this:





I have to recompile the program with Flexbuilder everytime I got data
changed in the XML file.

How do I do that if I only want to get the front end display data changed by
only update the XML file without recompiling the whole program?

I am using Flex SDK3.2
Thanks





[flexcoders] Create new Canvas with Papervision3D

2009-05-04 Thread Marisa

Hello, 

I'm going to create a new component with 3D effect. But I encounter this
problem.
I can't change the position of the Planes in function organize3DLayout but I
can change the
Images position by child.x = 200; etc.
All the planes are still in the center of the canvas. 
I feel only the codes in function addChild is effective.

 child.x = unscaledWidth/2 - child.width/2;
child.y = unscaledHeight/2 - child.height/2;

Anyone can help? I really confused.

http://www.nabble.com/file/p23299407/temp.jpg 
package
{
import caurina.transitions.Tweener;

import flash.display.DisplayObject;
import flash.events.Event;
import flash.utils.Dictionary;

import mx.containers.Canvas;

import org.papervision3d.cameras.Camera3D;
import org.papervision3d.events.InteractiveScene3DEvent;
import org.papervision3d.materials.MovieMaterial;
import org.papervision3d.objects.DisplayObject3D;
import org.papervision3d.objects.primitives.Plane;
import org.papervision3d.render.BasicRenderEngine;
import org.papervision3d.scenes.Scene3D;
import org.papervision3d.view.Viewport3D;
public class Canvas3DCom extends Canvas
{
//debug mode
public var DEBUG:Boolean=false;
//interactivity
public var INTERACTIVITY:Boolean=false;
//effects
public var EFFECTS:Boolean=false;

//tweening time (ms)
private var _tw_time:Number=1000;

//papervision basics
private var _view:Viewport3D;
private var _cam:Camera3D;
private var _scene:Scene3D;
private var _render:BasicRenderEngine;

//defines planes segments
private var _meshquality:Number = 2;
//root node for nesting 3D objects
private var _root3D:DisplayObject3D;
//children dictionary
/**
 * @description: associates displayobjects to planes. 
dictionary key are
viewstack children. values are planes on 3D space.
 * !IMPORTANT: uses weak reference to ease garbage collection
 **/
private var _toPlane:Dictionary;
private var _toChild:Dictionary;
private var _current3DChild:DisplayObject3D;

//viewports h,w
private var _viewport_width:Number=0;
private var _viewport_height:Number=0;

//x gap 
private var _xgap:Number= 50;
//coverflow angulation
private var _cfangle:Number = 60;
//number of the ring
private var _no_of_ring:int = 1;

public function Canvas3DCom()
{
super();
init3D();
}

/**
 * @description: builds up 3D elements (scene, camera, renderer 
and
viewport)
 **/
private function init3D():void
{
trace("INIT 3D");
_scene = new Scene3D();

_cam = new Camera3D();
_cam.focus = 100;
//_cam.zoom = 11;
_cam.z = -1000;

_render = new BasicRenderEngine();
//_view is going to be initialized in organizelayout
_toPlane = new Dictionary(true);
_toChild = new Dictionary(true);
_root3D = new DisplayObject3D();
_scene.addChild(_root3D);

}

override public function 
addChild(child:DisplayObject):DisplayObject{
super.addChild(child);
//  child.visible = false;
//set child position in the middle of the viewstack
child.x = unscaledWidth/2 - child.width/2;
child.y = unscaledHeight/2 - child.height/2;
//add a new plane to the 3d stack
addChild3D(child);

return child;
}

 /**
 * @description: addChild3D adds a DisplayObject3D to 
viewstack3d and
associates it with its own relative child on 2D space
 **/
 private function 
addChild3D(child:DisplayObject):DisplayObject3D
 {
trace("addChild3D");
var mat:MovieMaterial =

[flexcoders] Question regarding FLV protection

2009-05-04 Thread Jon Oxtoby
Hi,

We're currently using FMS 3.0 as a streaming solution in an effort to prevent 
people stealing our FLV's, with limited success.  The main issue we're running 
into is people using stream downloading software which is basically creating a 
new connection to FMS and downloading the stream.  My question is - is it 
possible to intercept the FLV stream coming into a Flex application before it 
goes into the buffer and edit those bytes?  Basically I'm looking at the 
possibility of encrypting the FLV on the server and then decrypting it on the 
fly as it streams into the Flex application.  Does anyone know if this is 
feasible or not, or if not, what about the idea of decrypting the data in the 
buffer prior to it being accessed by the video player?  I'm still semi-new to 
the whole concept of streaming video and FLV playback so if this is a stupid 
question please be gentle :).

Cheers



[flexcoders] Data changed in xml file does not updated in

2009-05-04 Thread jam35bond
Hi all,
My mxml has 2 components like this:


  


I have to recompile the program with Flexbuilder everytime I got data changed 
in the XML file.

How do I do that if I only want to get the front end display data changed by 
only update the XML file without recompiling the whole program?

I am using Flex SDK3.2
Thanks



[flexcoders] Help Needed

2009-05-04 Thread Gopal Anne
Hi,

Does anyone knows how to 
-streaming videos, connecting to webcam and recording videos and stream the 
same to servers
-Stream voice mails and recording using flex 
 
Regards,
Gopal


  

[flexcoders] for better performance, use "as" rather than just leaving an object as Object?

2009-05-04 Thread Pan Troglodytes
I was curious as to the difference between a few different ways of
approaching the situation of an itemRenderer having a "data" property and
deciding whether or not to use "as" to make all the type checking happy.  So
I tried some test code and found that it made a big difference whether you
use "as" or just leave the data property as an Object.  If you leave it as
an Object, you get a performance hit on the order of 40%+ longer than if you
use "as" to cast it first.

Here are the ways I tested it.  I just decided to pull the "id" property
because it's something that is just a simple access of a private variable,
no complicated stuff.

var b:Button = new Button;
var o:Object = b;
var s:String;

s = b.id;
s = (o as Button).id;
s = Button(o).id;
s = UIComponent(o).id;
s = (o as UIComponent).id;
s = o.id;

I did get a bit fancy and put them in a loop and a timer to isolate each
one.  The full code is included below.

What I found was along the lines of this (give or take a few %):

Button: 3.16
Button():   4.06  129%
as Button:  4.14  131%
UIComponent():  3.98  126%
as UIComponent: 4.03  128%
Object: 5.38  170%

I put in the UIComponent ones because sometimes I cast it to a superclass
because I might get several different subclasses passed into a function.

So what I've found is that if you ignore than noise, the middle four methods
are also approximately the same in timings.  But the Object one is far
worse.  This probably won't come as any surprise to the Adobe folks or the
people who have been working with Flex a bit more in-depth.  I found it
rather useful information, though, considering I'm trying to shave off some
time in various places in one of my apps.  Granted, it won't matter as much
outside of loops.

So many things return the items as objects, such as Arrays/ArrayCollection,
the "data" property of item renderers, etc.  I think I'm just going to make
it a habit to put "as" in my code (and not the format of Class(variable)
because sometimes that triggers a function rather than just doing a casting)
all the time.  It helps catch errors by doing strict type checking (as long
as you aren't using dynamic classes) and it's a little faster to boot.

Still, I wish it was as fast as the top line where you don't have to do any
casting/as at all.  Any thoughts on that or anything else I've missed?  Any
flash insiders want to give your insight on why it works this way under the
hood?



http://www.adobe.com/2006/mxml";
  >
  


[flexcoders] alpha - containers, buttons, and skins

2009-05-04 Thread arieljake
Hi, I am trying to understand a weird behavior i am observing when trying to 
use the alpha property.

Please see this image: 
http://ariel-jakobovits.com/AJ/images/flex/browserControlsAlpha.png

I am trying to fade out a box of internet browsing controls when the mouse is 
rolled-out because the controls are placed over the html control.

When i set the alpha property of the container (HBox), clearly the background 
of the box and the buttons themselves are all affected, but there is a clear 
variation in the coloring.

The box is styled with a background image, and the buttons are skinned with 
images as well.



Re: [flexcoders] Re: Run swf on server

2009-05-04 Thread Jamie S
I was in a similar boat, having to generate an image server-side to
that matches what the user sees in a flash movie client-side.
Unfortunately there is no command-line version of Flash but AIR is
almost as good. You can launch an AIR app from the command-line on the
server and pass it in your data as command-line arguments. When
finished the AIR app can save the image to the file system and
terminate.

J

On Mon, May 4, 2009 at 3:17 PM, lagos_tout  wrote:
>
>
> Hi,
>
> Thanks for your response.
>
> Since I already have a swf that generates a complex view using data
> provided, what I'd like to be able to do is not have to recreate this logic
> in some other language just so that the server can generate images of the
> result.
>
> AS3 provides image generation for display classes. And if I could run the
> swf on the server, instead of on the client-side, there would be no network
> overhead of having to send the rendered image to the server.
>
> LT
>
> --- In flexcoders@yahoogroups.com, "Kevin F. Benz"  wrote:
>>
>> Well.
>>
>> You can run a swf in Air but I expect that is the least of your headaches.
>>
>> I mean, what's the real objective. If you need to dynamically create
>> images,
>> why not do that in the server script as you won't have all the other goo?
>> This was figured out years ago as the age of the link will attest.
>>
>>
>>
>> http://www.javaworld.com/javaworld/jw-05-2000/jw-0505-servlets.html
>>
>>
>>
>> K
>>
>>
>>
>> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
>> Behalf Of lagos_tout
>> Sent: Monday, May 04, 2009 1:46 PM
>> To: flexcoders@yahoogroups.com
>> Subject: [flexcoders] Run swf on server
>>
>>
>>
>>
>>
>>
>>
>>
>> Hi, all.
>>
>> I'd appreciate any suggestions on how to implement the following use case:
>>
>> (1) a swf running in a browser on the client-side sends simple numeric
>> data
>> to a server-side script.
>> (2) the server-side script calls a second swf located on the same server
>> as
>> the script, passing it the numeric data.
>> (3) this swf uses the data to generate a layout in flash that is rendered
>> to
>> an image and either (a) returned directly as binary data to the
>> server-side
>> script or (b) saved locally on the server so that the server-side script
>> can
>> access it.
>>
>> It's steps 2 and 3 that have me stumped. How can I call a swf without a
>> browser, and by extension, without the Flash Player? Is there some way to
>> call a swf directly as an executable that can return output to the calling
>> process?
>>
>> Thanks much!
>>
>> LT
>>
>
> 


[flexcoders] Re: Simple sum operation issue

2009-05-04 Thread Tim Hoff

Actually, that will have problems too.

v = 1.5436;
var vString:String = String(Math.round(v*100));
var vLength:int = vString.length;
vString = vString.substr(0,vLength-2) + "." + vString.substr(sLength-2);

Go with the number formatter.

-TH

--- In flexcoders@yahoogroups.com, "Tim Hoff"  wrote:
>
>
> v = (Math.round (v*100))/100;
>
> -TH
>
> --- In flexcoders@yahoogroups.com, Marco Catunda marco.catunda@
> wrote:
> >
> > I resolved the problem of Floating Point.
> > I hadn't find any round function at Flex library. But this is on
> > NumberFormatter class.
> > Sorry!!
> >
> > Here is a workaround of this issue.
> >
> > 
> > http://www.adobe.com/2006/mxml";
> layout="absolute"
> > creationComplete="onCreationComplete(event)">
> >
> > 
> > 
> > 
> >
> > 
> >
> > 
> >
> > --
> > Marco Catunda
> >
> >
> >
> >
> > On Mon, May 4, 2009 at 8:55 PM, Marco Catunda marco.catunda@ wrote:
> > > I've just stumble upon this problem... Take a look at below code:
> > >
> > > 
> > > http://www.adobe.com/2006/mxml";
> layout="absolute"
> > > creationComplete="onCreationComplete(event)">
> > >
> > > 
> > > 
> > > 
> > >
> > >  horizontalCenter="0"/>
> > >
> > > 
> > >
> > >
> > > The result should be 2925.19, but I've got 2925.18996.
> > >
> > > Any tips?
> > >
> > >
> > > Cheers
> > > --
> > > Marco Catunda
> > >
> >
>





[flexcoders] Re: Simple sum operation issue

2009-05-04 Thread Tim Hoff

v = (Math.round (v*100))/100;

-TH

--- In flexcoders@yahoogroups.com, Marco Catunda 
wrote:
>
> I resolved the problem of Floating Point.
> I hadn't find any round function at Flex library. But this is on
> NumberFormatter class.
> Sorry!!
>
> Here is a workaround of this issue.
>
> 
> http://www.adobe.com/2006/mxml";
layout="absolute"
> creationComplete="onCreationComplete(event)">
>
> 
> 
> 
>
> 
>
> 
>
> --
> Marco Catunda
>
>
>
>
> On Mon, May 4, 2009 at 8:55 PM, Marco Catunda marco.catu...@... wrote:
> > I've just stumble upon this problem...  Take a look at below code:
> >
> > 
> > http://www.adobe.com/2006/mxml";
layout="absolute"
> >creationComplete="onCreationComplete(event)">
> >
> >
> >
> >
> >
> >
> >
> > 
> >
> >
> > The result should be 2925.19, but I've got 2925.18996.
> >
> > Any tips?
> >
> >
> > Cheers
> > --
> > Marco Catunda
> >
>





[flexcoders] Re: Newbie question: Custom Components and Custom Events

2009-05-04 Thread Tim Hoff

Yeah, as Tracy says, the constant only helps to avoid mis-spelling, by
having the compiler help out.  You could have done this as well:

win.addEventListener("userSubmit", onSubmit);

-TH

--- In flexcoders@yahoogroups.com, Alan Rother  wrote:
>
> A!!!
>
> Bingo, thanks everyone... Coming from the a very linear programming
> background the OO stuff is getting me...
>
>
> =]
>
> --
> Alan Rother
> Adobe Certified Advanced ColdFusion MX 7 Developer
> Manager, Phoenix Cold Fusion User Group, AZCFUG.org
>




Re: [flexcoders] Re: Newbie question: Custom Components and Custom Events

2009-05-04 Thread Alan Rother
A!!!

Bingo, thanks everyone... Coming from the a very linear programming
background the OO stuff is getting me...


=]

-- 
Alan Rother
Adobe Certified Advanced ColdFusion MX 7 Developer
Manager, Phoenix Cold Fusion User Group, AZCFUG.org


[flexcoders] Re: Newbie question: Custom Components and Custom Events

2009-05-04 Thread Tim Hoff
//File: UserEvents.as
package events { import flash.events.Event;  import vo.User;
public class UserEvents extends Event {
public static const USER_SUBMIT:String = "userSubmit";
public var user:User;  public function UserEvents(type:String,
bubbles:Boolean=false, cancelable:Boolean=false) { super(type, bubbles,
cancelable); }  } }
--- In flexcoders@yahoogroups.com, Alan Rother  wrote:
>
> This is the entire UserEvents class as the example showed me how to
build
> it. I'm guessing that the declaration for my event is supposed to be
in
> here, but in the demo we actually created it in the component we were
> loading. How and where do I add it to the UserEvents class and why
does it
> work when I call it from MXML but not from AS?
> //File: UserEvents.as
> package events
> {
> import flash.events.Event;
> import vo.User;
>
> public class UserEvents extends Event
> {
> public var user:User;
> public function UserEvents(type:String, bubbles:Boolean=false,
> cancelable:Boolean=false)
> {
> super(type, bubbles, cancelable);
> }
> }
> }
>
>
> //Script Code from Component
> 
> [Event(name="userSubmit", type="events.UserEvents")]
> 
> 
> 
> 
>
> --
> Alan Rother
> Adobe Certified Advanced ColdFusion MX 7 Developer
> Manager, Phoenix Cold Fusion User Group, AZCFUG.org
>



RE: [flexcoders] Newbie question: Custom Components and Custom Events

2009-05-04 Thread Tracy Spratt
This metadata makes it available in mxml:

[Event(name="userSubmit", type="events.UserEvents")]

 

But the syntax UserEvents.USER_SUBMIT requires a contant in that class:

public class UserEvents extends Event

{

  public static const USER_SUBMIT:String = "userSubmit";

 

Using a constant like that just ensures you won't misspell "userSubmit".

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Alan Rother
Sent: Monday, May 04, 2009 8:15 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Newbie question: Custom Components and Custom
Events

 






This is the entire UserEvents class as the example showed me how to build
it. I'm guessing that the declaration for my event is supposed to be in
here, but in the demo we actually created it in the component we were
loading. How and where do I add it to the UserEvents class and why does it
work when I call it from MXML but not from AS?

 

//File: UserEvents.as

package events

{

import flash.events.Event;  

import vo.User;

 

public class UserEvents extends Event

{

public var user:User;



public function UserEvents(type:String,
bubbles:Boolean=false, cancelable:Boolean=false)

{

super(type, bubbles, cancelable);

}



}

}

 

 

//Script Code from Component



[Event(name="userSubmit", type="events.UserEvents")]










-- 
Alan Rother
Adobe Certified Advanced ColdFusion MX 7 Developer
Manager, Phoenix Cold Fusion User Group, AZCFUG.org





[flexcoders] Re: Simple sum operation issue

2009-05-04 Thread Marco Catunda
I resolved the problem of Floating Point.
I hadn't find any round function at Flex library. But this is on
NumberFormatter class.
Sorry!!

Here is a workaround of this issue.


http://www.adobe.com/2006/mxml"; layout="absolute"
creationComplete="onCreationComplete(event)">









--
Marco Catunda




On Mon, May 4, 2009 at 8:55 PM, Marco Catunda  wrote:
> I've just stumble upon this problem...  Take a look at below code:
>
> 
> http://www.adobe.com/2006/mxml"; layout="absolute"
>        creationComplete="onCreationComplete(event)">
>
>        
>                
>        
>
>        
>
> 
>
>
> The result should be 2925.19, but I've got 2925.18996.
>
> Any tips?
>
>
> Cheers
> --
> Marco Catunda
>


Re: [flexcoders] Newbie question: Custom Components and Custom Events

2009-05-04 Thread Alan Rother
This is the entire UserEvents class as the example showed me how to build
it. I'm guessing that the declaration for my event is supposed to be in
here, but in the demo we actually created it in the component we were
loading. How and where do I add it to the UserEvents class and why does it
work when I call it from MXML but not from AS?
//File: UserEvents.as
package events
{
import flash.events.Event;
import vo.User;

public class UserEvents extends Event
{
public var user:User;
 public function UserEvents(type:String, bubbles:Boolean=false,
cancelable:Boolean=false)
{
super(type, bubbles, cancelable);
}
 }
}


//Script Code from Component

[Event(name="userSubmit", type="events.UserEvents")]





-- 
Alan Rother
Adobe Certified Advanced ColdFusion MX 7 Developer
Manager, Phoenix Cold Fusion User Group, AZCFUG.org


Re: [flexcoders] Re: TabNavigator creationPolicy

2009-05-04 Thread Richard Rodseth
Not much, but when you're driving the state from outside (perhaps the app is
bookmarkable, or perhaps the state is loaded from some configuration), then
I think it's nice to separate the notion of state from how it's implemented.

On Mon, May 4, 2009 at 4:59 PM, Tracy Spratt  wrote:

>
>
>  What is the State buying you in this case?  Why not just set
> ViewStack.selectedIndex = 0; //or 1?
>
>
>
> Tracy Spratt,
>
> Lariat Services, development services available
>   --
>
> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> Behalf Of *Richard Rodseth
> *Sent:* Monday, May 04, 2009 7:06 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* Re: [flexcoders] Re: TabNavigator creationPolicy
>
>
>
>
>
>
>  I think I've tracked down what's going on in the actual application (I
> inherited this portion of the code). The TabNavigator is added in an
> AddChild tag, and in this case all the children and their children appear to
> get created. Switching to a viewstack as below solved the problem. I
> actually quite like this state/viewstack idiom.
>
> Not sure why the TabNavigator would behave differently in an AddChild,
> though.
>
> 
> http://www.adobe.com/2006/mxml";
> layout="vertical" xmlns:local="*" currentState="login">
>
> 
> 
>  value="{tabs}"/>
> 
> 
>   value="{login}"/>
> 
> 
>
> 
>
> 
> 
>
> 
>   creationPolicy="auto">
>
> 
>  creationComplete="trace('One  complete')">
> 
>
> 
>
> 
> 
>  creationComplete="trace('Two  complete')">
> 
>
> 
>
> 
> 
>  creationComplete="trace('Three panel complete')"/>
>
> 
>
> 
>
> 
>
>
> 
>
> On Mon, May 4, 2009 at 2:05 PM, Amy  wrote:
>
>
>
> --- In flexcoders@yahoogroups.com , Richard
> Rodseth  wrote:
> >
> > Created a test case below (creation policy is the default null). Most of
> the
> > time, the trace shows "One complete" and when you activate tabs Two and
> > Three you see the trace from those creationComplete events, as expected.
> >
> > But I swear sometimes the Tab Three events fire at startup!
>
> Since none of them have any children, I would expect for their creation to
> be complete immediately--there's nothing else to be done in the creation
> process that hasn't already been done before the labels display in the
> TabNavigator.
>
>
>   
>


RE: [flexcoders] Re: TabNavigator creationPolicy

2009-05-04 Thread Tracy Spratt
What is the State buying you in this case?  Why not just set
ViewStack.selectedIndex = 0; //or 1?

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Richard Rodseth
Sent: Monday, May 04, 2009 7:06 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: TabNavigator creationPolicy

 






I think I've tracked down what's going on in the actual application (I
inherited this portion of the code). The TabNavigator is added in an
AddChild tag, and in this case all the children and their children appear to
get created. Switching to a viewstack as below solved the problem. I
actually quite like this state/viewstack idiom.

Not sure why the TabNavigator would behave differently in an AddChild,
though.


http://www.adobe. 
com/2006/mxml" layout="vertical" xmlns:local="*" currentState="login">






 









 



























On Mon, May 4, 2009 at 2:05 PM, Amy mailto:amyblankens...@bellsouth.net> bellsouth.net> wrote:

 

--- In flexcod...@yahoogro  ups.com,
Richard Rodseth  wrote:
>
> Created a test case below (creation policy is the default null). Most of
the
> time, the trace shows "One complete" and when you activate tabs Two and
> Three you see the trace from those creationComplete events, as expected.
> 
> But I swear sometimes the Tab Three events fire at startup!

Since none of them have any children, I would expect for their creation to
be complete immediately--there's nothing else to be done in the creation
process that hasn't already been done before the labels display in the
TabNavigator.

 





RE: [flexcoders] Newbie question: Custom Components and Custom Events

2009-05-04 Thread Tracy Spratt
Yes, as Sam says.

 

Also, you could look in the UserEvents code to see what the value of that
constant is and use that string.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Sam Lai
Sent: Monday, May 04, 2009 7:11 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Newbie question: Custom Components and Custom
Events

 






Looks like the USER_SUBMIT variable or constant in your UserEvents
class is not static, but you're accessing it in a static way.

They should be static, so add they keyword static before the var
keyword when you declare USER_SUBMIT and it should all work.

On 5/5/09, Alan Rother mailto:alan.rother%40gmail.com>
gmail.com> wrote:
> Hey All,
> I'm playing around with a super simple demo Simeon Bateman posted on his
> blog
> (http://blog.

simb.net/2009/05/01/flex-101-back-to-the-basics/)
simb.net/2009/05/01/flex-101-back-to-the-basics/>
>
> It's just a little tool designed to teach basic MVC / OO principles to
newbs
> like me. I've get what it's doing and why it works, now I'm trying to
extend
> on it.
>
>
> I'm trying to take this custom component and instead of displaying it in
the
> main app, open it in a pop up window.
>
> 
>
>
> I can get it to do that just fine, but I cannot get the custom event
> registered with the addEventListener. I get the following error message:
>
> 1119: Access of possibly undefined property USER_SUBMIT through a
reference
> with static type Class.
>
>
>
> Any thoughts? It works properly when I use it as is in MXML form, but not
> when I try to create the object using AS.
>
>
> private function openWindow():void {
> win = view.UserForm(PopUpManager.createPopUp(this, UserForm, false));
> PopUpManager.centerPopUp(win);
> win.addEventListener(UserEvents.USER_SUBMIT, onSubmit);
> }
>
> --
> Alan Rother
> Adobe Certified Advanced ColdFusion MX 7 Developer
> Manager, Phoenix Cold Fusion User Group, AZCFUG.org
>

-- 
Sent from my mobile device





[flexcoders] Simple sum operation issue

2009-05-04 Thread Marco Catunda
I've just stumble upon this problem...  Take a look at below code:


http://www.adobe.com/2006/mxml"; layout="absolute"
creationComplete="onCreationComplete(event)">










The result should be 2925.19, but I've got 2925.18996.

Any tips?


Cheers
--
Marco Catunda


Re: [flexcoders] Newbie question: Custom Components and Custom Events

2009-05-04 Thread Sam Lai
Looks like the USER_SUBMIT variable or constant in your UserEvents
class is not static, but you're accessing it in a static way.

They should be static, so add they keyword static before the var
keyword when you declare USER_SUBMIT and it should all work.

On 5/5/09, Alan Rother  wrote:
> Hey All,
> I'm playing around with a super simple demo Simeon Bateman posted on his
> blog
> (http://blog.simb.net/2009/05/01/flex-101-back-to-the-basics/)
>
> It's just a little tool designed to teach basic MVC / OO principles to newbs
> like me. I've get what it's doing and why it works, now I'm trying to extend
> on it.
>
>
> I'm trying to take this custom component and instead of displaying it in the
> main app, open it in a pop up window.
>
> 
>
>
>  I can get it to do that just fine, but I cannot get the custom event
> registered with the addEventListener. I get the following error message:
>
> 1119: Access of possibly undefined property USER_SUBMIT through a reference
> with static type Class.
>
>
>
> Any thoughts? It works properly when I use it as is in MXML form, but not
> when I try to create the object using AS.
>
>
> private function openWindow():void {
> win = view.UserForm(PopUpManager.createPopUp(this, UserForm, false));
> PopUpManager.centerPopUp(win);
> win.addEventListener(UserEvents.USER_SUBMIT, onSubmit);
> }
>
> --
> Alan Rother
> Adobe Certified Advanced ColdFusion MX 7 Developer
> Manager, Phoenix Cold Fusion User Group, AZCFUG.org
>

-- 
Sent from my mobile device


Re: [flexcoders] Re: TabNavigator creationPolicy

2009-05-04 Thread Richard Rodseth
I think I've tracked down what's going on in the actual application (I
inherited this portion of the code). The TabNavigator is added in an
AddChild tag, and in this case all the children and their children appear to
get created. Switching to a viewstack as below solved the problem. I
actually quite like this state/viewstack idiom.

Not sure why the TabNavigator would behave differently in an AddChild,
though.


http://www.adobe.com/2006/mxml"; layout="vertical"
xmlns:local="*" currentState="login">






 









 



























On Mon, May 4, 2009 at 2:05 PM, Amy  wrote:

>
>
> --- In flexcoders@yahoogroups.com , Richard
> Rodseth  wrote:
> >
> > Created a test case below (creation policy is the default null). Most of
> the
> > time, the trace shows "One complete" and when you activate tabs Two and
> > Three you see the trace from those creationComplete events, as expected.
> >
> > But I swear sometimes the Tab Three events fire at startup!
>
> Since none of them have any children, I would expect for their creation to
> be complete immediately--there's nothing else to be done in the creation
> process that hasn't already been done before the labels display in the
> TabNavigator.
>
>  
>


RE: [flexcoders] Check to see if component is visible

2009-05-04 Thread Alex Harui
If you did:





then the ModuleLoader for the tab that is not selected should have visible=false

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of mmormando
Sent: Monday, May 04, 2009 1:49 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Check to see if component is visible





Sorry if this explained in detail somewhere, but if it is I haven't been able 
to find it. I've got modules embedded in tabs, if the module isn't visible I 
don't want it to react to certain eventsthe problem is, every component 
I've checked, including the module itself, the visible property is "true". One 
suggestion I did find said that perhaps something in the "parent" chain would 
show as visible false...but this does not appear to be the case.
Anyone have any suggestions?
tia
Mike



Re: [flexcoders] Re: Mate and sharing data across files

2009-05-04 Thread Seona Bellamy
Aha! I had obviously missed the bit about the "new User()" when I was trying
to adapt the example code.

Sadly, today my flex2gateway has started throwing a 500 error again for no
apparent reason so I can't test it until I figure out how to fix that. I
really hate how flaky this thing is - apparently just turning your computer
off for the night is enough to take it out even if you make no other
changes. :(


As for the CFC side of things, yes, the CFC does return a query object
directly. I'd not realised that there was any other way to go about this.
Like the idea of actually returning it as a User object, though. Once I get
the flex2gateway issue sorted I'll have a play with this too. Thanks for the
tip. :)

Cheers,

Seona.

2009/5/4 Tom McNeer 

>   The first thing I see is that you have not declared thisUser as a new
> User. In your initial code, either do:
> public var thisUser:User = new User();
>
> ...or in your function, do:
> thisUser:User = new User();
>
> ... then follow with your thisUser.id code.
>
> Another suggestion, though. On the Flex side, you have a User class created
> to use as a VO:
>
>>
>> [Bindable]
>> public class User
>>
>
> ... but the result of your service call is expecting an ArrayCollection:
> public function login(userDetail:ArrayCollection):Boolean {
>
> if (userDetail.length > 0) {
>thisUser.id = userDetail.getItemAt(0).id as Number;
>return true;
> }
> return false;
> }
>
> Is UserDetail really an ArrayCollection? What's happening in your CFC
> method? It appears as if you're passing a  object, so I'm guessing
> you're doing a query based on the login information, and returning the query
> object directly.
>
> While that will work, you should think about having a matching User object
> the CF side. The signature needs to be the same as that of User.as, and
> User.as will need an "alias" statement at the top which refers to the CFC
> dot-delimited path. Check the CF docs about this. Fill the User.cfc with the
> data from your query, send the User object to Flex, and it will
> automatically be converted into an object of the User class. No
> ArrayCollection stuff.
>
> Alternatively, from your query, you can create a "typed struct," which
> "pretends" to be a User.cfc. Like this:
>
> 
>
>  (Note the two underscores
> on either side of 'type.')
>
> 
>
> ... and so on. Return the struct to Flex, and it will be typed as a User
> VO, populated from CF.
>


Re: [flexcoders] Newbie question: Custom Components and Custom Events

2009-05-04 Thread Alan Rother
>>>Did you import UserEvents?

Yep...


http://www.adobe.com/2006/mxml"; layout="vertical"
xmlns:local="*" xmlns:view="view.*">









-- 
Alan Rother
Adobe Certified Advanced ColdFusion MX 7 Developer
Manager, Phoenix Cold Fusion User Group, AZCFUG.org


RE: [flexcoders] Newbie question: Custom Components and Custom Events

2009-05-04 Thread Tracy Spratt
Did you import UserEvents?

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Alan Rother
Sent: Monday, May 04, 2009 6:18 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Newbie question: Custom Components and Custom Events

 






Hey All,

 

I'm playing around with a super simple demo Simeon Bateman posted on his
blog (http://blog.

simb.net/2009/05/01/flex-101-back-to-the-basics/)

 

It's just a little tool designed to teach basic MVC / OO principles to newbs
like me. I've get what it's doing and why it works, now I'm trying to extend
on it.

 

 

I'm trying to take this custom component and instead of displaying it in the
main app, open it in a pop up window.

 



 

 

 I can get it to do that just fine, but I cannot get the custom event
registered with the addEventListener. I get the following error message:


1119: Access of possibly undefined property USER_SUBMIT through a reference
with static type Class.

 

 

 

Any thoughts? It works properly when I use it as is in MXML form, but not
when I try to create the object using AS.

 

 

private function openWindow():void {

win =
view.UserForm(PopUpManager.createPopUp(this, UserForm, false));

 
PopUpManager.centerPopUp(win);

 
win.addEventListener(UserEvents.USER_SUBMIT, onSubmit);

}


-- 
Alan Rother
Adobe Certified Advanced ColdFusion MX 7 Developer
Manager, Phoenix Cold Fusion User Group, AZCFUG.org





[flexcoders] Newbie question: Custom Components and Custom Events

2009-05-04 Thread Alan Rother
Hey All,
I'm playing around with a super simple demo Simeon Bateman posted on his
blog 
(http://blog.simb.net/2009/05/01/flex-101-back-to-the-basics/)

It's just a little tool designed to teach basic MVC / OO principles to newbs
like me. I've get what it's doing and why it works, now I'm trying to extend
on it.


I'm trying to take this custom component and instead of displaying it in the
main app, open it in a pop up window.




 I can get it to do that just fine, but I cannot get the custom event
registered with the addEventListener. I get the following error message:

1119: Access of possibly undefined property USER_SUBMIT through a reference
with static type Class.



Any thoughts? It works properly when I use it as is in MXML form, but not
when I try to create the object using AS.


private function openWindow():void {
win = view.UserForm(PopUpManager.createPopUp(this, UserForm, false));
PopUpManager.centerPopUp(win);
win.addEventListener(UserEvents.USER_SUBMIT, onSubmit);
}

-- 
Alan Rother
Adobe Certified Advanced ColdFusion MX 7 Developer
Manager, Phoenix Cold Fusion User Group, AZCFUG.org


[flexcoders] Re: Run swf on server

2009-05-04 Thread lagos_tout
Hi, 

Thanks for your response.

Since I already have a swf that generates a complex view using data provided, 
what I'd like to be able to do is not have to recreate this logic in some other 
language just so that the server can generate images of the result.  

AS3 provides image generation for display classes.  And if I could run the swf 
on the server, instead of on the client-side, there would be no network 
overhead of having to send the rendered image to the server.

LT 

--- In flexcoders@yahoogroups.com, "Kevin F. Benz"  wrote:
>
> Well.
> 
> You can run a swf in Air but I expect that is the least of your headaches.
> 
> I mean, what's the real objective. If you need to dynamically create images,
> why not do that in the server script as you won't have all the other goo?
> This was figured out years ago as the age of the link will attest.
> 
>  
> 
> http://www.javaworld.com/javaworld/jw-05-2000/jw-0505-servlets.html
> 
>  
> 
> K
> 
>  
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of lagos_tout
> Sent: Monday, May 04, 2009 1:46 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Run swf on server
> 
>  
> 
> 
> 
> 
> 
> 
> Hi, all.
> 
> I'd appreciate any suggestions on how to implement the following use case:
> 
> (1) a swf running in a browser on the client-side sends simple numeric data
> to a server-side script. 
> (2) the server-side script calls a second swf located on the same server as
> the script, passing it the numeric data. 
> (3) this swf uses the data to generate a layout in flash that is rendered to
> an image and either (a) returned directly as binary data to the server-side
> script or (b) saved locally on the server so that the server-side script can
> access it.
> 
> It's steps 2 and 3 that have me stumped. How can I call a swf without a
> browser, and by extension, without the Flash Player? Is there some way to
> call a swf directly as an executable that can return output to the calling
> process?
> 
> Thanks much!
> 
> LT
>




RE: [flexcoders] Run swf on server

2009-05-04 Thread Kevin F. Benz
Well.

You can run a swf in Air but I expect that is the least of your headaches.

I mean, what's the real objective. If you need to dynamically create images,
why not do that in the server script as you won't have all the other goo?
This was figured out years ago as the age of the link will attest.

 

http://www.javaworld.com/javaworld/jw-05-2000/jw-0505-servlets.html

 

K

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of lagos_tout
Sent: Monday, May 04, 2009 1:46 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Run swf on server

 






Hi, all.

I'd appreciate any suggestions on how to implement the following use case:

(1) a swf running in a browser on the client-side sends simple numeric data
to a server-side script. 
(2) the server-side script calls a second swf located on the same server as
the script, passing it the numeric data. 
(3) this swf uses the data to generate a layout in flash that is rendered to
an image and either (a) returned directly as binary data to the server-side
script or (b) saved locally on the server so that the server-side script can
access it.

It's steps 2 and 3 that have me stumped. How can I call a swf without a
browser, and by extension, without the Flash Player? Is there some way to
call a swf directly as an executable that can return output to the calling
process?

Thanks much!

LT 





[flexcoders] Re: TabNavigator creationPolicy

2009-05-04 Thread Amy
--- In flexcoders@yahoogroups.com, Richard Rodseth  wrote:
>
> Created a test case below (creation policy is the default null). Most of the
> time, the trace shows "One complete" and when you activate tabs Two and
> Three you see the trace from those creationComplete events, as expected.
> 
> But I swear sometimes the Tab Three events fire at startup!

Since none of them have any children, I would expect for their creation to be 
complete immediately--there's nothing else to be done in the creation process 
that hasn't already been done before the labels display in the TabNavigator.



[flexcoders] Check to see if component is visible

2009-05-04 Thread mmormando
Sorry if this explained in detail somewhere, but if it is I haven't been able 
to find it. I've got modules embedded in tabs, if the module isn't visible I 
don't want it to react to certain eventsthe problem is, every component 
I've checked, including the module itself, the visible property is "true". One 
suggestion I did find said that perhaps something in the "parent" chain would 
show as visible false...but this does not appear to be the case. 
Anyone have any suggestions? 
tia
Mike




[flexcoders] Run swf on server

2009-05-04 Thread lagos_tout
Hi, all.

I'd appreciate any suggestions on how to implement the following use case:

(1) a swf running in a browser on the client-side sends simple numeric data to 
a server-side script. 
(2) the server-side script calls a second swf located on the same server as the 
script, passing it the numeric data. 
(3) this swf uses the data to generate a layout in flash that is rendered to an 
image and either (a) returned directly as binary data to the server-side script 
or (b) saved locally on the server so that the server-side script can access it.

It's steps 2 and 3 that have me stumped. How can I call a swf without a 
browser, and by extension, without the Flash Player?  Is there some way to call 
a swf directly as an executable that can return output to the calling process?

Thanks much!

LT  



[flexcoders] Flex Bug Fix Changelists Correlate to What?

2009-05-04 Thread Adrian Williams

Hi all,

   I've been keeping an eye on a couple bugs that we've opened with 
Adobe and see they have been fixed, but can't figure out what that 
translates to in terms of when we can get our hands on the fix and from 
where.  For example we see:


Fixed in changelist 227803

   I can't seem to find information out there that will give us the 
answers to where this fix lives.  Anyone know?


Best,
Adrian


[flexcoders] Re: How to Install BLaseDS

2009-05-04 Thread aglosband
Is there a specific problem you are having? If not and you just need the 
installation instructions, you can find them here. 

http://opensource.adobe.com/wiki/display/blazeds/Installation+Guide

The main BlazeDS web page with download links can be found here. 

http://opensource.adobe.com/wiki/display/blazeds/BlazeDS

Hope that helps. 

-Alex 



--- In flexcoders@yahoogroups.com, Shabir Gilkar  wrote:
>
> Can any body help me how to install BlaseDS
> 
> 
> 
> With High Regards 
> 
> Shabir Ahmad Gilkar
> 
> 
>   Now surf faster and smarter ! Check out the new Firefox 3 - Yahoo! 
> Edition http://downloads.yahoo.com/in/firefox/?fr=om_email_firefox
>




[flexcoders] Summery for each runtime generatet collumn in advanced datagrid

2009-05-04 Thread Deniz Davutoglu
Hi guys,
I try to get summary for each collumn in advanceddatagrid which is generated 
and grouped in runtime.
I try every sample I could find in web but didn't work. 
in my code some parts are remarked due different samples. 
I will appreciate if yo help me.


http://www.adobe.com/2006/mxml"; layout="vertical">























[flexcoders] Re: TabNavigator creationPolicy

2009-05-04 Thread Richard Rodseth
Created a test case below (creation policy is the default null). Most of the
time, the trace shows "One complete" and when you activate tabs Two and
Three you see the trace from those creationComplete events, as expected.

But I swear sometimes the Tab Three events fire at startup!

The docs for Container do say:
>>>
Navigator containers such as Accordion, TabNavigator, and ViewStack
implement the ContainerCreationPolicy.AUTO policy by creating all their
children immediately, but wait to create the deeper descendants of a child
until it becomes the selected child of the navigator container.
<<<

What I am seeing is not consistent with that either.

Thanks for any advice. I need a reliable way to defer the service calls
associated with each tab.


http://www.adobe.com/2006/mxml"; layout="vertical"
xmlns:local="*">



















ThreePanel.mxml:


http://www.adobe.com/2006/mxml";
creationComplete="onCreationComplete(event)">







On Fri, May 1, 2009 at 4:46 PM, Richard Rodseth  wrote:

> I have a TabNavigator with creationPolicy = "auto".
> The immediate children are intermediate (superfluous) VBoxes containing the
> actual components to be displayed.
> Nevertheless actual component A's creationComplete fires even though it's
> tab is not the active one.
> What's up?
>


[flexcoders] Re: set camera position for 3d content

2009-05-04 Thread michaeljonknight
that got us going in the right direction.  we ended up doing this inside of 
resize.



  public function handleResize( pEvt:Event ):void {
var scale:Number = ((stage.stageHeight > stage.stageWidth) ? 
stage.stageWidth : stage.stageHeight) / BASE_SIZE
holder.scaleX = holder.scaleY = holder.scaleZ = scale
   
   var persp : PerspectiveProjection = new PerspectiveProjection();
   persp.focalLength = 480 * scale
   persp.projectionCenter = new Point(stage.stageWidth/2, 
((stage.stageHeight > stage.stageWidth) ? stage.stageWidth : stage.stageHeight) 
/ 2);
   holder.transform.perspectiveProjection = persp;

 
// center it
holder.x = (stage.stageWidth - BASE_SIZE * scale) / 2.0
   
--- In flexcoders@yahoogroups.com, "Kenneth Sutherland" 
 wrote:
>
> It's the perspectiveProjection.
> 
> When dealing with any 3D objects in flash 10 you really need to set this
> or it will not behave as you'd expect.
> 
>  
> 
> Add the following line to your startup function
> 
> var persp : PerspectiveProjection = new PerspectiveProjection();
> 
> persp.projectionCenter = new Point(0, 0 );
> 
>  
> 
> then
> 
>   face.transform.perspectiveProjection = persp;
> 
>  
> 
>  
> 
> That will do for your example.
> 
>  
> 
> Kenneth.
> 
>  
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of michaeljonknight
> Sent: 04 May 2009 15:09
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] set camera position for 3d content
> 
>  
> 
> 
> 
> 
> 
> 
> I am trying to solve a bug that I think is related to the camera
> position for z transforms. I want to resize my frame and keep the z
> positions in tact. However, as we scale the document the z transform
> slides from side to side. I think is because the initial camera position
> is centered in our frame. however, as we resize it the camera stays in
> the same place. 
> 
> The mxml below shows the problem. The face scales correctly when it is
> on the same z level as the rest of the face. Pressing the space bar
> moves it forward a bit and it no longer scales correctly. Seems like we
> are just missing something. 
> 
> Thanks in advance for the help.
> 
> 
> http://www.adobe.com/2006/mxml";
> layout="absolute" 
> width="150" height="150" backgroundAlpha="0" addedToStage="startUp();" >
> 
> 
> 
> 
> 
> 
> 
> Disclaimer 
> ---
> This electronic message contains information which may be privileged and 
> confidential. The information is intended to be for the use of the 
> individual(s) or entity named above. If you are not the intended recipient, 
> be aware that any disclosure, copying, distribution or use of the contents of 
> this information is prohibited. If you have received this electronic message 
> in error, please notify us by telephone on 0131 476 6000 and delete the 
> material from your computer. 
> Registered in Scotland number: SC 172507. 
> Registered office address: Quay House 142 Commercial Street Edinburgh EH6 
> 6LB. 
> 
> This email message has been scanned for viruses by Mimecast.
> ---
>




[flexcoders] Re: PopUp Size

2009-05-04 Thread jdizowat
Just to clarify.  I'm talking about the modal background size, not the popup.




[flexcoders] PopUp Size

2009-05-04 Thread jdizowat
Is there a way to change the modal background size of a PopUp TitleWindow?  I 
guess I don't understand the parent property.  I don't want the modal window to 
cover the entire application.  I just want it to cover a single component.

Thanks.



Re: [flexcoders] Flex Builder on Linux been scrapped ?

2009-05-04 Thread john fisher
I was thinking the same...

thomas parquier wrote:
> As eclipse is java based, how does fb happen to be incompletely ported to
> linux ?
>
> What about opening source of fb ? There must be some java developers who
> will be able to work on fb.
>
>   


Re: [flexcoders] Re: Flex Builder on Linux been scrapped ?

2009-05-04 Thread john fisher
Howard, once something gets traction, then licenses and boxes can be
bought. In spite of our stripped to the bone status, money somehow
appears for projects that have to get done.

Howard Fore wrote:
> How were you going to buy Flex Builder even if it was going to be
> available
> on Linux?
>
>   


[flexcoders] Re: Questions about Canvas and TitleWindow

2009-05-04 Thread Jason
Perfect Tim, works as you advertized, thank you. 

Jason

--- In flexcoders@yahoogroups.com, "Tim Hoff"  wrote:
>
> 
> Hi Jason,
> 
> For the TitleWindow, the surrounding area is affected by the
> borderAlpha.  For the canvas, you can set the backgroundColor (color is
> a style for the text).  If you're setting these with AS, you need to use
> myCanvas.setStyle("backgroundColor", 0xff);
> 
> -TH
>



Re: [flexcoders] Send parameters to .SWF

2009-05-04 Thread Nate Beck
What you're describing is called Deep-Linking in Flex.

http://labs.adobe.com/wiki/index.php/Flex_3:Feature_Introductions:_Deep_Linking

Look at that URL to get started.

On Mon, May 4, 2009 at 4:24 AM, p...@vin Uttarwar 
wrote:

>
>
> Hello.
>
> U can use flashvars for passing parameters to swf file from html.
> According to passed parameter u can select tabnavigator child or index.
>
> here are some usefull links :
>
>
> http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Parts&file=passingarguments_086_05.html
>
> http://blog.flexexamples.com/2007/08/07/grabbing-flashvars-from-the-embedding-html-template/
>
> Hope this will help you.
>
> Regards,
> Pravin
> 2009/5/4 christophe_jacquelin 
>
>>
>>
>> Hello,
>>
>> I have an application with a tabnavigator.
>> I want that a given html page launch the application with a given panel
>> open and another html page launch the application with the other panel open.
>>
>> How to indicates to the SWF which panel to open ?
>>
>> Thank you,
>> Christophe,
>>
>>
>  
>



-- 

Cheers,
Nate

http://blog.natebeck.net


[flexcoders] Advanced Data Grid - A working Demo for LockedRowCount property needed

2009-05-04 Thread grg_blls
Hi all,

Is there any working demo example in Flex 3, of a AdvancedDataGrid with 
LockedRowCount property set and capable of demonstrating its functionality?

Any help will be greatly appreciated.
Thanks in advance

George



[flexcoders] Re: Questions about Canvas and TitleWindow

2009-05-04 Thread Tim Hoff

Hi Jason,

For the TitleWindow, the surrounding area is affected by the
borderAlpha.  For the canvas, you can set the backgroundColor (color is
a style for the text).  If you're setting these with AS, you need to use
myCanvas.setStyle("backgroundColor", 0xff);

-TH

--- In flexcoders@yahoogroups.com, "Merrill, Jason" 
wrote:
>
> I'm creating some components on the fly with Actionscript in an MXML
> project.
>
> 1) For TitleWindow, where can I set the alpha of the surrounding
> title bar area, or whatever it's called? By default, it looks to be
> about 20% alpha.
> 2) For Canvas, how can I set the color? If I create it with code,
> there is no color property (according to Flexbuilder), but if I use
> MXML, there is. It inherits from Container, and UIComponent, so I
don't
> understand why with Actionscript's the compiler is giving an error
that
> there is no color property.
>
> All I really want is a nice background container of some kind to hold
a
> .swf file - either one of these would see to do the job, if only I
could
> set those properties like I can in MXML. Why do the properties
> available seem to be inconsistent between MXML and Actionscript?
>
> Thanks,
>
> Jason Merrill
>
> Bank of America <> Global
> Learning
> Shared Services Solutions Development
>
> Monthly meetings on the Adobe Flash platform for rich media
experiences
> - join the Bank of America Flash Platform Community
> 
>





RE: [flexcoders] Unexpected MOUSE_OUT generated for an HBox

2009-05-04 Thread Tracy Spratt
The mouse events are very low-level and may fire when you do not expect it.
rollOver and rollout are more predictable.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of rondo_smith
Sent: Monday, May 04, 2009 11:33 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Unexpected MOUSE_OUT generated for an HBox

 






Hello,

I experience strange behavior when listening to MOUSE_OUT for an HBox.
Normally when MOUSE_OUT is created the mouse coordinates passed are outside
the HBox which is my expectation as well but sometimes MOUSE_OUT gets
created with coordinates inside the HBox (I check with "hitTestPoint").
Usually when this happens the mouse is just about to leave the HBox so it's
still somehow ok. What's stranger though is that sometimes I get MOUSE_OUT
when simply moving the mouse within the HBox and this is really a problem.

Have you guys experienced something similar? Any guesses what could cause
such behavior?
BTW I am not sure if this problem is related to the fact this is an HBox. I
haven't tested with other containers.

Thanks,
Rondo





[flexcoders] Questions about Canvas and TitleWindow

2009-05-04 Thread Merrill, Jason
I'm creating some components on the fly with Actionscript in an MXML
project.  

1)  For TitleWindow, where can I set the alpha of the surrounding
title bar area, or whatever it's called?  By default, it looks to be
about 20% alpha.  
2)  For Canvas, how can I set the color?  If I create it with code,
there is no color property (according to Flexbuilder), but if I use
MXML, there is.  It inherits from Container, and UIComponent, so I don't
understand why with Actionscript's the compiler is giving an error that
there is no color property.  

All I really want is a nice background container of some kind to hold a
.swf file - either one of these would see to do the job, if only I could
set those properties like I can in MXML.  Why do the properties
available seem to be inconsistent between MXML and Actionscript?

Thanks,

Jason Merrill 

Bank of  America  <>   Global
Learning 
Shared Services Solutions Development 

Monthly meetings on the Adobe Flash platform for rich media experiences
- join the Bank of America Flash Platform Community
  





<>

[flexcoders] Pb with Upload and Event.Complete

2009-05-04 Thread christophe_jacquelin
Hello, 

I use this code : 
http://hybridhacking.com/tutorials/uploading-files-with-flex-using-php

The Event.Complete is never received when I upload the file to the server.It is 
working with wamp but not with the real site. 

fileRef.addEventListener(Event.COMPLETE, completeHandler);

Do you have any ideas ? 

Thank you,
Christophe, 





[flexcoders] Unexpected MOUSE_OUT generated for an HBox

2009-05-04 Thread rondo_smith
Hello,

I experience strange behavior when listening to MOUSE_OUT for an HBox.
Normally when MOUSE_OUT is created the mouse coordinates passed are outside the 
HBox which is my expectation as well but sometimes MOUSE_OUT gets created with 
coordinates inside the HBox (I check with "hitTestPoint").
Usually when this happens the mouse is just about to leave the HBox so it's 
still somehow ok. What's stranger though is that sometimes I get MOUSE_OUT when 
simply moving the mouse within the HBox and this is really a problem.

Have you guys experienced something similar? Any guesses what could cause such 
behavior?
BTW I am not sure if this problem is related to the fact this is an HBox. I 
haven't tested with other containers.

Thanks,
Rondo



[flexcoders] Visual positioning difference between browsers [5 Attachments]

2009-05-04 Thread Tom McNeer
Hi,

I need to re-open a topic from last week.

I know this should not be possible, but the same Flex code, with the same
images and same positioning, has positioned elements differently in
different browsers.

In the code below, a TabNavigator is created within a Canvas. It sits on top
of a background image, which includes a horizontal bar. The tabs should fit
within the horizontal bar. At least, that's the idea. However, the vertical
positioning of the tabs is different in Firefox, Safari and IE (6 and 7).

I've attached screenshots showing the differences.

The relevant code is:











The CSS for the Application contains:

Application {
color: #081263;
backgroundColor:#9bc8f2;
background-repeat:repeat-x;
background-image: Embed(source='assets/images/bg.png');

}

I've also attached the actual background png.

Has anyone seen anything like this, or have any ideas how to correct it?


-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560


RE: [flexcoders] AIR for shared file?

2009-05-04 Thread Kevin F. Benz
Possible? Yes

Practical? Probably not.

 

Managing the eventual collisions are going to bring about a lot of work.

 

Person A downloads the file, Person B downloads the file, Person A uploads
the changed file, Person B uploads the changed file and kills Person A's
changes.

 

Unless you use a check-in/check-out mechanism and manage time-outs, 

Unless you use a document fragment approach (but now have fragment
collisions).

Unless you use a source code management type approach but those bring with
them a mountain of code.

 

K

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of markflex2007
Sent: Monday, May 04, 2009 7:34 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] AIR for shared file?

 






Hi,

I plan to build a Air application,all users with the application will share
a file and also can update the file.

Do you think if it is possible? where I can save the file?Please give me a
idea.

Thanks for your help

Mark





[flexcoders] Re: I am so confused about the coordinate and transformation in AS 3

2009-05-04 Thread ACasualObserver
Thanks, Alex. This was very useful.

In reality, we have more than one S. All are added to Stage. we added another 
Sprite and add them between all those S and Stage and it is working so far.

All the mouse events work except the fact that we don't get the top part (zoom 
in, zoom out, etc.) of the context menu when right click.

Our other question is what changes the default "zoom in" in context menu makes 
in what object in the display tree?

Thanks again


--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> Don't know which other learning material to point you to, but the ASDoc for 
> Stage says that you shouldn't set the transform so it is likely that setting 
> parts of the transform may not work either.
> 
> Sounds like transforming S is working as expected as far as visuals are 
> concerned.  When I have an interactivity problem, I next look at the 
> interactivity properties like buttonMode, mouseEnabled and mouseChildren.
> 
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.
> Blog: http://blogs.adobe.com/aharui
> 




Re: [flexcoders] Pb with File Upload

2009-05-04 Thread claudiu ursica
There is s known bug for flex file upload on slow connections and it is flied 
on Adobe Jira give it a vote if this is your case too ...

http://bugs.adobe.com/jira/browse/FP-1946

C





From: christophe_jacquelin 
To: flexcoders@yahoogroups.com
Sent: Sunday, May 3, 2009 3:48:44 PM
Subject: [flexcoders] Pb with File Upload





Hello, 

I have tested several solutions on the web to upload a file with flex/php.
It is working on my computer with wamp but when I put online There is no file 
in the destination directory. 
I have all the php options right and the folder is 777. 
I don't find the solution.

Thank you,
Christophe, 


   


  

RE: [flexcoders] set camera position for 3d content

2009-05-04 Thread Kenneth Sutherland
It's the perspectiveProjection.

When dealing with any 3D objects in flash 10 you really need to set this
or it will not behave as you'd expect.

 

Add the following line to your startup function

var persp : PerspectiveProjection = new PerspectiveProjection();

persp.projectionCenter = new Point(0, 0 );

 

then

  face.transform.perspectiveProjection = persp;

 

 

That will do for your example.

 

Kenneth.

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of michaeljonknight
Sent: 04 May 2009 15:09
To: flexcoders@yahoogroups.com
Subject: [flexcoders] set camera position for 3d content

 






I am trying to solve a bug that I think is related to the camera
position for z transforms. I want to resize my frame and keep the z
positions in tact. However, as we scale the document the z transform
slides from side to side. I think is because the initial camera position
is centered in our frame. however, as we resize it the camera stays in
the same place. 

The mxml below shows the problem. The face scales correctly when it is
on the same z level as the rest of the face. Pressing the space bar
moves it forward a bit and it no longer scales correctly. Seems like we
are just missing something. 

Thanks in advance for the help.


http://www.adobe.com/2006/mxml";
layout="absolute" 
width="150" height="150" backgroundAlpha="0" addedToStage="startUp();" >







Disclaimer 
---
This electronic message contains information which may be privileged and 
confidential. The information is intended to be for the use of the 
individual(s) or entity named above. If you are not the intended recipient, be 
aware that any disclosure, copying, distribution or use of the contents of this 
information is prohibited. If you have received this electronic message in 
error, please notify us by telephone on 0131 476 6000 and delete the material 
from your computer. 
Registered in Scotland number: SC 172507. 
Registered office address: Quay House 142 Commercial Street Edinburgh EH6 6LB. 

This email message has been scanned for viruses by Mimecast.
---

[flexcoders] AIR for shared file?

2009-05-04 Thread markflex2007
Hi,

I plan to build a Air application,all users with the application will share a 
file and also can update the file.

Do you think if it is possible? where I can save the file?Please give me a idea.

Thanks for your help


Mark



[flexcoders] set camera position for 3d content

2009-05-04 Thread michaeljonknight
I am trying to solve a bug that I think is related to the camera position for z 
transforms.  I want to resize my frame and keep the z positions in tact.  
However, as we scale the document the z transform slides from side to side.   I 
think is because the initial camera position is centered in our frame.  
however, as we resize it the camera stays in the same place.  

The mxml below shows the problem. The face scales correctly when it is on the 
same z level as the rest of the face.  Pressing the space bar moves it forward 
a bit and it no longer scales correctly.  Seems like we are just missing 
something.  

Thanks in advance for the help.




http://www.adobe.com/2006/mxml"; layout="absolute" 
  width="150" height="150" backgroundAlpha="0" addedToStage="startUp();" >
  

  






Re: re[flexcoders] use image source property causes 1009 ?

2009-05-04 Thread Jason B
interesting, I managed to also just use this and its working as should






--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> Binding has built in tolerance for null pointers and will 'try again'
> 
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.
> Blog: http://blogs.adobe.com/aharui
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> Behalf Of Jason B
> Sent: Sunday, May 03, 2009 5:00 PM
> To: flexcoders@yahoogroups.com
> Subject: Re: re[flexcoders] use image source property causes 1009 ?
> 
> 
> 
> 
> 
> that binding source worked not sure why i cant do the same with actionscript?
> 
> --- In flexcoders@yahoogroups.com, 
> atifarooq  wrote:
> >
> >
> > hi,
> >
> > you may set
> > breakfast_img_item2.source = fast_img_item1.source after the complete event
> > is dispatched on fast_img_item1 or use something similar
> >
> >  > destination="breakfast_img_item2.source"/>
> >
> >
> > aot2002 wrote:
> > >
> > > I have an image source property which i want to pass to another image on a
> > > different display? Is there something special to passing image sources?
> > >
> > >
> > > TypeError: Error #1009: Cannot access a property or method of a null
> > > object reference.
> > >
> > >
> > > breakfast_img_item2.source = fast_img_item1.source;
> > >
> > > 
> > >
> > > 
> > >
> > >
> > >
> >
> > --
> > View this message in context: 
> > http://www.nabble.com/reuse-image-source-property-causes-1009---tp23351700p23354554.html
> > Sent from the FlexCoders mailing list archive at Nabble.com.
> >
>




Re: [flexcoders] Re: Mate and sharing data across files

2009-05-04 Thread Tom McNeer
Seona,

The first thing I see is that you have not declared thisUser as a new User.
In your initial code, either do:
public var thisUser:User = new User();

...or in your function, do:
thisUser:User = new User();

... then follow with your thisUser.id code.

Another suggestion, though. On the Flex side, you have a User class created
to use as a VO:

>
> [Bindable]
> public class User
>





... but the result of your service call is expecting an ArrayCollection:


public function login(userDetail:

ArrayCollection):Boolean {
if (userDetail.length > 0) {
   thisUser.id = userDetail.getItemAt(0).id as Number;
   return true;
}
return false;
}

Is UserDetail really an ArrayCollection? What's happening in your CFC
method? It appears as if you're passing a  object, so I'm guessing
you're doing a query based on the login information, and returning the query
object directly.

While that will work, you should think about having a matching User object
the CF side. The signature needs to be the same as that of User.as, and
User.as will need an "alias" statement at the top which refers to the CFC
dot-delimited path. Check the CF docs about this. Fill the User.cfc with the
data from your query, send the User object to Flex, and it will
automatically be converted into an object of the User class. No
ArrayCollection stuff.

Alternatively, from your query, you can create a "typed struct," which
"pretends" to be a User.cfc. Like this:



 (Note the two underscores
on either side of 'type.')



... and so on. Return the struct to Flex, and it will be typed as a User VO,
populated from CF.



-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560


Re: [flexcoders] Re: Flex Builder on Linux been scrapped ?

2009-05-04 Thread Howard Fore
On Fri, May 1, 2009 at 12:49 PM, john fisher  wrote:

> 2) My company is a Linux shop and no license money is available for
> experimental projects; CTO wants Java and the only way I can convince
> him Flex/Flash is better is to show something else that works.
>

How were you going to buy Flex Builder even if it was going to be available
on Linux?

--
Howard Fore, howard.f...@hofo.com
"The universe tends toward maximum irony. Don't push it." - Jeff Atwood


Re: [flexcoders] Send parameters to .SWF

2009-05-04 Thread p...@vin Uttarwar
Hello.

U can use flashvars for passing parameters to swf file from html.
According to passed parameter u can select tabnavigator child or index.

here are some usefull links :

http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Parts&file=passingarguments_086_05.html
http://blog.flexexamples.com/2007/08/07/grabbing-flashvars-from-the-embedding-html-template/

Hope this will help you.

Regards,
Pravin
2009/5/4 christophe_jacquelin 

>
>
> Hello,
>
> I have an application with a tabnavigator.
> I want that a given html page launch the application with a given panel
> open and another html page launch the application with the other panel open.
>
> How to indicates to the SWF which panel to open ?
>
> Thank you,
> Christophe,
>
>  
>


[flexcoders] Send parameters to .SWF

2009-05-04 Thread christophe_jacquelin
Hello, 

I have an application with a tabnavigator.
I want that a given html page launch the application with a given panel open 
and another html page launch the application with the other panel open.

How to indicates to the SWF which panel to open ? 

Thank you,
Christophe, 



[flexcoders] Re: Flex Windows Not Loading Bug

2009-05-04 Thread edlueze
Hi Steve - thanks for the tips!

Sorry for not getting back to you sooner (just got back online). The 
Rent-a-coder project should still be active - the link is:

http://www.rentacoder.com/RentACoder/misc/BidRequests/ShowBidRequest.asp?lngBidRequestId=1153997

All the best,

Ted.

--- In flexcoders@yahoogroups.com, "valdhor"  wrote:
>
> Generally what I do is create separate sub classes (Of MDIWindow) for each of 
> the windows I need. I try to treat each window as a completely self contained 
> "module". Each window is managed by MDIManager. Of course, you have to treat 
> events differently as they will be parented by systemManager.
> 
> Each window will then contain one or more components (Either Flex or custom). 
> Usually the main part of the window will contain a datagrid then the 
> controlbar will contain next/previous links and an export data link. I have 
> to include code to make these links invisible if the user minimizes the 
> window otherwise they clutter the display.
> 
> If i were you, I would create custom components containing the display 
> objects you need and add them to a custom MDIWindow class.
> 
> 
> Best Regards
> 
> 
> 
> Steve
> 
> PS. I was going to bid on your request on rentacoder but couldn't find it. 
> Have you pulled it?
> 
> 
> --- In flexcoders@yahoogroups.com, "edlueze"  wrote:
> >
> > Hi Steve / Everybody:
> > 
> > The FlexMDI library has invigorated my enthusiasm to re-think the layout of 
> > the application - it was getting obvious that the application was getting 
> > far too cluttered anyway. It sounds like you've developed some best 
> > practices and I'm eager to hear about them.
> > 
> > The initial architecture called for the following types of windows (with a 
> > small "w"). Note that these names defined in the architecture do not match 
> > the Flex names as they pre-date the decision to even use Flex:
> > 
> > - "Canvas" (large spanning windows - it would be great if the user could 
> > toggle these take up the entire screen)
> > - "Windows" (wide-but-short windows designed to take the entire width of 
> > the screen - they do not always need to be showing)
> > - "Property Window" (type of Window containing the properties of whatever 
> > is selected in the Canvas)
> > - "Tabs" within the Property Window
> > - "Panels" (small floating windows with many purposes - it would be nice to 
> > also be able to group and anchor these)
> > - "Dialog Boxes" (modal pop-ups)
> > - "Wizards" (fancy modal pop-ups)
> > 
> > Do you have any ideas on how I can take this framework and adapt it to 
> > FlexMDI or whatever else you like using?
> > 
> > All the best,
> > 
> > Ted.
> > 
> > --- In flexcoders@yahoogroups.com, "valdhor"  wrote:
> > >
> > > It looks as though it is not a true window.
> > > 
> > > I don't think I would have done it the way you have (But who am I to tell 
> > > you how to do something ;-).
> > > 
> > > Does it still happen with only one accordion item?
> > > 
> > > Maybe it's a deferred instantiation problem in the tab navigator. What 
> > > happens if you set all tabs to instantiate?
> > > 
> > > I really don't think this is something we are going to be able to figure 
> > > out in a forum and posting code is obviously out of the question. If I 
> > > can free up some time I may respond to your ad.
> > > 
> > > 
> > > --- In flexcoders@yahoogroups.com, "edlueze"  wrote:
> > > >
> > > > Hi Steve - everybody:
> > > > 
> > > > The FlexMDI definitely looks interesting! And I might take you up on 
> > > > your offer to pay you to take a look at our bug.
> > > > 
> > > > For everybody's benefit, I've put together a simple PowerPoint giving 
> > > > an example of the problem. You can view the PPT here:
> > > > 
> > > > http://www.onegen.com/download/FlexWindowNotLoadingBug001.ppt
> > > > 
> > > > Thanks really for all your time and help - this one's got us baffled!
> > > > 
> > > > Ted.
> > > > 
> > > > --- In flexcoders@yahoogroups.com, "valdhor"  wrote:
> > > > >
> > > > > You may like to look at FlexMDI (Part of FlexLib) for your windowing 
> > > > > requirements. I use an older version extensively and have not seen 
> > > > > anything like what you are experiencing.
> > > > > 
> > > > > 
> > > > > Best Regards
> > > > > 
> > > > > 
> > > > > 
> > > > > Steve
> > > > > 
> > > > > PS. If you want to pay me to look at it I'll gladly do so ;-}
> > > > > 
> > > > > 
> > > > > --- In flexcoders@yahoogroups.com, "edlueze"  wrote:
> > > > > >
> > > > > > Please help me fix a windowing integration bug in our Adobe Flex 
> > > > > > application. I'd love some free advice, but we really need the 
> > > > > > problem solved so we've also posted the question on rent-a-coder.
> > > > > > 
> > > > > > All of our Flex windows (Application/Canvas/Panel/TitleWindow/etc) 
> > > > > > work fine individually when running in a browser (Firefox and 
> > > > > > Internet Explorer). Now we are trying to integrate all of the 
> > > > > > Windows together (less than 100 in al

[flexcoders] How to Install BLaseDS

2009-05-04 Thread Shabir Gilkar
Can any body help me how to install BlaseDS



With High Regards 

Shabir Ahmad Gilkar


  Now surf faster and smarter ! Check out the new Firefox 3 - Yahoo! 
Edition http://downloads.yahoo.com/in/firefox/?fr=om_email_firefox