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+005

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"

[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

[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

[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

[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/mod

[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: >

[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

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 _

[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

[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 q

[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 usi

[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 "a

[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 c

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

[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:

[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

[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

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(t

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 t

[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)">

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 whe

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

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, 20

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 S

[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

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,

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 quit

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...@yahoogr

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 - apparent

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 ques

[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.

[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 d

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

[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

[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 i

[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 numeri

[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 fi

[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/dis

[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"; layo

[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 Co

[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.scal

[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 y

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 fi

[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@yahoogrou

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: M

[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

[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 hav

[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").

[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 backgr

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

[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

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,

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

[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 ou

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:

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

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 Buil

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=passingarg

[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

[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