[flexcoders] Error 2123: Thrown locally?!

2010-03-17 Thread s_hernandez01
I usually am used to this error on the server side, but not locally.  I have 
all these images that I'm trying to load from a CDN.  When I run the Flex 
project locally, it freaks out giving me this error:  But when I test online 
everything is fine:
 
SecurityError: Error #2123: Security sandbox violation: Loader.content: 
http://localhost/MyApp-debug/MyApp.swf cannot access 
http://c0797962.cdn.cloudfiles.rackspacecloud.com/<>. No 
policy files granted access.
 
I have created a crossdomain.xml file and have placed it in every container on 
the CDN that requests images on the CDN like this:






Can anyone help please?

-Sal



[flexcoders] Convert ArrayCollection to Array

2010-03-10 Thread s_hernandez01
I'm trying to convert my ArrayCollection in my datagrid to an Array so I can 
use the post method to send out the array to php from flex, but php is not 
recognizing the array can someone tell me what I'm doing wrong:

public var ac:ArrayCollection = new ArrayCollection();

public function uploadData():void{

var postArray:Array = new Array();
postArray = ac.source;

}



[flexcoders] Google Maps Latitude and Longitude

2010-03-01 Thread s_hernandez01
Does anyone know how I would retrieve the latitude and longitude from a given 
address in google maps?

I'm using something like this, but I need to split it up to have the latitude 
and longitude in separate labels:


private function createMarker(point:LatLng):void {
marker = new Marker(point, new MarkerOptions({draggable: true}));
var markerContent:String = marker.getLatLng().toString();
}






[flexcoders] TileList Change using File Reference

2010-02-18 Thread s_hernandez01
Hey would anyone know how I can change and image inside my tilelist using the 
File Reference class.  I've gotten this far and got stuck on the complete 
method:


http://www.adobe.com/2006/mxml"; layout="horizontal">
   
   


















Thanks



[flexcoders] Accepting an Image Size

2010-02-16 Thread s_hernandez01
Hi Flexers

I know it's possible to tell flex in actionscript to accept a image and limit 
the user to uploading 5Mb and to also only accept certain file types.  However, 
is it possible, and how, to tell flex to only accept images no bigger than a 
specific size in dimensions, say to only allow the user to upload a 512x512 in 
pixels?

Thanks

Sal





[flexcoders] Re: CROSS-DOMAIN POLICY HELP PLEASE!!!

2010-02-11 Thread s_hernandez01
Okay well, thanks everyone for your help, but I got too frustrated with 
figuring it out so my last resort is just have to upload my php files to the 
server and call them with a url so I don't get the sandbox error with testing 
them locally.  This sucks that I get the error locally, I hope Flash Builder 
works this out when released.  Thanks again.


--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> Timing is important, and so is configuration.  If you launch the app via 
> file:// then you need the put the folder in the FlashPlayerTrust file(s).  If 
> you are launching the app via http:// then you need a crossdomain.xml file on 
> the root of www.MyDomainName.com and make sure it gets loaded before the 
> request for the image.
> 
> I've never bothered to figure out when you have to use a LoaderContext and 
> when the player will automatically look for crossdomain.xml.  It might be 
> documented in the security whitepapers on the Adobe sight
> 
> 
> On 2/10/10 2:36 PM, "s_hernandez01"  wrote:
> 
> 
> 
> 
> 
> 
> Yup tried that and no luck either.  I even tried using
> 
> Security.loadPolicyFile("http://www.MyDomainName.com/crossdomain.xml";);
> 
> to push it to the flash player since I put the "*" in the cross domain and 
> still keep getting the error.
> 
> --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , 
> Adnan Doric  wrote:
> >
> > On 10/02/2010 23:14, s_hernandez01 wrote:
> > > Well, I'm using Flex 3 and the sandbox error pops up when I run it
> > > from Flex.
> > URL should be file:///something if you want it to work.
> >
> > You can also try to put a "*" in your crossdomain.xml and start from
> > there if it works.
> >
> 
> 
> 
> 
> 
> 
> --
> Alex Harui
> Flex SDK Team
> Adobe System, Inc.
> http://blogs.adobe.com/aharui
>




[flexcoders] Re: CROSS-DOMAIN POLICY HELP PLEASE!!!

2010-02-10 Thread s_hernandez01
Yup tried that and no luck either.  I even tried using

Security.loadPolicyFile("http://www.MyDomainName.com/crossdomain.xml";);

to push it to the flash player since I put the "*" in the cross domain and 
still keep getting the error.

--- In flexcoders@yahoogroups.com, Adnan Doric  wrote:
>
> On 10/02/2010 23:14, s_hernandez01 wrote:
> > Well, I'm using Flex 3 and the sandbox error pops up when I run it 
> > from Flex.
> URL should be file:///something if you want it to work.
> 
> You can also try to put a "*" in your crossdomain.xml and start from 
> there if it works.
>




[flexcoders] Re: CROSS-DOMAIN POLICY HELP PLEASE!!!

2010-02-10 Thread s_hernandez01
Well, I'm using Flex 3 and the sandbox error pops up when I run it from Flex.


--- In flexcoders@yahoogroups.com, Adnan Doric  wrote:
>
> http://localhost is considered as a domain.
> 
> If you want it to work, launch it directly from your Flash Builder. It 
> will create a rule for the folder containing the swf in order to bypass 
> the security.
> 
> 
> 
> On 10/02/2010 22:54, s_hernandez01 wrote:
> >
> > Yeah I thought of that too, but no success :( The Flex Project is 
> > setup with a PHP application server type. It's like if Flash Player is 
> > saying "hey this domain does not have access to get these images" but 
> > the thing is I'm not calling them from domain to domain, I'm calling 
> > them locally to a domain. It's really frustrating. Any other solutions?
> >
> > --- In flexcoders@yahoogroups.com 
> > <mailto:flexcoders%40yahoogroups.com>, Jake Churchill  
> > wrote:
> > >
> > > try manually loading the policy file:
> > >
> > > import flash.system.Security;
> > > ...
> > > Security.loadPolicyFile("http://domainname.com/crossdomain.xml 
> > <http://domainname.com/crossdomain.xml>");
> > >
> > > On Wed, Feb 10, 2010 at 3:06 PM, s_hernandez01 wrote:
> > >
> > > >
> > > >
> > > > I guess my question would be why would it give me a security 
> > sandbox error
> > > > when I'm running the app locally, wouldn't the sandbox error be 
> > executed
> > > > when you have your app on a webserver with no crossdomain.xml on 
> > the server
> > > > you're trying to access?
> > > >
> > > >
> > > > --- In flexcoders@yahoogroups.com 
> > <mailto:flexcoders%40yahoogroups.com> , Jake
> > > > Churchill  wrote:
> > > > >
> > > > > Looks like you are trying to access MyDomainName.com but your 
> > policy is
> > > > set
> > > > > for www.MyDomainName.com. Those are treated as separate domains even
> > > > though
> > > > > they are only sub domains.
> > > > >
> > > > > On Wed, Feb 10, 2010 at 2:35 PM, s_hernandez01 
> > wrote:
> > > >
> > > > >
> > > > > >
> > > > > >
> > > > > > Hey does anyone know why I get this error:
> > > > > >
> > > > > > SecurityError: Error #2122: Security sandbox violation:
> > > > BitmapData.draw:
> > > > > > http://localhost/beta/Test-debug/Test.swf 
> > <http://localhost/beta/Test-debug/Test.swf> cannot access
> > > > > > 
> > http://MyDomainName.com/beta/images-standard/backgrounds/paper.png. 
> > <http://MyDomainName.com/beta/images-standard/backgrounds/paper.png.> A
> > > > > > policy file is required, but the checkPolicyFile flag was not 
> > set when
> > > > this
> > > > > > media was loaded.
> > > > > > at flash.display::BitmapData/draw()
> > > > > >
> > > > > > I have the xml file "crossdomain.xml" on the root of my webserver:
> > > > > >
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > >
> > > > > > but when I run the app locally I always get this error. All 
> > I'm doing
> > > > is
> > > > > > trying to retreive images from my database. What more do I 
> > need to do?
> > > > > >
> > > > > > Thanks
> > > > > >
> > > > > > Sal
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > >
> > > >
> > > >
> > >
> >
>




[flexcoders] Re: CROSS-DOMAIN POLICY HELP PLEASE!!!

2010-02-10 Thread s_hernandez01
Yeah I thought of that too, but no success :(  The Flex Project is setup with a 
PHP application server type.  It's like if Flash Player is saying "hey this 
domain does not have access to get these images" but the thing is I'm not 
calling them from domain to domain,   I'm calling them locally to a domain. 
It's really frustrating. Any other solutions? 



--- In flexcoders@yahoogroups.com, Jake Churchill  wrote:
>
> try manually loading the policy file:
> 
> import flash.system.Security;
> ...
> Security.loadPolicyFile("http://domainname.com/crossdomain.xml";);
> 
> On Wed, Feb 10, 2010 at 3:06 PM, s_hernandez01 wrote:
> 
> >
> >
> > I guess my question would be why would it give me a security sandbox error
> > when I'm running the app locally, wouldn't the sandbox error be executed
> > when you have your app on a webserver with no crossdomain.xml on the server
> > you're trying to access?
> >
> >
> > --- In flexcoders@yahoogroups.com , Jake
> > Churchill  wrote:
> > >
> > > Looks like you are trying to access MyDomainName.com but your policy is
> > set
> > > for www.MyDomainName.com. Those are treated as separate domains even
> > though
> > > they are only sub domains.
> > >
> > > On Wed, Feb 10, 2010 at 2:35 PM, s_hernandez01 wrote:
> >
> > >
> > > >
> > > >
> > > > Hey does anyone know why I get this error:
> > > >
> > > > SecurityError: Error #2122: Security sandbox violation:
> > BitmapData.draw:
> > > > http://localhost/beta/Test-debug/Test.swf cannot access
> > > > http://MyDomainName.com/beta/images-standard/backgrounds/paper.png. A
> > > > policy file is required, but the checkPolicyFile flag was not set when
> > this
> > > > media was loaded.
> > > > at flash.display::BitmapData/draw()
> > > >
> > > > I have the xml file "crossdomain.xml" on the root of my webserver:
> > > >
> > > > 
> > > > 
> > > > 
> > > > 
> > > >
> > > > but when I run the app locally I always get this error. All I'm doing
> > is
> > > > trying to retreive images from my database. What more do I need to do?
> > > >
> > > > Thanks
> > > >
> > > > Sal
> > > >
> > > >
> > > >
> > >
> >
> >  
> >
>




[flexcoders] Re: CROSS-DOMAIN POLICY HELP PLEASE!!!

2010-02-10 Thread s_hernandez01
I guess my question would be why would it give me a security sandbox error when 
I'm running the app locally, wouldn't the sandbox error be executed when you 
have your app on a webserver with no crossdomain.xml on the server you're 
trying to access?



--- In flexcoders@yahoogroups.com, Jake Churchill  wrote:
>
> Looks like you are trying to access MyDomainName.com but your policy is set
> for www.MyDomainName.com.  Those are treated as separate domains even though
> they are only sub domains.
> 
> On Wed, Feb 10, 2010 at 2:35 PM, s_hernandez01 wrote:
> 
> >
> >
> > Hey does anyone know why I get this error:
> >
> > SecurityError: Error #2122: Security sandbox violation: BitmapData.draw:
> > http://localhost/beta/Test-debug/Test.swf cannot access
> > http://MyDomainName.com/beta/images-standard/backgrounds/paper.png. A
> > policy file is required, but the checkPolicyFile flag was not set when this
> > media was loaded.
> > at flash.display::BitmapData/draw()
> >
> > I have the xml file "crossdomain.xml" on the root of my webserver:
> >
> > 
> > 
> > 
> > 
> >
> > but when I run the app locally I always get this error. All I'm doing is
> > trying to retreive images from my database. What more do I need to do?
> >
> > Thanks
> >
> > Sal
> >
> >  
> >
>




[flexcoders] CROSS-DOMAIN POLICY HELP PLEASE!!!

2010-02-10 Thread s_hernandez01
Hey does anyone know why I get this error:

SecurityError: Error #2122: Security sandbox violation: BitmapData.draw: 
http://localhost/beta/Test-debug/Test.swf cannot access 
http://MyDomainName.com/beta/images-standard/backgrounds/paper.png. A policy 
file is required, but the checkPolicyFile flag was not set when this media was 
loaded.
at flash.display::BitmapData/draw()

I have the xml file "crossdomain.xml" on the root of my webserver:






but when I run the app locally I always get this error.  All I'm doing is 
trying to retreive images from my database.  What more do I need to do?


Thanks

Sal



[flexcoders] Security Sandbox Error Help

2010-02-09 Thread s_hernandez01
Quick question... If I'm developing a Flex app with php locally on my desktop,
is there a way to avoid getting this error:

SecurityError: Error #2122: Security sandbox violation: BitmapData.draw:..


What I'm doing is retrieving images from a mysql database on our web server and
populating them in a tilelist on flex. However, every time I do I get the error
above and I put a cross-domain policy file on the webroot of our server:



// CROSS-DOMAIN POLICY XML FILE









Any advice to avoid this error message running the app locally?



[flexcoders] Security Sandbox Error Help

2010-02-09 Thread s_hernandez01
Quick question... If I'm developing a Flex app with php locally on my desktop, 
is there a way to avoid getting this error:
 
SecurityError: Error #2122: Security sandbox violation: BitmapData.draw: 
http://localhost/beta/SwebappsTest-debug/SwebappsTest.swf cannot access 
http://swebapps.com/beta/images-standard/buttons/audio_btn.png. A policy file 
is required, but the checkPolicyFile flag was not set when this media was 
loaded.
 at flash.display::BitmapData/draw()
 at com.fusiox.ui::Reflection/drawReflection()[C:\Users\devteam\Documents\Flex 
Builder 3\SwebappsTest\com\fusiox\ui\Reflection.as:44]
 at 
Design::ButtonsPanel/___ButtonsPanel_Reflection1_enterFrame()[C:\Users\devteam\Documents\Flex
 Builder 3\SwebappsTest\Design\ButtonsPanel.mxml:219]
 
 
What I'm doing is retrieving images from a mysql database on our web server and 
populating them in a tilelist on flex.  However, every time I do I get the 
error above and I put a cross-domain policy file on the webroot of our server:
 


// CROSS-DOMAIN POLICY XML FILE
 

 



 
 
 
Any advice to avoid this error message running the app locally?




[flexcoders] Re: Manually Add Drag and Drop from a TileList

2010-01-26 Thread s_hernandez01
That's what I'm trying to avoid so I can do more with it. Instead of setting 
those properties to true, how do I create functions in actionscript that will 
perform the drag and drop.



--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> I'm not sure what you mean by "manually".  Just set dragEnabled=true and 
> dropEnabled=true
> 
> 
> On 1/26/10 9:21 AM, "s_hernandez01"  wrote:
> 
> 
> 
> 
> 
> 
> I'm trying to manually add Drag n Drop to a TileList container, but I need to 
> know how to set the Drag Initiator with the Drag Source.  Does anyone know if 
> I can do this by setting a dragStart event method on the TileList or do I 
> need to code a drag function in the Item Renderer of the TileList?  Please 
> give me an example.
> 
> Thanks
> 
> Sal
> 
> 
> 
> 
> 
> 
> --
> Alex Harui
> Flex SDK Team
> Adobe System, Inc.
> http://blogs.adobe.com/aharui
>




[flexcoders] Manually Add Drag and Drop from a TileList

2010-01-26 Thread s_hernandez01
I'm trying to manually add Drag n Drop to a TileList container, but I need to 
know how to set the Drag Initiator with the Drag Source.  Does anyone know if I 
can do this by setting a dragStart event method on the TileList or do I need to 
code a drag function in the Item Renderer of the TileList?  Please give me an 
example.

Thanks 

Sal



[flexcoders] Resize and Save an Image

2010-01-21 Thread s_hernandez01
Hey does anyone know if it's possible to resize and image in flex and save it 
to a mysql database so that I have say a 512x512 and a 60x60? If so, is there a 
tutorial out on the web somewhere? This is just to avoid having to resize it 
myself manually when I receive the 512x512.



[flexcoders] Localizing Flex App Demos

2009-12-23 Thread s_hernandez01
Does anyone know any links that demos and gives a tutorial of an API from 
google, yahoo, or whoever on localizing a flex app with many languages?

-Sal



[flexcoders] Re: how to open pdf, word file using flex

2009-12-23 Thread s_hernandez01
If you just want to open a pdf file inside Flex it is possible, however, you 
would have to put the .pdf file on your webserver and call it with the url.  
AIR will automatically load the pdf using the HTML component.  In Flex, you 
could use the navigateToURL request to open it up in a new browser window or if 
you want to open it up inside Flex, try using a iFrame:

http://raghuonflex.wordpress.com/2006/12/07/flex-i-frame/

As for opening up a word doc you can use AIR to do this just simply create a 
URLRequest that calls it from the user's local file system:

public function clickButton():void{
var request : URLRequest = new URLRequest('C:\\projects\\test.doc');
navigateToURL(request )   
}

Hope this helps

Regards

Sal



--- In flexcoders@yahoogroups.com, "vikranth4u"  wrote:
>
> Hi
>  can anybody help me regarding how to write a code to open a pdf or doc file 
> using flex
>




[flexcoders] Re: addItem Trouble with TileList

2009-12-23 Thread s_hernandez01
Thanks again TH it works great I just adjusted it to an if..else.. conditional 
statement to avoid it still adding the duplicate to the tiles on the right.  
Appreciate it!

-Sal

--- In flexcoders@yahoogroups.com, "turbo_vb"  wrote:
>
> If you need to check dups for other reasons that would work fine.  but,
> if you just need it for this particular use-case, this is simpler:
> 
> public function addButton():void
> 
> {
> 
> 
>   if ( dataRight.getItemIndex( rightTiles.selectedItem ) != -1 )
> Alert.show( "Already exists" );
> 
> 
> 
> 
> 
>   dataRight.addItem( rightTiles.selectedItem );
> 
> }
> 
> 
> 
> 
> -TH
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "s_hernandez01" 
> wrote:
> >
> > What about if I wanted to check for duplicates so that it will remind
> the user that this button already exists on the right?  I came up with
> something like this, but doesn't work:
> >
> > public function addButton():void{
> > dataRight.addItem(rightTiles.selectedItem);
> > checkDuplicates();
> >}
> >
> >public function checkDuplicates():void{
> > for(var i:int=0; i < dataRight.length; i++){
> >  if(dataLeft[i].id==dataRight[i].id){
> >   Alert.show("Already exists");
> >  }
> > }
> >}
> >
> > -Sal
> >
> > --- In flexcoders@yahoogroups.com, "s_hernandez01" s_hernandez01@
> wrote:
> > >
> > > hey thanks TH, i knew it was something with one line of code. You
> rock! This was driving me nuts.
> > >
> > > Sal
> > >
> > > --- In flexcoders@yahoogroups.com, "turbo_vb"  wrote:
> > > >
> > > > Because guys like Gordon are here, I'll also say that Instantiate
> is the correct word; instead of initialize. :)
> > > >
> > > > -TH
> > > >
> > > > --- In flexcoders@yahoogroups.com, "turbo_vb"  wrote:
> > > > >
> > > > > Man, I always forget at least one thing.   You also need to
> initialize
> > > > > the second ArrayCollection().
> > > > >
> > > > >
> > > > > [Bindable] public var dataRight:ArrayCollection= new
> ArrayCollection();
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > Might want to give the itemRenderer a background, so that the
> double
> > > > > clicks will be triggered on the entire area.
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > -TH
> > > > >
> > > > >
> > > > >
> > > > > --- In flexcoders@yahoogroups.com, "turbo_vb"  wrote:
> > > > > >
> > > > > >
> > > > > > Hey Sal,
> > > > > > minor tweaks:
> > > > > >
> > > > > > public function addButton():void
> > > > > >
> > > > > > {
> > > > > >
> > > > > > dataRight.addItem( rightTiles.selectedItem );
> > > > > >
> > > > > > }
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > and:
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >  > > > > >
> > > > > > url="buttonData.xml"
> > > > > >
> > > > > > useProxy="false"
> > > > > >
> > > > > > result="handleQueryResult(event)"
> > > > > >
> > > > > > showBusyCursor="true"
> > > > > >
> > > > > > resultFormat="object"/>
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > -TH
> > > > > >
> > > > > >
> > > > > >
> > > > > > --- In flexcoders@yahoogroups.com, "s_hernandez01"
> s_hernandez01@
> > > > > > wrote:
> > > > > > >
> > > > > > > I am having trouble understanding the addItem method in AS3
> with
> > > > > Flex.
> > > >

[flexcoders] Re: addItem Trouble with TileList

2009-12-23 Thread s_hernandez01
What about if I wanted to check for duplicates so that it will remind the user 
that this button already exists on the right?  I came up with something like 
this, but doesn't work:

public function addButton():void{
dataRight.addItem(rightTiles.selectedItem);
checkDuplicates();
}

public function checkDuplicates():void{
for(var i:int=0; i < dataRight.length; i++){
if(dataLeft[i].id==dataRight[i].id){
Alert.show("Already exists");
}
}
}

-Sal

--- In flexcoders@yahoogroups.com, "s_hernandez01"  wrote:
>
> hey thanks TH, i knew it was something with one line of code. You rock! This 
> was driving me nuts.
> 
> Sal
> 
> --- In flexcoders@yahoogroups.com, "turbo_vb"  wrote:
> >
> > Because guys like Gordon are here, I'll also say that Instantiate is the 
> > correct word; instead of initialize. :)
> > 
> > -TH
> > 
> > --- In flexcoders@yahoogroups.com, "turbo_vb"  wrote:
> > >
> > > Man, I always forget at least one thing.   You also need to initialize
> > > the second ArrayCollection().
> > > 
> > > 
> > > [Bindable] public var dataRight:ArrayCollection= new ArrayCollection();
> > > 
> > > 
> > > 
> > > 
> > > Might want to give the itemRenderer a background, so that the double
> > > clicks will be triggered on the entire area.
> > > 
> > > 
> > > 
> > > 
> > > 
> > > -TH
> > > 
> > > 
> > > 
> > > --- In flexcoders@yahoogroups.com, "turbo_vb"  wrote:
> > > >
> > > >
> > > > Hey Sal,
> > > > minor tweaks:
> > > >
> > > > public function addButton():void
> > > >
> > > > {
> > > >
> > > > dataRight.addItem( rightTiles.selectedItem );
> > > >
> > > > }
> > > >
> > > >
> > > >
> > > >
> > > > and:
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >  > > >
> > > > url="buttonData.xml"
> > > >
> > > > useProxy="false"
> > > >
> > > > result="handleQueryResult(event)"
> > > >
> > > > showBusyCursor="true"
> > > >
> > > > resultFormat="object"/>
> > > >
> > > >
> > > >
> > > >
> > > > -TH
> > > >
> > > >
> > > >
> > > > --- In flexcoders@yahoogroups.com, "s_hernandez01" s_hernandez01@
> > > > wrote:
> > > > >
> > > > > I am having trouble understanding the addItem method in AS3 with
> > > Flex.
> > > > I'm trying to simply add the item renderer with all it's data from
> > > > tilelist to tilelist.  I'm using two arraycollections to do the
> > > transfer
> > > > and the data is being populated through an xml file.  I know it's just
> > > > maybe 2 or 3 lines of code that I probably need, but can someone help
> > > > me, please?  Thanks
> > > > >
> > > > >
> > > > > // SAMPLE XML FILE
> > > > >
> > > > > 
> > > > > 
> > > > > btnSkins/action_btn.png
> > > > > 10
> > > > > 
> > > > > 
> > > > > btnSkins/awards_btn.png
> > > > >  15
> > > > > 
> > > > > 
> > > > > btnSkins/beer_btn.png
> > > > >  20
> > > > > 
> > > > > 
> > > > > btnSkins/blog_btn.png
> > > > >  25
> > > > > 
> > > > > 
> > > > >
> > > > >
> > > > > // MAIN FILE
> > > > >
> > > > > 
> > > > > http://www.adobe.com/2006/mxml";
> > > > layout="horizontal" creationComplete="btnSrv.send()">
> > > > >
> > > > >  
> > > > >   
> > > > >  
> > > > >
> > > > >   > > > >   result="handleQueryResult(event)" showBusyCursor="true"/>
> > > > >
> > > > >   > > > dataProvider="{dataLeft}" itemRenderer="ipodThumb" columnWidth="94"
> > > > rowHeight="80"
> > > > >   doubleClickEnabled="true" doubleClick="addButton()"/>
> > > > >
> > > > >   > > > dataProvider="{dataRight}" itemRenderer="ipodThumb" columnWidth="94"
> > > > rowHeight="80"/>
> > > > > 
> > > > >
> > > > >
> > > > > // ITEM RENDERER
> > > > >
> > > > > 
> > > > > http://www.adobe.com/2006/mxml"; width="108"
> > > > height="83">
> > > > >
> > > > >   > > > horizontalAlign="center" right="5" bottom="0" left="5" top="0"/>
> > > > >
> > > > > 
> > > > >
> > > >
> > >
> >
>




[flexcoders] Re: addItem Trouble with TileList

2009-12-23 Thread s_hernandez01
hey thanks TH, i knew it was something with one line of code. You rock! This 
was driving me nuts.

Sal

--- In flexcoders@yahoogroups.com, "turbo_vb"  wrote:
>
> Because guys like Gordon are here, I'll also say that Instantiate is the 
> correct word; instead of initialize. :)
> 
> -TH
> 
> --- In flexcoders@yahoogroups.com, "turbo_vb"  wrote:
> >
> > Man, I always forget at least one thing.   You also need to initialize
> > the second ArrayCollection().
> > 
> > 
> > [Bindable] public var dataRight:ArrayCollection= new ArrayCollection();
> > 
> > 
> > 
> > 
> > Might want to give the itemRenderer a background, so that the double
> > clicks will be triggered on the entire area.
> > 
> > 
> > 
> > 
> > 
> > -TH
> > 
> > 
> > 
> > --- In flexcoders@yahoogroups.com, "turbo_vb"  wrote:
> > >
> > >
> > > Hey Sal,
> > > minor tweaks:
> > >
> > > public function addButton():void
> > >
> > > {
> > >
> > > dataRight.addItem( rightTiles.selectedItem );
> > >
> > > }
> > >
> > >
> > >
> > >
> > > and:
> > >
> > >
> > >
> > >
> > >
> > >
> > >  > >
> > > url="buttonData.xml"
> > >
> > > useProxy="false"
> > >
> > > result="handleQueryResult(event)"
> > >
> > > showBusyCursor="true"
> > >
> > > resultFormat="object"/>
> > >
> > >
> > >
> > >
> > > -TH
> > >
> > >
> > >
> > > --- In flexcoders@yahoogroups.com, "s_hernandez01" s_hernandez01@
> > > wrote:
> > > >
> > > > I am having trouble understanding the addItem method in AS3 with
> > Flex.
> > > I'm trying to simply add the item renderer with all it's data from
> > > tilelist to tilelist.  I'm using two arraycollections to do the
> > transfer
> > > and the data is being populated through an xml file.  I know it's just
> > > maybe 2 or 3 lines of code that I probably need, but can someone help
> > > me, please?  Thanks
> > > >
> > > >
> > > > // SAMPLE XML FILE
> > > >
> > > > 
> > > > 
> > > > btnSkins/action_btn.png
> > > > 10
> > > > 
> > > > 
> > > > btnSkins/awards_btn.png
> > > >  15
> > > > 
> > > > 
> > > > btnSkins/beer_btn.png
> > > >  20
> > > > 
> > > > 
> > > > btnSkins/blog_btn.png
> > > >  25
> > > > 
> > > > 
> > > >
> > > >
> > > > // MAIN FILE
> > > >
> > > > 
> > > > http://www.adobe.com/2006/mxml";
> > > layout="horizontal" creationComplete="btnSrv.send()">
> > > >
> > > >  
> > > >   
> > > >  
> > > >
> > > >   > > >   result="handleQueryResult(event)" showBusyCursor="true"/>
> > > >
> > > >   > > dataProvider="{dataLeft}" itemRenderer="ipodThumb" columnWidth="94"
> > > rowHeight="80"
> > > >   doubleClickEnabled="true" doubleClick="addButton()"/>
> > > >
> > > >   > > dataProvider="{dataRight}" itemRenderer="ipodThumb" columnWidth="94"
> > > rowHeight="80"/>
> > > > 
> > > >
> > > >
> > > > // ITEM RENDERER
> > > >
> > > > 
> > > > http://www.adobe.com/2006/mxml"; width="108"
> > > height="83">
> > > >
> > > >   > > horizontalAlign="center" right="5" bottom="0" left="5" top="0"/>
> > > >
> > > > 
> > > >
> > >
> >
>




[flexcoders] addItem Trouble with TileList

2009-12-22 Thread s_hernandez01
I am having trouble understanding the addItem method in AS3 with Flex.  I'm 
trying to simply add the item renderer with all it's data from tilelist to 
tilelist.  I'm using two arraycollections to do the transfer and the data is 
being populated through an xml file.  I know it's just maybe 2 or 3 lines of 
code that I probably need, but can someone help me, please?  Thanks


// SAMPLE XML FILE



btnSkins/action_btn.png
10


btnSkins/awards_btn.png
15


btnSkins/beer_btn.png
20


btnSkins/blog_btn.png
25




// MAIN FILE


http://www.adobe.com/2006/mxml"; layout="horizontal" 
creationComplete="btnSrv.send()">













// ITEM RENDERER


http://www.adobe.com/2006/mxml"; width="108" height="83">







[flexcoders] AS3 Error Code! Why?

2009-12-16 Thread s_hernandez01
I am building an app where a user can insert an image from their local file 
system, but I get an error with the .load() method from the FileReference 
class.  Don't really know why.

Errors 2 items:
1061:  Call to possibly undefined method load through a reference with static 
type flash.net:FileReference.
1119:  Access of possibly undefined property data through a reference with 
static type flash.net:FileReference.


I am using the latest 3.5 SDK which I thought would take care of it, but 
didn't.  Anyone have any tips on what I need to change or add?

Thanks



http://www.adobe.com/2006/mxml"; layout="vertical" 
verticalAlign="middle"> 



 


 

 






[flexcoders] HistoryManagement Trouble

2007-02-08 Thread s_hernandez01
Okay this is may sound weird, but Flex 2.0 automatically enables the
HistoryManagement to the accordion, tabNavigator, and viewstack
components.  However, when I run the app using Internet Explorer 7 the
browser back button does not light up to go back, BUT when I run the
app on Firefox 1.5 IT WORKS! Why is that? Can anyone give me some advice?

Thanks
Sal



[flexcoders] Dragging Custom Components?

2007-01-08 Thread s_hernandez01
Hey all, I have a datagrid and I put a custom component of a button on
one column.  The problem I have is setting the drag initiator... I
programmed an AS3 function to set the initiator and when I insert the
mouseDown property to call the function I get the error "Call to a
possibly undefined method dragIt."  Why am I getting this error when I
have the function coded inside the app component and I have no
spelling errors?  Here is a sample of my code for better understanding.

Regards
Sal








  

   




   






[Junk E-Mail - LOW] [flexcoders] Re: IFrame Troubles

2006-11-27 Thread s_hernandez01
Ahh, I understand now.  Thanks guys this was really helpful!

-Sal

--- In flexcoders@yahoogroups.com, "Shannon Hicks" <[EMAIL PROTECTED]> wrote:
>
> You'll always have to change the HTML wrapper... you can't do IFrames
> actually having an IFrame in your HTML.
>  
> Shan
> 
>   _  
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of s_hernandez01
> Sent: Monday, November 27, 2006 10:25 AM
> To: flexcoders@yahoogroups.com
> Subject: [Junk E-Mail - LOW] [flexcoders] Re: IFrame Troubles
> 
> 
> 
> Hey Brian, so would I have to deselect the wrapper in my own project
> and then update my html file in my project with your code? There's no
> way I can just call it externally like an external component?
> 
> --- In [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com>
ups.com,
> "Brian Deitte"  wrote:
> >
> > Hi Sal, did my response on my blog make any sense? I think the issue
> > you are running into is that you need to have your HTML updated in
your
> > own project. With this change, you can then copy and paste the code
> > into the project. You'll need to make the following changes, taking
> > them from IFrameDemo.html:
> > 
> > 1. wmode set to opaque
> > 2. the moveIFrame,hideIFrame,showIFrame,loadIFrame methods
> > 3. the 'myFrame' div
> > 
> > 
> > 
> > ____
> > 
> > From: [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com>
ups.com
> > [mailto:[EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com>
ups.com]
> On Behalf Of s_hernandez01
> > Sent: Monday, November 27, 2006 9:40 AM
> > To: [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com> ups.com
> > Subject: [flexcoders] IFrame Troubles
> > 
> > 
> > 
> > Hey there, I recently downloaded the IFrame created by
> > Christophe
> > Coenraets. However, his version is from 1.5 so I used the
> > updated
> > version by Deitte
> > (http://www.deitte.
> <http://www.deitte.com/archives/2006/08/finally_updated.htm>
> com/archives/2006/08/finally_updated.htm
> > <http://www.deitte.
> <http://www.deitte.com/archives/2006/08/finally_updated.htm>
> com/archives/2006/08/finally_updated.htm> ). Now, I
> > tried copying and pasting the code in an app that I already
> > created,
> > but that method did not work, it seems that the only way it will
> > work
> > is using the already designed app for the IFrame. So, my
> > question is
> > how do I call an app within an app in Flex 2.0? Similar to the
> > way
> > you call an external component, I want to call an external app
> > that is
> > in my project foler. Any advice to this problem or any solutions
> > on a
> > different approach would be great. Thanks everyone.
> > 
> > -Sal
> >
>




[flexcoders] Re: IFrame Troubles

2006-11-27 Thread s_hernandez01
Hey Brian, so would I have to deselect the wrapper in my own project
and then update my html file in my project with your code?  There's no
way I can just call it externally like an external component?

--- In flexcoders@yahoogroups.com, "Brian Deitte" <[EMAIL PROTECTED]> wrote:
>
> Hi Sal, did my response on my blog make any sense?  I think the issue
> you are running into is that you need to have your HTML updated in your
> own project.  With this change, you can then copy and paste the code
> into the project.  You'll need to make the following changes, taking
> them from IFrameDemo.html:
>  
> 1. wmode set to opaque
> 2. the moveIFrame,hideIFrame,showIFrame,loadIFrame methods
> 3. the 'myFrame' div
> 
>  
> 
> 
> 
>   From: flexcoders@yahoogroups.com
> [mailto:[EMAIL PROTECTED] On Behalf Of s_hernandez01
>   Sent: Monday, November 27, 2006 9:40 AM
>   To: flexcoders@yahoogroups.com
>   Subject: [flexcoders] IFrame Troubles
>   
>   
> 
>   Hey there, I recently downloaded the IFrame created by
> Christophe
>   Coenraets. However, his version is from 1.5 so I used the
> updated
>   version by Deitte
>   (http://www.deitte.com/archives/2006/08/finally_updated.htm
> <http://www.deitte.com/archives/2006/08/finally_updated.htm> ). Now, I
>   tried copying and pasting the code in an app that I already
> created,
>   but that method did not work, it seems that the only way it will
> work
>   is using the already designed app for the IFrame. So, my
> question is
>   how do I call an app within an app in Flex 2.0? Similar to the
> way
>   you call an external component, I want to call an external app
> that is
>   in my project foler. Any advice to this problem or any solutions
> on a
>   different approach would be great. Thanks everyone.
>   
>   -Sal
>




[flexcoders] IFrame Troubles

2006-11-27 Thread s_hernandez01
Hey there, I recently downloaded the IFrame created by Christophe
Coenraets.  However, his version is from 1.5 so I used the updated
version by Deitte
(http://www.deitte.com/archives/2006/08/finally_updated.htm).  Now, I
tried copying and pasting the code in an app that I already created,
but that method did not work, it seems that the only way it will work
is using the already designed app for the IFrame.  So, my question is
how do I call an app within an app in Flex 2.0?  Similar to the way
you call an external component, I want to call an external app that is
in my project foler.  Any advice to this problem or any solutions on a
different approach would be great. Thanks everyone.

-Sal



[flexcoders] Re: Changing Themes

2006-11-16 Thread s_hernandez01
Hey Nate

I would just copy and paste any of those css files and paste them into
one of your workspace's project folders.  Then, just import the css
stlye by using the style tag and setting the directory, you will see
the difference in the component styles.

http://www.adobe.com/2006/mxml";
layout="absolute" xmlns="*">






-Sal

--- In flexcoders@yahoogroups.com, "nathanpdaniel" <[EMAIL PROTECTED]> wrote:
>
> I was searching the SDK files last night and noticed there are 
> several "themes" (in the theme folder.. :D) - how do I load a theme 
> and use it?  I searched the config files to see if it's in there - no 
> luck though... thanks! -nate
>





[flexcoders] Re: Event Listener Help!!!

2006-11-03 Thread s_hernandez01
Thanks everyone, all your advise was really helpful and the function
is working like I want it to! Much props, thanks again! 

-Sal

--- In flexcoders@yahoogroups.com, "Dustin Mercer" <[EMAIL PROTECTED]>
wrote:
>
> There is some inefficiencies in this code, but this does work and its
> code to help you get started. 
> 
>  
> 
> 
> 
> http://www.adobe.com/2006/mxml";
> layout="vertical"
> 
> creationComplete="doCreationComplete();">
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  height="100%" editable="true">
> 
> 
> 
>  />
> 
> 
> 
>  editorDataField="value">
> 
> 
> 
>  
> 
> 
>  
> 
> 
>  
> 
> 
>  
> 
> 
>  
> 
> 
>  
> 
> 
>  
> 
> 
> 
> 
> 
> 
>  />
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of s_hernandez01
> Sent: Thursday, November 02, 2006 1:49 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Event Listener Help!!!
> 
>  
> 
> Thanks guys, I believe I would want the total to update itself as the
> user is changing the quantity, and not when they finish editing, but
> it's a temporary solution though. I didn't think about the editing
> part since I was stressing on the change event. If anyone else knows
> how I can code up the change event to my ArrayCollection in a datagrid
> so that the total gets updated promptly, PLEASE PLEASE PLEASE HELP ME!!!
> 
> 
> -Sal
> 
> --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> , "Doug Lowder"  wrote:
> >
> > You can use the grid's itemEditEnd handler to update the total after 
> > the user has finished editing the item. Also, set the grid's 
> > editable property to true and each column's editable property as 
> > desired.
> > 
> > If you want to actively track changes to the editor as the user 
> > makes them instead of after the user has finished editing the item, 
> > you may need to break the NumericStepper out as a component, and use 
> > the change event to trigger your function.
> > 
> >  > textAlign="center"
> > itemEditEnd="callLater(calculateTotal)">
> > 
> >  > editable="false"/>
> >  > dataField="qty" 
> > rendererIsEditor="true" 
> > itemRenderer="mx.controls.NumericStepper" editorDataField="value"/>
> >  > editable="false"/>
> > 
> > 
> > 
> > 
> > --- In flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com> , "s_hernandez01" 
> >  wrote:
> > >
> > > Can anyone tell me how I can get my event listener to update the 
> > total
> > > when the quantity is changed using the numericStepper inside a 
> > datagrid? 
> > > 
> > > Thanks
> > > 
> > > Sal
> > > 
> > > http://www.adobe.com/2006/mxml
> <http://www.adobe.com/2006/mxml> "
> > > layout="absolute" xmlns="*" creationComplete="calculateTotal()">
> > > 
> > > 
> > > [Bindable]
> > > public var total:Number=0;
> > > [Bindable]
> > > public var numProducts:int=0;
> > > [Bindable]
> > > public var myDP:ArrayCollection = new ArrayCollection();
> > > 
> > > public function calculateTotal():void{
> > > var t:Number = 0;
> > > var n:Number = 0;
> > > for(var i:int = 0; i < myDP.length; i++){
> > > n += myDP[i].qty;
> > > t += myDP[i].price * myDP[i].qty;
> > > }
> > > total = t;
> > > numProducts = n;
> > > }
> > > 
> > > public function qtyChangeListener():void{
> > > qtyChanger.addEventListener("change", calculateTotal);
> > > }
> > > 
> > > 
> > > 
> > > 
> > >  > > rendererIsEditor="true" itemRenderer="mx.controls.NumericStepper"
> > > editorDataField="value"/>
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > >
> >
>





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

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

<*> Your email settings:
Individual Email | Traditional

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

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

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

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



[flexcoders] Re: Event Listener Help!!!

2006-11-02 Thread s_hernandez01
Thanks guys, I believe I would want the total to update itself as the
user is changing the quantity, and not when they finish editing, but
it's a temporary solution though.  I didn't think about the editing
part since I was stressing on the change event. If anyone else knows
how I can code up the change event to my ArrayCollection in a datagrid
so that the total gets updated promptly, PLEASE PLEASE PLEASE HELP ME!!! 

-Sal


--- In flexcoders@yahoogroups.com, "Doug Lowder" <[EMAIL PROTECTED]> wrote:
>
> You can use the grid's itemEditEnd handler to update the total after 
> the user has finished editing the item.  Also, set the grid's 
> editable property to true and each column's editable property as 
> desired.
> 
> If you want to actively track changes to the editor as the user 
> makes them instead of after the user has finished editing the item, 
> you may need to break the NumericStepper out as a component, and use 
> the change event to trigger your function.
> 
>  textAlign="center"
> itemEditEnd="callLater(calculateTotal)">
> 
>  editable="false"/>
>  dataField="qty" 
> rendererIsEditor="true" 
> itemRenderer="mx.controls.NumericStepper" editorDataField="value"/>
>  editable="false"/>
> 
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "s_hernandez01" 
>  wrote:
> >
> > Can anyone tell me how I can get my event listener to update the 
> total
> > when the quantity is changed using the numericStepper inside a 
> datagrid?  
> > 
> > Thanks
> > 
> > Sal
> > 
> > http://www.adobe.com/2006/mxml";
> > layout="absolute" xmlns="*" creationComplete="calculateTotal()">
> > 
> > 
> > [Bindable]
> > public var total:Number=0;
> > [Bindable]
> > public var numProducts:int=0;
> > [Bindable]
> > public var myDP:ArrayCollection = new ArrayCollection();
> > 
> > public function calculateTotal():void{
> > var t:Number = 0;
> > var n:Number = 0;
> > for(var i:int = 0; i < myDP.length; i++){
> > n += myDP[i].qty;
> > t += myDP[i].price * myDP[i].qty;
> > }
> > total = t;
> > numProducts = n;
> > }
> > 
> > public function qtyChangeListener():void{
> > qtyChanger.addEventListener("change", calculateTotal);
> > }
> > 
> > 
> > 
> > 
> >  > rendererIsEditor="true" itemRenderer="mx.controls.NumericStepper"
> > editorDataField="value"/>
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
>





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

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

<*> Your email settings:
Individual Email | Traditional

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

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

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

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



[flexcoders] Event Listener Help!!!

2006-11-02 Thread s_hernandez01
Can anyone tell me how I can get my event listener to update the total
when the quantity is changed using the numericStepper inside a datagrid?  

Thanks

Sal

http://www.adobe.com/2006/mxml";
layout="absolute" xmlns="*" creationComplete="calculateTotal()">


[Bindable]
public var total:Number=0;
[Bindable]
public var numProducts:int=0;
[Bindable]
public var myDP:ArrayCollection = new ArrayCollection();

public function calculateTotal():void{
var t:Number = 0;
var n:Number = 0;
for(var i:int = 0; i < myDP.length; i++){
n += myDP[i].qty;
t += myDP[i].price * myDP[i].qty;
}
total = t;
numProducts = n;
}

public function qtyChangeListener():void{
qtyChanger.addEventListener("change", calculateTotal);
}
















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

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

<*> Your email settings:
Individual Email | Traditional

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

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

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

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



[flexcoders] Re: Datagrid Change Function

2006-10-26 Thread s_hernandez01
So I take it that the listener would have to be an conditional "for"
function?  How would I assign the listener to the datagrid? Would I
place it in the "datagrid" property or the "datagrid column" property?  



--- In flexcoders@yahoogroups.com, "Dustin Mercer" <[EMAIL PROTECTED]>
wrote:
>
> What you could do... if your myDP is an ArrayCollection or one of the
> collection classes you could add a listener to the change event.  That
> way any time the dataProvider changes (the change event on the
> Collection itself can let you know if an item was added, removed or
> updated) you can recalculate the totals.  That way your total will
> always be in synch with your data without having to manually recalculate
> the total. 
> 
>  
> 
> ____
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of s_hernandez01
> Sent: Wednesday, October 25, 2006 3:14 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Datagrid Change Function
> 
>  
> 
> Hey Flexers 
> 
> I created a datagrid to represent a shopping cart. Now, I'm having a
> problem updating the total when the quantity is changed. Right now it
> just gives the total because I have the quantity set to 1, but if the
> users types in a different quantity I want it to update the total. If
> anybody has any suggestions, I'd appreciate it. Below is my calculate
> function and my datagrid. 
> 
> Thanks
> Sal
> 
> public function calculateTotal():void{
> var t:Number = 0;
> var n:Number = 0;
> for(var i:int = 0; i < myDP.length; i++){
> n += myDP[i].qty;
> t += myDP[i].price * myDP[i].qty;
> }
> total = t;
> numProducts = n;
> }
> 
>  textAlign="center" id="cartGrid">
> 
>  rendererIsEditor="true" dataField="qty"
> itemRenderer="mx.controls.TextInput" editorDataField="value"
> width="24"/>
>  dataField="price" labelFunction="myLabelFunction"/>
> 
> 
> 
>





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

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

<*> Your email settings:
Individual Email | Traditional

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

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

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

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



[flexcoders] Datagrid Change Function

2006-10-25 Thread s_hernandez01
Hey Flexers 

I created a datagrid to represent a shopping cart. Now, I'm having a
problem updating the total when the quantity is changed.  Right now it
just gives the total because I have the quantity set to 1, but if the
users types in a different quantity I want it to update the total.  If
anybody has any suggestions, I'd appreciate it.  Below is my calculate
function and my datagrid. 

Thanks
Sal


public function calculateTotal():void{
var t:Number = 0;
var n:Number = 0;
for(var i:int = 0; i < myDP.length; i++){
n += myDP[i].qty;
t += myDP[i].price * myDP[i].qty;
}
total = t;
numProducts = n;
}












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

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

<*> Your email settings:
Individual Email | Traditional

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

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

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

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



[flexcoders] Re: Drag n Drop between 2 Datagrids

2006-10-04 Thread s_hernandez01
Yes, I know that way but just coding dragEnabled=true and
dropEnabled=true will only carry an object over, and I need it to drag
n drop over to the other datagrid with a dragSource because I have a
total calculating all the prices that get dropped in. The only way of
doing this, is using the DragManager with a dragSource and dropSource
functionality.  Somebody please help me with this actionscript 3 coding.

-Sal

--- In flexcoders@yahoogroups.com, "Igor Costa" <[EMAIL PROTECTED]> wrote:
>
> Yeah man it's simple way
> 
> here you could also do.
> 
> 
> just create two datagrids than, using the property in the first one,
> dragEnabled=true and in the second one you could do, dropEnabled=true
> 
> Than worked.
> 
> here a short example
> 
> 
> http://www.adobe.com/2006/mxml";
layout="absolute">
> 
> 
> 
> 
> 
>  y="10">
>  
> allowMultipleSelection="true" dataProvider="{meugrid.item}"
> width="100%" height="100%">
> 
> 
>  dataField="produto" editable="false"/>
>  editable="false"/>
>  editable="false">
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  allowDragSelection="true" x="234" y="23">
> 
>  dataField="produto"/>
>  dataField="preco"/>
>  dataField="quant"/>
> 
> 
>  title="Itens escolhidos">
>  allowDragSelection="true" x="0" y="0"/>
> 
> 
> 
> 
> 
> 
> Regards
> 
> 
> On 10/3/06, s_hernandez01 <[EMAIL PROTECTED]> wrote:
> >
> >   Would anyone have any source code on how to drag n drop between 2
> > datagrids using the Drag Manager?
> >
> > -Sal
> >
> >  
> >
> 
> 
> 
> -- 
> 
> Igor Costa
> www.igorcosta.com
>






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

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

<*> Your email settings:
Individual Email | Traditional

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

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

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

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




[flexcoders] Drag n Drop between 2 Datagrids

2006-10-03 Thread s_hernandez01
Would anyone have any source code on how to drag n drop between 2
datagrids using the Drag Manager?

-Sal





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

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

<*> Your email settings:
Individual Email | Traditional

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

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

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

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





[flexcoders] Re: Tree Help Please

2006-09-29 Thread s_hernandez01
The function did not work, Tracy, perhaps because I coded the tree in
flex using xml.  Do you have another approach?

-Sal


--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> Try:
> 
> if(productTree.selectedItem.label == "Folder 1")
> 
>  
> 
> Do you see why?
> 
>  
> 
> Tracy
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of s_hernandez01
> Sent: Thursday, September 28, 2006 5:48 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Tree Help Please
> 
>  
> 
> Would anyone know how to write actionscript telling Flex to call up an
> index in a ViewStack using a tree whose folders are coded in xml? 
> Here is something of what I want the code to say, but I can't get
> passed the errors. 
> 
> For example: 
> if(productTree.selectedItem == "Folder 1"){
> viewstack.selectedIndex=0;
> }
> else if(productTree.selectedItem == "Folder 2"){
> viewstack.selectedIndex=1;
> }
> 
> Below is how my tree is coded:
> 
>  fontSize="10" fontWeight="bold" showRoot="false" 
> height="100%">
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>







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

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

<*> Your email settings:
Individual Email | Traditional

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

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

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

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




[flexcoders] Tree Help Please

2006-09-28 Thread s_hernandez01
Would anyone know how to write actionscript telling Flex to call up an
index in a ViewStack using a tree whose folders are coded in xml? 
Here is something of what I want the code to say, but I can't get
passed the errors.  

For example:  
if(productTree.selectedItem == "Folder 1"){
viewstack.selectedIndex=0;
}
else if(productTree.selectedItem == "Folder 2"){
viewstack.selectedIndex=1;
}

Below is how my tree is coded:






















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

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

<*> Your email settings:
Individual Email | Traditional

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

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

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

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





[flexcoders] Re: Search Engine

2006-09-22 Thread s_hernandez01
No, I created a catalog in my app with a lot of products and I want to
create a search box where if they type in a part number flex can
retrieve that part number and display the details for that product. 
In addition, if they type in a category in the search box all the
items related to that category will appear.

-Sal


--- In flexcoders@yahoogroups.com, Tom Chiverton <[EMAIL PROTECTED]>
wrote:
>
> On Thursday 21 September 2006 15:02, s_hernandez01 wrote:
> > A search engine for what items I have in my app.  There's no database
> > connected yet, everything is being called locally.  However, in the
> > future I do plan to be calling from a database using coldfusion.
> 
> :points at google
> You mean like that ?
> 
> -- 
> Tom Chiverton
> Helping to administratively evolve holistic infrastructures
> 
> 
> 
> This email is sent for and on behalf of Halliwells LLP.
> 
> Halliwells LLP is a limited liability partnership registered in
England and Wales under registered number OC307980 whose registered
office address is at St James's Court Brown Street Manchester M2 2JF.
 A list of members is available for inspection at the registered
office. Any reference to a partner in relation to Halliwells LLP means
a member of Halliwells LLP. Regulated by the Law Society.
> 
> CONFIDENTIALITY
> 
> This email is intended only for the use of the addressee named above
and may be confidential or legally privileged.  If you are not the
addressee you must not read it and must not use any information
contained in nor copy it nor inform any person other than Halliwells
LLP or the addressee of its existence or contents.  If you have
received this email in error please delete it and notify Halliwells
LLP IT Department on 0870 365 8008.
> 
> For more information about Halliwells LLP visit www.halliwells.com.
>







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

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

<*> Your email settings:
Individual Email | Traditional

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

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

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

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




[flexcoders] Re: currencyformatter

2006-09-21 Thread s_hernandez01
Thanks Anatole, worked out great...appreciate it

-Sal


--- In flexcoders@yahoogroups.com, "Anatole Tartakovsky"
<[EMAIL PROTECTED]> wrote:
>
> var formatter:CurrencyFormatter = null;
> public function return function (item:Object,
dgc:DataGridColumn):String {
>  if (formatter == null) {
>   formatter = new CurrencyFormatter();
>   CurrencyFormatter(formatter).precision=2;
> }
>   return formatter.format(item[dgc.dataField]);
> }
> 
> 
> On 9/21/06, s_hernandez01 <[EMAIL PROTECTED]> wrote:
> >
> >   I used the labelfunction method and need a little help on the
> > actionscript for the datagrid because I keep getting an error. All I
> > want is for it to display the dollar sign with two decimal places:
> >
> > 
> >  > 
> >
> >  > dataProvider="{srv2.lastResult.conduit2.product}"
> > height="73%" alternatingItemColors="[#c0e9fe, #ff]" x="0" y="0">
> > 
> >
> >  > width="70" labelFunction="myLabelFunc"/>
> >
> > 
> > 
> >
> > -Sal
> >
> > --- In flexcoders@yahoogroups.com ,
"Anatole
> > Tartakovsky"
> >  wrote:
> > >
> > > use LabelFunction
> > >
> > > On 9/20/06, s_hernandez01  wrote:
> > > >
> > > > Does anyone know how to set the currencyformatter with a dollar
> > sign
> > > > and two decimal places in a datagrid without it having no
affect on
> > > > totaling all the items in the column?
> > > >
> > > >
> > > >
> > >
> >
> > 
> >
>







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

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

<*> Your email settings:
Individual Email | Traditional

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

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

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

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





[flexcoders] Re: currencyformatter

2006-09-21 Thread s_hernandez01
I used the labelfunction method and need a little help on the
actionscript for the datagrid because I keep getting an error.  All I
want is for it to display the dollar sign with two decimal places:



[flexcoders] Re: Search Engine

2006-09-21 Thread s_hernandez01
A search engine for what items I have in my app.  There's no database
connected yet, everything is being called locally.  However, in the
future I do plan to be calling from a database using coldfusion.

-Sal



--- In flexcoders@yahoogroups.com, Tom Chiverton <[EMAIL PROTECTED]>
wrote:
>
> On Tuesday 19 September 2006 17:09, s_hernandez01 wrote:
> > My skill level in flex 2.0 is intermediate and I was wondering if
> > anyone knew of any resources on how I can build a search engine with
> > the products that I use in my app. 
> 
> A search engine for what ? A list of things in a database ?
> 
> -- 
> Tom Chiverton
> Helping to continuously network dot-com content
> 
> 
> 
> This email is sent for and on behalf of Halliwells LLP.
> 
> Halliwells LLP is a limited liability partnership registered in
England and Wales under registered number OC307980 whose registered
office address is at St James's Court Brown Street Manchester M2 2JF.
 A list of members is available for inspection at the registered
office. Any reference to a partner in relation to Halliwells LLP means
a member of Halliwells LLP. Regulated by the Law Society.
> 
> CONFIDENTIALITY
> 
> This email is intended only for the use of the addressee named above
and may be confidential or legally privileged.  If you are not the
addressee you must not read it and must not use any information
contained in nor copy it nor inform any person other than Halliwells
LLP or the addressee of its existence or contents.  If you have
received this email in error please delete it and notify Halliwells
LLP IT Department on 0870 365 8008.
> 
> For more information about Halliwells LLP visit www.halliwells.com.
>






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

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

<*> Your email settings:
Individual Email | Traditional

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

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

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

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




[flexcoders] currencyformatter

2006-09-20 Thread s_hernandez01
Does anyone know how to set the currencyformatter with a dollar sign
and  two decimal places in a datagrid without it having no affect on
totaling all the items in the column?





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

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

<*> Your email settings:
Individual Email | Traditional

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

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

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

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




[flexcoders] Search Engine

2006-09-19 Thread s_hernandez01
My skill level in flex 2.0 is intermediate and I was wondering if
anyone knew of any resources on how I can build a search engine with
the products that I use in my app.  I've been reading that the Ajax
Bridge is nice to use, but I can not find any getting started
tutorials.  If anyone knows of a different approach, resources, or
examples you could show me, I'd appreciate it.

Ciao

Sal





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

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

<*> Your email settings:
Individual Email | Traditional

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

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

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

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





[flexcoders] HTTP Problem w/ TileList

2006-08-31 Thread s_hernandez01
I am trying to get this TileList to display my data from an
HTTPService, however, in the itemRenderer(Thumbnail), Flex will
display my data when I code my image source as "{data.image}", but I
want to know how does flexstore code it as "{product.image}" and their
data gets displayed?  I tried following their structure, but got lost
somewhere.  Can anybody help?  Here is how I coded my App:


http://www.adobe.com/2006/mxml";
layout="absolute" xmlns="*" creationComplete="initApp()">



















http://www.adobe.com/2006/mxml"; layout="absolute"
xmlns="*">











http://www.adobe.com/2006/mxml";>

















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

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

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

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




[flexcoders] Re: adding buttons in to a datagrid

2006-08-29 Thread s_hernandez01
Yes, Joost, there is a way to incorporate a button inside of a
datagrid.   By using an itemRenderer you can simply add any component
inside of a datagrid: button, checkbox, radio, etc.  Inside the
datagrid column you code in:

itemRenderer="mx.controls.Button"

*Make sure that you code in actionScript "import mx.controls.Button,"
if flex dooesn't code it in for you.  However, I am not sure how you
can use a function to accompany this button, but if you come across
it, please let me know.

-Sal


--- In flexcoders@yahoogroups.com, "Joost Saanen" <[EMAIL PROTECTED]> wrote:
>
> Hi there,
> 
> Is it possible to add a button in a cell of a datagrid? I search the
whole 
> web and the help/reference but I am not able to find any information.
> Thx in advance ..
> 
> Regards,
> 
> Joost Saanen
> 
> de Informatiefabriek
> The Netherlands
>







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

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

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

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




[flexcoders] Accordion

2006-08-18 Thread s_hernandez01
Would anyone know how to set an accordion's index height to a specific
position to only open up half way. For example, say I have an
accordion with two indexes, but when I click on the second index to
view it, I want it to go up only halfway, so that both indexes are
viewable.

-Sal





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

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

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

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




[flexcoders] positioning Accordion indexes

2006-08-15 Thread s_hernandez01
Hello

Would anyone know how to set an index's height to a specific position
on the y axis.  For example, say I have an accordion with two indexes,
but when I click on the second index to view it, I want it to go up
only halfway, so that both indexes are viewable.  Any takers?

-Sal






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

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

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

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





[flexcoders] Re: passing data to a datagrid

2006-08-09 Thread s_hernandez01
Hi Tracy 

That is similar to what I'm doing on my code at the bottom except my
arraycollection is in the destination grid and not the source, which
is how I wish to execute it, but how do I go about doing that? I only
want specific data to go to the destination grid, not all the data
that's in that index.  Do you have any examples I could see to help me
better understand this?

-Sal


--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> In general terms, build an ArrayCollection from the data you want to
> pass, and assign that ArrayCollection to the dataprovider property of
> the second grid.
> 
>  
> 
> Tracy
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of s_hernandez01
> Sent: Wednesday, August 09, 2006 9:43 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] passing data to a datagrid
> 
>  
> 
> Hey Flexers, 
> 
> I am trying to send specific data from a datagrid to another datagrid
> and am having trouble with my actionscript. I can manage to send data
> if the index is selected, but I only want to send certain data to the
> other datagrid. Can anyone help? Here is what I have so far...
> 
> http://www.adobe.com/2006/mxml
> <http://www.adobe.com/2006/mxml> "
> layout="absolute" xmlns="*" creationComplete="init()">
> 
> 
> 
> 
> 
>  result="(srv.lastResult.catalog.product)"/>
> 
>  verticalAlign="middle" horizontalAlign="center">
> 
>  id="srcGrid" itemClick="init()">
> 
> 
> 
>  width="300"/>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> http://www.adobe.com/2006/mxml
> <http://www.adobe.com/2006/mxml> "
> dataProvider="{myDP}">
> 
> 
> 
> 
> 
> 
> 
>  width="300"/>
> 
> 
>







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

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

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

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





[flexcoders] Re: Break in the datagrid

2006-08-09 Thread s_hernandez01
Thanks Anatole, I didn't see that WordWrap there in the properties
box...worked out great. Thanks again.

--- In flexcoders@yahoogroups.com, "Anatole Tartakovsky"
<[EMAIL PROTECTED]> wrote:
>
> Try DataGridColumn "width" and "wordWrap" attributes and make sure
DataGrid
> has variable row height
> Hope this helps
> Anatole
> 
> 
> On 8/9/06, s_hernandez01 <[EMAIL PROTECTED]> wrote:
> >
> >Hey Flexers
> >
> > Would anyone know how to insert a break (similar to  in html) in
> > the datagrid using an xml file? For example, if I were to have this
> > xml data called into a datagrid how would I break up specific parts of
> > the sentence so that I won't get a scrollbar 20 miles long?
> >
> > The spool rack consists of 10 spindles and an adjustable
> > guide loop, and can be turned 360 degees independent of the the
> > base
> >
> > 
> >
>







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

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

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

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




[flexcoders] Break in the datagrid

2006-08-09 Thread s_hernandez01
Hey Flexers

Would anyone know how to insert a break (similar to  in html) in
the datagrid using an xml file?  For example, if I were to have this
xml data called into a datagrid how would I break up specific parts of
the sentence so that I won't get a scrollbar 20 miles long?

The spool rack consists of 10 spindles and an adjustable
guide loop, and can be turned 360 degees independent of the the
base






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

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

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

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





[flexcoders] Re: adding icons to buttons on button bars.

2006-08-09 Thread s_hernandez01
If you want to use icons instead of buttons I would try skinning them.
 The adobe flex site has an example of how you skin in the getting
started section.

http://www.adobe.com/devnet/flex/


--- In flexcoders@yahoogroups.com, "mthielman11" <[EMAIL PROTECTED]> wrote:
>
> I am wanting to use icons instead of the default buttons for a
buttonbar.  I did  search here 
> and only found one reference and it looked a little complicated. 
There apears to be an icon 
> property in the buttonbar component but does not appear to do
anything.  Is this a bug or 
> am I missing something?
>







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

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

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

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




[flexcoders] Re: adding icons to buttons on button bars.

2006-08-09 Thread s_hernandez01
To insert an icon in each individual button on the buttonbar you need
to embed it.  

Example:




   






--- In flexcoders@yahoogroups.com, "mthielman11" <[EMAIL PROTECTED]> wrote:
>
> I am wanting to use icons instead of the default buttons for a
buttonbar.  I did  search here 
> and only found one reference and it looked a little complicated. 
There apears to be an icon 
> property in the buttonbar component but does not appear to do
anything.  Is this a bug or 
> am I missing something?
>







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

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

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

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




[flexcoders] passing data to a datagrid

2006-08-09 Thread s_hernandez01
Hey Flexers, 

I am trying to send specific data from a datagrid to another datagrid
and am having trouble with my actionscript.  I can manage to send data
if the index is selected, but I only want to send certain data to the
other datagrid.  Can anyone help?  Here is what I have so far...


http://www.adobe.com/2006/mxml";
layout="absolute" xmlns="*" creationComplete="init()">

























http://www.adobe.com/2006/mxml";
dataProvider="{myDP}">















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

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

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

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




[flexcoders] Re: List and ViewStack Problem

2006-07-21 Thread s_hernandez01
Thanks Hilary and Scott, your suggestions worked beautifully!  I am so
relieved now.  

Ciao

Sal


--- In flexcoders@yahoogroups.com, "Scotty Scott" <[EMAIL PROTECTED]> wrote:
>
> You could also allow binding to take care of everything for you, if
you are
> trying to have the list display the titles of your panels in the
ViewStack.
> 
> Something like
> 
> 
> 
> 
> 
> 
> 
> 
> Hope this helps,
>Scotty Scott
>    http://www.franciswscott.com
> 
> 
> On 7/20/06, s_hernandez01 <[EMAIL PROTECTED]> wrote:
> >
> >   Hey Flexers
> >
> > I am trying to use the ViewStack to switch Panels from a List
> > Component, but I am having no luck because I get an error saying "Call
> > to possibly undefined method ItemClickEvent". Could someone help me,
> > please?
> >
> > 
> >  > horizontalAlign="center" verticalAlign="middle">
> >
> >  > itemClick="panelVS.selectedIndex=ItemClickEvent(event).index">
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
> > 
> > 
> > 
> > 
> >
> > 
> > 
> >
> > Thanks
> >
> > Sal
> >
> >  
> >
>







 Yahoo! Groups Sponsor ~--> 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM
~-> 

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

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

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

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




[flexcoders] List and ViewStack Problem

2006-07-20 Thread s_hernandez01
Hey Flexers

I am trying to use the ViewStack to switch Panels from a List
Component, but I am having no luck because I get an error saying "Call
to possibly undefined method ItemClickEvent".  Could someone help me,
please?


   


   
  
   
   
  
   











Thanks

Sal






 Yahoo! Groups Sponsor ~--> 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/nhFolB/TM
~-> 

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

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

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

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




[flexcoders] Re: Actionscript Help

2006-07-19 Thread s_hernandez01
Well, I am still new to Flex so I'm having trouble understanding what
you all are saying.  However, below is a link that has my app online
so you get an idea of what is going into the cart (just right click to
view the source).  Now, I created a form below the datagrid that
totals all my items when they are dropped in the cart.  I receive no
errors when saved, but when I run the app, it returns "NaN" in the
label of the form.  Why would this occur and what approach do I need
to take to correct this error?  Thanks for listening.

Sal


http://flex.work.iotashan.com/salShoppingCart/flexcodersHelp.html

> > 
> > 
> > 
> > 
> >  > id="content" dropEnabled="true" dataProvider="{myDP}">
> > 
> >  > itemRenderer="mx.controls.Image" width="25"/>
> > 
> >  > dataField="quantity" rendererIsEditor="true"
> > itemRenderer="mx.controls.NumericStepper" editorDataField="value"/>
> >  > dataField="price"/>
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >  textAlign="right"/>
> > 
> > 
> > 
> >
>







 Yahoo! Groups Sponsor ~--> 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/nhFolB/TM
~-> 

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

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

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

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




[flexcoders] Actionscript Help

2006-07-18 Thread s_hernandez01
Hey could anyone tell me why this actionscript function does not work?
I want to try and total the prices of all the items that get put into
my shopping cart.
















  











 Yahoo! Groups Sponsor ~--> 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM
~-> 

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

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

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

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





[flexcoders] Totaling Items

2006-07-17 Thread s_hernandez01
Hey Flexers

I am having trouble creating a function that would total all the items
added to my shopping cart.  If anybody can help me out with my code,
I'd appreciate it.  I am still new to flex and don't know much of
actionscript 3 so any advice would help me out alot.  Below is a link
to the shopping cart app(right click if you want to view the source)
and the code below it, is the code of my shopping cart which has the
calculateTotal() function that I tried to do to calculate the added items.

Thanks 

Sal


http://flex.work.iotashan.com/salShoppingCart/flexcodersHelp.html


http://www.adobe.com/2006/mxml";>
 


































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

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

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

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





[flexcoders] Shopping Cart Trouble

2006-07-13 Thread s_hernandez01
Hi Flexers!!!

I was wondering if anyone can help me with my code.  I'm trying to
create a shopping cart, but I'm having trouble on the addToCart() and
addItem() functions on my actionscript.  I'm new to flex and not the
best actionscriptist so any advice would be greatly appreciated!  I
want to add the product details (name, quantity, and price) from my
xml document ("catalog.xml") to the the datagrid in the shopping cart
when the user clicks the cart button "(cartBtn)."  This has been
driving me nuts for the past week, PLEASE HELP! :)  

Thanks

Sal
  


http://www.adobe.com/2006/mxml";
layout="absolute" xmlns:local="*" creationComplete="srv.send()">


   


























http://www.adobe.com/2006/mxml";>

[Event("purchase")]



















http://www.adobe.com/2006/mxml"; width="100%"
height="100%">


[Event("purchase")]


http://www.adobe.com/2006/mxml"; backgroundAlpha="0"
borderStyle="none" width="75%" height="100%"
verticalAlign="middle" verticalGap="0" verticalScrollPolicy="off"
horizontalAlign="center" >

 
 
 











 Yahoo! Groups Sponsor ~--> 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/nhFolB/TM
~-> 

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

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

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

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




[flexcoders] Add to Cart

2006-07-07 Thread s_hernandez01
Does anyone have an example or advice on how I can use an addToCart()
function that will send my items information to a datagrid in a
shopping cart?  Keep in mind that my shopping cart is in another
component, that's why I am having trouble. I want to do something like
how the flexstore adds items to the cart, but I can not understand the
actionscript used.  I appreciate any advice I can get.  

Thanks

Sal





 Yahoo! Groups Sponsor ~--> 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/nhFolB/TM
~-> 

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

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

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

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




[flexcoders] Re: Using HTTPService

2006-06-19 Thread s_hernandez01
abiramkumar,

I am new to flex as well, but I would try keeping everything on one
application component.  Usually when you use an http service you want
to call a series of objects instead of calling them one by one, say
for example calling a list of photos you have in your folder.  In
addition, try using creationComplete="feedRequest.send()" instead of
the "initialize" call.

Sal

--- In flexcoders@yahoogroups.com, "abi27ram" <[EMAIL PROTECTED]> wrote:
>
> hello all,
>   I am new to flex.i don't know how to use httpservice in flex.
> i'm using flexbuilder with jrun server now.
> 
> example.mxml
> 
> 
> http://www.adobe.com/2006/mxml"; xmlns="*" 
> layout="absolute"  initialize="feedRequest.send()" >
> 
>  id="feedRequest" method="post"
> url="login.mxml"
> useProxy="true"/>
> 
> 
> 
> login.mxml
> 
> 
> http://www.adobe.com/2006/mxml"; >
> 
>  paddingBottom="10"
> paddingLeft="10" paddingRight="10" >
> 
>  fontSize="24" />
> 
> 
> 
> 
> 
> i am not getting any output  or error.
> 
> plz help me
> thanks in advance
> abiramkumar
>







 Yahoo! Groups Sponsor ~--> 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/nhFolB/TM
~-> 

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

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

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

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





[flexcoders] Re: Datagrid Help

2006-06-09 Thread s_hernandez01
Thanks, Tracy, I've been getting alot of feedback saying that the
datagrid is not functioned to perform that way, looks like I'm going
to have to do a grid manually.  Thanks for the help anyway.

Ciao
Sal

--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> If you really want horizontal columns, with vertical row functionality,
> then I don't think the dataGrid will work.  (But that sounds like a
> useful control for someone to make!)
> 
>  
> 
> If you just want to display the values in a "crosstab" style view, you
> can manually rearrange the data.  Depending on the structure of the xml,
> this could be easy or hard.  I don't know how e4x is at respecting orded
> when it returns its XMLLists.  If it does not, You will need to manually
> loop over the nodes.
> 
>  
> 
> Tracy
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Stacey Mulcahy
> Sent: Thursday, June 08, 2006 12:57 PM
> To: flexcoders@yahoogroups.com
> Subject: RE: [flexcoders] Datagrid Help
> 
>  
> 
> Can you do that with a db>? Wouldn't you be better to look at charts or
> a horizontal tile list ?
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of s_hernandez01
> Sent: Thursday, June 08, 2006 12:19 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Datagrid Help
> 
>  
> 
> Hey everybody
> 
> I created a datagrid and the data source is from an xml file. 
> However, I want the data to be displayed vertically instead of
> horizontally. For example:
> 
> Item | Product 1
> Price | $11.99
> Item # | 1256
> ...
> ...
> 
> I appreciate any help I can get.
> 
> Thanks
> 
> Sal
>







 Yahoo! Groups Sponsor ~--> 
You can search right from your browser? It's easy and it's free.  See how.
http://us.click.yahoo.com/_7bhrC/NGxNAA/yQLSAA/nhFolB/TM
~-> 

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

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

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

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





[flexcoders] Datagrid Help

2006-06-08 Thread s_hernandez01
Hey everybody

I created a datagrid and the data source is from an xml file. 
However, I want the data to be displayed vertically instead of
horizontally.  For example:

Item|  Product 1
Price   |  $11.99
Item #  |  1256
...
...

I appreciate any help I can get.

Thanks

Sal





 Yahoo! Groups Sponsor ~--> 
Protect your PC from spy ware with award winning anti spy technology. It's free.
http://us.click.yahoo.com/97bhrC/LGxNAA/yQLSAA/nhFolB/TM
~-> 

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

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

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

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




[flexcoders] ActionScript Question

2006-06-06 Thread s_hernandez01
Hi all, 

I am not familiar with actionscript in flex and I am building a store
catalog.  I want to be able to when a user clicks on an item it then
transitions to a product details page; similar to the one that
flexstore provides in the beta download.  I tried using just a
transitions tag, but I could still see the catalog in the background
so I figured that's the wrong approach and the only way is to use
actionscript.  So, if anyone has an example they could offer, I'd
really appreciate it.

Thanks

Sal






 Yahoo! Groups Sponsor ~--> 
Protect your PC from spy ware with award winning anti spy technology. It's free.
http://us.click.yahoo.com/97bhrC/LGxNAA/yQLSAA/nhFolB/TM
~-> 

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

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

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

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




[flexcoders] Re: Image Default Preview

2006-06-01 Thread s_hernandez01



Thanks Tracy, I'm getting to know now what some of the properties
mean.  Thanks again!

Sal

--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> How about mytilelist.selectedIndex="0";
> Tracy
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of s_hernandez01
> Sent: Wednesday, May 31, 2006 2:52 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Image Default Preview
> 
> I was successful at coding up a tilelist and a preview panel that
> would go on the side of the tilelist so that when the user clicks on
> any image, they can preview the image in the preview panel. Now, I
> want to set the 1st image to default so that when the app opens the
> first image that is loaded is the top left image.  Any advice?
> 
> 
> 
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> Yahoo! Groups Links
>











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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] Image Default Preview

2006-05-31 Thread s_hernandez01



I was successful at coding up a tilelist and a preview panel that
would go on the side of the tilelist so that when the user clicks on
any image, they can preview the image in the preview panel. Now, I
want to set the 1st image to default so that when the app opens the
first image that is loaded is the top left image.  Any advice?










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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] Image Loading

2006-05-23 Thread s_hernandez01



I recently downloaded beta 3 and I created a TileList of images in a
panel. What I want to do is when the user clicks on an image I want it
to appear on a seperate panel on the side, but I'm having trouble
coding the preview panel. Does anyone know how the code should look?
I'm tyring to mimic the image calling similar to the old flexstore
shown here:

http://www.adobe.com/devnet/flex/example_apps.html#

Thanks Flexers!













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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  












[flexcoders] Re: Login System

2006-05-22 Thread s_hernandez01



Hey Bill, 

In beta 3 where is the coldfusion wizard because it doesn't show on
the "create new poject menu"?


--- In flexcoders@yahoogroups.com, "Bill Sahlas" <[EMAIL PROTECTED]> wrote:
>
> Here's a Login sample app that uses the
> RemoteObject.setRemoteCredentials(username, password) and the ColdFusion
> CFLOGIN container.
> 
>  
> 
> Unzip it to your web server's doc root.  In flex builder create a new
> Flex project of type "ColdFusion Flash Remoting Service".  Fill out the
> prompts and specify "LoginTest.mxml" as your Main application file.
> 
> 
> 
> Here's a code snippet from the app and it breaks down like this
> 
>  
> 
>  
> 
> In the MXML 
> 
>  
> 
> ...
> 
> private function logIn():void
> 
> {
> 
> // all this does is set
> the credentials - these are not sent over until the first actual request
> is made
> 
> // set the RemoteObject
> 
>  
> cf.setRemoteCredentials(this.username.text, this.password.text);
> 
> loginbtn.enabled =
> false;
> 
> logoutbtn.enabled =
> true;
> 
> }
> 
>  
> 
> private function logOut():void
> 
> {
> 
> //Alert.show("logout");
> 
> loginbtn.enabled = true;
> 
> logoutbtn.enabled =
> false; 
> 
>  
> cf.setRemoteCredentials(null, null);
> 
> cf.logout();
> 
> cf.logoutuser();
> 
> }
> 
> ...
> 
> ...
> 
>  
> 
> 
> 
> 
> label="Login" click="logIn();"/>
> 
> 
> label="Logout" click="logOut()"  enabled="false"/>
> 
> 
> 
>  
> 
> The CFML included in the app uses the CFLOGIN structure as per CF best
> practices of usage of this feature.
> 
>  
> 
> Also note that as part of the new Super Wizard for Flex Builder 2.0
> produced by the CF team includes an option to build-in a login scheme
> (includes a well-formatted login page with user name and password field
> prompts and the appropriate cfc backend logic).
> 
>  
> 
> Bill  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Tom Chiverton
> Sent: Friday, May 19, 2006 4:12 AM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] Login System
> 
>  
> 
> On Thursday 18 May 2006 17:52, s_hernandez01 wrote:
> > code up the login system.  Would anybody know how to start that, or
> > know of any references that would help me get started.  I know that
> 
> I'd have the Flash send the username/password to the CF over HTTPS.
> The CF creates a per-session token and gives that back to the Flash.
> The Flash then gives that token as the first argument to all other
> server 
> functions.
> 
> Obviously some small wibbles with CF keeping track of tokens, validating
> and 
> expiring them etc., but I'm not gonna write it all out here :-)
> 
> -- 
> Tom Chiverton
> 
> 
> 
> This email is sent for and on behalf of Halliwells LLP.
> 
> Halliwells LLP is a limited liability partnership registered in England
> and Wales under registered number OC307980 whose registered office
> address is at St James's Court Brown Street Manchester M2 2JF.  A list
> of members is available for inspection at the registered office. Any
> reference to a partner in relation to Halliwells LLP means a member of
> Halliwells LLP. Regulated by the Law Society.
> 
> CONFIDENTIALITY
> 
> This email is intended only for the use of the addressee named above and
> may be confidential or legally privileged.  If you are not the addressee
> you must not read it and must not use any information contained in nor
> copy it nor inform any person other than Halliwells LLP or the addressee
> of its existence or contents.  If you have received this email in error
> please delete it and notify Halliwells LLP I

[flexcoders] Login System

2006-05-18 Thread s_hernandez01



I recently created a login form in one of my apps.  Now, I need to
code up the login system.  Would anybody know how to start that, or
know of any references that would help me get started.  I know that
you can use ColdFusion MX 7 in Flex 2.0, but I don't know how that
works.  Any tips would be greatly appreciated.

Thanks
Sal









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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  












[flexcoders] Icons Buttons

2006-05-12 Thread s_hernandez01



Would anybody know how to create an icon button in Flex simiilar to 
the way MSN Messenger created theirs?  Where the icon is above the 
text label and blended in to the background, but has a rollover effect 
that shows the border of the button.  Here's an example:

http://join.msn.com/messenger/features

Thanks
Sal










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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] Link Bars

2006-05-10 Thread s_hernandez01



Hey Flexers

Does anybody know how to embed an icon on a linkbar navigator, but
have the icon above the text?  For example, say I was to have a link
with a phone icon and then it says "Phone" right below the icon.

or...

How would I design a button that blends in with the application
control bar so that you could not see the border of the button.

Thanks
Sal









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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.