RE: [flexcoders] DragEnter DragExit trigger order

2008-03-29 Thread Alex Harui
Looks like that was done on purpose.  DRAG_ENTER is more of an offer.
If you don't accept drag on the potential new target, we don't send
DRAG_EXIT on the old target.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mac Sims
Sent: Friday, March 28, 2008 3:27 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] DragEnter  DragExit trigger order

 

In my experience, when you have two UIComponents (A  B) right next to
each other and you move your mouse from A to B you will get two events.
First, A will trigger a mouseOut event, and then B will trigger a
mouseOver event.  But this order does not seem to hold true for
analogous dragging events.  If I am dragging something and I move from A
to B, first B will trigger a dragEnter event and then A will trigger a
dragExit event.

So a few questions:

Have others observed this same behavior?

Is this the expected and correct behavior for dragging events?  It
doesn't seem like it should be to me.

Is there a workaround?


Thanks,

Mac


--
Mac Sims
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
www.macsims.com http://www.macsims.com  

 



RE: [flexcoders] Runtime Class Loading

2008-03-29 Thread Alex Harui
URLLoader loads the SWF as data and does not parse the SWF for its
classes.

 

Sounds like you're doing everything right, but I would verify the SWF in
the SWC to make sure it is valid.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Paul Spitzer
Sent: Friday, March 28, 2008 2:53 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Runtime Class Loading

 

Hi All,

Hoping someone can help me out here... I'm near the point of loosing my 
mind. I'm trying to do a simple load of a library SWF in order to use 
the classes within. Unfortunately it's not working. What I did was 
create a new library project, stuffed in a couple of classes, extracted 
the swf from the swc, and then created an ActionScript project in which 
I load the SWF.

When I use the Loader object to load the SWF the complete event never 
fires. I see progress events and I see the bytesLoaded matching the 
bytesTotal but no complete event. When I use URLLoader the SWF loads up 
no problem but I can't seem to access any of the classes in the library 
SWF. Using getDefinitionByName throws an error. If instead of a library 
project I create and load an ActionScript project SWF it all works as 
expected. But only when I use a Loader to load the SWF. If I try to use 
URLoader it doesn't work. Again, getDefinitionByName throws an error. I 
could create the library as an ActionScript project but I'd really 
prefer not to have to, feels a little dirty.

I was looking at the way the Flex framework works with RSLs and it 
appears it does exactly what I'm trying to do. That is,
it loads a library swf making the classes available at runtime. I tried 
duplicating the code in mx.preloaders.Preloader but to no avail. I 
tested a Flex project with an RSL and after adding some debug code I 
found the complete event in the Preloader (RSLNode) fires without any 
issues. I don't understand what I'm doing wrong, or not doing, or what 
the framework is doing that I'm not. Here's my code, about as simple as 
it gets...

public function LibLoader()
{
var loader: Loader = new Loader();

loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, 
handleProgress);
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, 
handleLoadComplete);
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, 
handleLoadError);

loader.contentLoaderInfo.addEventListener(SecurityErrorEvent.SECURITY_ER
ROR, 
handleLoadError);

var loaderContext: LoaderContext = new LoaderContext();
loaderContext.applicationDomain = ApplicationDomain.currentDomain;
loader.load(new URLRequest(TestLib.swf), loaderContext);
}

private function handleProgress(event: ProgressEvent):void
{
trace(progress);
}

private function handleLoadComplete(event: Event):void
{
trace(complete);
}

private function handleLoadError(event: ErrorEvent):void
{
trace(error);
}

Any insight?

Many thanks,

Paul

 



Re: [flexcoders] Flex and seo optimisation

2008-03-29 Thread Mike Chabot
The Flex Application Development book by Blank et. al. has a chapter
on SEO. The book authors were interviewed on The Flex Show.

From a business perspective, getting a high Google rank is a very
important driver of sales. So if you are selling a product, I would
avoid Flash and Flex for the public parts of the Web site since it
should be easier to get a higher ranking using a more traditional Web
site.

-Mike Chabot

On Wed, Mar 26, 2008 at 10:27 PM, Deniz Davutoglu
[EMAIL PROTECTED] wrote:




 Hello guys, I am working on project whom is importand to have hi page
 rank in seo . this is shopping site and I want to start fro scratch in
 flex do you think that this is wise decision? can yo write me about
 flex and seo relation. some people still claim that search engines
 dont allow your flash/flex sites to be shown in first palace in search
 page.
 thanks
 deniz

 


RE: [flexcoders] Re: Ely's FlexBook - drag and drop

2008-03-29 Thread Rick Winscot
I'd like to echo what Jeff said - and add that drag and drop functionality
is an awesome _highly contextual_ feature. Are you dragging and dropping
data? .or are you moving objects around? The mix of data and UI movement can
make for some interesting challenges - especially if the context doesn't
expose native support for drag and drop. However! There is good news - with
a little elbow grease you can add drag and drop functionality for just about
any UIComponent.

 

http://www.quilix.com/node/3 

 

So - can you add some sweet drag and drop capability into Flex book (bows to
Ely)?? Of course - but it will require you (the developer) to
programmatically bridge any gaps that Flex can't handle natively.

 

Rick Winscot

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jeffry Houser
Sent: Friday, March 28, 2008 9:07 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Ely's FlexBook - drag and drop

 

A Canvas is a container. I wouldn't have expected it to allow for items 
to be dropped into it.

slee_usa wrote:
 
 
 For the simplicity, for now my page is just Canvas. Maybe, if it
 works, I'll add photobox to hold the photo dropped into this box.
 
 Thanks!
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com, 
 Jeffry Houser [EMAIL PROTECTED] wrote:
 
 
  Is your page element something that supports dragging and
 dropping,
  such as a list or data grid?
 
  slee_usa wrote:
  
  
   I am working with Ely's fantastic FlexBook component. What I am
 trying
   to do is: drag photo from outside FlexBook and drop into the
 Book. Is
   this possible? Anybody ever tried this? I created a new Page,
 which
   has event handlers for dragEnter/dragDrop, but they are never
 invoked.
   This page works fine as not part of FlexBook, but it doesn't if
 I add
   it to FlexBook.
  
   Please advise me if anyone know how to do this. It would be very
   appreciated!!
  
   Thanks.
   Sean
  
  
 
  --
  Jeffry Houser
  Flex, ColdFusion, AIR
  AIM: Reboog711 | Phone: 1-203-379-0773
  --
  Adobe Community Expert
 
 http://www.adobe.com/communities/experts/members/JeffryHouser.html 
 http://www.adobe.com/communities/experts/members/JeffryHouser.html
  My Company: http://www.dot-com-it.com http://www.dot-com-it.com
  My Podcast: http://www.theflexshow.com http://www.theflexshow.com
  My Blog: http://www.jeffryhouser.com http://www.jeffryhouser.com
 
 
 

-- 
Jeffry Houser
Flex, ColdFusion, AIR
AIM: Reboog711 | Phone: 1-203-379-0773
--
Adobe Community Expert 
http://www.adobe.com/communities/experts/members/JeffryHouser.html
My Company: http://www.dot-com-it.com
My Podcast: http://www.theflexshow.com
My Blog: http://www.jeffryhouser.com

 

image001.jpgimage002.jpg

RE: [flexcoders] How do I remove an effect?

2008-03-29 Thread Rick Winscot
If you add an event listener for the effectEnd - you have the effect
instance and object it was applied to. As I mentioned before you can simply
call Foo.filters = []; Alternatively you can access the filters array and
pop/push as you like. are you trying to do something where a sequence of
events would help? I'm not sure that we can do much more without seeing what
you are trying to do in context (code). Source?

 

Rick Winscot

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Josh McDonald
Sent: Thursday, March 27, 2008 7:21 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] How do I remove an effect?

 

It's from Actionscript, as it's in some debugging code:

glow = new Glow();
glow.alphaFrom = 1;
glow.alphaTo = 0;
glow.repeatCount = 0;
glow.duration = 500;
glow.blurXFrom = 10;
glow.blurXTo = 10;
glow.blurYFrom = 10;
glow.blurYTo = 10;
glow.color = 0xff;
glow.strength = 10;

glowInstance = glow.play([_currentObject])[0];

-J

On Thu, Mar 27, 2008 at 4:41 PM, Gordon Smith [EMAIL PROTECTED] wrote:

How do you set the effect? By writing an attribute on an MXML tag, or by
calling setStyle(effectName, myEffectInstance)? 

 

Gordon Smith

Adobe Flex SDK Team

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Josh McDonald
Sent: Wednesday, March 26, 2008 10:40 PM


To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] How do I remove an effect?

 

Unfortunately that doesn't work either :(

-J

On Thu, Mar 27, 2008 at 2:14 AM, Gordon Smith [EMAIL PROTECTED] wrote:

Try

 

setStyle(effectName, undefined);

 

Gordon Smith

Adobe Flex SDK Team

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Josh McDonald
Sent: Tuesday, March 25, 2008 6:25 PM


To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] How do I remove an effect?

 

I was beginning to think that might be the only way to go about it. Lame :(

But cheers :)

-J

On Wed, Mar 26, 2008 at 9:53 AM, Rick Winscot [EMAIL PROTECTED]
wrote:

A MATEY.

 

Foo.filters = [];

 

Where Foo be your object with the filter.

 

 

Rick Winscot

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Christian
Sent: Tuesday, March 25, 2008 6:17 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] How do I remove an effect?

 

I'm not sure if this is possible, but I know that in the past, I've set
effects using setStyle('effectName', EffectClassInstance). Would it be
possible to just use that and set it to null perhaps?

On Tue, Mar 25, 2008 at 3:09 PM, Josh McDonald [EMAIL PROTECTED] wrote:

Hey guys,

How do I remove an effect? stop() and end() both just stop the effect,
rather than getting rid of it. Do I have to go and remove the filter by hand
(it's a glow Effect)?

-J

-- 
Therefore, send not to know For whom the bell tolls, It tolls for thee.

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED] 




-- 

Every child has many wishes. Some include a wallet, two chicks and a cigar,
but that's another story.




-- 
Therefore, send not to know For whom the bell tolls, It tolls for thee.

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED] 




-- 
Therefore, send not to know For whom the bell tolls, It tolls for thee.

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED] 




-- 
Therefore, send not to know For whom the bell tolls, It tolls for thee.

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED] 

 

image001.jpgimage002.jpg

Re: [flexcoders] Re: Free Flex Gauge Component

2008-03-29 Thread li wenzhi
Great and beautiful components, but your blogspot is not visitble in our 
country, can you move your code to google code?
and having view your gauge code, i think the code should be more polished to 
strictly corresponding the Flex component implementation methods, 
updateDisplaylist() method should not include measure();

thanks for your contribution for Flex communication.

---
lwz7512

OpenRIA -- A window you exploring RIA world

http://www.openria.cn



- Original Message 
From: Sanjiv Jivan [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Saturday, March 29, 2008 3:01:27 AM
Subject: Re: [flexcoders] Re: Free Flex Gauge Component

Just what I was looking for to get started. Thanks again!

Sanjiv


On Fri, Mar 28, 2008 at 2:33 PM, twgonzalez [EMAIL PROTECTED] ntinc.com wrote:

--- In [EMAIL PROTECTED] ups.com, Sanjiv Jivan sanjiv.jivan@ ...
wrote:


 Looks great Tom. Do you know of any good book / site that covers
creation of
 custom flex components?
 
 Thanks,
 Sanjiv
 

 On Fri, Mar 28, 2008 at 11:57 AM, twgonzalez [EMAIL PROTECTED] .

 wrote:
 
  In an effort to contribute back to this community I wanted to
share this
  component which I actually developed a couple of years ago but was
unable to
  share due to IP constraints.
 
  Now I can safely contribute this back the community as a small way of
  saying thanks. View source is enabled when you follow the link to
the live
  demo. Any comments/suggestion s/feature requests are more than
welcome.
 
  - Tom
 
  http://form- function. blogspot. com/2008/ 03/gauge- component- v01.html
 
  http://form- function. blogspot. com/2008/ 03/gauge- component- v01.html
 
  
 


Hello Sanjiv,

Well, there is the Yahoo group for Flex Components. Outside of that I
don't know of any books off the top of my head that are specific to
the topic. There is a lot of material on the web, mostly in blogs
around that topic. Check out the blog roll. Ely Greefield (primary
Flex architect) has some pretty good content on his blog:
http://www.quietlys cheming.com/ blog/.

For me personally, it was just a natural evolution of learning Flex
and wanting to make it do things that weren't in the framework.

- Tom




 


  

OMG, Sweet deal for Yahoo! users/friends:Get A Month of Blockbuster Total 
Access, No Cost. W00t 
http://tc.deals.yahoo.com/tc/blockbuster/text2.com

Re: [flexcoders] Re: Flex Builder 3 debug builds broken, breakpoints all wrong

2008-03-29 Thread Paul Andrews
 On Fri, Mar 28, 2008 at 9:19 AM, Troy Gilbert [EMAIL PROTECTED] 
 wrote:

 I just encountered the issue again, and went through the process of
  deleting all the build stuff manually, caches, etc., and nothing
  helped. So this time I tried flushing the browser cache (actually,
  disabling it with Firefox extension Web Developer). That worked, it
  was a browser cache issue.

  Anyone have any ideas why once in a blue moon the browser would serve
  up a cached version of my SWF (served from my localhost, MAMP on OSX)
  while debugging? I was under the impression that the browser wouldn't
  cache documents that have queryvars (hence one reason for the
  inclusion of ?debug=true when debugging a Flash app). Is there
  something else I need to be doing (possibly MAMP configuration?) to
  ensure that the browser always sees the latest SWF (without having to
  always disable the cache... I am loading a lot of static assets and
  its nice to take advantage of the cache for those)?

Adding ?debug=true isn't enough to stop the page being cached - the page 
signature must change so that the browser thinks that a different page is 
being requested every time. In this case you could use a number to make the 
page signature different - the most effective way is probably to use a 
timestamp and pass the milliseconds value from Date()  since this will 
always be unique.

Paul

  Thanks,

  Troy.



Re: [flexcoders] Re: Ely's FlexBook - drag and drop

2008-03-29 Thread Jeffry Houser

  Good to know, thanks.

  With regards to FlexBook, I'm not sure what to tell you.

slee_usa wrote:
 
 
 Thanks! Yes, there is a way to make non-list based component as
 drop target. Actually, this canvas works fine as drop target, but
 if I add this canvas as a page into FlexBook, it doesn't.
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, 
 Jeffry Houser [EMAIL PROTECTED] wrote:
  
   A Canvas is a container. I wouldn't have expected it to allow for
 items
   to be dropped into it.
  
   slee_usa wrote:
   
   
For the simplicity, for now my page is just Canvas. Maybe, if it
works, I'll add photobox to hold the photo dropped into this box.
   
Thanks!
   
--- In flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com mailto:flexcoders%
 40yahoogroups.com,
Jeffry Houser jeff@ wrote:


 Is your page element something that supports dragging and
dropping,
 such as a list or data grid?

 slee_usa wrote:
 
 
  I am working with Ely's fantastic FlexBook component. What
 I am
trying
  to do is: drag photo from outside FlexBook and drop into the
Book. Is
  this possible? Anybody ever tried this? I created a new
 Page,
which
  has event handlers for dragEnter/dragDrop, but they are
 never
invoked.
  This page works fine as not part of FlexBook, but it
 doesn't if
I add
  it to FlexBook.
 
  Please advise me if anyone know how to do this. It would be
 very
  appreciated!!
 
  Thanks.
  Sean
 
 

 --
 Jeffry Houser
 Flex, ColdFusion, AIR
 AIM: Reboog711 | Phone: 1-203-379-0773
 --
 Adobe Community Expert

   
 http://www.adobe.com/communities/experts/members/JeffryHouser.html 
 http://www.adobe.com/communities/experts/members/JeffryHouser.html
   
 http://www.adobe.com/communities/experts/members/JeffryHouser.html 
 http://www.adobe.com/communities/experts/members/JeffryHouser.html
 My Company: http://www.dot-com-it.com 
 http://www.dot-com-it.com http://www.dot-com- http://www.dot-com-
 it.com
 My Podcast: http://www.theflexshow.com http://www.theflexshow.com
 http://www.theflexshow.com http://www.theflexshow.com
 My Blog: http://www.jeffryhouser.com http://www.jeffryhouser.com
 http://www.jeffryhouser.com http://www.jeffryhouser.com

   
   
  
   --
   Jeffry Houser
   Flex, ColdFusion, AIR
   AIM: Reboog711 | Phone: 1-203-379-0773
   --
   Adobe Community Expert
  
 http://www.adobe.com/communities/experts/members/JeffryHouser.html 
 http://www.adobe.com/communities/experts/members/JeffryHouser.html
   My Company: http://www.dot-com-it.com http://www.dot-com-it.com
   My Podcast: http://www.theflexshow.com http://www.theflexshow.com
   My Blog: http://www.jeffryhouser.com http://www.jeffryhouser.com
  
 
 

-- 
Jeffry Houser
Flex, ColdFusion, AIR
AIM: Reboog711  | Phone: 1-203-379-0773
--
Adobe Community Expert 
http://www.adobe.com/communities/experts/members/JeffryHouser.html
My Company: http://www.dot-com-it.com
My Podcast: http://www.theflexshow.com
My Blog: http://www.jeffryhouser.com



[flexcoders] Image centering

2008-03-29 Thread Michael Wagner
Hello:

I am new with Flex.

I need to position an image ( can be a jpg, bmp, etc ) in a bitmaparea
bigger then the image size
I have tried codes like this but it is positioned in (0,0)

How is the task accomplished ?


*area:BitmapData = new BitmapData(200,200); *

var myBitmap:Bitmap = new Bitmap(bitmappicturefrom);

myBitmap.x = 100;

myBitmap.y = 100;

*area.draw(myBitmap);*

Thanks,

Michael.


[flexcoders] Change the row height of DataGrid, which contain more than one text compoent?

2008-03-29 Thread bigbb_kimo
Dear all,

I had a datagrid with an item render which contain two Text component
and one TextArea. The contents of all the three components are set by
htmlText attribute.

However, I found that the height of the row can not measure correctly.
I have tried to set the wordWrap=true and variableRowHeight=true of
the DataGrid. Please refer to the following code snippet.

// start 
mx:DataGrid height=100% variableRowHeight=true width=100%
dataProvider={Search.lastResult} 
mx:columns
  mx:DataGridColumn headerText=Test width=8 sortable=false
   mx:itemRenderer
mx:Component
mx:Box height=0 width=100% backgroundAlpha=0
mx:Label text={data.Date} fontSize=10/
mx:Text fontSize=14 width=100% textAlign=center
htmlText={data.Title} fontWeight=bold/
controls:AbstractTextArea fontSize=14
condenseWhite=true wordWrap=true backgroundAlpha=0 width=100%
height=100% textAlign=left htmlText={data.Abstract}
editable=false/
/mx:Box   
 /mx:Component
  /mx:itemRenderer 
/mx:DataGridColumn

// end

I also try to subclass the TextArea to try to dynamic change the
height of the surronding Box. However, that is too heuristic to practice.

Do you have any good ideas? 

Thanks a lot.



Re: [flexcoders] DragEnter DragExit trigger order

2008-03-29 Thread प्रवीन उत्तरवार
Hi,
If that is the requirement the try,
event.stopImmediatePropogation??
or why r u not assigning priorities to events at the time of adding event
listeners???



On 29/03/2008, Alex Harui [EMAIL PROTECTED] wrote:

Looks like that was done on purpose.  DRAG_ENTER is more of an offer.
  If you don't accept drag on the potential new target, we don't send
 DRAG_EXIT on the old target.


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Mac Sims
 *Sent:* Friday, March 28, 2008 3:27 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] DragEnter  DragExit trigger order



 In my experience, when you have two UIComponents (A  B) right next to
 each other and you move your mouse from A to B you will get two events.
 First, A will trigger a mouseOut event, and then B will trigger a mouseOver
 event.  But this order does not seem to hold true for analogous dragging
 events.  If I am dragging something and I move from A to B, first B will
 trigger a dragEnter event and then A will trigger a dragExit event.

 So a few questions:

 Have others observed this same behavior?

 Is this the expected and correct behavior for dragging events?  It doesn't
 seem like it should be to me.

 Is there a workaround?


 Thanks,

 Mac


 --
 Mac Sims
 [EMAIL PROTECTED]
 www.macsims.com

 



[flexcoders] memory leak in converting string to xml

2008-03-29 Thread Ilam Mougy
I am almost giving up on this issue, I don't know any work around.
Here is example, in AS:-

var strToBeXML:String = 'root.../root';// this is huge string,
20Meg xml for example.
myTrace('* memory before xml conversion (A): ' + System.totalMemory);
var xmlObj:XML = new XML(strToBeXML);
myTrace('* memory after xml conversion (B): ' + System.totalMemory);
// now, there is no way to get rid of this increase in memory!
xmlObj = null;
myTrace('* memory after xml deletion (C): ' + System.totalMemory);

protected function myTrace(str:String):void{
  forceGC();
  trace(str);
}
public function forceGC():void{
try {
new LocalConnection().connect('foo');
new LocalConnection().connect('foo');
} catch (e:*) {}
}

(C) is always similar to (B).
Any hits?  I need to get rid of this xml object memory allocation and
I can't.  I think I read all the articles about memory leaks.  I
haven't used Flex 3 yet, but I am sure if I try and it says there is a
leak, so what, what should I do?

Thanks for your help.



Re: [flexcoders] Can't get web page to scroll large Flex app

2008-03-29 Thread bsonnich

You also need to remove or change the overflow handling in the style tags it
adds:

body { margin: 0px; overflow: hidden }

becomes

body { margin: 0px; }

Brendan


Randy Cooper wrote:
 
 The problem is that when Flex builds the HTML file, it automatically
 puts a body scroll=no
 
 Edit this out and your document will scroll as you wish.
 
 Randy Cooper
 http://www.randycooper.net
 
 
 
 --- In flexcoders@yahoogroups.com, jack_freud [EMAIL PROTECTED] wrote:

 Sherif,
 Thanks for your reply, but what I wanted was for the browser to scholl
 the entire page including the App, not just for the app to scroll
 itself, just like a big web page.
 
 I stripped out everything but the simplest table on an html page and
 it worked, so I'm cool for now.
 
 Thanks for responding.
 
 Jack
 
 --- In flexcoders@yahoogroups.com, Sherif Abdou sherif626@ wrote:
 
  Browser does not add Scroll Areas, it is Flex that handles that
 since it is an Application. If you want Scrollbars just set the
 horizontalScrollPolicy to on
  
  
  - Original Message 
  From: jack_freud jack_web@
  To: flexcoders@yahoogroups.com
  Sent: Friday, January 25, 2008 4:53:09 PM
  Subject: [flexcoders] Can't get web page to scroll large Flex app
  
  Hi,
  I have a Flex app that's quite long, more than 900 pixels. If it were
  HTML, the browser would automatically add scrollbars for the content.
  
  But the browser doesn't seem to notice that the app is bigger than the
  viewable area of the browser.
  
  I tried putting the embedded object inside an HTML table but that did
  nothing to help.
  
  Thanks!
  Jack
  
  
  
  
  
   

 
  Never miss a thing.  Make Yahoo your home page. 
  http://www.yahoo.com/r/hs
 

 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Can%27t-get-web-page-to-scroll-large-Flex-app-tp15098685p16365367.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] Re: Custom Panel

2008-03-29 Thread Cato Paus
--- In flexcoders@yahoogroups.com, Dmitry Miller [EMAIL PROTECTED] wrote:

 I am trying to create a custom Panel with a custom shaped bar. I am
 currently working on bar having the top corners rounded. I think I
 should use setMask method however I could not find any documentation
 how  masking works in Flash. Can anyone,please, point me to a good 
example
 
 Thanks


override the move function and round off the int,, then you wont have 
the blury adges.



[flexcoders] Flex/AS3 Dependency Analysis Tool

2008-03-29 Thread joeberkovitz
Hi folks,

I've recently written an open source tool in AIR for visually
exploring the dependencies between classes and packages in an Adobe
Flex application.  The tool makes it much easier for developers to
understand where the code size is concentrated in their app, and how
their application might be made smaller, or broken up into dynamically
loadable modules.  It works off of the optional link report XML file
generated by mxmlc -- basically, it is a link report visualizer.

For more information, take a look at the project on Google Code:

http://code.google.com/p/it-depends/

Cheers...

... .  ..   joe




Re: [flexcoders] Charts and licenses

2008-03-29 Thread Sanjiv Jivan
AFAIK FusionCharts doesn't have flex API's currently. You'll need to load
the swf and use the Javascript bridge. I'm interested in other third party
flex charting solutions too.

Sanjiv

On Fri, Mar 28, 2008 at 11:41 PM, Pat Buchanan [EMAIL PROTECTED] wrote:

   No deployment costs on Flex charts.

 Concerning FusionCharts and such, there are pluses and minuses.  I think
 that the 3rd party sets tend to get a little fancier since that is what
 they focus on, whereas Adobe covers all kinds of components, and they try to
 make them meet in the middle so they fit most people's needs.

 I stuck with the Flex charts because they are supported by adobe, and most
 of the examples I find out there use them as the engine.

 It's all personal preference.

 Thanks
 -Pat
 www.DataNotion.com http://www.datanotion.com/

 On Fri, Mar 28, 2008 at 8:50 PM, Richard Rodseth [EMAIL PROTECTED]
 wrote:

Do the Flex charting components have any deployment costs associated
  with them?
 
  Also, are there any compelling reasons to use packages other than the
  Flex charts (eg. FusionCharts)?
 
  Thanks.
 

  



[flexcoders] Error: Unknown Property: 'constructor'. when using LCDS

2008-03-29 Thread Alexander Tsoukias
The fill method works great using RTMP and it fills a datagrid.

When i make the datagrid editable and change a value, It returns this
error: Error: Unknown Property: 'constructor'.

The backend is connected with coldfusion CFCs. Again the fill method
works great.

Thanks,
Alexander



[flexcoders] Re: Date problem - going over daylight saving date

2008-03-29 Thread Dmitri Girski
Hi Peter, 

The problem is that Date class does not provide method addDay() as
would any decent class will do. So you have to muck around manually.
and it does mean that you have to deal with timezones and other stuff
you really don't want to deal with. 

And by the way - DateChooser component  will not select current date
with nice blue colour unless you set hours, minutes  seconds to zero.
And here comes the problem of calendar navigation.

PS I am not surprised with the reaction on this problem - Adobe is
still 100% designer company and Microsoft is 100% software company. I
keep dreaming about at least 80-20 mixture... :)

Cheers,
Dmitri.





--- In flexcoders@yahoogroups.com, Peter Anselmo [EMAIL PROTECTED]
wrote:

 I have been doing a scheduling app that runs into this issue.. if
you think
 about it.. adding 24 hours isn't always the same as adding a day
because a
 day can be 23, 24 or 25 hours.  If you want to add a day, you should
find
 the number of hours between the two days that you want and use that.
 
 Peter





[flexcoders] Re: RSL linker settings in multiple projects

2008-03-29 Thread Dmitri Girski
OK, I have finally figured out what has to be done to achieve multiple
RSLs. Maybe this post will be useful for someone else.

- it is worthwhile to check if you use framework.swc,
datavisualisation.swc  rpc.swc and if yes make them external. The
rest of standard libraries are too small to worry about them. 

- if you use datavisualisation.swc it should be below framework.swc

- all your libraries should use external linking to your other libraries 

-only in main application you have to select RSL linking type for
selected system libraries (framework, rpc, dataviz) and for all your
libraries.

Common sense should be applied to the approach - there is no need to
convert piece of code to RSL if it is used only in a single place.

After spending some time with my project I've managed to decrease
total loading volume from 7.9 Mb to 2.7Mb (~3 times less). Now I've
got now 10 libraries and a number of SWFs which I am loading into the
main  one. The result totally worth the efforts.

Cheers,
Dmitri. 



--- In flexcoders@yahoogroups.com, Dmitri Girski [EMAIL PROTECTED] wrote:

 Hi,
 
 I've got the following structure of an application
 
 - base_core lib (AS project)
 
 - base_ui lib (depends on base_core)
 
 then
 
 -component1 lib (depends on base_core, base_ui)
 
 -component2 lib (depends on base_core, base_ui)
 etc
 
 and then finally 
 main project with the following applications:
 -app1 (uses component1)
 -app2 (uses component2)
 etc
 
 Which linker settings should be used in each project to achieve proper
 RSL  linking?
 
 Thanks in advance!
 
 Dmitri.





[flexcoders] Re: Flex 3 - Using https in HTTPService

2008-03-29 Thread Dmitri Girski
Hi,

In my case (PHP+Apache) the following thing was a killer

header('Expires: 0'); 


If other pragma-cache headers were creating problems after some time,
this Expires header was a complete stopper.


Cheers,
Dmitri.



--- In flexcoders@yahoogroups.com, Marcus Engene [EMAIL PROTECTED] wrote:

 Hi,
 
 Of curiosity, have you identified exactly which of these lines
annoys IE?
 
 Thanks,
 Marcus
 
 Mark TheWebGuru wrote:
 
  Hi
 
   
 
  I have identified the problem to some new code that was added to the 
  ASP webpage that my HTTPService was calling.
 
   
 
  I had added
 
   
 
  Response.Expires = 0
  Response.Expiresabsolute = Now() - 1
  Response.AddHeader pragma,no-cache
  Response.AddHeader cache-control,private
  Response.CacheControl = no-cache
 
  which while it not a problem for FireFox, but caused problems with 
  Internet Explorer.
 
   
 
  I have now removed this code and my HTTPService now works fine in 
  Internet Explorer under HTTPS
 
   
 
  Cheers
 
   
 
  Mark
 
   
 
 
 
  - Original Message 
  From: Mark TheWebGuru [EMAIL PROTECTED]
  To: flexcoders@yahoogroups.com
  Sent: Tuesday, 18 March, 2008 9:25:37 AM
  Subject: Re: [flexcoders] Re: Flex 3 - Using https in HTTPService
 
  Hi Dmitri
 
   
 
  I tried your solution but it didn't work. However thanks for the
great 
  tip about not having to have the absolute address in the url
attribute.
 
   
 
  I have narrowed down the problem thought, I believe it to be a 
  MICROSOFT browser issue while working under HTTPS. My showpiece 
  flex/flash Admin Control Panel works fine in FireFox.
 
   
 
  However, when I use Internet Explorer I get the following error:
 
   
 
  Error #2032: Stream Error,
 
   
 
  I am just starting to investigate this issue, so if anybody can help 
  me, I still have a long struggle to break the microsoft monopoly
at my 
  company :-)
 
   
 
  Cheers
 
  Mark
 
   
 
 
 
  - Original Message 
  From: Dmitri Girski [EMAIL PROTECTED] com
  To: [EMAIL PROTECTED] ups.com
  Sent: Monday, 17 March, 2008 9:17:57 PM
  Subject: [flexcoders] Re: Flex 3 - Using https in HTTPService
 
  Hi Mark,
 
  I am using HTTPservice with relative addresses (e.g.
  url='./php/test. php'), so if swf was loaded from https domain it will
  work in secure mode and vice versa.
  In this case you don't have to change urls and crossdomain files.
 
  Hope this will help.
 
  Cheers,
  Dmitri.
 
  --- In [EMAIL PROTECTED] ups.com 
  mailto:flexcoders%40yahoogroups.com, Mark mark_thewebguru@ ... 
  wrote:
  
   Hi
  
   I am using a HTTPService to get some XML back from an ASP webpage
   (legacy system). It all worked fine in Dev and Test, and then when I
   went live using an https url for my HTTPService is has stopped
   working. I get no response back. I am unsure of how to debug this so
   as to get a more detailed error. (The only change made between
   DEV/TEST flex app and LIVE flex app is the url attribute being
set to
   an https url address.)
  
   The SWF file sits in a subfolder of the root, the ASP webpage that
   the HTTPService url accesses also sits in the same subfolder.
The SWF
   file is being loaded by a https url.
  
   I did read something about a crossdomain. xml file but as the swf is
   being loaded by https url I got the impression this wasn't required.
  
   Any help appreciated, my project has got live and I was using
Flex to
   demostrate an Admin Control Panel, so doesn't look good that it is
   not working. One nil to the microsoft camp inmy company.
  
   Thanks in advance
  
   Mark
  
 
 
 
 

  To help you stay safe and secure online, we've developed the all new 
  *Yahoo! Security Centre* 
 
http://us.rd.yahoo.com/mail/uk/taglines/default/security_centre/*http://uk.security.yahoo.com/.

 
 
 
 

  Rise to the challenge for Sport Relief with Yahoo! for Good 
 
http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http://us.rd.yahoo.com/evt=51947/*http://uk.promotions.yahoo.com/forgood/

 





Re: [flexcoders] Charts and licenses

2008-03-29 Thread Richard Rodseth
Hi Sanjiv

Have you encountered specific issues with the Adobe ones? From what
I've seen, they seem quite well thought out and flexible, so I'm
curious what problems people may have run into.

On Sat, Mar 29, 2008 at 9:17 AM, Sanjiv Jivan [EMAIL PROTECTED] wrote:






 AFAIK FusionCharts doesn't have flex API's currently. You'll need to load
 the swf and use the Javascript bridge. I'm interested in other third party
 flex charting solutions too.

 Sanjiv


  On Fri, Mar 28, 2008 at 11:41 PM, Pat Buchanan [EMAIL PROTECTED] wrote:
 
 
 
 
 
 
 
  No deployment costs on Flex charts.
 
  Concerning FusionCharts and such, there are pluses and minuses.  I think
 that the 3rd party sets tend to get a little fancier since that is what
 they focus on, whereas Adobe covers all kinds of components, and they try to
 make them meet in the middle so they fit most people's needs.
 
  I stuck with the Flex charts because they are supported by adobe, and most
 of the examples I find out there use them as the engine.
 
  It's all personal preference.
 
  Thanks
  -Pat
  www.DataNotion.com
 
 
 
  On Fri, Mar 28, 2008 at 8:50 PM, Richard Rodseth [EMAIL PROTECTED]
 wrote:
 
  
  
  
  
  
  
   Do the Flex charting components have any deployment costs associated
 with them?
  
   Also, are there any compelling reasons to use packages other than the
   Flex charts (eg. FusionCharts)?
  
   Thanks.
  
 
 

  


[flexcoders] Re: Flex Beta 3 to Flex 3 Migration Problems

2008-03-29 Thread Dmitri Girski
The major functional problem so far is a change to ComboBox behaviour
- now it respects selectedItem property. In Flex2 if selectedItem was
set to null it was selecting the first item. Now it stays clear.
Yes, this this a proper behaviour, but it breaks the code if you try
to reach selectedItem property without checking it. Previously it was
filled in automatically for you.

Unfortunately, Adobe does not respect the fact that improvements of
the SDK breaks the existing code. 

I submitted a bug in Flex2 regarding list selection indices order. It
was fixed in next release without any mentioning about it in the
release notes. Of course it immediately caused a crash of ab
application which relied on the order of selection.

I wonder what will Adobe do if it come across with tm.tm_mday
structure. This is really tempting to fix!  :))

PS And I an not mentioning The Panel problem :)

Cheers! 






--- In flexcoders@yahoogroups.com, Joan Lafferty [EMAIL PROTECTED] wrote:

 Hi Seth,
 
  
 
 Unfortunately, we don't have this list. I tried to use our bugbase to
 find the bugs fixed from Beta 3 to release and that proved futile as
 well. So, I looked through all of our changelists and didn't see any
 that were obvious changes to Accordion and ComboBoxes. There were many
 changes to fix bugs in our AIR components, DragManager, and List
 Components though.
 
  
 
 Can you be more specific as to what some of your problems were during
 this migration? Were you using AIR? If you can provide a sample of your
 code, that could help a lot.
 
  
 
 Thanks,
 
 Joan 
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of a3leggeddog_ca
 Sent: Thursday, March 20, 2008 2:31 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Flex Beta 3 to Flex 3 Migration Problems
 
  
 
 Hi -
 
 We are having significant problems after migrating between Beta 3 and 
 the GA release. Differences in the accordion component, comboboxes, 
 spacing, control focus, etc. Has anyone else had these problems?
 
 Is there a list of the things that changed between Beta 3 and the final 
 release?
 
 HELP!!
 
 Thanks,
 Seth





[flexcoders] Flex Mojos 1.0-alpha4 is out

2008-03-29 Thread VELO
Hi Folks

Another weekend another release.

Bug fixies and some news.

The most important new is AsDoc support.

Now is possible to generate asdoc with maven.  Just need to type mvn
asdoc:asdoc (on projects using super pom).

Read more at: http://flex-mojos.blogspot.com/


Soon more news.


VELO


[flexcoders] Re: How do I print in Flex?

2008-03-29 Thread Dmitri Girski
Yeah... nice. It does not support such complex structures as 2 grids
one after another, or large text area etc. 

When I hear easy/nice printing in Flex I become nervous (after I
killed so many days of my life trying to get it nicely printed)
 

PS FlexReport (http://flexreport.riaforge.org/) is a good attempt to
overcome these issues and I wonder why it is still not in the SDK (or
at least something from it).

Dmitri.



--- In flexcoders@yahoogroups.com, Chad Gray [EMAIL PROTECTED] wrote:

 In the component explorer I discovered a really  nice example of
printing.
 
 http://examples.adobe.com/flex3/componentexplorer/explorer.html
 
 
 
 
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of coolz22in
 Sent: Wednesday, March 26, 2008 1:35 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] How do I print in Flex?
 
 Hi,
 I want to print some data obtained from data grid  text input from
 flex. How can I print data which i wanted in flex? What are the API's
 available for printing?
 
 Thanks.
 
 ~ Sundar ~
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
Links





Re: [flexcoders] Re: How do I print in Flex?

2008-03-29 Thread smelby
I agree.  If you need anything beyond the very basics you will be far
better off generating printable reports on the server side.  In the past
fewonths I have done this for two different projects with great results. 
On the first I used the open source itext library to generate PDF reports.
 On the other I generated open XML for a client that wanted to ne able to
touch up the results.  Both solutions were simple and flexible.

hthScott


 Yeah... nice. It does not support such complex structures as 2 grids
 one after another, or large text area etc.

 When I hear easy/nice printing in Flex I become nervous (after I
 killed so many days of my life trying to get it nicely printed)


 PS FlexReport (http://flexreport.riaforge.org/) is a good attempt to
 overcome these issues and I wonder why it is still not in the SDK (or
 at least something from it).

 Dmitri.



 --- In flexcoders@yahoogroups.com, Chad Gray [EMAIL PROTECTED] wrote:

 In the component explorer I discovered a really  nice example of
 printing.

 http://examples.adobe.com/flex3/componentexplorer/explorer.html





 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
 On Behalf Of coolz22in
 Sent: Wednesday, March 26, 2008 1:35 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] How do I print in Flex?

 Hi,
 I want to print some data obtained from data grid  text input from
 flex. How can I print data which i wanted in flex? What are the API's
 available for printing?

 Thanks.

 ~ Sundar ~


 

 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
 Links







[flexcoders] Any existing Sound-NetStream Façade to play mp3/flv ?

2008-03-29 Thread mydarkspoon
Hi,

I encountered a problem with existing application that plays audio
from a given URL.
The URL was an flv file, which the Actionscript Sound class doesn't
support.

Just before I write my own Façade for Sound and Netstream, I'm curious
if anybody ever seen an existing lib that can do it ?

Thanks.



[flexcoders] Newbie Question - TextArea, RichTextboxEditor.

2008-03-29 Thread khan.ibraheem
I am a newbie and am learning this technology. Here is what I want. I
want a textarea in which I can color,font of text. That is I can the
color, font of any text in the TEXTAREA programmability. As far as I
know I can not achieve this through textarea because it allows to
change the color,font of selected text. 

So, I thought of using RichTextboxEditor. However, I just need a
simple textarea and not the toolbar, header and other controls visible
in RichTextboxEditor. I have hide the toolbar and header of
RichTextboxEditor but the size of textarea(in RichTextboxEditor) is
not equivalent to the size of RichTextboxEditor. 

Can anyone please help. I would be really thankful to him/her.

Regards.






Re: [flexcoders] Charts and licenses

2008-03-29 Thread Sanjiv Jivan
I actually haven't got a whole lot of experience with Adobe charting but
from what I understand Adobe charts give you a good foundation to building
advanced charts but FusionCharts already has professional grade charts out
of the box. Depending on the kind of charts you need Adobe charting might be
sufficient.

Have a look at these examples :

http://www.fusioncharts.com/PowerCharts.asp
http://www.fusioncharts.com/gadgets/Gallery.asp

ILOG Elixir seems to be the only similar option for Flex users but the
provide only a small subset of the FusionChart and their pricing is quite
exorbitant.

Sanjiv

On Sat, Mar 29, 2008 at 2:04 PM, Richard Rodseth [EMAIL PROTECTED] wrote:

   Hi Sanjiv

 Have you encountered specific issues with the Adobe ones? From what
 I've seen, they seem quite well thought out and flexible, so I'm
 curious what problems people may have run into.


 On Sat, Mar 29, 2008 at 9:17 AM, Sanjiv Jivan [EMAIL 
 PROTECTED]sanjiv.jivan%40gmail.com
 wrote:
 
 
 
 
 
 
  AFAIK FusionCharts doesn't have flex API's currently. You'll need to
 load
  the swf and use the Javascript bridge. I'm interested in other third
 party
  flex charting solutions too.
 
  Sanjiv
 
 
  On Fri, Mar 28, 2008 at 11:41 PM, Pat Buchanan [EMAIL 
  PROTECTED]ajillis%40gmail.com
 wrote:
  
  
  
  
  
  
  
   No deployment costs on Flex charts.
  
   Concerning FusionCharts and such, there are pluses and minuses. I
 think
  that the 3rd party sets tend to get a little fancier since that is
 what
  they focus on, whereas Adobe covers all kinds of components, and they
 try to
  make them meet in the middle so they fit most people's needs.
  
   I stuck with the Flex charts because they are supported by adobe, and
 most
  of the examples I find out there use them as the engine.
  
   It's all personal preference.
  
   Thanks
   -Pat
   www.DataNotion.com
  
  
  
   On Fri, Mar 28, 2008 at 8:50 PM, Richard Rodseth [EMAIL 
   PROTECTED]rrodseth%40gmail.com
 
  wrote:
  
   
   
   
   
   
   
Do the Flex charting components have any deployment costs associated
  with them?
   
Also, are there any compelling reasons to use packages other than
 the
Flex charts (eg. FusionCharts)?
   
Thanks.
   
  
  
 
 
  



[flexcoders] WHERE is ActionScript 3 Documentation HIDING ?

2008-03-29 Thread comfederation
I am looking for ActionScript 3 reference and other manuals, in PDF
format, and I can not find them?

Why are these PDF reference manuals hidden well enough that even
dummies (like my self) can not easily find them ?

It certainly does not seem to be one of Adobe's brightest moves that
will help them in the Silverlight battle !



[flexcoders] Compiling CSS to SWF on server

2008-03-29 Thread Sergey Kovalyov
Hi All!

Does somebody have experience compiling CSS to SWF on server using Flex
command line compiler?

I want to allow users use their own fonts in application. To do that first
they have to upload TTF true type font to server, then create CSS that
references uploaded font file on the flight and at last compile it to SWF.
Thus it would be possible to load the resulting SWF via StyleManager.

What do you think about this strategy?

Sergey.


RE: [flexcoders] Error: Unknown Property: 'constructor'. when using LCDS

2008-03-29 Thread Jeff Vroom
Do you know ActionScript your objects from CF land are getting converted
to?Typically they come across as Objects unless you are mapping a
strong type in which case you need to mark those classes with [Managed].
This appears to be something which does not extend Object - like maybe
XML?   

 

If you can't tell, adding mx:TraceTarget/ in MXML and using the debug
player you can get a flashlog.txt which should have that information
(feel free to send that to me directly offlist).   

 

We use the constructor property in some cases to determine which class
we are dealing with but there are other ways we could do that.  

 

Jeff

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alexander Tsoukias
Sent: Saturday, March 29, 2008 9:53 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Error: Unknown Property: 'constructor'. when using
LCDS

 

The fill method works great using RTMP and it fills a datagrid.

When i make the datagrid editable and change a value, It returns this
error: Error: Unknown Property: 'constructor'.

The backend is connected with coldfusion CFCs. Again the fill method
works great.

Thanks,
Alexander

 



[flexcoders] Re: filterFunction - blows up when item field blank

2008-03-29 Thread Don Kerr
Thanks Scott. This was very helpful. 

Don

--- In flexcoders@yahoogroups.com, Scott Melby [EMAIL PROTECTED] wrote:

 1) Can someone explain in words what indexOf does? Obviously it
 compares the two and spits out a number, but I just don't fully grasp
 what is going on. Why use it instead of just == ?
 
   - String.indexOf returns -1 if the specified sequence is not found in 
 the target string (the one you are calling the method on) and returns 
 the zero based index of the position within the target string if it is 
 found.  You would use indexOf if you were interested in substring 
 (partial) matches.  i.e. so your grid shows all titles with ch in
them 
 without requiring the title to BE ch.
 
 The problem you are having is that the filter calls methods on both 
 title and docNumber without first checking if they are null.  So, if 
 either is null you are going to get exceptions.
 
 I would probably re-write that as something like: Note... this code may 
 not compile, but should be close :)
 
 public function processFilter(item:Object):Boolean
 {
 var result:Boolean=false;
 
 
 //make sure there is a search term
 if(term.text != null  term.text.length  0)
 { 
//get the search term as upper case
var searchTerm:String = term.text.toUpperCase();
 
//check against the title
if(item.title != null  item.title.length  0)
{
   result = (item.title.toUpperCase().indexOf(searchTerm) != -1);
}
 
//no need to check doc number if title already matched or if
there is no docNumber
if(result == false  item.docNumber != null 
item.docNumber.length  0)
{
   result = (item.docNumber.toUpperCase().indexOf(searchTerm) != -1);
}
 }
 
 return result;
 }
 
 Though I may use RegExp and String.search() instead of indexOf... 
Check out this page
http://livedocs.adobe.com/flex/3/html/help.html?content=09_Working_with_Strings_09.html
for more info on string searches.
 
 
 hth
 Scott
 
 Scott Melby
 Founder, Fast Lane Software LLC
 http://www.fastlanesw.com
 http://blog.fastlanesw.com
 
 
 
 Don Kerr wrote:
  I've been using this code below for a long time...but don't fully
  understand how it works:) It does work great, as long as both title
  and docNumber are not null. But it blows up if docNumber is null.
 
  1) Can someone explain in words what indexOf does? Obviously it
  compares the two and spits out a number, but I just don't fully grasp
  what is going on. Why use it instead of just == ?
 
  2) The OR || isn't clicking either. Would I add !item.docNumber.length
  as another || to prevent the error when docNumber is blank? I want it
  to filter on one or more columns in the dataProvider, but not blow up
  if any one of them are blank. If one is blank, it should still filter
  on the others.
 
  public function processFilter(item:Object):Boolean
  {
  var result:Boolean=false;
  // If no filter text, or a match, then true
  if (!item.title.length
  || item.title.toUpperCase().indexOf(term.text.toUpperCase()) = 0
  ||item.docNumber.toUpperCase().indexOf(term.text.toUpperCase()) = 0
  )
  result=true;
  
  return result;
  }
 
  Thanks for the added insight into this borrowed code.:)
  Don
 
 
 





[flexcoders] Re: VerticalAxis - Flex SDK 3 Release BUG [Attached Code]

2008-03-29 Thread Rodrigo Pereira Fraga
I'm sorry,
but who knows the chart's API of the Fx3, knows what I am talking...

So... I isolated the code so that the list can to see the source and 
running:

http://www.digows.com/projetos/AxisRendererBug/

Thanks very much!

Atenciosamente:
--
| Rodrigo Pereira Fraga|
http://www.digows.com 
  http://forum.flexbrasil.com.br
 
e-mails: [EMAIL PROTECTED]
 [EMAIL PROTECTED]
  I'am from Brazil... and you?
-



--- In flexcoders@yahoogroups.com, ben.clinkinbeard 
[EMAIL PROTECTED] wrote:

 You're almost guaranteed to not get an answer without posting some 
code.
 
 FYI,
 Ben
 
 
 --- In flexcoders@yahoogroups.com, Rodrigo Pereira Fraga
 rpffoz@ wrote:
 
  The LineChart.verticalAxisRenderers, to be Bugged!
  
  I add and remove dynamically VerticalAxis in LineChart, but when 
I 
  remove, The screen like in the picture below:
  
  http://s294.photobucket.com/albums/mm107/rpffoz/?
  action=viewcurrent=LineChartBug.jpg
  
  **Copy and paste the lines of link.
  
  Thanks some help.
  
  
  --- In flexcoders@yahoogroups.com, Tom Chiverton tom.chiverton@ 
  wrote:
  
   On Friday 28 Mar 2008, Rodrigo Pereira Fraga wrote:
So.. nobody know a solution?
   
   Nobody even knows what your error is !
   
   -- 
   Tom Chiverton
   Helping to elementarily cluster best-of-breed networks
   on: http://thefalken.livejournal.com
   
   
   
   This email is sent for and on behalf of Halliwells LLP.
   
   Halliwells LLP is a limited liability partnership registered in 
  England and Wales under registered number OC307980 whose 
registered 
  office address is at Halliwells LLP, 3 Hardman Square, 
  Spinningfields, Manchester, M3 3EB.  A list of members is 
available 
  for inspection at the registered office. Any reference to a 
partner 
  in relation to Halliwells LLP means a member of Halliwells LLP.  
  Regulated by The Solicitors Regulation Authority.
   
   CONFIDENTIALITY
   
   This email is intended only for the use of the addressee named 
  above and may be confidential or legally privileged.  If you are 
not 
  the addressee you must not read it and must not use any 
information 
  contained in nor copy it nor inform any person other than 
Halliwells 
  LLP or the addressee of its existence or contents.  If you have 
  received this email in error please delete it and notify 
Halliwells 
  LLP IT Department on 0870 365 2500.
   
   For more information about Halliwells LLP visit 
www.halliwells.com.
  
 





Re: [flexcoders] WHERE is ActionScript 3 Documentation HIDING ?

2008-03-29 Thread Jeffry Houser

  If I Google ActionScript 3 Documentation this page comes up: 
http://labs.adobe.com/wiki/index.php/ActionScript_3

  Which has a link to this Programming ActionScript 3 in PDF format ( 
http://www.adobe.com/go/programmingAS3_pdf ).


  If I go to LiveDocs.adobe.com, select Flex documentation it will 
send me here

  http://www.adobe.com/support/documentation/en/flex/

  Which has the same PDF available.  Both pages include other links 
(some in PDF) that may be helpful in the context of learning, or using 
ActionScript 3.

  I'd be very surprised if similar documentation was not included with 
Flex Builder (or the Flex SDK download), however I didn't check.  It is 
rare I'm looking up ActionScript3 docs; although I use the Flex 
Framework docs quite a bit.

  All that said, ActionSCript 3 is an ECMA compliant language, so they 
may very well have the expectation that most programmers are already 
familiar with the syntax.



comfederation wrote:
 
 
 I am looking for ActionScript 3 reference and other manuals, in PDF
 format, and I can not find them?
 
 Why are these PDF reference manuals hidden well enough that even
 dummies (like my self) can not easily find them ?
 
 It certainly does not seem to be one of Adobe's brightest moves that
 will help them in the Silverlight battle !
 
 

-- 
Jeffry Houser
Flex, ColdFusion, AIR
AIM: Reboog711  | Phone: 1-203-379-0773
--
Adobe Community Expert 
http://www.adobe.com/communities/experts/members/JeffryHouser.html
My Company: http://www.dot-com-it.com
My Podcast: http://www.theflexshow.com
My Blog: http://www.jeffryhouser.com



Re: [flexcoders] WHERE is ActionScript 3 Documentation HIDING ?

2008-03-29 Thread Matthew Kampschmidt
Here are the Flex 3 livedocs, this what you¹re looking for?

http://livedocs.adobe.com/flex/3/langref/index.html

-kampy

On 3/29/08 9:49 PM, Jeffry Houser [EMAIL PROTECTED] wrote:

  
  
 
 
  If I Google ActionScript 3 Documentation this page comes up:
 http://labs.adobe.com/wiki/index.php/ActionScript_3
 
 Which has a link to this Programming ActionScript 3 in PDF format (
 http://www.adobe.com/go/programmingAS3_pdf ).
 
 If I go to LiveDocs.adobe.com, select Flex documentation it will
 send me here
 
 http://www.adobe.com/support/documentation/en/flex/
 
 Which has the same PDF available.  Both pages include other links
 (some in PDF) that may be helpful in the context of learning, or using
 ActionScript 3.
 
 I'd be very surprised if similar documentation was not included with
 Flex Builder (or the Flex SDK download), however I didn't check.  It is
 rare I'm looking up ActionScript3 docs; although I use the Flex
 Framework docs quite a bit.
 
 All that said, ActionSCript 3 is an ECMA compliant language, so they
 may very well have the expectation that most programmers are already
 familiar with the syntax.
 
 comfederation wrote:
  
  
  I am looking for ActionScript 3 reference and other manuals, in PDF
  format, and I can not find them?
  
  Why are these PDF reference manuals hidden well enough that even
  dummies (like my self) can not easily find them ?
  
  It certainly does not seem to be one of Adobe's brightest moves that
  will help them in the Silverlight battle !
  
  



Re: [flexcoders] Runtime Class Loading

2008-03-29 Thread Paul Spitzer
I don't know why it wouldn't be valid or corrupt but... something is 
weird. What I settled on is loading the SWF with URLLoader and then 
using loadBytes on the ByteArray. I still have to wait a half a second 
or so after calling loadBytes before the classes are available but at 
least the loading of the SWF is somewhat normal.

Alex Harui wrote:

 URLLoader loads the SWF as data and does not parse the SWF for its 
 classes.

 Sounds like you’re doing everything right, but I would verify the SWF 
 in the SWC to make sure it is valid.

 

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
 *On Behalf Of *Paul Spitzer
 *Sent:* Friday, March 28, 2008 2:53 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Runtime Class Loading

 Hi All,

 Hoping someone can help me out here... I'm near the point of loosing my
 mind. I'm trying to do a simple load of a library SWF in order to use
 the classes within. Unfortunately it's not working. What I did was
 create a new library project, stuffed in a couple of classes, extracted
 the swf from the swc, and then created an ActionScript project in which
 I load the SWF.

 When I use the Loader object to load the SWF the complete event never
 fires. I see progress events and I see the bytesLoaded matching the
 bytesTotal but no complete event. When I use URLLoader the SWF loads up
 no problem but I can't seem to access any of the classes in the library
 SWF. Using getDefinitionByName throws an error. If instead of a library
 project I create and load an ActionScript project SWF it all works as
 expected. But only when I use a Loader to load the SWF. If I try to use
 URLoader it doesn't work. Again, getDefinitionByName throws an error. I
 could create the library as an ActionScript project but I'd really
 prefer not to have to, feels a little dirty.

 I was looking at the way the Flex framework works with RSLs and it
 appears it does exactly what I'm trying to do. That is,
 it loads a library swf making the classes available at runtime. I tried
 duplicating the code in mx.preloaders.Preloader but to no avail. I
 tested a Flex project with an RSL and after adding some debug code I
 found the complete event in the Preloader (RSLNode) fires without any
 issues. I don't understand what I'm doing wrong, or not doing, or what
 the framework is doing that I'm not. Here's my code, about as simple as
 it gets...

 public function LibLoader()
 {
 var loader: Loader = new Loader();

 loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,
 handleProgress);
 loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
 handleLoadComplete);
 loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR,
 handleLoadError);

 loader.contentLoaderInfo.addEventListener(SecurityErrorEvent.SECURITY_ERROR, 

 handleLoadError);

 var loaderContext: LoaderContext = new LoaderContext();
 loaderContext.applicationDomain = ApplicationDomain.currentDomain;
 loader.load(new URLRequest(TestLib.swf), loaderContext);
 }

 private function handleProgress(event: ProgressEvent):void
 {
 trace(progress);
 }

 private function handleLoadComplete(event: Event):void
 {
 trace(complete);
 }

 private function handleLoadError(event: ErrorEvent):void
 {
 trace(error);
 }

 Any insight?

 Many thanks,

 Paul

 




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



[flexcoders] Re: memory leak in converting string to xml

2008-03-29 Thread Ilam Mougy
Well, it looks like this is a known deferred issue.
Looks like the player (not the Flex sdk) is the one that leaks when
you convert string to xml
(https://bugs.adobe.com/jira/browse/SDK-11982), but this means, if you
have a RIA that asks for repeated xml files, it will be crash!

I wish I know any way to convert to xml and avoiding the string route.
Anyone?

Thanks,

--- In flexcoders@yahoogroups.com, Ilam Mougy [EMAIL PROTECTED] wrote:

 I am almost giving up on this issue, I don't know any work around.
 Here is example, in AS:-
 
 var strToBeXML:String = 'root.../root';// this is huge string,
 20Meg xml for example.
 myTrace('* memory before xml conversion (A): ' +
System.totalMemory);
 var xmlObj:XML = new XML(strToBeXML);
 myTrace('* memory after xml conversion (B): ' + System.totalMemory);
 // now, there is no way to get rid of this increase in memory!
 xmlObj = null;
 myTrace('* memory after xml deletion (C): ' + System.totalMemory);
 
 protected function myTrace(str:String):void{
   forceGC();
   trace(str);
 }
 public function forceGC():void{
   try {
   new LocalConnection().connect('foo');
   new LocalConnection().connect('foo');
   } catch (e:*) {}
 }
 
 (C) is always similar to (B).
 Any hits?  I need to get rid of this xml object memory allocation and
 I can't.  I think I read all the articles about memory leaks.  I
 haven't used Flex 3 yet, but I am sure if I try and it says there is a
 leak, so what, what should I do?
 
 Thanks for your help.





Re: [flexcoders] Runtime Class Loading

2008-03-29 Thread gabriel montagné
Also, you should wait for the INIT event to be sure that the loaded
movie is ready.   COMPLETE signals that all the bytes have loaded, but
init gets fired after all initialization is complete and the swf is
already added to the loader.

-- 
gabriel montagné láscaris comneno
http://rojored.com
t/506.8392.2040


[flexcoders] Newbie, RemoteObject with ActionScript

2008-03-29 Thread bennybobw
Hi All,
I'm trying to get the following remoteObject working with
Actionscript. When I use the mxml it works great. But when I compile
with the actionscript, removing mxml I get an error Method does not
exist. This doesn't make a lot of sense to me...
I've also tried views.addEventListener(ResultEvent.RESULT, onViewsResult);

Still, no dice. I'm struggling to understand how the two are different.

Thanks for your help.

-bennybobw

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute creationComplete=init()
  mx:Script
   ![CDATA[
import mx.controls.*;
import mx.rpc.events.*;
import mx.utils.ArrayUtil;
import mx.rpc.events.FaultEvent;

import mx.rpc.events.InvokeEvent;

import mx.rpc.events.ResultEvent;
import mx.rpc.remoting.RemoteObject;
import mx.rpc.remoting.Operation;


[Bindable]
public var nodes:Array;

public var views:RemoteObject;

public function init():void {
  views = new RemoteObject();
  views.destination = amfphp;
  views.addEventListener(ResultEvent.RESULT, onViewsResult);
  views.addEventListener(FaultEvent.FAULT, onFault);
  getNodes();
}

public function onFault(event:FaultEvent):void {
  Alert.show(event.fault.faultString, Error);
}

public function onViewsResult(event:ResultEvent):void
{
  nodes = ArrayUtil.toArray(event.result);
}

public function getNodes():void {
  views.getView(test, ['nid','title','body','changed']);
}

   

   ]]
  /mx:Script

  !--mx:RemoteObject showBusyCursor=true destination=amfphp
source=views id=views
mx:method name=getView result=onViewsResult(event)
fault=onFault(event) /
  /mx:RemoteObject--

  mx:Panel width=500 height=500 layout=absolute title=Nodes
horizontalCenter=0 verticalCenter=0
mx:DataGrid x=10 y=10 width=460 id=nodes_select
dataProvider={nodes} 
  mx:columns
mx:DataGridColumn headerText=NID dataField=nid width=40/
mx:DataGridColumn headerText=Title dataField=title/
  /mx:columns
/mx:DataGrid

mx:Label x=10 y=200 text=Title/

mx:TextInput x=10 y=226 width=460 id=title
text={nodes_select.selectedItem.title}/

mx:Label x=10 y=256 text=Body/

mx:TextArea x=10 y=282 width=460 height=75 id=body
text={nodes_select.selectedItem.body}/


  /mx:Panel
/mx:Application



[flexcoders] Re: Compiling CSS to SWF on server

2008-03-29 Thread andrii_olefirenko
i think you would need access to compiler java api to do that. start
with creating VirtualLocalFile, generate a dummy class file with all
those [Embedded] for uploaded fonts, and compile it using Flex
Compiler API. You don't need command line tools for this.

Andrii Olefirenko

--- In flexcoders@yahoogroups.com, Sergey Kovalyov
[EMAIL PROTECTED] wrote:

 Hi All!
 
 Does somebody have experience compiling CSS to SWF on server using Flex
 command line compiler?
 
 I want to allow users use their own fonts in application. To do that
first
 they have to upload TTF true type font to server, then create CSS that
 references uploaded font file on the flight and at last compile it
to SWF.
 Thus it would be possible to load the resulting SWF via StyleManager.
 
 What do you think about this strategy?
 
 Sergey.





[flexcoders] Re: Newbie, RemoteObject with ActionScript

2008-03-29 Thread twcrone70
Well at first glance it appears that you are passing parameters in the
actionscript and not in the MXML so they are each looking for a
different method on the server.  When I get no such method error it
is usually because I have specified the wrong parameters or in the
wrong order.  What is the server code signature?

- Todd

--- In flexcoders@yahoogroups.com, bennybobw [EMAIL PROTECTED] wrote:

 Hi All,
 I'm trying to get the following remoteObject working with
 Actionscript. When I use the mxml it works great. But when I compile
 with the actionscript, removing mxml I get an error Method does not
 exist. This doesn't make a lot of sense to me...
 I've also tried views.addEventListener(ResultEvent.RESULT,
onViewsResult);
 
 Still, no dice. I'm struggling to understand how the two are different.
 
 Thanks for your help.
 
 -bennybobw
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=absolute creationComplete=init()
   mx:Script
![CDATA[
 import mx.controls.*;
 import mx.rpc.events.*;
 import mx.utils.ArrayUtil;
 import mx.rpc.events.FaultEvent;
 
 import mx.rpc.events.InvokeEvent;
 
 import mx.rpc.events.ResultEvent;
 import mx.rpc.remoting.RemoteObject;
 import mx.rpc.remoting.Operation;
 
 
 [Bindable]
 public var nodes:Array;
 
 public var views:RemoteObject;
 
 public function init():void {
   views = new RemoteObject();
   views.destination = amfphp;
   views.addEventListener(ResultEvent.RESULT, onViewsResult);
   views.addEventListener(FaultEvent.FAULT, onFault);
   getNodes();
 }
 
 public function onFault(event:FaultEvent):void {
   Alert.show(event.fault.faultString, Error);
 }
 
 public function onViewsResult(event:ResultEvent):void
 {
   nodes = ArrayUtil.toArray(event.result);
 }
 
 public function getNodes():void {
   views.getView(test, ['nid','title','body','changed']);
 }
 

 
]]
   /mx:Script
 
   !--mx:RemoteObject showBusyCursor=true destination=amfphp
 source=views id=views
 mx:method name=getView result=onViewsResult(event)
 fault=onFault(event) /
   /mx:RemoteObject--
 
   mx:Panel width=500 height=500 layout=absolute title=Nodes
 horizontalCenter=0 verticalCenter=0
 mx:DataGrid x=10 y=10 width=460 id=nodes_select
 dataProvider={nodes} 
   mx:columns
 mx:DataGridColumn headerText=NID dataField=nid width=40/
 mx:DataGridColumn headerText=Title dataField=title/
   /mx:columns
 /mx:DataGrid
 
 mx:Label x=10 y=200 text=Title/
 
 mx:TextInput x=10 y=226 width=460 id=title
 text={nodes_select.selectedItem.title}/
 
 mx:Label x=10 y=256 text=Body/
 
 mx:TextArea x=10 y=282 width=460 height=75 id=body
 text={nodes_select.selectedItem.body}/
 
 
   /mx:Panel
 /mx:Application





RE: [flexcoders] Re: memory leak in converting string to xml

2008-03-29 Thread Alex Harui
Your best option is not to bring in 20MB of XML at a time.

 

Also, due to the way the player managers memory, doing a A,B,C test
isn't going to tell you much.  You really need to write a loop that
loads new XML every 30 seconds and let it run overnight and see if
memory tops out.  If the strings are relatively similar, the memory
should stop growing in any significant way.  We did make many changes to
reduce the memory load in Flex 3 for XML, but you'll still see some
growth.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ilam Mougy
Sent: Saturday, March 29, 2008 6:26 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: memory leak in converting string to xml

 

Well, it looks like this is a known deferred issue.
Looks like the player (not the Flex sdk) is the one that leaks when
you convert string to xml
(https://bugs.adobe.com/jira/browse/SDK-11982
https://bugs.adobe.com/jira/browse/SDK-11982 ), but this means, if you
have a RIA that asks for repeated xml files, it will be crash!

I wish I know any way to convert to xml and avoiding the string route.
Anyone?

Thanks,

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Ilam Mougy [EMAIL PROTECTED] wrote:

 I am almost giving up on this issue, I don't know any work around.
 Here is example, in AS:-
 
 var strToBeXML:String = 'root.../root';// this is huge string,
 20Meg xml for example.
 myTrace('* memory before xml conversion (A): ' +
System.totalMemory);
 var xmlObj:XML = new XML(strToBeXML);
 myTrace('* memory after xml conversion (B): ' +
System.totalMemory);
 // now, there is no way to get rid of this increase in memory!
 xmlObj = null;
 myTrace('* memory after xml deletion (C): ' + System.totalMemory);
 
 protected function myTrace(str:String):void{
 forceGC();
 trace(str);
 }
 public function forceGC():void{
 try {
 new LocalConnection().connect('foo');
 new LocalConnection().connect('foo');
 } catch (e:*) {}
 }
 
 (C) is always similar to (B).
 Any hits? I need to get rid of this xml object memory allocation and
 I can't. I think I read all the articles about memory leaks. I
 haven't used Flex 3 yet, but I am sure if I try and it says there is a
 leak, so what, what should I do?
 
 Thanks for your help.


 



RE: [flexcoders] Change the row height of DataGrid, which contain more than one text compoent?

2008-03-29 Thread Alex Harui
You must override the measure() method in your renderer and use the
explicitWidth at the time of measurement to determine the width of the
Text controls and then get their measuredHeights and calculate the
measuredHeight for the renderer.

 

Wordwrapped text can be any size.  You have to fix one dimension in
order to get the other.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of bigbb_kimo
Sent: Friday, March 28, 2008 11:24 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Change the row height of DataGrid, which contain
more than one text compoent?

 

Dear all,

I had a datagrid with an item render which contain two Text component
and one TextArea. The contents of all the three components are set by
htmlText attribute.

However, I found that the height of the row can not measure correctly.
I have tried to set the wordWrap=true and variableRowHeight=true of
the DataGrid. Please refer to the following code snippet.

// start 
mx:DataGrid height=100% variableRowHeight=true width=100%
dataProvider={Search.lastResult} 
mx:columns 
mx:DataGridColumn headerText=Test width=8 sortable=false
mx:itemRenderer
mx:Component
mx:Box height=0 width=100% backgroundAlpha=0
mx:Label text={data.Date} fontSize=10/
mx:Text fontSize=14 width=100% textAlign=center
htmlText={data.Title} fontWeight=bold/
controls:AbstractTextArea fontSize=14
condenseWhite=true wordWrap=true backgroundAlpha=0 width=100%
height=100% textAlign=left htmlText={data.Abstract}
editable=false/
/mx:Box /mx:Component
/mx:itemRenderer 
/mx:DataGridColumn

// end

I also try to subclass the TextArea to try to dynamic change the
height of the surronding Box. However, that is too heuristic to
practice.

Do you have any good ideas? 

Thanks a lot.

 



RE: [flexcoders] Image centering

2008-03-29 Thread Alex Harui
Use the mx:Image tag

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Michael Wagner
Sent: Saturday, March 29, 2008 4:34 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Image centering

 

Hello:

 

I am new with Flex.

 

I need to position an image ( can be a jpg, bmp, etc ) in a bitmaparea
bigger then the image size

I have tried codes like this but it is positioned in (0,0) 

 

How is the task accomplished ?

 

 

area:BitmapData = new BitmapData(200,200); 

var myBitmap:Bitmap = new Bitmap(bitmappicturefrom);

myBitmap.x = 100;

myBitmap.y = 100;

area.draw(myBitmap);

Thanks,

Michael.

 



[flexcoders] Coldfusion changes not applied when using LCDS

2008-03-29 Thread Alexander Tsoukias
Situation:

Flex app connects using Data Services (RTMP) and uses
coldfusion as the backend (CFC). Everything works fine.

I then edit the coldfusion DAOs CFC code and on purpose cause
it to throw an error.

The app continues to work as if it doesn't even use the CFC files again.

Only when i reboot the CF server the changes apply.

thanks,
Alexander