RE: [flexcoders] Re: scrollRect ???

2009-09-25 Thread Alex Harui
I don't know of any example code.  Are you trying to do anything different from 
the other map applications out there?

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

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of flexaustin
Sent: Thursday, September 24, 2009 10:01 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: scrollRect ???



Alex, thanks. Do you happen to know of any articles or examples on creating a 
satellite view pan/zoom control?

Jason

--- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex 
Harui aha...@... wrote:

 I'm pretty sure scrollrects are always positioned at 0,0. It essentially 
 creates a mask of a certain size, positions it at 0,0, then only shows the 
 pixels that would otherwise be displayed at x,y at 0,0

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

 From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com 
 [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On 
 Behalf Of flexaustin
 Sent: Wednesday, September 23, 2009 10:35 PM
 To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
 Subject: [flexcoders] scrollRect ???



 Wondering if anyone knows how to get the difference between the scrollRect x 
 position relative to the components edges?

 I am building a pancontrol, similar to the ones found Google Maps or Yahoo 
 Maps, for quick navigation.

 In order to setup my pancontrol I need to find out the following given this 
 code:

 Application...
 ..

 mx:Canvas id=compHolder width=100% height=100% 
 horizontalScrollPolicy=off verticalScrollPolicy=off 
 components:myComp id=vis
 width=100% height=100%
 horizontalScrollPolicy=off verticalScrollPolicy=off
 backgroundAlpha=0
 scrollRect={rec}
 cacheAsBitmap=true
 mouseUp=handleVisMouseUp()
 /
 /mx:Canvas

 I need to find the distance or gap between the vis.scrollRect xy position 
 relative to the vis xy position. My application width  height are 600 x 
 600. Vis width and height are 3000 x 900 so they extend off screen. I am 
 using the scrollRect to limit what is viewable. But in order build my 
 pancontrol I need to find the diff between the X  Y of the scrollRect in 
 relation to the XY of the Vis. So how far off left, right, bottom, and top 
 of the visible area does Vis extend. I need those numbers in pixels.

 TIA, J




RE: [flexcoders] Flex with Sharepoint

2009-09-25 Thread Gregor Kiddie
Sharepoint offers webservices to fetch the data back directly, so you
can target those rather than having to screen scrape.

Take a look at http://msdn.microsoft.com/en-us/library/ms479390.aspx

I've written Air apps in the past for pulling out information from our
sharepoint site in a much nicer way than sharepoint itself ;)

 

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk
blocked::http://www.inps.co.uk/ 

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact is.helpd...@inps.co.uk



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Netaman
Sent: 24 September 2009 15:28
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex with Sharepoint

 

  

Does anyone have a better way of integrating Flex with Sharepoint then
with a ColdFusion remote call to a C# app;

C# code here 

using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Net;
using System.Text;

namespace pathBugLibrary1
{
public class pathBug1
{
public String getURLData(string urlName,string username, string
password)
{
CookieContainer Cookies = new CookieContainer();

WebRequest request = WebRequest.Create(urlName);
request.Credentials = new NetworkCredential(username, password);
request.Method = GET;

WebResponse response = request.GetResponse();
//string responseFromServer =
(((HttpWebResponse)response).StatusDescription);
Stream dataStream = response.GetResponseStream();
StreamReader reader = new StreamReader(dataStream);
string responseFromServer = reader.ReadToEnd();
reader.Close();
response.Close();
return (responseFromServer);
}
}
}

I am doing a screen scrape from Sharepoint in ColdFusion and returning
all the pertenient data back to Flex for display and user interaction.

ColdFusion 8 code here for .Net 
cfobject type=.NET action=create
class=pathBugLibrary1.pathBug1 assembly=pathBugLibrary1.dll
name=pathBug1
cfset foo = pathBug1.getURLData (http://serveraddress/PATH/webpagename
http://serveraddress/PATH/webpagename ,username,password) 

then you can parse foo for specifics, and return any data you need back
to flex

I am looking for a better way to use the sharepoint data with a flex
frontend, the code above works, just alot of web data parsing on my end

Randy





RE: [flexcoders] How can I view internet traffic for an Air App?

2009-09-25 Thread Gregor Kiddie
Use any of the HTTP sniffers to get a real breakdown of what's doing
what traffic wise.

 

Something like

 

Charles http://www.topshareware.com/Charles-download-14516.htm

Or Service Capture http://kevinlangdon.com/serviceCapture/

 

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk
blocked::http://www.inps.co.uk/ 

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact is.helpd...@inps.co.uk



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of luvfotography
Sent: 24 September 2009 18:53
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How can I view internet traffic for an Air App?

 

  

To view internet traffic while using a Flex app, I just use Safari and
go to the menu bar and go to Window/Activity.

Is there an equivalent tool to see internet traffic to and from an Air
app???

(while not in Debug mode)
thanks,





[flexcoders] offline synchronization using AIR and Blazeds

2009-09-25 Thread prajnith_flex
Hi friends can u an y help me...


offline/online synchronization Using AIR and blazeds..

i developed an application in online ie when tomcat server and lan connection 
is all done... but when they disturbed it should store data in local database 
say SQLite.  
i connected in online .. and passing data to SQLite.. but offline is the problem
can any one guide me.. please.

thanks in advance...

bye.



[flexcoders] Re: ToolTipManager problem

2009-09-25 Thread Flex Boy
Hi!  Use an itemRenderer, extend a lable and add a tooltip data field in your 
arraycollection and point the label.toolTip = data.tooltip;

--- In flexcoders@yahoogroups.com, luketvanderfluit lukevanderfl...@... 
wrote:

 Hi.
 
 Here I have a component.
 
 Problem is that itemRollOver, itemRollout and change doesnt always close the 
 tooltip. Then Im stuck with an open tooltip that can only be removed by 
 reloading the application...
 
 I want to use ToolTipManager.hideDelay to automatically hide the tooltip 
 after 2 seconds but
 Putting ToolTipManager.hideDelay = 2000 in an init method doesnt do it...
  
 Is there any other way I can get the tooltip to die after 2 seconds 
 regardless of what mouse movements take place...?
 
 Thanks for any help...
 
 Kr.
 Luke Vanderfluit
 
 
 
 ?xml version=1.0 encoding=utf-8?
 mx:ComboBox xmlns:mx=http://www.adobe.com/2006/mxml;
 openDuration=250
 closeDuration=250
 selectionDuration=250
 fontSize=8
 prompt=Risk Consequence
 dataProvider={rcAC} itemRollOver=toolTipIn(event)
 itemRollOut=toolTipOut(event) 
 change=toolTipOut(event)
 
 mx:Script
 ![CDATA[
 import mx.core.IToolTip;
 import mx.controls.ToolTip;
 import mx.managers.ToolTipManager;
 import mx.events.ListEvent

 private var itt:ToolTip;
 private function 
 toolTipIn(evt:ListEvent):void {
 var pnt:Point = 
 evt.currentTarget.localToGlobal(new Point(0,0));
 pnt.y -= 30; pnt.x -= 10;

 if (evt.rowIndex == 0) {
 itt = 
 ToolTip(ToolTipManager.createToolTip(
 Insignificant\nNo 
 injury, little or no physical damage, low financial loss.,pnt.x,pnt.y));
 }
 if (evt.rowIndex == 1) {
 itt = 
 ToolTip(ToolTipManager.createToolTip(
 Minor\nFirst aid treatment controlled on-site 
 with no outside assistance, immediately contained, medium/high financial 
 loss.,pnt.x,pnt.y));
 }
 if (evt.rowIndex == 2) {
 itt = 
 ToolTip(ToolTipManager.createToolTip(
 Moderate\nMedical Treatment required, controlled 
 on-site with outside assistance, high financial loss.,pnt.x,pnt.y));
 }
 if (evt.rowIndex == 3) {
 itt = 
 ToolTip(ToolTipManager.createToolTip(
 Major\nDeath and extensive injuries, loss of 
 some capabilities, major financial loss.,pnt.x,pnt.y));
 }
 if (evt.rowIndex == 4) {
 itt = 
 ToolTip(ToolTipManager.createToolTip(
 Catastrophic\nDeath, loss of majority 
 capabilities, huge financial loss.,pnt.x,pnt.y));
 }
 }
 private function 
 toolTipOut(evt:ListEvent):void {
 if (itt != null) {
 
 ToolTipManager.destroyToolTip(itt);
 }
 }
 ]]
 /mx:Script
 mx:ArrayCollection id=rcAC
 mx:Object label=Insignificant data=1/
 mx:Object label=Minor data=2/
 mx:Object label=Moderate data=3/
 mx:Object label=Major data=4/
 mx:Object label=Catastrophic data=5/
 /mx:ArrayCollection
 
 /mx:ComboBox





[flexcoders] Help with Eclipse Problem

2009-09-25 Thread GeorgeB
Hi all,

though this is not directly a Flex question.. I am stuck with the following:
After a system HW crash (blown motherboard), I had to change HW to a new PC, 
with fresh OS (Windows XP + IE8) installation and then redo all the rest 
installation of my development platform. The work setup was: Eclipse Europa 
(3.3), Flex Pro 3.0 plug-in for Eclipse and then Hibernate, MySQL 5.1, Apache 
Tomcat 6.0.18, BlazeDS 3.0.1, FlashPlayer 9.115, ...
On this occasion I thought a good idea would be to update to what is available 
now - excepting what has to remain the same at this time. That is update to 
Eclipse Galileo (3.5), Apache Tomcat 6.0.20.
Following a fresh OS install of Windows XP PRO, Java JDK 1.6.0_16 was installed 
and also Eclipse 3.5.
Before going any further into the rest of installation, I have to setup Eclipse 
Workbench Properties like java - Installed JREs (for JDK1.6.0_16) and Server 
- Installed Runtimes (for Tomcat 6.0.20).

Unfortunately the Server Property doesn't show up in the Workbench Properties 
preferences, as it should !!!
I am not an expert on Eclipse installations (and when I did that for the first 
time 18 months ago all went as it had to), but now I am badly running out of 
time. Any help on this is very much appreciated!

Thanks all
George



[flexcoders] Re: Receiving AIR LocalConnection Slows App

2009-09-25 Thread michaelisraelcaplan
I'm still hopelessly plugging away at this.  I've tried:

 - profiling the application to gain any insight into the issue 
 - running traces throughout the window to see if it is firing differently

I'm not able to see any differences between the window being instantiated via 
the receiving localConnection method and it being instantiated within the AIR 
app directly.

The window is being instantiated the exact same way in both circumstances -- 
logic for launching it is encapsulated in a static method in the window itself.

Maybe I'm jumping the gun, but I'm thinking this is a bug in AIR or Flex.  I've 
opened the following report:

http://bugs.adobe.com/jira/browse/SDK-23425


Any ideas?

Thanks,

Mike


--- In flexcoders@yahoogroups.com, michaelisraelcaplan mcap...@... wrote:

 Hi,
 
 I'm working through a really strange issue with my Flex 4 AIR app.  I've lost 
 days of sleep, hair, and numerous brain cells trying to get to the source of 
 the issue with no luck.  The scenario is as follows:
 
  - AIR app with initialized receiving and sending localConnection objects.
 
  - Browser with an initialized receiving and sending localConnection objects.
 
  - The AIR app receiving localConnection object is triggered by the browser, 
 resulting in a new instance of a spark window.
 
  - Form elements in the window (DropDownList in particular) become _slow_.  
 For example, to open up the dropDownList I need to click and hold for 3-5 
 seconds.
 
 
 The reason I believe that this is a issue with the AIR receiving 
 localConnection is if I open a new instance of the spark window from the AIR 
 app directly it works fine.  As soon as I open a new instance from the 
 receiving localConnection method, that instance slows.  Also, any future 
 instances opened (from the AIR app directly) are also slow until I restart 
 the application.
 
 I'm looking for some tips on how to solve this issue.  Or, if you have ideas 
 how I can better troubleshoot this, that would be great too.
 
 Thanks,
 
 Mike





[flexcoders] Re: Help with Eclipse Problem

2009-09-25 Thread GeorgeB
Adding to my previous post.

As I didn't have the chance to check with Flex plugin sofar and Eclipse 3.5, I 
did just that...
The Flex installer requests a Eclipsec 3.2, 3.3, or 3.4 (not 3.5)

So I did another installation of Eclipse 3.4 (Ganimede) along the standard 
lines. 
The result remains the same: The Server property doesn't show in the 
Preferences of Workbench. So I am still trying to install Eclipse properly and 
be back in business..

I tend to believe there is something wrong with my new OS setup (missing?). Any 
ideas what may be wrong?

Thanking all again
George

--- In flexcoders@yahoogroups.com, GeorgeB grg_b...@... wrote:

 Hi all,
 
 though this is not directly a Flex question.. I am stuck with the following:
 After a system HW crash (blown motherboard), I had to change HW to a new PC, 
 with fresh OS (Windows XP + IE8) installation and then redo all the rest 
 installation of my development platform. The work setup was: Eclipse Europa 
 (3.3), Flex Pro 3.0 plug-in for Eclipse and then Hibernate, MySQL 5.1, Apache 
 Tomcat 6.0.18, BlazeDS 3.0.1, FlashPlayer 9.115, ...
 On this occasion I thought a good idea would be to update to what is 
 available now - excepting what has to remain the same at this time. That is 
 update to Eclipse Galileo (3.5), Apache Tomcat 6.0.20.
 Following a fresh OS install of Windows XP PRO, Java JDK 1.6.0_16 was 
 installed and also Eclipse 3.5.
 Before going any further into the rest of installation, I have to setup 
 Eclipse Workbench Properties like java - Installed JREs (for JDK1.6.0_16) 
 and Server - Installed Runtimes (for Tomcat 6.0.20).
 
 Unfortunately the Server Property doesn't show up in the Workbench Properties 
 preferences, as it should !!!
 I am not an expert on Eclipse installations (and when I did that for the 
 first time 18 months ago all went as it had to), but now I am badly running 
 out of time. Any help on this is very much appreciated!
 
 Thanks all
 George





[flexcoders] displaying time in 24 hour clock

2009-09-25 Thread Darrin Kay
Good Day,
  I have time coming in from a web service and it is in 24 hour time (15:30
), but it is being displayed as 12 (3:30 PM).

here is some code:
 EastCostTime.seconds += 1;
this.eastcostClock.text = EastCostTime.toLocaleTimeString();


so the clock is working fine and keeping the time, but just need for it to
display as a 24 hour clock


Thanks for the help,
 Darrin


[flexcoders] Re: Help with Eclipse Problem

2009-09-25 Thread GeorgeB
Resolved!

(Stupid of me!!!) 
I should have been downloading the correct version of Eclipse 3.4.

 For Windows this is :
eclipse-jee-ganymede-SR2-win32

:)
George


--- In flexcoders@yahoogroups.com, GeorgeB grg_b...@... wrote:

 Adding to my previous post.
 
 As I didn't have the chance to check with Flex plugin sofar and Eclipse 3.5, 
 I did just that...
 The Flex installer requests a Eclipsec 3.2, 3.3, or 3.4 (not 3.5)
 
 So I did another installation of Eclipse 3.4 (Ganimede) along the standard 
 lines. 
 The result remains the same: The Server property doesn't show in the 
 Preferences of Workbench. So I am still trying to install Eclipse properly 
 and be back in business..
 
 I tend to believe there is something wrong with my new OS setup (missing?). 
 Any ideas what may be wrong?
 
 Thanking all again
 George
 
 --- In flexcoders@yahoogroups.com, GeorgeB grg_blls@ wrote:
 
  Hi all,
  
  though this is not directly a Flex question.. I am stuck with the following:
  After a system HW crash (blown motherboard), I had to change HW to a new 
  PC, with fresh OS (Windows XP + IE8) installation and then redo all the 
  rest installation of my development platform. The work setup was: Eclipse 
  Europa (3.3), Flex Pro 3.0 plug-in for Eclipse and then Hibernate, MySQL 
  5.1, Apache Tomcat 6.0.18, BlazeDS 3.0.1, FlashPlayer 9.115, ...
  On this occasion I thought a good idea would be to update to what is 
  available now - excepting what has to remain the same at this time. That is 
  update to Eclipse Galileo (3.5), Apache Tomcat 6.0.20.
  Following a fresh OS install of Windows XP PRO, Java JDK 1.6.0_16 was 
  installed and also Eclipse 3.5.
  Before going any further into the rest of installation, I have to setup 
  Eclipse Workbench Properties like java - Installed JREs (for JDK1.6.0_16) 
  and Server - Installed Runtimes (for Tomcat 6.0.20).
  
  Unfortunately the Server Property doesn't show up in the Workbench 
  Properties preferences, as it should !!!
  I am not an expert on Eclipse installations (and when I did that for the 
  first time 18 months ago all went as it had to), but now I am badly running 
  out of time. Any help on this is very much appreciated!
  
  Thanks all
  George
 





[flexcoders] ActionScript Project in AIR

2009-09-25 Thread John McCormack
Hi List,

I have an ActionScript AS3 project that I build in Flex Builder 3 and 
want to convert it to AIR
I started a new desktop project but it is built as an alternative to 
mxml format.

The classes and assets have been imported all the project.
Creating an instance of my original class inside !CDATA[ ] doesn't work, 
neither does pasting the code into !CATA block or setting my original 
class as the default.

How do I get my original main class to be called from the mxml AIR file?

Is anyone doing this or are you using mxml projects in the first place?

John



Re: [flexcoders] ActionScript Project in AIR

2009-09-25 Thread Barry Gee
Hi John.

Im sure there are other ways of doing this but a simple solution would 
be to download the Flash Builder 4 beta import your project and then 
right click on the project in the lib and select change project to - and 
select desktop project. Worked for me.

barry.



John McCormack wrote:
  

 Hi List,

 I have an ActionScript AS3 project that I build in Flex Builder 3 and
 want to convert it to AIR
 I started a new desktop project but it is built as an alternative to
 mxml format.

 The classes and assets have been imported all the project.
 Creating an instance of my original class inside !CDATA[ ] doesn't work,
 neither does pasting the code into !CATA block or setting my original
 class as the default.

 How do I get my original main class to be called from the mxml AIR file?

 Is anyone doing this or are you using mxml projects in the first place?

 John

 



[flexcoders] PDF in AIR application

2009-09-25 Thread markgoldin_2000
I have a few questions about viewing/printing PDF content from an AIR 
application.
1. Can Adobe PDF Reader be replaced with another PDF Viewer?
2. If not, what kind of Reader automation is available while developing an AIR 
application? For example, can I intercept a click on the Print button? Or can I 
have pagination when a PDF file is loaded?
3. Any other alternatives to show/print digital content created on the server 
to use in Flex/AIR applications?

Thanks in advance.



[flexcoders] Video insite Html

2009-09-25 Thread Christophe
Hello, 

How to put a video on a html page of a website ? By YouTube or by a SWF file ? 
What is the best ?

Thank you,
Christopher, 




[flexcoders] BlazeDS | AsyncMessages and not being consumed | No Client

2009-09-25 Thread ilikeflex
Hi

I am using the blazeds server. I have created the destination and i am able to 
recieve the messages.

The issue i am facing is that i have my java program which keep sending the 
messages to the blazeds server. At this point i have no client(browser) to 
consume the messages.So all the messages are accumulated at blazeds. At one 
point there are so many messages that my weblogic server goes out of memmory. 
So my question is how to destroy those messages which are not consume. I am 
using the message-time-to-live tag but this does not seem to work. Please see 
the configuration below.

Snippet of Java program:
AsyncMessage msg = new AsyncMessage();
msg.setDestination(destinationNameFlex);
try
{

msg.setMessageId(objectMessage.getJMSMessageID());
}
catch(JMSException e)
{
}
msg.setBody(data);


MessageBroker.getMessageBroker(null).routeMessageToService(msg, null);

Messaging-config.xml
?xml version=1.0 encoding=UTF-8?
service id=message-service 
class=flex.messaging.services.MessageService
messageTypes=flex.messaging.messages.AsyncMessage

adapters
adapter-definition id=actionscript 
class=flex.messaging.services.messaging.adapters.ActionScriptAdapter 
default=true /
!-- adapter-definition id=jms 
class=flex.messaging.services.messaging.adapters.JMSAdapter/ --
/adapters

default-channels
channel ref=my-polling-amf /
/default-channels


destination id=destICL
adapter ref=actionscript /
properties
server
message-time-to-live15/message-time-to-live
/server
/properties
/destination 
/service

Services-config.xml
?xml version=1.0 encoding=UTF-8?
services-config

services
service-include file-path=remoting-config.xml /
service-include file-path=proxy-config.xml /
service-include file-path=messaging-config.xml /
/services

security

/security

channels

channel-definition id=my-amf 
class=mx.messaging.channels.AMFChannel
endpoint 
url=http://{server.name}:{server.port}/{context.root}/messagebroker/amf; 
class=flex.messaging.endpoints.AMFEndpoint/
properties
polling-enabledfalse/polling-enabled
 serialization
legacy-maptrue/legacy-map 
 /serialization
/properties
/channel-definition

channel-definition id=my-secure-amf 
class=mx.messaging.channels.SecureAMFChannel
endpoint 
url=https://{server.name}:{server.port}/{context.root}/messagebroker/amfsecure;
 class=flex.messaging.endpoints.SecureAMFEndpoint/
properties
add-no-cache-headersfalse/add-no-cache-headers
/properties
/channel-definition

channel-definition id=my-polling-amf 
class=mx.messaging.channels.AMFChannel
endpoint 
url=http://{server.name}:{server.port}/{context.root}/messagebroker/amfpolling;
 class=flex.messaging.endpoints.AMFEndpoint/
properties
polling-enabledtrue/polling-enabled
polling-interval-seconds1/polling-interval-seconds
/properties
/channel-definition
/channels

logging
target class=flex.messaging.log.ConsoleTarget level=Error
properties
prefix[BlazeDS] /prefix
includeDatefalse/includeDate
includeTimefalse/includeTime
includeLevelfalse/includeLevel
includeCategoryfalse/includeCategory
/properties
filters
patternEndpoint.*/pattern
patternService.*/pattern
patternConfiguration/pattern
/filters
/target
/logging

system
redeploy
enabledfalse/enabled
/redeploy
/system

/services-config

Any pointers are highly appreciated.

thanks
ilikeflex



RE: [flexcoders] How to make the effect smooth

2009-09-25 Thread Chet Haase

Scaling text is a funny thing. Generally, you won't get what you're asking for 
- smooth-scaling. The problem is that to display text in any reasonable way (in 
a way where it won't look completely ugly), graphics engines use things like 
font metrics, point sizes, font hints, sub-pixel anti-aliasing, and anything 
else they can to make it look readable. This is quite different from simple 
graphic objects. This means that when you 'scale' a text string, it will always 
try to display itself in a point size that's appropriate to the scale factor. 
And that means it's going to snap as it scales up and down, as it hits 
different point sizes.

This problem is related to why the text would simply disappear in Flex 3 when a 
text component was rotated or faded - by default, we would use a device font, 
and that engine just couldn't display the text in any reasonable manner when it 
was transformed or faded. (the workaround was to use an embedded font - I'm 
just illustrating the problems here...) This is different in Flex 4, since we 
use the new Flash player 10 text engine that uses software rendering for text 
and avoids the device rendering issues. But still, you'll get a much different 
looking text string when rotated than you will when it's not rotated, because 
various font display tricks break down when they're not linearly displayed.

The only workaround for this I know of is to attempt to capture the text as an 
image and scale that instead. In this case, draw your text component to some 
bitmap and swap it out for the duration of the effect.

But even that won't give you a nice result. That is, you'll get smooth scaling 
of the graphics (including the text), but the text won't look very good (for 
the simple reason that text drawn without all of the font tricks mentioned 
above tends to look horrible, and scaled bitmaps of the text will look even 
worse), and if you swap this scaled version of the text out for the real text 
when the effect finishes, you'll get a snapping artifact, as we go from the 
bitmap display of the text to the real display of the text at the appropriate 
point size. I'm pretty sure this isn't what you want either.

The best way I know of to deal with this harsh text reality is to work around 
it, and they way you do it depends on your situation. For example, you might 
just fade the text out at the start of the effect, scale up the text area, then 
fade it back in when it's done. This way you'll get good text display at the 
beginning and end, and will avoid the snapping artifacts as it scales. You 
could also do things like capture the text into a bitmap and scale it, but also 
apply a blur and/or fade, so that the user can see the text, but in such a way 
that the difference between the animated version and the before/after version 
is less jarring.

Hope that helps.

Chet.

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of ilikeflex
Sent: Thursday, September 24, 2009 8:47 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to make the effect smooth



Hi

I am using the below sample to increase the width and height but i want that 
the text should also transit smoothly.

Any pointers???

?xml version=1.0 encoding=utf-8?
!-- Simple example to demonstrate the Zoom effect. --
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;

mx:Parallel id=expand target={textBox}
mx:AnimateProperty property=scaleX fromValue=1 toValue=2 duration=2000 
/
mx:AnimateProperty property=scaleY fromValue=1 toValue=2 duration=2000 
/
/mx:Parallel

mx:Parallel id=contract target={textBox}
mx:AnimateProperty property=scaleX fromValue=2 toValue=1 duration=2000 
/
mx:AnimateProperty property=scaleY fromValue=2 toValue=1 duration=2000 
/
/mx:Parallel

mx:Panel title=Zoom Effect Example width=95% height=95% 
horizontalAlign=center
paddingTop=5 paddingLeft=10 paddingRight=10 paddingBottom=5
!--
mx:HBox backgroundColor=blue width=75 id=textBox
mx:Text width=100% color=0xFF fontWeight=bold text=1234567890/
/mx:HBox
--
mx:TextInput backgroundColor=blue fontWeight=bold color=0xFF 
id=textBox text=1234567890

/mx:TextInput
mx:ControlBar
mx:Button label=Expand click=expand.end(); expand.play();/
mx:Button label=Contract click=contract.end(); contract.play();/
/mx:ControlBar

/mx:Panel
/mx:Application

Thanks
ilikeflex



[flexcoders] Re: How can I view internet traffic for an Air App?

2009-09-25 Thread turbo_vb
FB4 also has a network monitor that gives some insight to the traffic.  

-TH

--- In flexcoders@yahoogroups.com, Gregor Kiddie gkid...@... wrote:

 Use any of the HTTP sniffers to get a real breakdown of what's doing
 what traffic wise.
 
  
 
 Something like
 
  
 
 Charles http://www.topshareware.com/Charles-download-14516.htm
 
 Or Service Capture http://kevinlangdon.com/serviceCapture/
 
  
 
 Gk.
 
 Gregor Kiddie
 Senior Developer
 INPS
 
 Tel:   01382 564343
 
 Registered address: The Bread Factory, 1a Broughton Street, London SW8
 3QJ
 
 Registered Number: 1788577
 
 Registered in the UK
 
 Visit our Internet Web site at www.inps.co.uk
 blocked::http://www.inps.co.uk/ 
 
 The information in this internet email is confidential and is intended
 solely for the addressee. Access, copying or re-use of information in it
 by anyone else is not authorised. Any views or opinions presented are
 solely those of the author and do not necessarily represent those of
 INPS or any of its affiliates. If you are not the intended recipient
 please contact is.helpd...@...
 
 
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
 Behalf Of luvfotography
 Sent: 24 September 2009 18:53
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] How can I view internet traffic for an Air App?
 
  
 
   
 
 To view internet traffic while using a Flex app, I just use Safari and
 go to the menu bar and go to Window/Activity.
 
 Is there an equivalent tool to see internet traffic to and from an Air
 app???
 
 (while not in Debug mode)
 thanks,





[flexcoders] How is this possible - Who's Here

2009-09-25 Thread Wally Kolcz
I am creating a simple chat room for a web site using Flex and BlazeDS. Chat 
works fine, but how can I produce a shared Object amongst all the people logged 
in so they can see who else is in the room? Please tell me its not a 'switch' 
in the database when they login... 

Thanks!



Re: [flexcoders] How to make the effect smooth

2009-09-25 Thread John McCormack
I have the numbers 0 to 9 typed into Flash file, broken down into vector 
graphics.
They scale up okay, but I treat each digit as a movieClip imported into 
Flex from a swc.
Placing the digits is a lot of work, but you don't need a particular font.

John

Chet Haase wrote:


 Scaling text is a funny thing. Generally, you won’t get what you’re 
 asking for – smooth-scaling. The problem is that to display text in 
 any reasonable way (in a way where it won’t look completely ugly), 
 graphics engines use things like font metrics, point sizes, font 
 hints, sub-pixel anti-aliasing, and anything else they can to make it 
 look readable. This is quite different from simple graphic objects. 
 This means that when you ‘scale’ a text string, it will always try to 
 display itself in a point size that’s appropriate to the scale factor. 
 And that means it’s going to snap as it scales up and down, as it hits 
 different point sizes.

 This problem is related to why the text would simply disappear in Flex 
 3 when a text component was rotated or faded – by default, we would 
 use a device font, and that engine just couldn’t display the text in 
 any reasonable manner when it was transformed or faded. (the 
 workaround was to use an embedded font – I’m just illustrating the 
 problems here…) This is different in Flex 4, since we use the new 
 Flash player 10 text engine that uses software rendering for text and 
 avoids the device rendering issues. But still, you’ll get a much 
 different looking text string when rotated than you will when it’s not 
 rotated, because various font display tricks break down when they’re 
 not linearly displayed.

 The only workaround for this I know of is to attempt to capture the 
 text as an image and scale that instead. In this case, draw your text 
 component to some bitmap and swap it out for the duration of the effect.

 But even that won’t give you a nice result. That is, you’ll get smooth 
 scaling of the graphics (including the text), but the text won’t look 
 very good (for the simple reason that text drawn without all of the 
 font tricks mentioned above tends to look horrible, and scaled bitmaps 
 of the text will look even worse), and if you swap this scaled version 
 of the text out for the real text when the effect finishes, you’ll get 
 a snapping artifact, as we go from the bitmap display of the text to 
 the real display of the text at the appropriate point size. I’m pretty 
 sure this isn’t what you want either.

 The best way I know of to deal with this harsh text reality is to work 
 around it, and they way you do it depends on your situation. For 
 example, you might just fade the text out at the start of the effect, 
 scale up the text area, then fade it back in when it’s done. This way 
 you’ll get good text display at the beginning and end, and will avoid 
 the snapping artifacts as it scales. You could also do things like 
 capture the text into a bitmap and scale it, but also apply a blur 
 and/or fade, so that the user can see the text, but in such a way that 
 the difference between the animated version and the before/after 
 version is less jarring.

 Hope that helps.

 Chet.

 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] 
 *On Behalf Of *ilikeflex
 *Sent:* Thursday, September 24, 2009 8:47 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] How to make the effect smooth

 Hi

 I am using the below sample to increase the width and height but i 
 want that the text should also transit smoothly.

 Any pointers???

 ?xml version=1.0 encoding=utf-8?
 !-- Simple example to demonstrate the Zoom effect. --
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;

 mx:Parallel id=expand target={textBox}
 mx:AnimateProperty property=scaleX fromValue=1 toValue=2 
 duration=2000 /
 mx:AnimateProperty property=scaleY fromValue=1 toValue=2 
 duration=2000 /
 /mx:Parallel

 mx:Parallel id=contract target={textBox}
 mx:AnimateProperty property=scaleX fromValue=2 toValue=1 
 duration=2000 /
 mx:AnimateProperty property=scaleY fromValue=2 toValue=1 
 duration=2000 /
 /mx:Parallel

 mx:Panel title=Zoom Effect Example width=95% height=95% 
 horizontalAlign=center
 paddingTop=5 paddingLeft=10 paddingRight=10 paddingBottom=5
 !--
 mx:HBox backgroundColor=blue width=75 id=textBox
 mx:Text width=100% color=0xFF fontWeight=bold 
 text=1234567890/
 /mx:HBox
 --
 mx:TextInput backgroundColor=blue fontWeight=bold 
 color=0xFF id=textBox text=1234567890

 /mx:TextInput
 mx:ControlBar
 mx:Button label=Expand click=expand.end(); expand.play();/
 mx:Button label=Contract click=contract.end(); contract.play();/
 /mx:ControlBar

 /mx:Panel
 /mx:Application

 Thanks
 ilikeflex



 






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: 

Re: [flexcoders] How can I view internet traffic for an Air App?

2009-09-25 Thread John McCormack
Charles Proxy is great for capturing http headers.
John

luvfotography wrote:
 To view internet traffic while using a Flex app, I just use Safari and go to 
 the menu bar and go to Window/Activity.

 Is there an equivalent tool to see internet traffic to and from an Air app???

 (while not in Debug mode)
 thanks,




 

 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Alternative FAQ location: 
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links





   




[flexcoders] htmltext in spark textarea

2009-09-25 Thread Slackware
Hi Guys,
I'm Trying to use htmltext in a spark textarea, but I see there's no 
s:htmlText.. is this possible? any idea?

Thanks in advance

Claudio Bastos
http://www.blumersolutions.com



Re: [flexcoders] Beginner Questions

2009-09-25 Thread Mark Lapasa
Most would use ActionScript 3. The Flex Framework add a lot of overhead 
to a highly animated game. The controls weren't made for that type of 
genre of application.

You could use OS Flex but Flex Builder's built-in's will save you clicks 
in the long run and you just get things done out faster, which means 
gratification faster.

It all depends on the type of game you are developing whether vector or 
bitmap. Vectors can give you an advantage in portable file size and 
smooth scaling. Bitmaps can give you control as a static canvas but you 
pay the price in large file sizes. Code-wise, your graphics is wrapped 
by a container, you move the container. Code doesn't really care so much 
what's in the container.

You should also consider the growing libraries out there for 
actionscript like Papervision 3d and AS3 Data Structures For Game 
Developers.

You could also recycle your C/C++ expertise via Alchemy

http://labs.adobe.com/technologies/alchemy/

Alchemy In Action - http://www.newgrounds.com/portal/view/470460


Thx,

-mL

mugathur wrote:
  

 Hello. I am very new to both Flash and Flex. I've been programming 
 video games in C/C++ for a while now and thought I'd try something 
 faster to develop. So, I have a few questions, specifically geared 
 towards games development.

 Do games developers usually use Flex or just raw Flash?

 Is just using the Flex open source compiler viable or is purchasing 
 the Flex Builder pretty instrumental to effective use of the language?

 Is there a heavy preference between vector art or bitmap art in flash 
 development? Is the code significantly different between the two?

 I'm sure I'll have more questions, but I'll kick it off with these. 
 Thanks in advance.

 -moo

 



Notice of confidentiality:
The information contained in this e-mail is intended only for the use of the 
individual or entity named above and may be confidential. Should the reader of 
this message not be the intended recipient, you are hereby notified that any 
unauthorized dissemination, distribution or reproduction of this message is 
strictly prohibited. If you have received this message in error, please advise 
the sender immediately and destroy the e-mail.



[flexcoders] Re: scrollRect ???

2009-09-25 Thread flexaustin
I would setting for Google or Yahoo version, but eventually I would like to be 
able to scale the floating box (blue box that shows scrollRect of the map) in 
the pan/zoom control and have it change the maps scale factor.


J

--- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote:

 I don't know of any example code.  Are you trying to do anything different 
 from the other map applications out there?
 
 Alex Harui
 Flex SDK Developer
 Adobe Systems Inc.http://www.adobe.com/
 Blog: http://blogs.adobe.com/aharui
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
 Behalf Of flexaustin
 Sent: Thursday, September 24, 2009 10:01 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: scrollRect ???
 
 
 
 Alex, thanks. Do you happen to know of any articles or examples on creating a 
 satellite view pan/zoom control?
 
 Jason
 
 --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex 
 Harui aharui@ wrote:
 
  I'm pretty sure scrollrects are always positioned at 0,0. It essentially 
  creates a mask of a certain size, positions it at 0,0, then only shows the 
  pixels that would otherwise be displayed at x,y at 0,0
 
  Alex Harui
  Flex SDK Developer
  Adobe Systems Inc.http://www.adobe.com/
  Blog: http://blogs.adobe.com/aharui
 
  From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com 
  [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On 
  Behalf Of flexaustin
  Sent: Wednesday, September 23, 2009 10:35 PM
  To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
  Subject: [flexcoders] scrollRect ???
 
 
 
  Wondering if anyone knows how to get the difference between the scrollRect 
  x position relative to the components edges?
 
  I am building a pancontrol, similar to the ones found Google Maps or Yahoo 
  Maps, for quick navigation.
 
  In order to setup my pancontrol I need to find out the following given this 
  code:
 
  Application...
  ..
 
  mx:Canvas id=compHolder width=100% height=100% 
  horizontalScrollPolicy=off verticalScrollPolicy=off 
  components:myComp id=vis
  width=100% height=100%
  horizontalScrollPolicy=off verticalScrollPolicy=off
  backgroundAlpha=0
  scrollRect={rec}
  cacheAsBitmap=true
  mouseUp=handleVisMouseUp()
  /
  /mx:Canvas
 
  I need to find the distance or gap between the vis.scrollRect xy position 
  relative to the vis xy position. My application width  height are 600 x 
  600. Vis width and height are 3000 x 900 so they extend off screen. I am 
  using the scrollRect to limit what is viewable. But in order build my 
  pancontrol I need to find the diff between the X  Y of the scrollRect in 
  relation to the XY of the Vis. So how far off left, right, bottom, and top 
  of the visible area does Vis extend. I need those numbers in pixels.
 
  TIA, J
 





[flexcoders] Custom icon in air installer

2009-09-25 Thread Dave Cates
Hi all,

I¹m trying to display my client¹s logo next to the app description in the
air installer window.

Any ideas of how to do this?! The normal descriptor file doesn¹t seem to
have this field available.

Many thanks,
Dave.


[flexcoders] XMLLIst += operator problem

2009-09-25 Thread Breizo

Hi,
Trying to do a simple element add to a XMLList but running into basic
problems.
Has anyone already fixed this?

When I run the example, I get:
node1/
node1/
node2/
node1/

when I would expect 
node1/
node1/
node2/
node1/
node2/

Any idea?

Thanks


?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute
applicationComplete=init();
mx:Script![CDATA[
private function init():void{
var xmll:XMLList = new XMLList();
xmll+=node1/;
trace(xmll.toXMLString());
addX(xmll);
trace(xmll.toXMLString());
}
private function addX(x:XMLList):void{
x+=node2/;
trace(x.toXMLString());
}
]]/mx:Script
/mx:Application
-- 
View this message in context: 
http://www.nabble.com/XMLLIst-%2B%3D-operator-problem-tp25577790p25577790.html
Sent from the FlexCoders mailing list archive at Nabble.com.



RE: [flexcoders] htmltext in spark textarea

2009-09-25 Thread Peter DeHaan
Try setting the content or textFlow properties instead.



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Slackware
Sent: Friday, September 25, 2009 11:20 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] htmltext in spark textarea



Hi Guys,
I'm Trying to use htmltext in a spark textarea, but I see there's no 
s:htmlText.. is this possible? any idea?

Thanks in advance

Claudio Bastos
http://www.blumersolutions.com



[flexcoders] Any way to make default event handler execute before my custom event handler?

2009-09-25 Thread k_navroz
Hi everyone,

I am using a third-party MDI framework which has default event handlers for 
many window events. The problem is I want my custom code to execute in response 
to few window events but only after the default handler defined by the 
framework has been executed because otherwise some of my changes get overriden 
by the framework's default event handlers.

I don't want to use preventDefault() because I also want those default event 
handlers to execute.

Thanks...



[flexcoders] Custom icon in air installer

2009-09-25 Thread Dave Cates
Hi all,

I¹m trying to display my client¹s logo next to the app description in the
air installer window.

Any ideas of how to do this?! The normal descriptor file doesn¹t seem to
have this field available.

Many thanks,
Dave.


[flexcoders] Is the drop indicator for AdvancedDataGrid customizable?

2009-09-25 Thread jeffreywhitsett
Is there a way to access the AdvancedDataGrid drop indicator, or to create a 
custom dropIndicatorSkin and add it to the ADG? I know this can be done with a 
List control, but it doesn't seem to work with an ADG.



[flexcoders] Hiding a specific divider in in dividedbox

2009-09-25 Thread djhatrick
Is there a way to do this? 

Thanks,
Patrick



RE: [flexcoders] Re: scrollRect ???

2009-09-25 Thread Alex Harui
I thought there were some third-party map components out there.  But in 
general, if you have a large bitmap you place a scrollRect on it and you should 
be halfway there.

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

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of flexaustin
Sent: Friday, September 25, 2009 12:52 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: scrollRect ???



I would setting for Google or Yahoo version, but eventually I would like to be 
able to scale the floating box (blue box that shows scrollRect of the map) in 
the pan/zoom control and have it change the maps scale factor.

J

--- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex 
Harui aha...@... wrote:

 I don't know of any example code. Are you trying to do anything different 
 from the other map applications out there?

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

 From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com 
 [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On 
 Behalf Of flexaustin
 Sent: Thursday, September 24, 2009 10:01 PM
 To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
 Subject: [flexcoders] Re: scrollRect ???



 Alex, thanks. Do you happen to know of any articles or examples on creating a 
 satellite view pan/zoom control?

 Jason

 --- In 
 flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com,
  Alex Harui aharui@ wrote:
 
  I'm pretty sure scrollrects are always positioned at 0,0. It essentially 
  creates a mask of a certain size, positions it at 0,0, then only shows the 
  pixels that would otherwise be displayed at x,y at 0,0
 
  Alex Harui
  Flex SDK Developer
  Adobe Systems Inc.http://www.adobe.com/
  Blog: http://blogs.adobe.com/aharui
 
  From: 
  flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com
   
  [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com]
   On Behalf Of flexaustin
  Sent: Wednesday, September 23, 2009 10:35 PM
  To: 
  flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com
  Subject: [flexcoders] scrollRect ???
 
 
 
  Wondering if anyone knows how to get the difference between the scrollRect 
  x position relative to the components edges?
 
  I am building a pancontrol, similar to the ones found Google Maps or Yahoo 
  Maps, for quick navigation.
 
  In order to setup my pancontrol I need to find out the following given this 
  code:
 
  Application...
  ..
 
  mx:Canvas id=compHolder width=100% height=100% 
  horizontalScrollPolicy=off verticalScrollPolicy=off 
  components:myComp id=vis
  width=100% height=100%
  horizontalScrollPolicy=off verticalScrollPolicy=off
  backgroundAlpha=0
  scrollRect={rec}
  cacheAsBitmap=true
  mouseUp=handleVisMouseUp()
  /
  /mx:Canvas
 
  I need to find the distance or gap between the vis.scrollRect xy position 
  relative to the vis xy position. My application width  height are 600 x 
  600. Vis width and height are 3000 x 900 so they extend off screen. I am 
  using the scrollRect to limit what is viewable. But in order build my 
  pancontrol I need to find the diff between the X  Y of the scrollRect in 
  relation to the XY of the Vis. So how far off left, right, bottom, and top 
  of the visible area does Vis extend. I need those numbers in pixels.
 
  TIA, J
 




RE: [flexcoders] Any way to make default event handler execute before my custom event handler?

2009-09-25 Thread Alex Harui
preventDefault won't stop the other handlers from getting the event, it just 
warns them not to do what they'd normally do, and they can ignore and do stuff 
anyway.  And if the event isn't cancelable, preventDefault has no effect.  But 
that won't change the order in which the handlers get called.  You either have 
to change the order in which the handlers get added or use the priority 
parameter of addEventListener to affect the order.

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

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of k_navroz
Sent: Friday, September 25, 2009 11:06 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Any way to make default event handler execute before my 
custom event handler?



Hi everyone,

I am using a third-party MDI framework which has default event handlers for 
many window events. The problem is I want my custom code to execute in response 
to few window events but only after the default handler defined by the 
framework has been executed because otherwise some of my changes get overriden 
by the framework's default event handlers.

I don't want to use preventDefault() because I also want those default event 
handlers to execute.

Thanks...



[flexcoders] openGL overlayed on Flash

2009-09-25 Thread etaiweininger
Hello,

Does anyone know how to overlay openGL on top of an Adobe AIR application? I 
have an animated cursor and I need it to refresh much faster than the Flash 
refresh rate. If I try to increase the global refresh rate, animation is way 
too choppy to support my cursor. Any thoughts?

Thanks,
Etai




[flexcoders] Re: Any way to make default event handler execute before my custom event handler?

2009-09-25 Thread k_navroz
Thanks Alex. Based on your clarifications, I will try to handle the issue using 
event priorities if that works properly in my case.


--- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote:

 preventDefault won't stop the other handlers from getting the event, it just 
 warns them not to do what they'd normally do, and they can ignore and do 
 stuff anyway.  And if the event isn't cancelable, preventDefault has no 
 effect.  But that won't change the order in which the handlers get called.  
 You either have to change the order in which the handlers get added or use 
 the priority parameter of addEventListener to affect the order.
 
 Alex Harui
 Flex SDK Developer
 Adobe Systems Inc.http://www.adobe.com/
 Blog: http://blogs.adobe.com/aharui
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
 Behalf Of k_navroz
 Sent: Friday, September 25, 2009 11:06 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Any way to make default event handler execute before my 
 custom event handler?
 
 
 
 Hi everyone,
 
 I am using a third-party MDI framework which has default event handlers for 
 many window events. The problem is I want my custom code to execute in 
 response to few window events but only after the default handler defined by 
 the framework has been executed because otherwise some of my changes get 
 overriden by the framework's default event handlers.
 
 I don't want to use preventDefault() because I also want those default event 
 handlers to execute.
 
 Thanks...





[flexcoders] invisible UIComponent

2009-09-25 Thread cholid cholid
Hi all
i've got new question
any one know how to make UIComponent invisible?
but it still can execute
Thanks
cholid.r