Re: [flexcoders] Re: Method for a Datagrid Button Itemrenderer

2010-08-26 Thread Angelo Anolin
This certainly worked.

Although I went to the subclassing a datagrid to be able to capture events from 
itemrenderers.

Thanks.




From: turbo_vb 
To: flexcoders@yahoogroups.com
Sent: Tue, 17 August, 2010 11:09:03
Subject: [flexcoders] Re: Method for a Datagrid Button Itemrenderer

  
Not that I know of.  You could avoid all of this by just listening for the 
DataGrid's itemClick event. (mx.events.ListEvent)  In the result handler you 
could check if ( event.itemRenderer is btnRenderer ) { do your thing }

-TH

--- In flexcoders@yahoogroups.com, Angelo Anolin  wrote:
>
> 
> 
> Would it be possible to simply add it to the MXML file where I am declaring 
> the 
>
> datagrid, instead of subclassing it?
> 
> Thanks.
> 
> 
> 
> From: turbo_vb 
> To: flexcoders@yahoogroups.com
> Sent: Tue, 17 August, 2010 8:30:29
> Subject: [flexcoders] Re: Method for a Datagrid Button Itemrenderer
> 
> 
> Hi Angelo,
> 
> You're close.  You'll need to declare the event in the DataGrid.  A simple 
> subclass should do the trick.  This way you can add the event listener in 
> mxml 

> too:
> 
> package myPackage
> {
> import mx.controls.DataGrid;
> 
> [Event( name="myTest", type="flash.events.Event")]
> 
> public class MyDataGrid extends DataGrid
> {
> 
> }
> }
> 
> -TH--- In flexcoders@yahoogroups.com, Angelo Anolin  wrote:
> >
> > I have written the following scripts, and yet this does not seem to work.
> > 
> > in my MXML file (main)
> > 
> > private function myDataGrid_CreationComplete() :void
> > {
> >   myDataGrid.addEventListener('myTest', myTesting);
> > }
> > 
> > private function myTesting() :void
> > {
> >   Alert.show('This event should have been called!');
> > }
> > 
> > 
> > in my datagrid, i have declared
> > creationComplete="myDataGrid_CreationComplete()"
> > 
> > In my itemrenderer, I have placed a code :
> > 
> > override protected function clickHandler(event:MouseEvent) :void
> > {
> >   dispatchEvent(new Event('myTest', true));
> > }
> > 
> > For some reason, this does not seem to work. From what I have read mostly, 
>this 
>
> >
> > should be able to do the trick.
> > 
> > Any input and ideas appreciated. Thanks..
> > 
> > 
> > 
> > 
> > From: Angelo Anolin angelo_anolin@
> > To: flexcoders@yahoogroups.com
> > Sent: Tue, 17 August, 2010 8:34:07
> > Subject: Re: [flexcoders] Re: Method for a Datagrid Button Itemrenderer
> > 
> > 
> > Hi Don,
> > 
> > Thanks for the reply.
> > 
> > I do am able to do the same using an in-line itemrenderer.
> > 
> > But right now, my itemrenderer is an external AS file.
> > 
> > So I declare my MXML like:
> > 
> >  > id="dgActionColumn" width="100" visible="true" 
> >itemRenderer="myButtonItemRenderer"
> >  />
> > 
> > Where myButtonItemRenderer is an external AS file which extends the button.
> > 
> > Now, where I declare the datagrid, I am writing a function which I need to 
>wire 
>
> >
> > up to the itemrenderer so that on the click of the button, that method is 
> > dispatched.
> > 
> > Thanks.
> > 
> > 
> > 
> > 
> > 
> > 
> > From: fusionpage fusionpage@
> > To: flexcoders@yahoogroups.com
> > Sent: Tue, 17 August, 2010 8:29:11
> > Subject: [flexcoders] Re: Method for a Datagrid Button Itemrenderer
> > 
> > 
> > I typically use code like this to call a method in the parent MXML page 
> > that 

> > contains the dataGrid...
> > 
> >  > dataField="contentURL">
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > Don
> > 
> > --- In flexcoders@yahoogroups.com, Angelo Anolin angelo_anolin@ wrote:
> > >
> > > I know someone has encountered this before. 
> > > 
> > > Better to rephrase this one I guess.
> > > 
> > > I have an MXML file, where I have a method.  In that MXML file, I have a 
> > > datagrid, where one of the columns, I created an external itemrenderer.  
>The 
>
> 
> > > itemrenderer is a button.  When I click that button, I want that button 
> > > to 

> >call 
> >
> > >
> > > the method in the MXML file (so that I could re-use the button on other 
> > > datagrids). 
> > > 
> > > Thanks.
> > > 
> > > 
> > > 
> > > 
> > > From: Angelo Anolin angelo_anolin@
> > > To: flexcoders@yahoogroups.com
> > > Sent: Mon, 16 August, 2010 13:54:33
> > > Subject: [flexcoders] Method for a Datagrid Button Itemrenderer
> > > 
> > > 
> > > Hi Flexcoders,
> > > 
> > > I have a datagrid and an button itemrenderer named btnRenderer.as
> > > 
> > > I have set this button as an itemRenderer in one of my datagrid columns.
> > > 
> > >  > > itemRenderer="btnRenderer" 

> />
> > > 
> > > I need to respond to an click event on button, passing some of the value 
>from 
>
> >
> > > the dataProvider attached to the datagrid.
> > > 
> > > Should I place my codes on the mxml file where my datagrid is declared?  
>How 
>
> 
> > > would the btnRenderer know that the method is called?
> > > 
> > > Thanks.
> > >
> >
>


 


  

[flexcoders] Constraining one components location to another component

2010-08-26 Thread dorkie dork from dorktown
Is there a way to constrain one component to another component? I've looked
at constraint rows and constrain columns in the past but I haven't got it to
work myself. IE,


 




In this example the download icon would float in the upper right corner of
the image component as the image component floats in the middle of the
container it is in. FYI In this project there are additional components that
will float relative to the location and size of the image as well.

JP


Re: [flexcoders] FABridge Problem - Please help!

2010-08-26 Thread Alex Harui
I just noticed you didn’t specify an id=”FABridge” in your 

What was the equivalent statement in Flex 3?


On 8/26/10 10:45 AM, "Brian J. Ackermann"  wrote:






>From my testing, I believe the problem is on the JS side of thing, and that 
>the FABridge doesn't 'live' in the same location in the DOM in flex4, as 
>compared with flex3.

But we're both reasonably novice flex developers, so we could be 
mis-interpreting what we're seeing.  In another version of the project, I have 
added some debugging to a text area on screen, and "this.parent.FABridge" and 
"parent.FABridge" and "FABridge" all return 'undefined'.  Since that used to 
work just fine in flex3, it seems like maybe I just need to find the new 'path' 
in the DOM

for example:

this.parent.foo.bar.blah.FABridge

Thanks,

Brian



Brian J. Ackermann
 brian.ackerm...@gmail.com
 952.373.1626






On Thu, Aug 26, 2010 at 12:38 PM, Alex Harui  wrote:





I don’t have time right now to look and I don’t deal much with FABridge, but 
are you now saying that parent.FABridge is now the issue?  The OP said it was 
FABridge.flex.  Is this on the JS side or AS side?  In Flex 4, a child 
component’s parent is not the main app, they get shoveled down into the skin.  
It think the document or parentDocument properties or 
FlexGlobals.topLevelApplication can access the main app.




On 8/26/10 9:10 AM, "Brian J. Ackermann" http://brian.ackerm...@gmail.com> > wrote:






I'm trying to get the IFrameCommTest example (from 
http://code.google.com/p/flex-iframe/) to work in Flex 4, and, while the IFrame 
itself works, the communication does not. In particular, I need to get the 
included HTML page to call functions from the flex app (I already have a way to 
get the Flex app to talk to the HTML).

I've exported the project to facilitate your 
help.http://www.mediafire.com/file/172448jkkgva4ki/iframeCommTest.fxp

The problem, is that the "parent.FABridge" doesn't exist. My guess is that 
something in flex4 changed with regard to how things are located in the DOM.

(This post is directly related to the original.  I just thought this would be a 
clearer example of the problem. )

Thanks,



Brian J. Ackermann
 brian.ackerm...@gmail.com 
 952.373.1626











--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui


Re: [flexcoders] Loading Images into a loaded SWF

2010-08-26 Thread Alex Harui
Image extends SWFLoader so you want to see how Image uses the SWFLoader code to 
determine the actual path to try.


On 8/26/10 11:45 AM, "Julian Tenney"  wrote:






SWFLoader or Image?

Surely the problem is with Image - or does Image use the paths set by SWFLoader 
to resolve its own paths?


From: flexcoders@yahoogroups.com on behalf of Alex Harui
Sent: Thu 26/08/2010 18:33
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Loading Images into a loaded SWF


I don’t see any obvious problem with your setup.  Set a breakpoint in 
SWFLoader.as:loadContent and watch it try to resolve the URL into an absolute 
URL.  Maybe there is a clue there.


On 8/26/10 1:12 AM, "Julian Tenney"  wrote:






Yes, that’s right: mx:SWFLoader

mySWFLoader.load(swfFile); //to load it

loadForCompatibility is true or false, makes no odds,

Not specifying a loaderContext, but when I’ve tried it makes no odds – am I 
missing something here?



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: 26 August 2010 00:43
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Loading Images into a loaded SWF



Just so I’m clear, you are using mx:SWFLoader and s! etting 
source=”C:\x35\learningObject.swf”?

I was just checking to see if you are or aren’t specifying loadForCompatibility 
or loaderContext


On 8/25/10 2:53 PM, "Julian Tenney"  wrote:






C:\x35\LearningObject.swf is the path.

'x35' is a folder containing the mxml file compiled by the app via fcsh.

AirTricks waits for fcsh to finish, and then loads LearningObject.swf.

What other params can I pass in to the swf that might help?

Thanks Alex,

J



From: flexcoders@yahoogroups.com on behalf of Alex Harui
Sent: Wed 25/08/2010 18:13
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Loading Images into a loaded SWF


What is the path to the LearningObjects.swf that you are handing to SWFLoader 
in the AirTricks.SWF?  Are you specifying any other parameters for loading 
LearningObjects.swf?

mx:Image has code that tries to convert relative paths to absolute paths 
relative to the current SWF so you don’t need to place the JPG in the AirTricks 
folder.   It looks like the absolute path conversion is getting fooled.


On 8/25/10 1:28 AM, "Julian Tenney"  wrote:





Thanks for your help.

The! loaded SWF is a flex SWF, all built with the latest stable release.
It uses mx:Image
Yes, using Flex 4.
Paths:

To Air App:
C:\Program Files\Xerte 3.5\AirTricks\AirTricks.exe which loads C:\Program 
Files\Xerte 3.5\AirTricks\AirTricks.swf

To SWF:
C:\x35\LearningObject.swf

To image – it’s in all these places, and it doesn’t load.
C:\x35\media\DSC_0095.JPG [where it really ought to load from, or be able to 
load from.]
C:\Program Files\Xerte 3.5\AirTricks\media\DSC_0095.JPG [where you guys are 
telling me it should load from, but it doesn’t]

The relative path is media/DSC_0095.JPG

If I execute C:\x35\LearningObject.swf it works fine.

The application is an .mxml ! editor and compiler, which creates and edits mxml 
files, and compiles them. What I’m trying to do is load and preview the results 
in the application.

Thanks,

J
&nb! sp;




From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: 24 August 2010 18:41
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Loading Images into a loaded SWF



Is the loaded SWF a Flex SWF?  Is it using SWFLoader/Image?  Are you using Flex 
4?  What is the path to the AIR app, the SWF and the image and what are you 
using for a relative path?


On 8/24/10 8:58 AM, "Julian Tenney"  wrote:






No, when I move the folder into the air app folder, the image DEFINITELY does 
not load.

So, WTF?


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Keith Reinfeld
Sent: 24 August 2010 14:29
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Loading Images into a loaded SWF



Once your SWF is loaded the path is relative to your Air app. Place a copy of 
your media folder and its contents accordingly.


Regards,

Keith Reinfeld
Home Page: http://keithreinfeld.home.comcast.net 
  
 http://keithreinfeld.home.comcast.net/> >
! < FONT color="#ff">



This message and any attachment are intended solely for the addressee and may 
contain confidential information. If you have received this message in error, 
please send it back to me, and immediately delete it.   Please do not use, copy 
or disclose the information contained in this message or in any attachment.  
Any views or opinions expressed by the author of this email do not necessarily 
reflect the views of the University of Nottingham.

This message has been checke! d for viruses but the contents of an attachment 
may still cont! ain soft ware viruses which could damage your computer system: 
you are advised

RE: [flexcoders] Loading Images into a loaded SWF

2010-08-26 Thread Julian Tenney
SWFLoader or Image?
 
Surely the problem is with Image - or does Image use the paths set by SWFLoader 
to resolve its own paths?



From: flexcoders@yahoogroups.com on behalf of Alex Harui
Sent: Thu 26/08/2010 18:33
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Loading Images into a loaded SWF


  

I don't see any obvious problem with your setup.  Set a breakpoint in 
SWFLoader.as:loadContent and watch it try to resolve the URL into an absolute 
URL.  Maybe there is a clue there.


On 8/26/10 1:12 AM, "Julian Tenney"  wrote:




 
 
   

Yes, that's right: mx:SWFLoader 
 
mySWFLoader.load(swfFile); //to load it
 
loadForCompatibility is true or false, makes no odds,
 
Not specifying a loaderContext, but when I've tried it makes no odds - 
am I missing something here?
 
 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
Behalf Of Alex Harui
Sent: 26 August 2010 00:43
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Loading Images into a loaded SWF

  

Just so I'm clear, you are using mx:SWFLoader and setting 
source="C:\x35\learningObject.swf"?

I was just checking to see if you are or aren't specifying 
loadForCompatibility or loaderContext


On 8/25/10 2:53 PM, "Julian Tenney"  
wrote:




 
 
   

C:\x35\LearningObject.swf is the path.

'x35' is a folder containing the mxml file compiled by the app 
via fcsh.

AirTricks waits for fcsh to finish, and then loads 
LearningObject.swf.

What other params can I pass in to the swf that might help?

Thanks Alex,

J 






From: flexcoders@yahoogroups.com on behalf of Alex Harui
Sent: Wed 25/08/2010 18:13
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Loading Images into a loaded SWF

  
What is the path to the LearningObjects.swf that you are 
handing to SWFLoader in the AirTricks.SWF?  Are you specifying any other 
parameters for loading LearningObjects.swf?

mx:Image has code that tries to convert relative paths to 
absolute paths relative to the current SWF so you don't need to place the JPG 
in the AirTricks folder.   It looks like the absolute path conversion is 
getting fooled.


On 8/25/10 1:28 AM, "Julian Tenney" 
 wrote:

 
 
   

Thanks for your help.
 
The loaded SWF is a flex SWF, all built with the latest stable 
release.
It uses mx:Image
Yes, using Flex 4.
Paths:
 
To Air App:
C:\Program Files\Xerte 3.5\AirTricks\AirTricks.exe which loads 
C:\Program Files\Xerte 3.5\AirTricks\AirTricks.swf
 
To SWF:
C:\x35\LearningObject.swf
 
To image - it's in all these places, and it doesn't load.
C:\x35\media\DSC_0095.JPG [where it really ought to load from, 
or be able to load from.]
C:\Program Files\Xerte 3.5\AirTricks\media\DSC_0095.JPG [where 
you guys are telling me it should load from, but it doesn't]
 
The relative path is media/DSC_0095.JPG
 
If I execute C:\x35\LearningObject.swf it works fine.
 
The application is an .mxml ! editor and compiler, which 
creates and edits mxml files, and compiles them. What I'm trying to do is load 
and preview the results in the application.
 
Thanks,
 
J
 
 
 
 

From: flexcoders@yahoogroups.com 
[mailto:flexcod...@yahoogroups.com] On Behalf Of Alex Harui
Sent: 24 August 2010 18:41
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Loading Images into a loaded SWF

  

Is the loaded SWF a Flex SWF?  Is it using SWFLoader/Image?  
Are you using Flex 4?  What is the path to the AIR app, the SWF and the image 
and what are you using for a relative path?


  

Re: [flexcoders] FABridge Problem - Please help!

2010-08-26 Thread Brian J. Ackermann
>From my testing, I believe the problem is on the JS side of thing, and that
the FABridge doesn't 'live' in the same location in the DOM in flex4, as
compared with flex3.

But we're both reasonably novice flex developers, so we could be
mis-interpreting what we're seeing.  In another version of the project, I
have added some debugging to a text area on screen, and
"this.parent.FABridge" and "parent.FABridge" and "FABridge" all return
'undefined'.  Since that used to work just fine in flex3, it seems like
maybe I just need to find the new 'path' in the DOM

for example:

this.parent.foo.bar.blah.FABridge

Thanks,

Brian

--
Brian J. Ackermann
brian.ackerm...@gmail.com
952.373.1626
--





On Thu, Aug 26, 2010 at 12:38 PM, Alex Harui  wrote:

>
>
> I don’t have time right now to look and I don’t deal much with FABridge,
> but are you now saying that parent.FABridge is now the issue?  The OP said
> it was FABridge.flex.  Is this on the JS side or AS side?  In Flex 4, a
> child component’s parent is not the main app, they get shoveled down into
> the skin.  It think the document or parentDocument properties or
> FlexGlobals.topLevelApplication can access the main app.
>
>
>
> On 8/26/10 9:10 AM, "Brian J. Ackermann" 
> wrote:
>
>
>
>
>
>
> I'm trying to get the IFrameCommTest example (from
> http://code.google.com/p/flex-iframe/) to work in Flex 4, and, while the
> IFrame itself works, the communication does not. In particular, I need to
> get the included HTML page to call functions from the flex app (I already
> have a way to get the Flex app to talk to the HTML).
>
> I've exported the project to facilitate your help.
> http://www.mediafire.com/file/172448jkkgva4ki/iframeCommTest.fxp
>
> The problem, is that the "parent.FABridge" doesn't exist. My guess is that
> something in flex4 changed with regard to how things are located in the DOM.
>
> (This post is directly related to the original.  I just thought this would
> be a clearer example of the problem. )
>
> Thanks,
>
>
> --
> Brian J. Ackermann
>  brian.ackerm...@gmail.com
>  952.373.1626
>
> --
>
>
>
>
>
>
>
>
>
>
>
> --
> Alex Harui
> Flex SDK Team
> Adobe System, Inc.
> http://blogs.adobe.com/aharui
>
>  
>


Re: [flexcoders] FABridge Problem - Please help!

2010-08-26 Thread Alex Harui
I don’t have time right now to look and I don’t deal much with FABridge, but 
are you now saying that parent.FABridge is now the issue?  The OP said it was 
FABridge.flex.  Is this on the JS side or AS side?  In Flex 4, a child 
component’s parent is not the main app, they get shoveled down into the skin.  
It think the document or parentDocument properties or 
FlexGlobals.topLevelApplication can access the main app.


On 8/26/10 9:10 AM, "Brian J. Ackermann"  wrote:






I'm trying to get the IFrameCommTest example (from 
http://code.google.com/p/flex-iframe/) to work in Flex 4, and, while the IFrame 
itself works, the communication does not. In particular, I need to get the 
included HTML page to call functions from the flex app (I already have a way to 
get the Flex app to talk to the HTML).

I've exported the project to facilitate your 
help.http://www.mediafire.com/file/172448jkkgva4ki/iframeCommTest.fxp

The problem, is that the "parent.FABridge" doesn't exist. My guess is that 
something in flex4 changed with regard to how things are located in the DOM.

(This post is directly related to the original.  I just thought this would be a 
clearer example of the problem. )

Thanks,



Brian J. Ackermann
 brian.ackerm...@gmail.com
 952.373.1626











--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui


Re: [flexcoders] Loading Images into a loaded SWF

2010-08-26 Thread Alex Harui
I don’t see any obvious problem with your setup.  Set a breakpoint in 
SWFLoader.as:loadContent and watch it try to resolve the URL into an absolute 
URL.  Maybe there is a clue there.


On 8/26/10 1:12 AM, "Julian Tenney"  wrote:






Yes, that’s right: mx:SWFLoader

mySWFLoader.load(swfFile); //to load it

loadForCompatibility is true or false, makes no odds,

Not specifying a loaderContext, but when I’ve tried it makes no odds – am I 
missing something here?



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: 26 August 2010 00:43
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Loading Images into a loaded SWF



Just so I’m clear, you are using mx:SWFLoader and setting 
source=”C:\x35\learningObject.swf”?

I was just checking to see if you are or aren’t specifying loadForCompatibility 
or loaderContext


On 8/25/10 2:53 PM, "Julian Tenney"  wrote:






C:\x35\LearningObject.swf is the path.

'x35' is a folder containing the mxml file compiled by the app via fcsh.

AirTricks waits for fcsh to finish, and then loads LearningObject.swf.

What other params can I pass in to the swf that might help?

Thanks Alex,

J



From: flexcoders@yahoogroups.com on behalf of Alex Harui
Sent: Wed 25/08/2010 18:13
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Loading Images into a loaded SWF


What is the path to the LearningObjects.swf that you are handing to SWFLoader 
in the AirTricks.SWF?  Are you specifying any other parameters for loading 
LearningObjects.swf?

mx:Image has code that tries to convert relative paths to absolute paths 
relative to the current SWF so you don’t need to place the JPG in the AirTricks 
folder.   It looks like the absolute path conversion is getting fooled.


On 8/25/10 1:28 AM, "Julian Tenney"  wrote:





Thanks for your help.

The loaded SWF is a flex SWF, all built with the latest stable release.
It uses mx:Image
Yes, using Flex 4.
Paths:

To Air App:
C:\Program Files\Xerte 3.5\AirTricks\AirTricks.exe which loads C:\Program 
Files\Xerte 3.5\AirTricks\AirTricks.swf

To SWF:
C:\x35\LearningObject.swf

To image – it’s in all these places, and it doesn’t load.
C:\x35\media\DSC_0095.JPG [where it really ought to load from, or be able to 
load from.]
C:\Program Files\Xerte 3.5\AirTricks\media\DSC_0095.JPG [where you guys are 
telling me it should load from, but it doesn’t]

The relative path is media/DSC_0095.JPG

If I execute C:\x35\LearningObject.swf it works fine.

The application is an .mxml ! editor and compiler, which creates and edits mxml 
files, and compiles them. What I’m trying to do is load and preview the results 
in the application.

Thanks,

J





From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: 24 August 2010 18:41
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Loading Images into a loaded SWF



Is the loaded SWF a Flex SWF?  Is it using SWFLoader/Image?  Are you using Flex 
4?  What is the path to the AIR app, the SWF and the image and what are you 
using for a relative path?


On 8/24/10 8:58 AM, "Julian Tenney"  wrote:






No, when I move the folder into the air app folder, the image DEFINITELY does 
not load.

So, WTF?


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Keith Reinfeld
Sent: 24 August 2010 14:29
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Loading Images into a loaded SWF



Once your SWF is loaded the path is relative to your Air app. Place a copy of 
your media folder and its contents accordingly.


Regards,

Keith Reinfeld
Home Page: http://keithreinfeld.home.comcast.net 
 





This message and any attachment are intended solely for the addressee and may 
contain confidential information. If you have received this message in error, 
please send it back to me, and immediately delete it.   Please do not use, copy 
or disclose the information contained in this message or in any attachment.  
Any views or opinions expressed by the author of this email do not necessarily 
reflect the views of the University of Nottingham.

This message has been checke! d for viruses but the contents of an attachment 
may still cont! ain soft ware viruses which could damage your computer system: 
you are advised to perform your own checks. Email communications with the 
University of Nottingham may be monitored as permitted by UK legislation.




--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui


RE: [flexcoders] Space character in additional compiler arguments

2010-08-26 Thread Gordon Smith
I would expect single/double quotes to work. If they don't, I think you should 
file a bug.

One more thing to try in the meantime is putting a backslash in front of the 
space.

Gordon Smith
Adobe Flex SDK Team

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of tom_sobut
Sent: Thursday, August 26, 2010 6:36 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Space character in additional compiler arguments



This should be simple...

I need to include a file path which includes a space character in the 
"Additional complier arguments" of my project properties. Problem is, the space 
is reserved to separate compiler arguments, so the compiler thinks my file path 
ends at the space. I've tried lots of approaches...escape codes for space, 
backslash, single and double quotes around the path. None work. Does anyone 
know what the secret code is?

Thanks



Re: [flexcoders] FABridge Problem - Please help!

2010-08-26 Thread Brian J. Ackermann
I'm trying to get the IFrameCommTest example (from
http://code.google.com/p/flex-iframe/) to work in Flex 4, and, while the
IFrame itself works, the communication does not. In particular, I need to
get the included HTML page to call functions from the flex app (I already
have a way to get the Flex app to talk to the HTML).

I've exported the project to facilitate your help.
http://www.mediafire.com/file/172448jkkgva4ki/iframeCommTest.fxp

The problem, is that the "parent.FABridge" doesn't exist. My guess is that
something in flex4 changed with regard to how things are located in the DOM.

(This post is directly related to the original.  I just thought this would
be a clearer example of the problem. )

Thanks,

--
Brian J. Ackermann
brian.ackerm...@gmail.com
952.373.1626
--



>


Re: [flexcoders] Perplexed: An XML Love Story

2010-08-26 Thread Wally Kolcz
  Figured it out:

private function fileLoadedHandler(e:Event):void {
list = new XML(e.target.data);
var n:Namespace = list.namespace();
trace(list.n::url[0].n::loc);
}





Re: [flexcoders] Perplexed: An XML Love Story

2010-08-26 Thread claudiu ursica
package {
import flash.display.Sprite;
import flash.events.Event;
import flash.net.URLLoader;
import flash.net.URLRequest;

public class Test extends Sprite
{

private var loader:URLLoader;
private var list:XML;

public namespace test = "http://www.sitemaps.org/schemas/sitemap/0.9";;
use namespace test;

private function loadXML():void 
{
loader = new URLLoader(new 
URLRequest("http://www.nmh.org/sitemap.xml";));
loader.addEventListener(Event.COMPLETE, fileLoadedHandler);
}

private function fileLoadedHandler(e:Event):void 
{

list = XML(e.target.data);
trace(list.url.loc.text());
}

public function Test()
{
loadXML();
}
}
}

this works just fine on my machine...

Cheers,
Claduiu





From: Wally Kolcz 
To: flexcoders@yahoogroups.com
Sent: Thu, August 26, 2010 5:27:27 PM
Subject: Re: [flexcoders] Perplexed: An XML Love Story

   
I am using Flex and a URLLoader. I call the loadXML in the 
CreationComplete event

private var loader:URLLoader;
private var list:XML;

private function loadXML():void {
loader = new URLLoader(new URLRequest("http://www.nmh.org/sitemap.xml";);
loader.addEventListener(Event.COMPLETE, fileLoadedHandler);
}

private function fileLoadedHandler(e:Event):void {
list = new XML(e.target,data);
}


 


  

[flexcoders] RichText: setting divs to css styleNames?

2010-08-26 Thread grimmwerks
Hey - I've got a Richtext item that I'd like to have sections of text attribute 
to styleNames within the main css file -- how exactly would I do that? Set a 
  and then have a .myText{}  item in the css?


Garry Schafer
grimmwerks
gr...@grimmwerks.com
portfolio: www.grimmwerks.com/







Re: [flexcoders] Perplexed: An XML Love Story

2010-08-26 Thread Wally Kolcz
  I am using Flex and a URLLoader. I call the loadXML in the 
CreationComplete event

private var loader:URLLoader;
private var list:XML;

private function loadXML():void {
loader = new URLLoader(new URLRequest("http://www.nmh.org/sitemap.xml";);
loader.addEventListener(Event.COMPLETE, fileLoadedHandler);
}

private function fileLoadedHandler(e:Event):void {
list = new XML(e.target,data);
}



Re: [flexcoders] Perplexed: An XML Love Story

2010-08-26 Thread claudiu ursica
I don;t know why the copy paste did no work properly.

private var xml1:XML = 

http://www.nmh.org/nm/location+centers
2010-06-10T02:13:31-06:00
monthly
.9


http://www.nmh.org/nm/location+clinics+specialty+services
2010-06-10T02:27:03-06:00
monthly
.9


http://www.nmh.org/nm/location+emergency+urgent+care
2010-06-10T03:03:30-06:00
monthly
.9


http://www.nmh.org/nm/location+gift+shops+dining
2010-06-10T02:25:39-06:00
monthly
.9

;


You need to alter the class who produces your xml on the server to produce both 
the the namespace and the chema.
Iterating is simple e4x syntax.

trace(xml1.url.loc.text());

that produces a list of the loc nodes when queired ...
I'll try to connect on your endpoint later if have the time and post the code. 
Is As code enough or you are using HTTPService and flex?

C





From: Wally Kolcz 
To: flexcoders@yahoogroups.com
Sent: Thu, August 26, 2010 4:55:28 PM
Subject: Re: [flexcoders] Perplexed: An XML Love Story

   
Ok, how do I do that? Also, in your example, how are you iterating over the 
url node value to get multiples?

On 8/26/2010 10:49 AM, claudiu ursica wrote:

  
>Ok had a look into the raw xml also. You need to define a 
>namespace for the schemaLocation to be bound to. 
>
>
>
>
>Here is the code that works on my machine ...
>
>package {
>import flash.display.Sprite;
>
>public class Test extends Sprite
>{
>
>private var xml:XML = 
>
>
>http://www.nmh.org/nm/2-9991
>
2010-01-10T10:07:22-06:00
>monthly
>.5
>
>
>http://www.nmh.org/nm/2-9992
>
2010-01-10T10:07:24-06:00
>monthly
>.5
>
>
>http://www.nmh.org/nm/2-9998
>
2010-01-10T10:07:34-06:00
>monthly
>.5
>
>;
>
>private var xml1:XML = 
>
>http://www.nmh.org/nm/location+centers
>
2010-06-10T02:13:31-06:00
>monthly
>.9
>
>
>http://www.nmh.org/nm/location+clinics+specialty+services
>
2010-06-10T02:27:03-06:00
>monthly
>.9
>
>
>http://www.nmh.org/nm/location+emergency+urgent+care
>
2010-06-10T03:03:30-06:00
>monthly
>.9
>
>
>http://www.nmh.org/nm/location+gift+shops+dining
>
2010-06-10T02:25:39-06:00
>monthly
>.9
>
>;
>
>
>public function Test()
>{
>trace(xml.url.loc.text());
>trace(xml1.url.loc.text());
>}
>}
>}
>
>HTH,
>C
>
>
>
>
>

From: Wally Kolcz 
>To: flexcoders@yahoogroups.com
>Sent: Thu, August 26, 2010 4:07:34 PM
>Subject: [flexcoders] Perplexed: An XML Love Story
>
>  
>I am loading XML from a remote source. Then i am   
>attempting to transverse it to get to the value of   the 
>'loc' node. However, everything I am doing is   coming up 
>empty or an error. i am putting money   its the namespace, 
>but I dont know how to get   around it.
>
>I am using a pretty basic function to convert the   result 
>to an XML object.
>
>list = new XML(e.target.data);
>
>I tried list.url[0].loc, but it comes up blank.
>
>When I trace (list.toXMLString()); I get this:
>
>
>http://www.nmh.org/nm/2-9991
>2010-01-10T10:07:22-06:00
>monthly
>.5
>
>
>http://www.nmh.org/nm/2-9992
>2010-01-10T10:07:24-06:00
>monthly
>.5
>
>
>http://www.nmh.org/nm/2-9998
>2010-01-10T10:07:34-06:00
>monthly
>.5
>
>
>
>When I trace (list.*), I get this:
>
>http://www.nmh.org/nm/2-9770
>2010-01-10T09:58:32-06:00
>monthly
>.5
>
>
>http://www.nm

Re: [flexcoders] Perplexed: An XML Love Story

2010-08-26 Thread Wally Kolcz
 Ok, how do I do that? Also, in your example, how are you iterating 
over the url node value to get multiples?


On 8/26/2010 10:49 AM, claudiu ursica wrote:
Ok had a look into the raw xml also. You need to define a namespace 
for the schemaLocation to be bound to.




Here is the code that works on my machine ...

package {
import flash.display.Sprite;

public class Test extends Sprite
{

private var xml:XML =


http://www.nmh.org/nm/2-9991
2010-01-10T10:07:22-06:00
monthly
.5


http://www.nmh.org/nm/2-9992
2010-01-10T10:07:24-06:00
monthly
.5


http://www.nmh.org/nm/2-9998
2010-01-10T10:07:34-06:00
monthly
.5

;

private var xml1:XML =

http://www.nmh.org/nm/location+centers
2010-06-10T02:13:31-06:00
monthly
.9


http://www.nmh.org/nm/location+clinics+specialty+services
2010-06-10T02:27:03-06:00
monthly
.9


http://www.nmh.org/nm/location+emergency+urgent+care
2010-06-10T03:03:30-06:00
monthly
.9


http://www.nmh.org/nm/location+gift+shops+dining
2010-06-10T02:25:39-06:00
monthly
.9

;


public function Test()
{
trace(xml.url.loc.text());
trace(xml1.url.loc.text());
}
}
}

HTH,
C



*From:* Wally Kolcz 
*To:* flexcoders@yahoogroups.com
*Sent:* Thu, August 26, 2010 4:07:34 PM
*Subject:* [flexcoders] Perplexed: An XML Love Story

I am loading XML from a remote source. Then i am attempting to 
transverse it to get to the value of the 'loc' node. However, 
everything I am doing is coming up empty or an error. i am putting 
money its the namespace, but I dont know how to get around it.


I am using a pretty basic function to convert the result to an XML object.

list = new XML(e.target.data);

I tried list.url[0].loc, but it comes up blank.

When I trace (list.toXMLString()); I get this:


http://www.nmh.org/nm/2-9991
2010-01-10T10:07:22-06:00
monthly
.5


http://www.nmh.org/nm/2-9992
2010-01-10T10:07:24-06:00
monthly
.5


http://www.nmh.org/nm/2-9998
2010-01-10T10:07:34-06:00
monthly
.5



When I trace (list.*), I get this:

http://www.nmh.org/nm/2-9770
2010-01-10T09:58:32-06:00
monthly
.5

http://www.sitemaps.org/schemas/sitemap/0.9"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>

http://www.nmh.org/nm/2-9771
2010-01-10T09:58:35-06:00
monthly
.5

http://www.sitemaps.org/schemas/sitemap/0.9"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>

http://www.nmh.org/nm/2-9772
2010-01-10T09:58:38-06:00
monthly
.5

http://www.sitemaps.org/schemas/sitemap/0.9"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>

http://www.nmh.org/nm/2-9773
2010-01-10T09:58:39-06:00
monthly
.5


How to I get to the values of loc?

Here is a sample of the raw XML:

xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd";>

−

http://www.nmh.org/nm/location+centers
2010-06-10T02:13:31-06:00
monthly
.9

−

−
http://www.nmh.org/nm/location+clinics+specialty+services
2010-06-10T02:27:03-06:00
monthly
.9

−

−
http://www.nmh.org/nm/location+emergency+urgent+care
2010-06-10T03:03:30-06:00
monthly
.9

−

http://www.nmh.org/nm/location+gift+shops+dining
2010-06-10T02:25:39-06:00
monthly
.9









Re: [flexcoders] Perplexed: An XML Love Story

2010-08-26 Thread Wally Kolcz
 Yeah, you didn't add any of the namespaces in the samples. In your 
creation of the XML, you removed the loc node from the sample data.


Point your example at http://www.nmh.org/sitemap.xml and try it..

On 8/26/2010 10:28 AM, claudiu ursica wrote:

I just tried your first scenario:

package {
import flash.display.Sprite;

public class Test extends Sprite
{

private var xml:XML =


http://www.nmh.org/nm/2-9991
2010-01-10T10:07:22-06:00
monthly
.5


http://www.nmh.org/nm/2-9992
2010-01-10T10:07:24-06:00
monthly
.5


http://www.nmh.org/nm/2-9998
2010-01-10T10:07:34-06:00
monthly
.5

;


public function Test()
{
trace(xml.url.loc.text());
}
}
}


outputs:

http://www.nmh.org/nm/2-9991
http://www.nmh.org/nm/2-9992
http://www.nmh.org/nm/2-9998

Am I missing something?
C



*From:* Wally Kolcz 
*To:* flexcoders@yahoogroups.com
*Sent:* Thu, August 26, 2010 4:07:34 PM
*Subject:* [flexcoders] Perplexed: An XML Love Story

I am loading XML from a remote source. Then i am attempting to 
transverse it to get to the value of the 'loc' node. However, 
everything I am doing is coming up empty or an error. i am putting 
money its the namespace, but I dont know how to get around it.


I am using a pretty basic function to convert the result to an XML object.

list = new XML(e.target.data);

I tried list.url[0].loc, but it comes up blank.

When I trace (list.toXMLString()); I get this:


http://www.nmh.org/nm/2-9991
2010-01-10T10:07:22-06:00
monthly
.5


http://www.nmh.org/nm/2-9992
2010-01-10T10:07:24-06:00
monthly
.5


http://www.nmh.org/nm/2-9998
2010-01-10T10:07:34-06:00
monthly
.5



When I trace (list.*), I get this:

http://www.nmh.org/nm/2-9770
2010-01-10T09:58:32-06:00
monthly
.5

http://www.sitemaps.org/schemas/sitemap/0.9"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>

http://www.nmh.org/nm/2-9771
2010-01-10T09:58:35-06:00
monthly
.5

http://www.sitemaps.org/schemas/sitemap/0.9"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>

http://www.nmh.org/nm/2-9772
2010-01-10T09:58:38-06:00
monthly
.5

http://www.sitemaps.org/schemas/sitemap/0.9"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>

http://www.nmh.org/nm/2-9773
2010-01-10T09:58:39-06:00
monthly
.5


How to I get to the values of loc?

Here is a sample of the raw XML:

xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd";>

−

http://www.nmh.org/nm/location+centers
2010-06-10T02:13:31-06:00
monthly
.9

−

−
http://www.nmh.org/nm/location+clinics+specialty+services
2010-06-10T02:27:03-06:00
monthly
.9

−

−
http://www.nmh.org/nm/location+emergency+urgent+care
2010-06-10T03:03:30-06:00
monthly
.9

−

http://www.nmh.org/nm/location+gift+shops+dining
2010-06-10T02:25:39-06:00
monthly
.9









Re: [flexcoders] Perplexed: An XML Love Story

2010-08-26 Thread claudiu ursica
Ok had a look into the raw xml also. You need to define a namespace for the 
schemaLocation to be bound to. 




Here is the code that works on my machine ...

package {
import flash.display.Sprite;

public class Test extends Sprite
{

private var xml:XML = 


http://www.nmh.org/nm/2-9991
2010-01-10T10:07:22-06:00
monthly
.5


http://www.nmh.org/nm/2-9992
2010-01-10T10:07:24-06:00
monthly
.5


http://www.nmh.org/nm/2-9998
2010-01-10T10:07:34-06:00
monthly
.5

;

private var xml1:XML = 

http://www.nmh.org/nm/location+centers
2010-06-10T02:13:31-06:00
monthly
.9


http://www.nmh.org/nm/location+clinics+specialty+services
2010-06-10T02:27:03-06:00
monthly
.9


http://www.nmh.org/nm/location+emergency+urgent+care
2010-06-10T03:03:30-06:00
monthly
.9


http://www.nmh.org/nm/location+gift+shops+dining
2010-06-10T02:25:39-06:00
monthly
.9

;


public function Test()
{
trace(xml.url.loc.text());
trace(xml1.url.loc.text());
}
}
}

HTH,
C






From: Wally Kolcz 
To: flexcoders@yahoogroups.com
Sent: Thu, August 26, 2010 4:07:34 PM
Subject: [flexcoders] Perplexed: An XML Love Story

   
I am loading XML from a remote source. Then i am attempting to transverse it to 
get to the value of the 'loc' node. However, everything I am doing is coming up 
empty or an error. i am putting money its the namespace, but I dont know how to 
get around it.

I am using a pretty basic function to convert the result to an XML object.

list = new XML(e.target.data);

I tried list.url[0].loc, but it comes up blank.

When I trace (list.toXMLString()); I get this:


http://www.nmh.org/nm/2-9991
2010-01-10T10:07:22-06:00
monthly
.5


http://www.nmh.org/nm/2-9992
2010-01-10T10:07:24-06:00
monthly
.5


http://www.nmh.org/nm/2-9998
2010-01-10T10:07:34-06:00
monthly
.5



When I trace (list.*), I get this:

http://www.nmh.org/nm/2-9770
2010-01-10T09:58:32-06:00
monthly
.5

http://www.sitemaps.org/schemas/sitemap/0.9";  
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
http://www.nmh.org/nm/2-9771
2010-01-10T09:58:35-06:00
monthly
.5

http://www.sitemaps.org/schemas/sitemap/0.9";  
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
http://www.nmh.org/nm/2-9772
2010-01-10T09:58:38-06:00
monthly
.5

http://www.sitemaps.org/schemas/sitemap/0.9";  
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
http://www.nmh.org/nm/2-9773
2010-01-10T09:58:39-06:00
monthly
.5


How to I get to the values of loc?

Here is a sample of the raw XML:

http://www.sitemaps.org/schemas/sitemap/0.9http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd";>

−

http://www.nmh.org/nm/location+centers
2010-06-10T02:13:31-06:00
monthly
.9

−

−
http://www.nmh.org/nm/location+clinics+specialty+services
2010-06-10T02:27:03-06:00
monthly
.9

−

−
http://www.nmh.org/nm/location+emergency+urgent+care
2010-06-10T03:03:30-06:00
monthly
.9

−

http://www.nmh.org/nm/location+gift+shops+dining
2010-06-10T02:25:39-06:00
monthly
.9




 


  

Re: [flexcoders] Perplexed: An XML Love Story

2010-08-26 Thread claudiu ursica
I just tried your first scenario:

package {
import flash.display.Sprite;

public class Test extends Sprite
{

private var xml:XML = 


http://www.nmh.org/nm/2-9991
2010-01-10T10:07:22-06:00
monthly
.5


http://www.nmh.org/nm/2-9992
2010-01-10T10:07:24-06:00
monthly
.5


http://www.nmh.org/nm/2-9998
2010-01-10T10:07:34-06:00
monthly
.5

;


public function Test()
{
trace(xml.url.loc.text());
}
}
}


outputs:

http://www.nmh.org/nm/2-9991
http://www.nmh.org/nm/2-9992
http://www.nmh.org/nm/2-9998

Am I missing something?
C






From: Wally Kolcz 
To: flexcoders@yahoogroups.com
Sent: Thu, August 26, 2010 4:07:34 PM
Subject: [flexcoders] Perplexed: An XML Love Story

   
I am loading XML from a remote source. Then i am attempting to transverse it to 
get to the value of the 'loc' node. However, everything I am doing is coming up 
empty or an error. i am putting money its the namespace, but I dont know how to 
get around it.

I am using a pretty basic function to convert the result to an XML object.

list = new XML(e.target.data);

I tried list.url[0].loc, but it comes up blank.

When I trace (list.toXMLString()); I get this:


http://www.nmh.org/nm/2-9991
2010-01-10T10:07:22-06:00
monthly
.5


http://www.nmh.org/nm/2-9992
2010-01-10T10:07:24-06:00
monthly
.5


http://www.nmh.org/nm/2-9998
2010-01-10T10:07:34-06:00
monthly
.5



When I trace (list.*), I get this:

http://www.nmh.org/nm/2-9770
2010-01-10T09:58:32-06:00
monthly
.5

http://www.sitemaps.org/schemas/sitemap/0.9";  
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
http://www.nmh.org/nm/2-9771
2010-01-10T09:58:35-06:00
monthly
.5

http://www.sitemaps.org/schemas/sitemap/0.9";  
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
http://www.nmh.org/nm/2-9772
2010-01-10T09:58:38-06:00
monthly
.5

http://www.sitemaps.org/schemas/sitemap/0.9";  
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
http://www.nmh.org/nm/2-9773
2010-01-10T09:58:39-06:00
monthly
.5


How to I get to the values of loc?

Here is a sample of the raw XML:

http://www.sitemaps.org/schemas/sitemap/0.9http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd";>

−

http://www.nmh.org/nm/location+centers
2010-06-10T02:13:31-06:00
monthly
.9

−

−
http://www.nmh.org/nm/location+clinics+specialty+services
2010-06-10T02:27:03-06:00
monthly
.9

−

−
http://www.nmh.org/nm/location+emergency+urgent+care
2010-06-10T03:03:30-06:00
monthly
.9

−

http://www.nmh.org/nm/location+gift+shops+dining
2010-06-10T02:25:39-06:00
monthly
.9




 


  

[flexcoders] Perplexed: An XML Love Story

2010-08-26 Thread Wally Kolcz
I am loading XML from a remote source. Then i am attempting to transverse it to 
get to the value of the 'loc' node. However, everything I am doing is coming up 
empty or an error. i am putting money its the namespace, but I dont know how to 
get around it.

I am using a pretty basic function to convert the result to an XML object.

list = new XML(e.target.data);

I tried list.url[0].loc, but it comes up blank.


When I trace (list.toXMLString()); I get this:

   
 http://www.nmh.org/nm/2-9991
 2010-01-10T10:07:22-06:00
 monthly
 .5
   
   
 http://www.nmh.org/nm/2-9992
 2010-01-10T10:07:24-06:00
 monthly
 .5
   
   
 http://www.nmh.org/nm/2-9998
 2010-01-10T10:07:34-06:00
 monthly
 .5
   




When I trace (list.*), I get this:
http://www.sitemaps.org/schemas/sitemap/0.9";  
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
   http://www.nmh.org/nm/2-9770
   2010-01-10T09:58:32-06:00
   monthly
   .5

http://www.sitemaps.org/schemas/sitemap/0.9";  
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
   http://www.nmh.org/nm/2-9771
   2010-01-10T09:58:35-06:00
   monthly
   .5

http://www.sitemaps.org/schemas/sitemap/0.9";  
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
   http://www.nmh.org/nm/2-9772
   2010-01-10T09:58:38-06:00
   monthly
   .5

http://www.sitemaps.org/schemas/sitemap/0.9";  
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
   http://www.nmh.org/nm/2-9773
   2010-01-10T09:58:39-06:00
   monthly
   .5



How to I get to the values of loc?


Here is a sample of the raw XML:

http://www.sitemaps.org/schemas/sitemap/0.9  
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd";>
−

http://www.nmh.org/nm/location+centers
2010-06-10T02:13:31-06:00
monthly
.9

−

−
http://www.nmh.org/nm/location+clinics+specialty+services
2010-06-10T02:27:03-06:00
monthly
.9

−

−
http://www.nmh.org/nm/location+emergency+urgent+care
2010-06-10T03:03:30-06:00
monthly
.9

−

http://www.nmh.org/nm/location+gift+shops+dining
2010-06-10T02:25:39-06:00
monthly
.9






[flexcoders] Spark TextInput text highlight colour

2010-08-26 Thread bhaq1972
I have a very simple question about Spark TextInput.



When I use focusedTextSelectionColor="black" 

I want the the colour of the text to be white (like it is in flex 3 and lower)

How do I achieve that?

tia





[flexcoders] Space character in additional compiler arguments

2010-08-26 Thread tom_sobut
This should be simple...

I need to include a file path which includes a space character in the 
"Additional complier arguments" of my project properties.  Problem is, the 
space is reserved to separate compiler arguments, so the compiler thinks my 
file path ends at the space.  I've tried lots of approaches...escape codes for 
space, backslash, single and double quotes around the path.  None work.  Does 
anyone know what the secret code is?

Thanks




RE: [flexcoders] Loading Images into a loaded SWF

2010-08-26 Thread Julian Tenney
Yes, that's right: mx:SWFLoader 

 

mySWFLoader.load(swfFile); //to load it

 

loadForCompatibility is true or false, makes no odds,

 

Not specifying a loaderContext, but when I've tried it makes no odds -
am I missing something here?

 

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Alex Harui
Sent: 26 August 2010 00:43
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Loading Images into a loaded SWF

 

  

Just so I'm clear, you are using mx:SWFLoader and setting
source="C:\x35\learningObject.swf"?

I was just checking to see if you are or aren't specifying
loadForCompatibility or loaderContext


On 8/25/10 2:53 PM, "Julian Tenney" 
wrote:


 
 
   

C:\x35\LearningObject.swf is the path.

'x35' is a folder containing the mxml file compiled by the app
via fcsh.

AirTricks waits for fcsh to finish, and then loads
LearningObject.swf.

What other params can I pass in to the swf that might help?

Thanks Alex,

J





From: flexcoders@yahoogroups.com on behalf of Alex Harui
Sent: Wed 25/08/2010 18:13
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Loading Images into a loaded SWF

  
What is the path to the LearningObjects.swf that you are handing
to SWFLoader in the AirTricks.SWF?  Are you specifying any other
parameters for loading LearningObjects.swf?

mx:Image has code that tries to convert relative paths to
absolute paths relative to the current SWF so you don't need to place
the JPG in the AirTricks folder.   It looks like the absolute path
conversion is getting fooled.


On 8/25/10 1:28 AM, "Julian Tenney"
 wrote:


 
 
   

Thanks for your help.
 
The loaded SWF is a flex SWF, all built with the latest stable
release.
It uses mx:Image
Yes, using Flex 4.
Paths:
 
To Air App:
C:\Program Files\Xerte 3.5\AirTricks\AirTricks.exe which loads
C:\Program Files\Xerte 3.5\AirTricks\AirTricks.swf
 
To SWF:
C:\x35\LearningObject.swf
 
To image - it's in all these places, and it doesn't load.
C:\x35\media\DSC_0095.JPG [where it really ought to load from,
or be able to load from.]
C:\Program Files\Xerte 3.5\AirTricks\media\DSC_0095.JPG [where
you guys are telling me it should load from, but it doesn't]
 
The relative path is media/DSC_0095.JPG
 
If I execute C:\x35\LearningObject.swf it works fine.
 
The application is an .mxml ! editor and compiler, which creates
and edits mxml files, and compiles them. What I'm trying to do is load
and preview the results in the application.
 
Thanks,
 
J
 
 
 
 

From: flexcoders@yahoogroups.com
[mailto:flexcod...@yahoogroups.com] On Behalf Of Alex Harui
Sent: 24 August 2010 18:41
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Loading Images into a loaded SWF

  

Is the loaded SWF a Flex SWF?  Is it using SWFLoader/Image?  Are
you using Flex 4?  What is the path to the AIR app, the SWF and the
image and what are you using for a relative path?


On 8/24/10 8:58 AM, "Julian Tenney"
 wrote:



 
 
   

No, when I move the folder into the air app folder, the image
DEFINITELY does not load.
 
So, WTF?
 

From: flexcoders@yahoogroups.com
[mailto:flexcod...@yahoogroups.com] On Behalf Of Keith Reinfeld
Sent: 24 August 2010 14:29
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Loading Images into a loaded SWF

  

Once your SWF is loaded the path is relative to your Air app.
Place a copy of your media folder and its contents accordingly. 
 

Regards,
 
Keith Reinfeld
Home Page: http://keithreinfeld.home.comcast.net

 




This message and any attachment are intended solely for the
addressee and may contain confidential information. If you have received
this message in error, please send it back to me, and immediately delete
it.   Please do not use, copy or disclose the information contained in
this message or in any attachment.  Any views or opinions expressed by
the author of this email do not necessarily reflect the views of the
University of Nottingham. 

This message has been checke! d for viruses but the contents of
an attachment may still cont!