RE: [SPAM] [flexcoders] XMLList question

2009-12-10 Thread Tracy Spratt
I don't believe you can sort an xmllist directly.  I use a function that
takes the children of a node (XMLList), wraps it in an XMLListCollection,
sorts it, then uses setChildren() to re-assign the sorted children to the
parent.  I think I have posted that here actually.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of invertedspear
Sent: Tuesday, December 08, 2009 5:46 PM
To: flexcoders@yahoogroups.com
Subject: [SPAM] [flexcoders] XMLList question

 

  

Is it possible to sort an XMLList? All the examples I can find on it create
a new XMLListCollection like this:

MyXMLListCol = new XMLListCollection(MyXMLList);

I don't think the XMLListCollection in this case has any reference to the
XMLList so sorting it would leave my XMLList unsorted, is this correct?

How can I sort the XMLList directly?

Thanks ~Mike





RE: [SPAM] [flexcoders] Access properties of SWFLoader inside repeater

2009-12-10 Thread Tracy Spratt
Always with any non-trivial repeated content, I advise creating a custom
component.  This way you can code the component normally, and expose any
properties you need, and you can debug it to find out what is wrong when it
does not work.

 

Expose the width value you want by calculating it at the appropriate time
within the component.  Note that when using SFLoader, the "complete" event
does not mean that the content is also complete.  You need to listen to the
content's ApplicationComplete event if I remember correctly.  I did a write
up on that on CFLEX.net some time ago.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of David Pariente
Sent: Thursday, December 10, 2009 9:33 PM
To: flexcoders@yahoogroups.com
Subject: [SPAM] [flexcoders] Access properties of SWFLoader inside repeater

 

  

Hello,

I had to ask this long ago, but tried to not disturb and try myself, but 
couldn't.

The case is that i have a repeater (rp_photos) with a SWFLoader inside.
In another part of the app i have a timer with this inside:

Application.application.graywidth=(rp_photos.getRepeaterItem(0) as 
Bitmap).width;

i also tried with:

Application.application.graywidth=(rp_photos.getRepeaterItem(0) as 
SWFLoader).contentWidth;

but doesn't look like i get the current size of that image. Also, i 
wanna get the current width of it, not it's original size.

from inside the SWFLoader, if i put this in an event it works:

event.currentTarget.contentWidth;

but what i need now is to get that width from outside the SWFLoader.

I will thank your help a lot, since i lost too much time on this and 
became pretty urgent :( Thank you





[flexcoders] Data Management Service, Pagination of DataGrid

2009-12-10 Thread yldleung
Hi Flexperts,

Does anyone knew whether Pagination of data supported by Data Management 
Service must be using the rtmp channel or not? If so, does that mean we must 
have two differents ports, if the application want to rely on both amf and 
rtmp? Any related doc link about that?

Thanks!

Regards,
Dan



[flexcoders] SWFLoader too aliased on resize

2009-12-10 Thread David Pariente
Hi all,

I've been using SWFLoader for load images in my app with mxml. Those 
images are allways resized to a smaller size.
The problem, as everyone might have found before is that the image gets 
way too pixelated.

On my last projects that was not a big deal, but in this one quality of 
images is very important, so my client is pressing me to repair the 
pictures.

I've been checking on internet and found it's a common problem, but 
found way too complicated ways to solve it, and none was actually good 
enough (no, making the image blur solve no problem, just adds a new one).

I used to hear about turning the SWFLoader into Bitmap, but i have no 
idea how to do so. Also wouldn't want to change my picture code too much 
since i have to repair those images in  no time :(

Anyone out there can help me with it? Thank you very much in advance! :)


[flexcoders] Access properties of SWFLoader inside repeater

2009-12-10 Thread David Pariente
Hello,

I had to ask this long ago, but tried to not disturb and try myself, but 
couldn't.

The case is that i have a repeater (rp_photos) with a SWFLoader inside.
In another part of the app i have a timer with this inside:

Application.application.graywidth=(rp_photos.getRepeaterItem(0) as 
Bitmap).width;

i also tried with:


Application.application.graywidth=(rp_photos.getRepeaterItem(0) as 
SWFLoader).contentWidth;

but doesn't look like i get the current size of that image. Also, i 
wanna get the current width of it, not it's original size.

from inside the SWFLoader, if i put this in an event it works:

event.currentTarget.contentWidth;

but what i need now is to get that width from outside the SWFLoader.

I will thank your help a lot, since i lost too much time on this and 
became pretty urgent :( Thank you


[flexcoders] Accessing the URLRequest object from the URLLoader?

2009-12-10 Thread Nick Middleweek
Hi,

When we use URLLoader we pass it the URLRequest object either in the
constructor or via the load method...

When the URLLoader is complete, the 'complete' function is invoked where we
can get access to the URLLoader object that has completed but I also want to
access the URL that was Requested... I would've thought there would be a
.request propery on the URLLoader but there isn't...

Has anyone got any ideas on how I can achieve this?

I was thinking about extending URLLoader and creating my own property and
then overriding the load function.

What are peoples thoughts?


Thanks,
Nick


[flexcoders] Re: How can I keep myself motivated to program in Flex? Please help. Thanks?

2009-12-10 Thread danielpride

Exercise more. Find an app thats about something you like and build it on your 
own. It keeps the interest up and its fun.
I am 57 in my third year of Flex and going strong.
I figure Flex will be the last set of tech I have to learn. Its going to 
dominate for quite a while I figure. The one thing I hate about programming is 
having to learn a whole new set of languages every decade or so.
Its like a Dr has to go to Med School every ten years. Heck they can't even 
bother to keep up, most of em anyway.

Lazy? Hey if you are into programming you ARE one of the hardest working 
suckers on the planet, cept maybe for cab drivers
:)
Dan Pride

P.S. Get some DHEA and start running ! Worked for me!

--- In flexcoders@yahoogroups.com, "fred44455"  wrote:
>
> I am learning Actionscript 3 , I like it and I enjoy doing it. But then I 
> can't seems to be consistent
> I lose interest for like 3 days then I am back again with AS3 except that I 
> have to relearn everything I forgot during those 3 days. Am I being lazy? How 
> can I keep myself motivated? I am 48 that's my last chance to become a Flex 
> Developer. I have been that way for some time. What should I do? How do you 
> guys stay focus? Thanks
> 
> I was told by a professional Flex programmer that programming is hard and 
> that most people have to force themselves to do it. Only a few % are nerds 
> and are enjoying programming but the rest of the programmers are doing it as 
> a job , a lot are mediocre which is the case in a lot of other jobs(fields) 
> and that 90% of programmers are pushing themselves if not will give up. Do 
> you guys agree? Do I need to push myself and finally get a living like 
> everybody else, Stop being a lazy loser?
>




[flexcoders] Re: Resources and compiling library in command line/ant (compc)

2009-12-10 Thread brian_m_riley
The docs aren't very clear, but the arguments in the command line are actually:

 wrote:
>
> Hi.
> 
> I'm compiling flex2 library in command line/ant script. The problems I faced
> related with including resources into library.
> When I use -include-file directive like the following
> [excerpt from library-config.xml]
> ...
> 
> some_styles.css
> src/resources/css/some_styles.css
> 
> 
> some_icon.png
> src/resources/icons/some_icon.png
> 
> ...
> 
> all the resources listed this way are put in the root of resulted swc. Flex
> Builder however compiles libraries with preserved resources folder hierarchy
> (e.g. library.swc>resources/icons or library.swc>resources/css). Can I
> achieve the same result via compc and how?
> 
> Thanks in advance,
> R.
>




Re: [flexcoders] CSS Div not working

2009-12-10 Thread Dan Pride
Nope. Still hangs on the left at
http://www.archaeolibrary.com/Gezer/Center/Center.html
If you view source you will see the Doc Type.

Thanks for the suggestion tho

Dan

--- On Wed, 12/9/09, Wesley Acheson  wrote:

From: Wesley Acheson 
Subject: Re: [flexcoders] CSS Div not working
To: flexcoders@yahoogroups.com
Date: Wednesday, December 9, 2009, 4:46 PM







 



  



  
  
  Try putting in a valid doctype into the document. This forces IE into 
standards mode which should make a difference to margin:auto

On Mon, Dec 7, 2009 at 10:02 PM, Dan Pride  wrote:

I am trying to enclose pages in a div that is centered on the page.

It works great on the Mac but Css code that works in every other instance does 
not seem to work on Windows for any ie versions. Windows Firefox etc fine, any 
ie and the page is stuck to the left.

This is not the usual ie crap, code that normally works there doesn't work on 
my flex html wrapper pages. Whats up?

(page http://www.archaeol ibrary.com/ Gezer/Center/ Center.html)

Thanks for the Great help thats always up on this board !

Dan Pride











 - - --



--

Flexcoders Mailing List

FAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder sFAQ.txt

Alternative FAQ location: https://share. acrobat.com/ adc/document. do?docid= 
942dbdc8- e469-446f- b4cf-1e62079f684 7


Search Archives: http://www.mail- archive.com/ flexcoders% 40yahoogroups. 
comYahoo! Groups Links



    http://groups. yahoo.com/ group/flexcoders /



    Individual Email | Traditional



    http://groups. yahoo.com/ group/flexcoders /join

    (Yahoo! ID required)



    flexcoders-digest@ yahoogroups. com

    flexcoders-fullfeat u...@yahoogroups .com



    flexcoders-unsubscr i...@yahoogroups. com



    http://docs. yahoo.com/ info/terms/








 





 



  






  

Re: [flexcoders] How can I keep myself motivated to program in Flex? Please help. Thanks?

2009-12-10 Thread Baz
Maybe you should see a doctor, it's not normal to black-out every 3 days.


[flexcoders] How to Chart This Data

2009-12-10 Thread mooresm1954
I want a line chart with a line for each row returned from a ColdFusion query. 
The data looks something like this, but the number of rows returned is user 
selectable:

Fields: Description|2007|2008|2009| 
Row1: Personnel Services||1155|1298| 
Row2: Purchased Services|1523|1423|1523| 

In this instance the Description field is the legend, the 2007, 2008, 2009 are 
the horizontal/category axis points and the numbers are the amounts to plot on 
the vertical axis. I'm just not seeing how to create a line chart with the data 
in this format. Any ideas how to do so in Flex or how to reformat that data to 
do so? Thanks. 

Steve Moore 



Re: [flexcoders] How can I keep myself motivated to program in Flex? Please help. Thanks?

2009-12-10 Thread Paul LeRoy
To expand upon Tino's and David's comments: you can also find useful tutorial 
projects at www.developer.yahoo.com and on www.youtube.com .  For youtube do a 
search on 'adobe flex' .  For a public flex project you might also try 
www.sourceforge.net .  Being part of a project is an excellent learning and 
motivational tool and I speak from experience  haven't written my first 
computer program in 1968 (yes... they had computers in 1968 ).

-PL

 



From: Tino Dai 
To: flexcoders@yahoogroups.com
Sent: Thu, December 10, 2009 5:44:21 AM
Subject: Re: [flexcoders] How can I keep myself motivated to program in Flex?  
Please help. Thanks?

  
Actually to add on what David said, attach yourself to a public flex project 
(look for something on code.google. com). I have always found it easier to 
motivate myself in an environment where I'm expected to produce. -Tino


On Thu, Dec 10, 2009 at 8:17 AM, David Pariente  wrote:

>
>
>
>
>
>
>
>
>
>
>
>
>
>
>  >
>
>>
> 
>>  
> 
>I also wanted to become a flex developer, and i'm lazy and less motivated.
>What i do is have 3 or 4 personal projects appart of the jobs. That way every 
>time i work on a project i learn plenty of things that i can reuse in the 
>other projects. 
>
>
>So finally part of the time i program for fun, and everytime i program faster 
>and better.
>
>
> - -David Pariente
>RIA consultor - -
>
>El 10/12/2009, a las 06:16, "fred44455"  escribió:
>
>
>>>
>>
>>
>>
>>  >>
>>
>> 
  
>> 
>>I am learning Actionscript 3 , I like it and I enjoy doing it. But then I 
>>can't seems to be consistent
I lose interest for like 3 days then I am back again with AS3 except that I 
have to relearn everything I forgot during those 3 days. Am I being lazy? 
How can I keep myself motivated? I am 48 that's my last chance to become a 
Flex Developer. I have been that way for some time. What should I do? How 
do you guys stay focus? Thanks
>>
I was told by a professional Flex programmer that programming is hard and 
that most people have to force themselves to do it. Only a few % are nerds 
and are enjoying programming but the rest of the programmers are doing it 
as a job , a lot are mediocre which is the case in a lot of other 
jobs(fields) and that 90% of programmers are pushing themselves if not will 
give up. Do you guys agree? Do I need to push myself and finally get a 
living like everybody else, Stop being a lazy loser?
>>
>>
>

 

Re: [flexcoders] Blazeds on Godaddy

2009-12-10 Thread kannan Mugundan
Hi,

 1)Get technical support from the service provider.
2) If server log is not helpful, then enable your application log, you can
even enable blazeds logs, check if the request hits the server and routed to
the message broker.

All the best
Kannan

On Wed, Dec 9, 2009 at 9:51 PM, Flex Killer  wrote:

>
>
> Thanks Kannan for your response . I am able run simple web application  . I
> have few servlets and JSP running and they are working fine.Only problem
> with Blazeds configuration .
>
> Unofrtunately server log is not giving much infromation other than 
> http://mywebsite/
> messagebroker/ amf  page not found
> error.
> I did copy the flex folder directly under WEB-INF directory .
> Regards
> Kiran
>
> --
> *From:* kannan Mugundan 
> *To:* flexcoders@yahoogroups.com
> *Sent:* Wed, December 9, 2009 10:54:12 AM
> *Subject:* Re: [flexcoders] Blazeds on Godaddy
>
>
>
> Hi,
>
>   I can't answer your question directly, but I have a question. Are you
> able to run a simple web application.
> And also do you have access to server log. May be you can find some error
> there.
>
>
> With Regards
> Kannan
>
> On Wed, Dec 9, 2009 at 5:12 PM, Flex Killer  yahoo.com
> > wrote:
>
>>
>>
>> Dear All,
>>
>>
>> ( Not sure I am supposed to ask this question here or not , but in the end
>> left with no option)
>>
>>
>> I am struggling to set up blazeds on my godaddy account . It totally
>> stopped all my work. Could somebody kindly look into this issue?
>>
>>
>> I am using blazeds in my local environment and It is working fine (
>> Tomcast as a server) . Context root is set to null.
>>
>>
>> The same configuration I copied to godaddy server and could not able to
>> get it running.
>>
>>
>> My directory structure in Godaddy account
>>
>> /WEB-INF/flex
>>
>> And if I try to hit the URL
>>
>> http://mywebsite/ messagebroker/ amf '
>> , I am getting page not found error .
>>
>>  ( I am using godaddys shared linux java supported hosting environment,
>> After I set up the server was restarted around 5 times)
>>
>>  Could somebody please look into this and help me?
>>
>>
>> Regards
>>
>> Kiran
>>
>>
>
>  
>


Re: [flexcoders] libs in a lib

2009-12-10 Thread Richard Rodseth
Well, I'm developing a library which depends on other third-party libraries.
Of course, I just have a "thirdparty" directory in the source tree, and add
those swcs to the library path, but the libs directory in an application
project is certainly convenient.

In applications that use my library, I also just reference my library
project directly from application projects that use it. It was the external
library case I was referring to.

On Wed, Dec 9, 2009 at 7:11 PM, Romeo Obane  wrote:

>
>
> Guess because you're already in a Flex Library Project :)
>
> Honestly in my practice, I just delete the "libs" folder and directly
> referring to my Library Project.
>
>
> On Thu, Dec 10, 2009 at 7:50 AM, Richard Rodseth wrote:
>
>>
>>
>> Any particular reason that a Flex library project can't have a "libs"
>> folder the way an application project can?
>>
>
>  
>


[flexcoders] Re: Question about getting the type of item / component with drag and drop

2009-12-10 Thread turbo_vb
See #1 in Gordon's response.

-TH

--- In flexcoders@yahoogroups.com, "timgerr"  wrote:
>
> What is the best way to check if it is a panel?
> 
> timgerr
> 
> --- In flexcoders@yahoogroups.com, Gordon Smith  wrote:
> >
> > 1. if (dragEvent.currentTarget is Panel)
> > 
> > 2. currentTarget is generically typed as Object, which doesn't have an 
> > addChild() method. But if you have already checked that the dropTarget is a 
> > Panel, it's safe to do a cast:
> > 
> > Panel(dragEvent.currentTarget).addChild(...);
> > 
> > Gordon Smith
> > Adobe Flex SDK Team
> > 
> > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> > Behalf Of timgerr
> > Sent: Wednesday, December 09, 2009 12:01 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Question about getting the type of item / component 
> > with drag and drop
> > 
> > 
> > 
> > Hello all,
> > I have been tasked with creating a menu that gets build with drag and drop 
> > components. I have followed this tutorial 
> > (http://www.flexafterdark.com/tutorials/Flex-Drag-and-Drop) and have 
> > learned a lot.
> > 
> > I have a few questions to get to the next stage so I will ask a few 
> > questions.
> > 
> > 1. When I drop (or drag over) an item like a panel, how can I tell what 
> > that UIComponent is, how can I tell that is a panel?
> > 
> > 2. How can I get that panel as an object so I can do something like 
> > panelid.addChild(new dropped item)?
> > 
> > Thanks for the read,
> > timgerr
> > 
> > Here is the code that I have from the tutorial.
> > 
> > 
> > http://www.adobe.com/2006/mxml"; layout="absolute"
> > name="Drag and Drop tutorial" creationComplete="Init()">
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
>




[flexcoders] Debug Flash Player 10.0.42.34 ?

2009-12-10 Thread Rick Winscot
Any ETA or information from Adobe-ites when we might expect to see debug
packages?

Cheers,

Rick Winscot
www.quilix.com


[flexcoders] Re: Tree : disable "select as you type"

2009-12-10 Thread aceoohay
The code I posted previously works fine as long as there is nothing starting 
with a 'C' in the tree. If there is it selects that item before executing the 
code in the keydown handler.

How can I stop this?

Paul

--- In flexcoders@yahoogroups.com, "aceoohay"  wrote:
>
> I have read through this, and it appears that some success was gained by 
> overriding the keydown handler.
> 
> Can this be done via the keyDown="myFunction(event)" in the mxml or do I need 
> to create a custom component? Of course myFunction is in the as3 code.
> 
> I would prefer using the keyDown handler, if someone could point the way.
> 
> What I tried was;
> 
> private function treeTableKeyDown(event:KeyboardEvent):void
> {
>   var keycode_c:uint = 67;
>   if (event.ctrlKey && event.keyCode == keycode_c)
>   {
> event.preventDefault();
> event.stopImmediatePropagation();
>   var strSeparator:String = "";
>   var dataString:String = "";
>   var selectItems:String = "";
>   var objItem:Object = null;
>   for (var i:int = 0; i < treeTable.selectedItems.length; i++)
>   {
>   objItem = treeTable.selectedItems[i];
>   if (objit...@type == "Field")
>   {
>   selectItems += strSeparator + objit...@label;
>   strSeparator = ",";
>   }
>   }
> System.setClipboard(selectItems);
>   }
> }
> 
> It of course finds the first item that begins with "C."
> 
> --- In flexcoders@yahoogroups.com, "chicanery99"  wrote:
> >
> > never mind.. i just had to stop the immediate propagation of the event
> > after I finished handling it..
> > 
> > --- In flexcoders@yahoogroups.com, "chicanery99"  wrote:
> > >
> > > overriding keyDownHandler worked.. but looks like it worked only for
> > > the first time.. following is what I mean..
> > > 
> > > hit ctrl-c.. i was able to capture the selected data on tree
> > > hit ctrl-v.. doesnt hit the breakpoint(in the first line) of
> > > keyDownHandler.. in fact none of the keydowns seem to be handled..
> > > 
> > > is something that would have run in case of default keyDown handling
> > > preventing the future keydowns from being captured?
> > > 
> > > --- In flexcoders@yahoogroups.com, "Alex Harui"  wrote:
> > > >
> > > > Call stopImmediatePropagation, or override keyDownHandler and
> > don't call
> > > > super, or override findString
> > > > 
> > > >  
> > > > 
> > > > 
> > > > 
> > > > From: flexcoders@yahoogroups.com
> > [mailto:flexcod...@yahoogroups.com] On
> > > > Behalf Of benoit.kogut
> > > > Sent: Thursday, November 22, 2007 8:36 AM
> > > > To: flexcoders@yahoogroups.com
> > > > Subject: [flexcoders] Tree : disable "select as you type"
> > > > 
> > > >  
> > > > 
> > > > Hello,
> > > > Is there a way to disable the select as you type feature of the Tree
> > > > component ?
> > > > 
> > > > I'm trying to add keyboard shortcuts (Cut / Copy / Paste) on a tree,
> > > > using the keyDown event. As soon as I hit the 'c' key (for instance)
> > > > the first node whose label begins with a 'c' gets selected : the
> > > > selection jumps from one node to another, which is weird.
> > > >
> > >
> >
>




Re: [flexcoders] Exporting Flex animation to animated GIF?

2009-12-10 Thread Peter Davis
Thanks, Chet.  Currently I have a delay loop within a timer event handler,
so I should be able to just export a GIF at each step of the cycle.  I think
Photoshop or something will let me turn these into an animated GIF.

Thanks,
-pd


On Mon, Dec 7, 2009 at 11:21 AM, Chet Haase  wrote:

>
>
>
>
> A partial solution would be to handle update events  from the main effect
> running the animation and capture a screenshot of the application
> (ImageCapture or the BitmapUtil class in Flex 4) for each update, then save
> those bitmaps as images (not sure how to turn those separate images into one
> animated gif, but I’m sure that’s a well-trodden problem).
>
>
>
> Note that capturing the screenshots may be time-consuming, depending on how
> complex the UI is, so you may want to run a longer animation just for this
> capture process.
>
>
>
> Chet.
>
>
>
>
>
> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> Behalf Of *Peter Davis
> *Sent:* Monday, December 07, 2009 7:31 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] Exporting Flex animation to animated GIF?
>
>
>
>
>
> I have a simple Flex animation (
> http://www.peterdavis.info/LogoAnimation.html) that I'd like to turn into
> an animated GIF, for two reasons:
>
> 1) To make the background transparent, and
> 2) To run in browsers that have a Flash blocker enabled.
>
> Can anyone suggest a simple way to do this?
>
> Thanks!
>
> -pd
>
>
>
> 
>


Re: [Spam] [flexcoders] Re: new StringValidator() .source problem?

2009-12-10 Thread Nick Middleweek
Hello Tibor,

Thanks for replying. this_initializeHandler is the handler for the
initialize event. A colleague told me to try creationComplete for the
component and it now works... :)

I'm thought that on the initiialize phase of the parent component, the
children objects/components were initialized but not measured/ positioned.

But I guess I'm wrong... :)


Cheers!

Nick



2009/12/9 Tibor 

>
>
> purchOrg us most likely null when you are assigning it as the source of the
> validator.
>
> Could you post the rest of the coded where purchOrg is defined?
>
> also this_initializeHandler is the handler for which event?
>
> Tibor.
> www.tiborballai.com
>
>


[flexcoders] padding P element with CSS in htmlText of TextArea

2009-12-10 Thread Tim Romano
While I've been able to apply some CSS styles (e.g. fontFamily, 
fontSize, fontWeight, fontStyle, letterSpacing) to the content of  
elements and to indidivual class selectors in the htmlText of a TextArea 
in an AIR application (FB4 beta2),  attempts to 
set other styles, such as padding and margin, have not worked.  Are padding and 
margin 
not implemented? If not, will they be? 

CSS + HTML are a powerful duo. I hope Adobe has plans to exploit this 
capability fully for the TextArea in AIR applications. For many 
text-presentation purposes CSS support would be entirely adequate, and 
typographic control would offer far more precision and granularity than is 
actually needed while introducing unnecessary complexity. Not that typography 
isn't a very slick feature, but please don't let CSS+HTML fall by the wayside.

Regards
Tim


[flexcoders] Re: BrowserManager crossdomain issues

2009-12-10 Thread thequakeguy
this is a Javascript security issue with the BrowserManager.  I don't know if 
there is a fix for it.  I am hosting all files on my amazon server except the 
html so all js and swf files are in cloudfront.  I'll post something if I 
figure it out but I have a feeling it's going to be a work-around. 

/Bron

--- In flexcoders@yahoogroups.com, Alberto Brealey-Guzmán 
 wrote:
>
> Hello David,
> 
> did you manage to solve this problem? I am trying to fix the exact same thing.
> 
> cheers,
> 
> Alberto
> 
> On Tue, Sep 1, 2009 at 5:17 AM, Alex Harui  wrote:
> >
> >
> >
> > Smells like a JS/Flash security issue and maybe a JS side call will fix 
> > it.  I’m not an expert in this area though.
> >
> >
> >
> > Alex Harui
> >
> > Flex SDK Developer
> >
> > Adobe Systems Inc.
> >
> > Blog: http://blogs.adobe.com/aharui
> >
> >
> >
> > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> > Behalf Of david.keutgens
> > Sent: Monday, August 31, 2009 7:14 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Re: BrowserManager crossdomain issues
> >
> >
> >
> >
> >
> > Both domains are https. Yeah, I'll use the debugger but I get the 
> > impression that this is a Flash Player security restriction.
> >
> > -David
> >
> > --- In flexcoders@yahoogroups.com, Alex Harui  wrote:
> > >
> > > Is one domain https and the other http? Are you calling setTitle in your 
> > > code? Maybe debug through that to see what is going on.
> > >
> > > Alex Harui
> > > Flex SDK Developer
> > > Adobe Systems Inc.
> > > Blog: http://blogs.adobe.com/aharui
> > >
> > > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> > > Behalf Of david.keutgens
> > > Sent: Monday, August 31, 2009 4:09 PM
> > > To: flexcoders@yahoogroups.com
> > > Subject: [flexcoders] Re: BrowserManager crossdomain issues
> > >
> > >
> > >
> > > Hi Alex,
> > >
> > > This is a SWF compiled with Flex SDK 3.3 running in Firefox 3.5. The 
> > > BrowserManager code works fine when the HTML/JavaScript and SWF are 
> > > hosted in the same domain, only separating them breaks it.
> > >
> > > Thanks,
> > > David
> > >
> > > --- In flexcoders@yahoogroups.com, 
> > > Alex Harui  wrote:
> > > >
> > > > Which browser? Might be an issue with HistoryFrame.html on IE?
> > > >
> > > > Alex Harui
> > > > Flex SDK Developer
> > > > Adobe Systems Inc.
> > > > Blog: http://blogs.adobe.com/aharui
> > > >
> > > > From: flexcoders@yahoogroups.com 
> > > > [mailto:flexcoders@yahoogroups.com]
> > > >  On Behalf Of david.keutgens
> > > > Sent: Monday, August 31, 2009 5:05 AM
> > > > To: flexcoders@yahoogroups.com
> > > > Subject: [flexcoders] BrowserManager crossdomain issues
> > > >
> > > >
> > > >
> > > > Hi All,
> > > >
> > > > I'm trying to host the html-template files provided by Flex Builder 
> > > > (including all necessary JavaScript) on one domain ("www.mydomain.com") 
> > > > and the embedded SWF on another ("swf.mydomain.com").
> > > >
> > > > Now, even though I call Security.allowDomain("*.mydomain.com") in my 
> > > > Flex app and allowScriptAccess="always" in the embedding html, 
> > > > FlashPlayer complains about a SecurityViolation in flashlog.txt. It 
> > > > actually happens as soon as I hit the browser's back button.
> > > >
> > > > Firebug reports: "uncaught exception: Error calling method on NPObject! 
> > > > [plugin
> > > > exception: Error in Actionscript. Use a try/catch block to find
> > > > error.]."
> > > > The exception gets thrown in the setTitle function in history.js.
> > > >
> > > > Crossdomain files don't seem to be the issue, they're set up and 
> > > > working fine for other content.
> > > >
> > > > I cannot really find any reference of others who tried this before, 
> > > > does anyone know if it is actually possible at all to host the history 
> > > > related JavaScript in a different domain than the SWF?
> > > >
> > >
> >
> > 
> 
> 
> --
> Alberto Brealey-Guzmán
> +44 07590 734124
>




Re: [flexcoders] BrowserManager crossdomain issues

2009-12-10 Thread stinkbutt

this is a Javascript security issue with the BrowserManager.  I don't know if
there is a fix for it.  I am hosting all files on my amazon server except
the html so all js and swf files are in cloudfront.  I'll post something if
I figure it out but I have a feeling it's going to be a work-around.




Alberto Brealey-Guzmán wrote:
> 
> Hello David,
> 
> did you manage to solve this problem? I am trying to fix the exact same
> thing.
> 
> cheers,
> 
> Alberto
> 
> On Tue, Sep 1, 2009 at 5:17 AM, Alex Harui  wrote:
>>
>>
>>
>> Smells like a JS/Flash security issue and maybe a JS side call will fix
>> it.  I’m not an expert in this area though.
>>
>>
>>
>> Alex Harui
>>
>> Flex SDK Developer
>>
>> Adobe Systems Inc.
>>
>> Blog: http://blogs.adobe.com/aharui
>>
>>
>>
>> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
>> Behalf Of david.keutgens
>> Sent: Monday, August 31, 2009 7:14 PM
>> To: flexcoders@yahoogroups.com
>> Subject: [flexcoders] Re: BrowserManager crossdomain issues
>>
>>
>>
>>
>>
>> Both domains are https. Yeah, I'll use the debugger but I get the
>> impression that this is a Flash Player security restriction.
>>
>> -David
>>
>> --- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>> >
>> > Is one domain https and the other http? Are you calling setTitle in
>> your code? Maybe debug through that to see what is going on.
>> >
>> > Alex Harui
>> > Flex SDK Developer
>> > Adobe Systems Inc.
>> > Blog: http://blogs.adobe.com/aharui
>> >
>> > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
>> Behalf Of david.keutgens
>> > Sent: Monday, August 31, 2009 4:09 PM
>> > To: flexcoders@yahoogroups.com
>> > Subject: [flexcoders] Re: BrowserManager crossdomain issues
>> >
>> >
>> >
>> > Hi Alex,
>> >
>> > This is a SWF compiled with Flex SDK 3.3 running in Firefox 3.5. The
>> BrowserManager code works fine when the HTML/JavaScript and SWF are
>> hosted in the same domain, only separating them breaks it.
>> >
>> > Thanks,
>> > David
>> >
>> > --- In flexcoders@yahoogroups.com,
>> Alex Harui  wrote:
>> > >
>> > > Which browser? Might be an issue with HistoryFrame.html on IE?
>> > >
>> > > Alex Harui
>> > > Flex SDK Developer
>> > > Adobe Systems Inc.
>> > > Blog: http://blogs.adobe.com/aharui
>> > >
>> > > From: flexcoders@yahoogroups.com
>> [mailto:flexcoders@yahoogroups.com]
>> On Behalf Of david.keutgens
>> > > Sent: Monday, August 31, 2009 5:05 AM
>> > > To: flexcoders@yahoogroups.com
>> > > Subject: [flexcoders] BrowserManager crossdomain issues
>> > >
>> > >
>> > >
>> > > Hi All,
>> > >
>> > > I'm trying to host the html-template files provided by Flex Builder
>> (including all necessary JavaScript) on one domain ("www.mydomain.com")
>> and the embedded SWF on another ("swf.mydomain.com").
>> > >
>> > > Now, even though I call Security.allowDomain("*.mydomain.com") in my
>> Flex app and allowScriptAccess="always" in the embedding html,
>> FlashPlayer complains about a SecurityViolation in flashlog.txt. It
>> actually happens as soon as I hit the browser's back button.
>> > >
>> > > Firebug reports: "uncaught exception: Error calling method on
>> NPObject! [plugin
>> > > exception: Error in Actionscript. Use a try/catch block to find
>> > > error.]."
>> > > The exception gets thrown in the setTitle function in history.js.
>> > >
>> > > Crossdomain files don't seem to be the issue, they're set up and
>> working fine for other content.
>> > >
>> > > I cannot really find any reference of others who tried this before,
>> does anyone know if it is actually possible at all to host the history
>> related JavaScript in a different domain than the SWF?
>> > >
>> >
>>
>> 
> 
> 
> --
> Alberto Brealey-Guzmán
> +44 07590 734124
> 
> 

-- 
View this message in context: 
http://old.nabble.com/BrowserManager-crossdomain-issues-tp25222436p26716511.html
Sent from the FlexCoders mailing list archive at Nabble.com.



Re: [flexcoders] How can I keep myself motivated to program in Flex? Please help. Thanks?

2009-12-10 Thread Tino Dai
Actually to add on what David said, attach yourself to a public flex project
(look for something on code.google.com). I have always found it easier to
motivate myself in an environment where I'm expected to produce. -Tino

On Thu, Dec 10, 2009 at 8:17 AM, David Pariente wrote:

>
>
> I also wanted to become a flex developer, and i'm lazy and less motivated.
> What i do is have 3 or 4 personal projects appart of the jobs. That way
> every time i work on a project i learn plenty of things that i can reuse in
> the other projects.
>
> So finally part of the time i program for fun, and everytime i program
> faster and better.
>
> --
> David Pariente
> RIA consultor
> --
>
> El 10/12/2009, a las 06:16, "fred44455"  escribió:
>
>
>
> I am learning Actionscript 3 , I like it and I enjoy doing it. But then I
> can't seems to be consistent
> I lose interest for like 3 days then I am back again with AS3 except that I
> have to relearn everything I forgot during those 3 days. Am I being lazy?
> How can I keep myself motivated? I am 48 that's my last chance to become a
> Flex Developer. I have been that way for some time. What should I do? How do
> you guys stay focus? Thanks
>
> I was told by a professional Flex programmer that programming is hard and
> that most people have to force themselves to do it. Only a few % are nerds
> and are enjoying programming but the rest of the programmers are doing it as
> a job , a lot are mediocre which is the case in a lot of other jobs(fields)
> and that 90% of programmers are pushing themselves if not will give up. Do
> you guys agree? Do I need to push myself and finally get a living like
> everybody else, Stop being a lazy loser?
>
>
>  
>


[flexcoders] Re: Modify Image in The assets

2009-12-10 Thread Tibor


Hi Christophe,

You can grab the image's bitmap data, modify it and then send it to the server 
as a ByteArray.


You'll need a method on the server which will save the ByteArray as an image, 
replacing the original one.


/**To grab the bitmap data once the image is loaded***/
var bmd:BitmapData;
bmd=new BitmapData(image.width,image.height);
bmd.draw(image);

//you can modify the pixels using BitmapData's setPixel and setPixel32 methods

/To get the ByteArray from the bitmap data***/
var byte_arr:ByteArray=bmd.getPixels();


Once you receive the ByteArray on the server side, you'll have to encode it in 
the appropriate image format and then save it as a file.

If you can tell me what you are using on the server side I can help point you 
in the right direction.

Hope this helps,

Tibor.
www.tiborballai.com


--- In flexcoders@yahoogroups.com, "Christophe"  
wrote:
>
> Hello, 
> 
> How to modify pixels on an image in the assets folder, then to save it in the 
> same folder on the server.
> 
> Thank you,
> Christophe,
>




Re: [flexcoders] How can I keep myself motivated to program in Flex? Please help. Thanks?

2009-12-10 Thread David Pariente
I also wanted to become a flex developer, and i'm lazy and less motivated.
What i do is have 3 or 4 personal projects appart of the jobs. That way every 
time i work on a project i learn plenty of things that i can reuse in the other 
projects. 

So finally part of the time i program for fun, and everytime i program faster 
and better.

--
David Pariente
RIA consultor
--

El 10/12/2009, a las 06:16, "fred44455"  escribió:

I am learning Actionscript 3 , I like it and I enjoy doing it. But then I can't 
seems to be consistent
I lose interest for like 3 days then I am back again with AS3 except that I 
have to relearn everything I forgot during those 3 days. Am I being lazy? How 
can I keep myself motivated? I am 48 that's my last chance to become a Flex 
Developer. I have been that way for some time. What should I do? How do you 
guys stay focus? Thanks

I was told by a professional Flex programmer that programming is hard and that 
most people have to force themselves to do it. Only a few % are nerds and are 
enjoying programming but the rest of the programmers are doing it as a job , a 
lot are mediocre which is the case in a lot of other jobs(fields) and that 90% 
of programmers are pushing themselves if not will give up. Do you guys agree? 
Do I need to push myself and finally get a living like everybody else, Stop 
being a lazy loser?





  

[flexcoders] Properties in an Dragged item

2009-12-10 Thread Wally Kolcz
I am attempting to create a online store using Flex. I added a TitleList 
for products the the users can drag and drop into a datagrid (shopping 
cart) to purchase. My problem is that I have no idea how to access the data 
in the DragSource to use to check to see if the item already exists (to 
update the quantity rather than add another one) or update the Singleton to 
use to check out. The titlelist item should include productName, img, price 
attributes in an ArrayCollection.

I see the dataForFormat method on the event.dragsource but what do I use 
for the String argument? For the product name would I try something like 
event.dragsource.dataForFormat("productName")? I tried something like that 
but my code errored out saying that it was a null attribute...but it could 
have been something else.

Does anyone know how to pull a property out of the dragged item? Examples 
or links? Thanks!



[flexcoders] Modify Image in The assets

2009-12-10 Thread Christophe
Hello, 

How to modify pixels on an image in the assets folder, then to save it in the 
same folder on the server.

Thank you,
Christophe, 




RE: [flexcoders] Best way to load XML file

2009-12-10 Thread Jim Hayes
You can try compressing the xml file first and decompressing it when loaded - 
I've used this to good effect and see something like a 10x reduction in the 
filesize -
This blog covers the technique 
http://www.ghostwire.com/blog/archives/as3-saving-xml-as-binary/


-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Flex Killer
Sent: 09 December 2009 11:45
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Best way to load XML file

  
Dear All,

I have a 2 MB XML file locally and if I try to import that file using



It is loading all the data at compile time  ( In fact flex builder is throwing 
memory exception)

I loaded the same file using HTTPService and It is taking significant amount of 
time to load the data in production environment . 

Could some body suggest a better way to load this? ( I don't have an option of 
loading this to database and reading it from there)

Regards
Kiran
.



__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__


[flexcoders] Re: Spark / mx:DataGrid inline item renderer

2009-12-10 Thread Markus
For everyone who's interested. Here is how it's working:


http://ns.adobe.com/mxml/2009"; 
xmlns:s="library://ns.adobe.com/flex/spark" 
xmlns:mx="library://ns.adobe.com/flex/halo" 
minWidth="1024" minHeight="768">




























--- In flexcoders@yahoogroups.com, "Markus"  wrote:
>
> Thanks Alex for that good advice. I'll have a look.
> 
> Markus
> 
> --- In flexcoders@yahoogroups.com, Alex Harui  wrote:
> >
> > New feature to make that easier due soon.  Part of it is already in the 
> > nightly builds.  Search for MXDataGridItemRenderer
> > 
> > Alex Harui
> > Flex SDK Developer
> > Adobe Systems Inc.
> > Blog: http://blogs.adobe.com/aharui
> > 
> > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> > Behalf Of Markus
> > Sent: Tuesday, December 08, 2009 5:55 AM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Spark / mx:DataGrid inline item renderer
> > 
> > 
> > 
> > Hi,
> > 
> > I have simple question about how to write an inline item renderer with the 
> > new Spark components using the mx:DataGrid. If I try the code below it 
> > gives me an error that I can't access the data property when using the 
> > Spark s:Label. But with the mx:Label it works. What am I doing wrong?
> > 
> > Are there any examples out there on how to use custom Spark item renderers 
> > with the mx:DataGrid?
> > 
> > Thanks in advance.
> > 
> > Markus
> > 
> > 
> > http://ns.adobe.com/mxml/2009";
> > xmlns:s="library://ns.adobe.com/flex/spark"
> > xmlns:mx="library://ns.adobe.com/flex/halo"
> > minWidth="1024" minHeight="768">
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
>