[flexcoders] Intercepting the MouseOver & MouseOut Events on DisclosureIcon of ADG

2010-03-29 Thread abhishekkhandelwal2000
Hi friends,

I seek your immediate help,
I have a Custom ADG that displays the grouped data, I would like to intercept 
the mouse over and mouse out events on the disclosureIcon of the ADG (the + and 
- icons),

Please advise how to achieve the same.

I have created a custom groupItemRenderer and have added the mouseOver/Out 
events to the disclosureIcon object in creationComplete event but still the 
eventHandlers are not getting executed.

Please Help.

Thanks in Advance.

Abhishek 



[flexcoders] Re: Error #2170: Security sandbox violation

2010-03-29 Thread jeyathilak

Hi Oleg,

Thank you for your response. I checked that SalesForce has crossdomain.xml in 
both their http and https servers. 
http://test.salesforce.com/services/Soap/u/crossdomain.xml
http://test.salesforce.com/services/Soap/crossdomain.xml
https://test.salesforce.com/services/Soap/u/crossdomain.xml
https://test.salesforce.com/services/Soap/crossdomain.xml

- 
   
   
  


Do you think the above crossdomain.xml should be here 
--http://test.salesforce.com/crossdomain.xml

I tried my swf accessed from both http and https. I still get the same error. 
Error #2170: Security sandbox violation

I gave permission for the swf file to allow access to Salesforce URL in swf 
settings > Global security settings panel. 

Thanks for your help.

David

--- In flexcoders@yahoogroups.com, Oleg Sivokon  wrote:
>
> http://test.salesforce.com/crossdomain.xml must permit your domain to
> connect and get the data. If it doesn't, you'll have to either ask the
> owners of that domain to add your domain to the list or proxy the requests
> to their domain through your own proxy.
> 
> Best.
> 
> Oleg
>




[flexcoders] ComboBox fullscreen issue

2010-03-29 Thread elder.mich...@rocketmail.com

Short version: ComboBox's dropdown works and renders properly before
fullscreen, but not during or after.

I'm not totally sure how to ask this, so I've actually made a page
demonstrating the error  , with a
very simple Flex app, and all three directions you need to experience
the problem yourself.

For those of you not daring enough to follow my link above, I'll do my
best to explain here. I've built a more extensive Flex application (not
the one in the link) that has some graphs and charts and checkboxes and
other controls for those charts. At the bottom of app in a few of the
application States, there is a ComboBox. Because this is at the very
bottom, when you click it to access it's dropdown menu, Flex
thoughtfully has it come out of the top.  Yay, Flex!

This works well until Fullscreen mode. Upon entering fullscreen, I scale
everything up with a stage.scaleMode = StageScaleMode.SHOW_ALL. Now when
you click on the ComboBox, the dropdown is astonishingly large, and
actually drops beneath the ComboBox, causing it to mostly disappear
off-screen. The best part is, once you exit fullscreen mode, the
dropdown insists on continuing to drop below the ComboBox, which is
positioned at the bottom of the app, and so continues to be cut off.

Has anyone else run into this beast, stared into it's great maw, and
come away victorious?  Am I doing fullscreen mode wrong?  Please help!

You can get the code from the View Source from the Flash player in the
link, and thank you so much for your time.



RE: [flexcoders] Purplexing error

2010-03-29 Thread Scott
I think I found the issue... And I think it's a bug...

 

I used the FB4 function to create the base PHP class.  I then modified
the FB4 created "update" function to use an object instead of an
integer.  FB didn't re-adjust the superclasses after I made that change.
What I did to fix it was to create a whole new update function and the
error went away.

 

sj

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Scott
Sent: Monday, March 29, 2010 6:04 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Purplexing error

 

  

 

I'm getting a weird error when updating a mysql table through PHP.  I've
tested the function using PHP and it works perfect.  I've also made sure
the variables match the object.

 

When I fill in my textbox and click submit, I get this error:

 

ArgumentError: updateItem called with an item which is not managed on
this client: tblGroupsRPCDataManager.tblGroupsRPCDataManager:#:3

at
mx.data::ConcreteDataService/updateItem()[C:\depot\DataServices\branches
\dune_rc\frameworks\projects\data\src\mx\data\ConcreteDataService.as:106
6]

at
mx.data::DataManager/updateItem()[C:\depot\DataServices\branches\dune_rc
\frameworks\projects\data\src\mx\data\DataManager.as:2139]

at Function/http://adobe.com/AS3/2006/builtin::apply()

at
mx.data::ManagedOperation/updateItemProxy()[C:\depot\DataServices\branch
es\dune_rc\frameworks\projects\data\src\mx\data\ManagedOperation.as:495]

at
mx.rpc.remoting::Operation/send()[E:\dev\gumbo_beta2\frameworks\projects
\rpc\src\mx\rpc\remoting\Operation.as:212]

at
_Super_TblGroupsService/updateTblGroups()[X:\PackRat\www\src\services\tb
lgroupsservice\_Super_TblGroupsService.as:254]

at
Config/button_clickHandler()[X:\PackRat\www\src\Config.mxml:73]

at
Config/__button_click()[X:\PackRat\www\src\Config.mxml:131]

 

 

I'm not sure what it's trying to tell me...  Any ideas out there?




-- 
This message has been scanned for viruses and 
dangerous content by MailScanner  , and is

believed to be clean. 


RE: [flexcoders] Dataprovider and events

2010-03-29 Thread Scott
I just got done adding that in.  The result event was moved to the
CallResponder.

 

Thanks!

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Alex Harui
Sent: Monday, March 29, 2010 5:44 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Dataprovider and events

 

  

Instead of using creationComplete, you might want to wait until you get
a resultEvent from the server.


On 3/29/10 1:12 PM, "Scott"  wrote:


 
 
   

It's throwing because the cbGroupSelect.selectedItem.pkGroupID
doesn't exist when it's trying to call it the list_update function...
The combobox cbGroupSelect pulls its data from the provider first which
gives the index fields for the list object.  I'm doing creation_complete
on the list object, but the object is created before the data provider
for the combobox has filled its data.
 
Here's the dump:
 
TypeError: Error #1009: Cannot access a property or method of a
null object reference.
  at
Config/list_creationCompleteHandler()[X:\PackRat\www\src\Config.mxml:25]
  at
Config/__lstItemList_creationComplete()[X:\PackRat\www\src\Config.mxml:9
8]
  at flash.events::EventDispatcher/dispatchEventFunction()
  at flash.events::EventDispatcher/dispatchEvent()
  at
mx.core::UIComponent/dispatchEvent()[E:\dev\gumbo_beta2\frameworks\proje
cts\framework\src\mx\core\UIComponent.as:11749]
  at mx.core::UIComponent/set
initialized()[E:\dev\gumbo_beta2\frameworks\projects\framework\src\mx\co
re\UIComponent.as:1525]
  at
mx.managers::LayoutManager/validateClient()[E:\dev\gumbo_beta2\framework
s\projects\framework\src\mx\managers\LayoutManager.as:988]
  at
mx.core::UIComponent/validateNow()[E:\dev\gumbo_beta2\frameworks\project
s\framework\src\mx\core\UIComponent.as:7249]
  at
mx.core::UIComponent/creationCompleteHandler()[E:\dev\gumbo_beta2\framew
orks\projects\framework\src\mx\core\UIComponent.as:10846]
  at flash.events::EventDispatcher/dispatchEventFunction()
  at flash.events::EventDispatcher/dispatchEvent()
  at
mx.core::UIComponent/dispatchEvent()[E:\dev\gumbo_beta2\frameworks\proje
cts\framework\src\mx\core\UIComponent.as:11749]
  at mx.core::UIComponent/set
initialized()[E:\dev\gumbo_beta2\frameworks\projects\framework\src\mx\co
re\UIComponent.as:1525]
  at
mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\gumbo_beta2\fr
ameworks\projects\framework\src\mx\managers\LayoutManager.as:759]
  at
mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\gumbo_
beta2\frameworks\projects\framework\src\mx\managers\LayoutManager.as:106
9]





From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com  ]
On Behalf Of Alex Harui
Sent: Monday, March 29, 2010 2:47 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Dataprovider and events

  

Post the entire stacktrace so we can see why it throws.


On 3/29/10 11:33 AM, "Scott"  wrote:



 
 
   

I know I've ran into this before but for some reason my
memory isn't
kicking in.

I've got a listbox that depends on a combobox to load
before it fires
its dataprovider.  Without having the combobox loaded,
the data provider
for the listbox is null and it throws an error: #1009:
Cannot access a
property or method of a null object reference.

I know why it's happening but I can't seem to figure out
a workaround...
Any ideas?

 
   

 


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




-- 
This message has been scanned for viruses and 
dangerous content by MailScanner  , and is

believed to be clean. 


[flexcoders] Purplexing error

2010-03-29 Thread Scott
 

I'm getting a weird error when updating a mysql table through PHP.  I've
tested the function using PHP and it works perfect.  I've also made sure
the variables match the object.

 

When I fill in my textbox and click submit, I get this error:

 

ArgumentError: updateItem called with an item which is not managed on
this client: tblGroupsRPCDataManager.tblGroupsRPCDataManager:#:3

at
mx.data::ConcreteDataService/updateItem()[C:\depot\DataServices\branches
\dune_rc\frameworks\projects\data\src\mx\data\ConcreteDataService.as:106
6]

at
mx.data::DataManager/updateItem()[C:\depot\DataServices\branches\dune_rc
\frameworks\projects\data\src\mx\data\DataManager.as:2139]

at Function/http://adobe.com/AS3/2006/builtin::apply()

at
mx.data::ManagedOperation/updateItemProxy()[C:\depot\DataServices\branch
es\dune_rc\frameworks\projects\data\src\mx\data\ManagedOperation.as:495]

at
mx.rpc.remoting::Operation/send()[E:\dev\gumbo_beta2\frameworks\projects
\rpc\src\mx\rpc\remoting\Operation.as:212]

at
_Super_TblGroupsService/updateTblGroups()[X:\PackRat\www\src\services\tb
lgroupsservice\_Super_TblGroupsService.as:254]

at
Config/button_clickHandler()[X:\PackRat\www\src\Config.mxml:73]

at
Config/__button_click()[X:\PackRat\www\src\Config.mxml:131]

 

 

I'm not sure what it's trying to tell me...  Any ideas out there?



Re: [flexcoders] Dataprovider and events

2010-03-29 Thread Alex Harui
Instead of using creationComplete, you might want to wait until you get a 
resultEvent from the server.


On 3/29/10 1:12 PM, "Scott"  wrote:






It’s throwing because the cbGroupSelect.selectedItem.pkGroupID doesn’t exist 
when it’s trying to call it the list_update function…  The combobox 
cbGroupSelect pulls its data from the provider first which gives the index 
fields for the list object.  I’m doing creation_complete on the list object, 
but the object is created before the data provider for the combobox has filled 
its data.

Here’s the dump:

TypeError: Error #1009: Cannot access a property or method of a null object 
reference.
  at 
Config/list_creationCompleteHandler()[X:\PackRat\www\src\Config.mxml:25]
  at 
Config/__lstItemList_creationComplete()[X:\PackRat\www\src\Config.mxml:98]
  at flash.events::EventDispatcher/dispatchEventFunction()
  at flash.events::EventDispatcher/dispatchEvent()
  at 
mx.core::UIComponent/dispatchEvent()[E:\dev\gumbo_beta2\frameworks\projects\framework\src\mx\core\UIComponent.as:11749]
  at mx.core::UIComponent/set 
initialized()[E:\dev\gumbo_beta2\frameworks\projects\framework\src\mx\core\UIComponent.as:1525]
  at 
mx.managers::LayoutManager/validateClient()[E:\dev\gumbo_beta2\frameworks\projects\framework\src\mx\managers\LayoutManager.as:988]
  at 
mx.core::UIComponent/validateNow()[E:\dev\gumbo_beta2\frameworks\projects\framework\src\mx\core\UIComponent.as:7249]
  at 
mx.core::UIComponent/creationCompleteHandler()[E:\dev\gumbo_beta2\frameworks\projects\framework\src\mx\core\UIComponent.as:10846]
  at flash.events::EventDispatcher/dispatchEventFunction()
  at flash.events::EventDispatcher/dispatchEvent()
  at 
mx.core::UIComponent/dispatchEvent()[E:\dev\gumbo_beta2\frameworks\projects\framework\src\mx\core\UIComponent.as:11749]
  at mx.core::UIComponent/set 
initialized()[E:\dev\gumbo_beta2\frameworks\projects\framework\src\mx\core\UIComponent.as:1525]
  at 
mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\gumbo_beta2\frameworks\projects\framework\src\mx\managers\LayoutManager.as:759]
  at 
mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\gumbo_beta2\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1069]




From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: Monday, March 29, 2010 2:47 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Dataprovider and events



Post the entire stacktrace so we can see why it throws.


On 3/29/10 11:33 AM, "Scott"  wrote:






I know I've ran into this before but for some reason my memory isn't
kicking in.

I've got a listbox that depends on a combobox to load before it fires
its dataprovider.  Without having the combobox loaded, the data provider
for the listbox is null and it throws an error: #1009: Cannot access a
property or method of a null object reference.

I know why it's happening but I can't seem to figure out a workaround...
Any ideas?






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


Re: [flexcoders] FileReference does not sending the right header in file upload

2010-03-29 Thread Oleg Sivokon
Consider adding the parameters to URL instead of pushing them into POST
request body. That is form the URL of the URLRequest however you want, so it
will look like:
domain/uploading-script?param=value&anotherParam=value
You don't have to specify Security.allowDomain() for what you are doing,
unless you need that for something else.
The warning you are getting for your crossdomain means exactly this:
crossdomain files which describe security policy for operations accomplished
through HTTP are not allowed to have "secure" attribute because this
attribute affects only the crossdomain policies for sockets (that is plain
TCP connections not restricted to HTTP protocol).
So far I can see from your code you are not adding any custom header, so,
that's definitely not the problem with it, however, FileReference is known
for not sending session cookies for example. I'm saying this just in case
you googled for FileReference related problems and bumped into someone
mentioning that - again, this is not your problem, or, at least this is not
what seems to be you problem from how you describe it.

Best.

Oleg


[flexcoders] SparkDataContainer Scroller not scrolling to bottom of container

2010-03-29 Thread azona26
I am using a scroller component within a custom skin for a
SkinnableDataContainer. I am running into an issue in that the thumbbar
of the scroller stops at about the 50% point, however this is actually
the end of the scrollable area. In actuality, the thumbbar should be at
the bottom of the scroll track. Here's the code for the scroller
contained with the skin:
http://ns.adobe.com/mxml/2009";   
xmlns:s="library://ns.adobe.com/flex/spark"   
xmlns:mx="library://ns.adobe.com/flex/halo" bottom="150"  >   


[HostComponent("spark.components.SkinnableDataContainer")]

 
 

  

Thanks for any and all replies.


[flexcoders] SparkDataContainer Scroller not scrolling to bottom of container

2010-03-29 Thread azona26
I am using a scroller component within a custom skin for a
SkinnableDataContainer. I am running into an issue in that the thumbbar
of the scroller stops at about the 50% point, however this is actually
the end of the scrollable area. In actuality, the thumbbar should be at
the bottom of the scroll track. Here's the code for the scroller
contained with the skin:
http://ns.adobe.com/mxml/2009";   
xmlns:s="library://ns.adobe.com/flex/spark"   
xmlns:mx="library://ns.adobe.com/flex/halo" bottom="150"  >   


[HostComponent("spark.components.SkinnableDataContainer")]

 
 

  

Thanks for any and all replies.


RE: [flexcoders] Re: Dataprovider and events

2010-03-29 Thread Scott
I should spend some time with FB4 (which is what I'm using right now)
and result events.  The remote object calls are a lot different than in
FB3... Callresponders are a little different when it comes to this.  I
don't see any references to result event like what I had in FB3...

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of valdhor
Sent: Monday, March 29, 2010 3:02 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Dataprovider and events

 

  

How does the combobox get its data? If it is using remoting, you can
wait for the resultevent to fire and then populate the listbox.

Also, you could populate the dataprovider with dummy blank data so it's
not null and then update it when the data arrives.

--- In flexcoders@yahoogroups.com 
, "Scott"  wrote:
>
> I know I've ran into this before but for some reason my memory isn't
> kicking in.
> 
> I've got a listbox that depends on a combobox to load before it fires
> its dataprovider. Without having the combobox loaded, the data
provider
> for the listbox is null and it throws an error: #1009: Cannot access a
> property or method of a null object reference.
> 
> I know why it's happening but I can't seem to figure out a
workaround...
> Any ideas?
>




-- 
This message has been scanned for viruses and 
dangerous content by MailScanner  , and is

believed to be clean. 


[flexcoders] Re: Spark DropDownList Custom ItemRenderer Issue

2010-03-29 Thread azona26
Got it! Thanks for the additional insight as that is exactly what I needed to 
do.

--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> You must derive all visuals, and that means resetting the color if it doesn't 
> meet the criteria.
> 
> 
> On 3/29/10 10:44 AM, "azona26"  wrote:
> 
> 
> 
> 
> 
> 
> Thanks. However switching to dataChange event causes all items in the 
> DropDownList to change their text color.
> 
> --- In flexcoders@yahoogroups.com  , 
> Alex Harui  wrote:
> >
> > The rules for itemrenderers haven't changed that much.  You must still 
> > derive all of your visuals from the data property.  Use dataChange instead 
> > of creationComplete.
> >
> >
> > On 3/29/10 9:32 AM, "azona26"  wrote:
> >
> >
> >
> >
> >
> >
> > Here's the code:
> >
> > http://ns.adobe.com/mxml/2009";
> > xmlns:s="library://ns.adobe.com/flex/spark"
> > xmlns:mx="library://ns.adobe.com/flex/mx"
> > autoDrawBackground="true" height="20"
> > creationComplete="itemrenderer_creationCom! pleteHandler(event)">
> > 
> > 
> > 
> >  >  id="lblDisplay"
> >  top="6" left="2" right="2" bottom="2"
> >  text="{data.name}" />
> > 
> >
> > Thanks for the assistance!
> >
> > --- In flexcoders@yahoogroups.com  , 
> > Alex Harui  wrote:
> > >
> > > What does your renderer code look like?
> > >
> > >
> > > On 3/29/10 8:08 AM, "azona26" azsl1326-email@ wrote:
> > >
> > >
> > >
> > >
> > >
> > >
> > > I have a Spark DropDownList that has a custom ItemRenderer. The 
> > > ItemRenderer, upon creation, checks th! e label text and if it matches 
> > > certain criteria, then the labe! l text c olor changes. The label text 
> > > color is changing, however it is for the wrong label. What appears to be 
> > > happening is that the label color that is actually being changed is in 
> > > reverse order of how the labels are displayed in the drop down list.
> > >
> > > For example, the list contains the text labels: One, Two, Three, Four, 
> > > and is being displayed in that exact order. I am checking for the label 
> > > "One" and then changing it's text color. What actually ends up ! 
> > > happening is that the text color for "Four" (first item from bottom) is 
> > > actually being changed. If I check for the text label, "Three", then the 
> > > text color for "Two" (third item from bottom) gets changed. If I check 
> > > for the label text "Four", the text color for "One" (fourth item from 
> > > bottom) gets changes. This functionality seems to hold true for each item 
> > > in the DropDownList.
> > >
> > > Any suggestions on how to resolve this issue so that the correct text 
> > > color is being changed?
> > >
> > > Thanks for th! e assistance.
> > >
> > >
> > >
> > >
> > >
> > > --
> > > Alex Harui
> > > Flex SDK Team
> > > Adobe System, Inc.
> > > http://blogs.adobe.com/aharui
> > >
> >
> >
> >
> >
> >
> > --
> > Alex Harui
> > Flex SDK Team
> > Adobe System, Inc.
> > http://blogs.adobe.com/aharui
> >
> 
> 
> 
> 
> 
> 
> --
> Alex Harui
> Flex SDK Team
> Adobe System, Inc.
> http://blogs.adobe.com/aharui
>




RE: [flexcoders] Dataprovider and events

2010-03-29 Thread Scott
It's throwing because the cbGroupSelect.selectedItem.pkGroupID doesn't
exist when it's trying to call it the list_update function...  The
combobox cbGroupSelect pulls its data from the provider first which
gives the index fields for the list object.  I'm doing creation_complete
on the list object, but the object is created before the data provider
for the combobox has filled its data.

 

Here's the dump:

 

TypeError: Error #1009: Cannot access a property or method of a null
object reference.

  at
Config/list_creationCompleteHandler()[X:\PackRat\www\src\Config.mxml:25]

  at
Config/__lstItemList_creationComplete()[X:\PackRat\www\src\Config.mxml:9
8]

  at flash.events::EventDispatcher/dispatchEventFunction()

  at flash.events::EventDispatcher/dispatchEvent()

  at
mx.core::UIComponent/dispatchEvent()[E:\dev\gumbo_beta2\frameworks\proje
cts\framework\src\mx\core\UIComponent.as:11749]

  at mx.core::UIComponent/set
initialized()[E:\dev\gumbo_beta2\frameworks\projects\framework\src\mx\co
re\UIComponent.as:1525]

  at
mx.managers::LayoutManager/validateClient()[E:\dev\gumbo_beta2\framework
s\projects\framework\src\mx\managers\LayoutManager.as:988]

  at
mx.core::UIComponent/validateNow()[E:\dev\gumbo_beta2\frameworks\project
s\framework\src\mx\core\UIComponent.as:7249]

  at
mx.core::UIComponent/creationCompleteHandler()[E:\dev\gumbo_beta2\framew
orks\projects\framework\src\mx\core\UIComponent.as:10846]

  at flash.events::EventDispatcher/dispatchEventFunction()

  at flash.events::EventDispatcher/dispatchEvent()

  at
mx.core::UIComponent/dispatchEvent()[E:\dev\gumbo_beta2\frameworks\proje
cts\framework\src\mx\core\UIComponent.as:11749]

  at mx.core::UIComponent/set
initialized()[E:\dev\gumbo_beta2\frameworks\projects\framework\src\mx\co
re\UIComponent.as:1525]

  at
mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\gumbo_beta2\fr
ameworks\projects\framework\src\mx\managers\LayoutManager.as:759]

  at
mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\gumbo_
beta2\frameworks\projects\framework\src\mx\managers\LayoutManager.as:106
9]

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Alex Harui
Sent: Monday, March 29, 2010 2:47 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Dataprovider and events

 

  

Post the entire stacktrace so we can see why it throws.


On 3/29/10 11:33 AM, "Scott"  wrote:


 
 
   

I know I've ran into this before but for some reason my memory
isn't
kicking in.

I've got a listbox that depends on a combobox to load before it
fires
its dataprovider.  Without having the combobox loaded, the data
provider
for the listbox is null and it throws an error: #1009: Cannot
access a
property or method of a null object reference.

I know why it's happening but I can't seem to figure out a
workaround...
Any ideas?

 
   




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




-- 
This message has been scanned for viruses and 
dangerous content by MailScanner  , and is

believed to be clean. 


[flexcoders] Re: Dataprovider and events

2010-03-29 Thread valdhor
How does the combobox get its data? If it is using remoting, you can wait for 
the resultevent to fire and then populate the listbox.

Also, you could populate the dataprovider with dummy blank data so it's not 
null and then update it when the data arrives.

--- In flexcoders@yahoogroups.com, "Scott"  wrote:
>
> I know I've ran into this before but for some reason my memory isn't
> kicking in.
> 
> I've got a listbox that depends on a combobox to load before it fires
> its dataprovider.  Without having the combobox loaded, the data provider
> for the listbox is null and it throws an error: #1009: Cannot access a
> property or method of a null object reference.
> 
> I know why it's happening but I can't seem to figure out a workaround...
> Any ideas?
>




[flexcoders] Re: Best Way To Tweet To Twitter From an Air Application

2010-03-29 Thread valdhor
Sorry, no idea.

I haven't had to add that to any applications I've built.

--- In flexcoders@yahoogroups.com, "James"  wrote:
>
> Hi Valdhor. I did finally manage to get this done. My app now has the 
> capability to display a users Twitter feed and post a tweet to a twitter feed 
> a long as they enteer a valid username and password.
> 
> I'm now looking for good examples of using Facebook connect to do the 
> following:-
> 
> - View a user's statuses
> - View all a users albums and photos
> - Allow a user to post a new status to Facebook
> - All a user to upload a new photo to a specific album
> 
> What I really want is to be able to do all of the above WITHOUT the user 
> being taken to the 'Allow Access' window of Facebook which opens up in a new 
> instance of Explorer, the reason for this being that I want my app to be 
> entirely self contained or if there is no way around this I'd like to have it 
> so the allow access window opens up in a html component within my 
> application. Is this possible would you know?
> 
> --- In flexcoders@yahoogroups.com, "valdhor"  wrote:
> >
> > What did you manage to glean from the Twitter API documentation?
> > 
> > --- In flexcoders@yahoogroups.com, "James"  wrote:
> > >
> > > I am looking for the quickest and simplest possible method to allow a 
> > > user to post a tweet to twitter from within an air application.
> > > 
> > > Basically I just want them to be able to enter their name and password in 
> > > my app type what they want to tweet and click a button and it will tweet 
> > > it to their profile.
> > > 
> > > I've found tonnes of examples of displaying twitter feeds within 
> > > applications but hardly any for posting a tweet FROM an air app. Can 
> > > anyone recommend any or tell me what I'd need to do to get this done?
> > >
> >
>




Re: [flexcoders] Re: Spark DropDownList Custom ItemRenderer Issue

2010-03-29 Thread Alex Harui
You must derive all visuals, and that means resetting the color if it doesn’t 
meet the criteria.


On 3/29/10 10:44 AM, "azona26"  wrote:






Thanks. However switching to dataChange event causes all items in the 
DropDownList to change their text color.

--- In flexcoders@yahoogroups.com  , Alex 
Harui  wrote:
>
> The rules for itemrenderers haven't changed that much.  You must still derive 
> all of your visuals from the data property.  Use dataChange instead of 
> creationComplete.
>
>
> On 3/29/10 9:32 AM, "azona26"  wrote:
>
>
>
>
>
>
> Here's the code:
>
> http://ns.adobe.com/mxml/2009";
> xmlns:s="library://ns.adobe.com/flex/spark"
> xmlns:mx="library://ns.adobe.com/flex/mx"
> autoDrawBackground="true" height="20"
> creationComplete="itemrenderer_creationCom! pleteHandler(event)">
> 
> 
> 
>   id="lblDisplay"
>  top="6" left="2" right="2" bottom="2"
>  text="{data.name}" />
> 
>
> Thanks for the assistance!
>
> --- In flexcoders@yahoogroups.com  , 
> Alex Harui  wrote:
> >
> > What does your renderer code look like?
> >
> >
> > On 3/29/10 8:08 AM, "azona26" azsl1326-email@ wrote:
> >
> >
> >
> >
> >
> >
> > I have a Spark DropDownList that has a custom ItemRenderer. The 
> > ItemRenderer, upon creation, checks th! e label text and if it matches 
> > certain criteria, then the labe! l text c olor changes. The label text 
> > color is changing, however it is for the wrong label. What appears to be 
> > happening is that the label color that is actually being changed is in 
> > reverse order of how the labels are displayed in the drop down list.
> >
> > For example, the list contains the text labels: One, Two, Three, Four, and 
> > is being displayed in that exact order. I am checking for the label "One" 
> > and then changing it's text color. What actually ends up ! happening is 
> > that the text color for "Four" (first item from bottom) is actually being 
> > changed. If I check for the text label, "Three", then the text color for 
> > "Two" (third item from bottom) gets changed. If I check for the label text 
> > "Four", the text color for "One" (fourth item from bottom) gets changes. 
> > This functionality seems to hold true for each item in the DropDownList.
> >
> > Any suggestions on how to resolve this issue so that the correct text color 
> > is being changed?
> >
> > Thanks for th! e assistance.
> >
> >
> >
> >
> >
> > --
> > Alex Harui
> > Flex SDK Team
> > Adobe System, Inc.
> > http://blogs.adobe.com/aharui
> >
>
>
>
>
>
> --
> Alex Harui
> Flex SDK Team
> Adobe System, Inc.
> http://blogs.adobe.com/aharui
>






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


Re: [flexcoders] Dataprovider and events

2010-03-29 Thread Alex Harui
Post the entire stacktrace so we can see why it throws.


On 3/29/10 11:33 AM, "Scott"  wrote:






I know I've ran into this before but for some reason my memory isn't
kicking in.

I've got a listbox that depends on a combobox to load before it fires
its dataprovider.  Without having the combobox loaded, the data provider
for the listbox is null and it throws an error: #1009: Cannot access a
property or method of a null object reference.

I know why it's happening but I can't seem to figure out a workaround...
Any ideas?






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


[flexcoders] Saving an image (snapshot) to the server

2010-03-29 Thread Wally Kolcz
I see a number of php example of how to save an image to the server, but 
can't find one using CF? I want the user to be able to save the image 
they drew/colored to their account by saving an area (I see how to do 
that) then have it saved on the server in a folder and databased. I 
can't seem to find how to tranfer the bitmapdata to a folder of my web 
server. Any  ideas?



[flexcoders] Dataprovider and events

2010-03-29 Thread Scott
I know I've ran into this before but for some reason my memory isn't
kicking in.

I've got a listbox that depends on a combobox to load before it fires
its dataprovider.  Without having the combobox loaded, the data provider
for the listbox is null and it throws an error: #1009: Cannot access a
property or method of a null object reference.

I know why it's happening but I can't seem to figure out a workaround...
Any ideas?



[flexcoders] Re: Best Way To Tweet To Twitter From an Air Application

2010-03-29 Thread James
Hi Valdhor. I did finally manage to get this done. My app now has the 
capability to display a users Twitter feed and post a tweet to a twitter feed a 
long as they enteer a valid username and password.

I'm now looking for good examples of using Facebook connect to do the 
following:-

- View a user's statuses
- View all a users albums and photos
- Allow a user to post a new status to Facebook
- All a user to upload a new photo to a specific album

What I really want is to be able to do all of the above WITHOUT the user being 
taken to the 'Allow Access' window of Facebook which opens up in a new instance 
of Explorer, the reason for this being that I want my app to be entirely self 
contained or if there is no way around this I'd like to have it so the allow 
access window opens up in a html component within my application. Is this 
possible would you know?

--- In flexcoders@yahoogroups.com, "valdhor"  wrote:
>
> What did you manage to glean from the Twitter API documentation?
> 
> --- In flexcoders@yahoogroups.com, "James"  wrote:
> >
> > I am looking for the quickest and simplest possible method to allow a user 
> > to post a tweet to twitter from within an air application.
> > 
> > Basically I just want them to be able to enter their name and password in 
> > my app type what they want to tweet and click a button and it will tweet it 
> > to their profile.
> > 
> > I've found tonnes of examples of displaying twitter feeds within 
> > applications but hardly any for posting a tweet FROM an air app. Can anyone 
> > recommend any or tell me what I'd need to do to get this done?
> >
>




[flexcoders] FB Namespace for FlashBuilder

2010-03-29 Thread Precia
I have seen the FB namespace in several Flex 4 examples dealing with skins but 
I can't find any documentation for it in such things as .

Anyone have any pointers?



[flexcoders] FileReference does not sending the right header in file upload

2010-03-29 Thread Jesus Saad
Hello all! I'm searching about my issue or flex `issue and I can`t found the 
error. Please, help me.
I'm trying to upload a file using the FileReference class and it work fine just 
in my computer. When I try in server, the error appears.
 Following my source code:
Init function:
private var fileRef:FileReference;
fileRef = new FileReference();
//Upload event
fileRef.addEventListener(Event.COMPLETE, completeEvent);
fileRef.addEventListener(Event.SELECT, selectEvent);
fileRef.addEventListener(ProgressEvent.PROGRESS, progressEvent);
fileRef.addEventListener(SecurityErrorEvent.SECURITY_ERROR, Utils.handleFault);
//Upload Callback event
fileRef.addEventListener(IOErrorEvent.IO_ERROR, Utils.ioErrorHandler);
fileRef.addEventListener(DataEvent.UPLOAD_COMPLETE_DATA, handleXMLFileUpload);
upload function
 var sendVars:URLVariables;
 var request:URLRequest;

 sendVars = new URLVariables();
 request = new URLRequest();

 sendVars.command = "FILE.UPLOAD";
 sendVars.tematica = tematicaId;
 sendVars.field1 = txtColunaUp01.text;
 request.data = sendVars;
 request.url = Utils.urlHost + "File";
 request.method = URLRequestMethod.POST;
  try{
fileRef.upload(request, "upload", true);
  }
  catch(error:Error){
  trace(error);
  }
I just using this code like all examples founded in google, but when this is in 
server it does not work because the variable upload set in fileRef.upload is 
received by server like a String and not a File.
Does anyone know what`s the problem?

PS.: Following my crossdomain.xml file and in creationComplete function I call 
these methods:
// Starting the get crossdomain file
Security.allowDomain(Utils.urlHost);
Security.loadPolicyFile(Utils.urlHost + Utils.crossDomainPolicyFile);








PS2.: In flash player log, these messages appears: 
Warning: Ignoring 'secure' attribute in policy file from 
http://127.0.0.1/crossdomain.xml.  The 'secure' attribute is only permitted in 
HTTPS and socket policy files.  See http://www.adobe.com/go/strict_policy_files 
for details.
Warning: Ignoring 'secure' attribute in policy file from 
http://127.0.0.1/crossdomain.xml.  The 'secure' attribute is only permitted in 
HTTPS and socket policy files.  See http://www.adobe.com/go/strict_policy_files 
for details.
OK: Policy file accepted: http://127.0.0.1/crossdomain.xml

PS.: My flash player version is 10.0.32 and my Flex SDK is 3.5. I'm using the 
Flex Builder IDE and Firefox browser.




[flexcoders] Re: Best Way To Tweet To Twitter From an Air Application

2010-03-29 Thread valdhor
What did you manage to glean from the Twitter API documentation?

--- In flexcoders@yahoogroups.com, "James"  wrote:
>
> I am looking for the quickest and simplest possible method to allow a user to 
> post a tweet to twitter from within an air application.
> 
> Basically I just want them to be able to enter their name and password in my 
> app type what they want to tweet and click a button and it will tweet it to 
> their profile.
> 
> I've found tonnes of examples of displaying twitter feeds within applications 
> but hardly any for posting a tweet FROM an air app. Can anyone recommend any 
> or tell me what I'd need to do to get this done?
>




[flexcoders] Re: Spark DropDownList Custom ItemRenderer Issue

2010-03-29 Thread azona26
Thanks. However switching to dataChange event causes all items in the 
DropDownList to change their text color.

--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> The rules for itemrenderers haven't changed that much.  You must still derive 
> all of your visuals from the data property.  Use dataChange instead of 
> creationComplete.
> 
> 
> On 3/29/10 9:32 AM, "azona26"  wrote:
> 
> 
> 
> 
> 
> 
> Here's the code:
> 
> http://ns.adobe.com/mxml/2009";
> xmlns:s="library://ns.adobe.com/flex/spark"
> xmlns:mx="library://ns.adobe.com/flex/mx"
> autoDrawBackground="true" height="20"
> creationComplete="itemrenderer_creationCom! pleteHandler(event)">
> 
> 
> 
>   id="lblDisplay"
>  top="6" left="2" right="2" bottom="2"
>  text="{data.name}" />
> 
> 
> Thanks for the assistance!
> 
> --- In flexcoders@yahoogroups.com, Alex Harui  wrote:
> >
> > What does your renderer code look like?
> >
> >
> > On 3/29/10 8:08 AM, "azona26" azsl1326-email@ wrote:
> >
> >
> >
> >
> >
> >
> > I have a Spark DropDownList that has a custom ItemRenderer. The 
> > ItemRenderer, upon creation, checks th! e label text and if it matches 
> > certain criteria, then the labe! l text c olor changes. The label text 
> > color is changing, however it is for the wrong label. What appears to be 
> > happening is that the label color that is actually being changed is in 
> > reverse order of how the labels are displayed in the drop down list.
> >
> > For example, the list contains the text labels: One, Two, Three, Four, and 
> > is being displayed in that exact order. I am checking for the label "One" 
> > and then changing it's text color. What actually ends up ! happening is 
> > that the text color for "Four" (first item from bottom) is actually being 
> > changed. If I check for the text label, "Three", then the text color for 
> > "Two" (third item from bottom) gets changed. If I check for the label text 
> > "Four", the text color for "One" (fourth item from bottom) gets changes. 
> > This functionality seems to hold true for each item in the DropDownList.
> >
> > Any suggestions on how to resolve this issue so that the correct text color 
> > is being changed?
> >
> > Thanks for th! e assistance.
> >
> >
> >
> >
> >
> > --
> > Alex Harui
> > Flex SDK Team
> > Adobe System, Inc.
> > http://blogs.adobe.com/aharui
> >
> 
> 
> 
> 
> 
> --
> Alex Harui
> Flex SDK Team
> Adobe System, Inc.
> http://blogs.adobe.com/aharui
>




Re: [flexcoders] Utilizing HBox or VBox layouts without actually using them

2010-03-29 Thread Alex Harui
In Flex 4 you can try replacing the layout of a container.


On 3/29/10 10:01 AM, "djamsheds"  wrote:






I have a bunch of visual objects that should be Hbox'ed and Vbox'ed at 
different times (e.g. object obj1 can should be in Hbox1, and after a certain 
action obj1 should be moved right to the middle of VBox1, and after that it 
could be moved to bottom of VBox2).

Using CollectionView is one of the choices, but I still feel uncomfortable with 
wrapping the objects to the  HBox (or VBox) because they really yell for 
"freedom". Is there any way I could lay these objects out by stating just 
"layout as VBox" without adding any Vbox into the stage ?






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


Re: [flexcoders] Re: Spark DropDownList Custom ItemRenderer Issue

2010-03-29 Thread Alex Harui
The rules for itemrenderers haven’t changed that much.  You must still derive 
all of your visuals from the data property.  Use dataChange instead of 
creationComplete.


On 3/29/10 9:32 AM, "azona26"  wrote:






Here's the code:

http://ns.adobe.com/mxml/2009";
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
autoDrawBackground="true" height="20"
creationComplete="itemrenderer_creationCom! pleteHandler(event)">






Thanks for the assistance!

--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> What does your renderer code look like?
>
>
> On 3/29/10 8:08 AM, "azona26" azsl1326-em...@... wrote:
>
>
>
>
>
>
> I have a Spark DropDownList that has a custom ItemRenderer. The ItemRenderer, 
> upon creation, checks th! e label text and if it matches certain criteria, 
> then the labe! l text c olor changes. The label text color is changing, 
> however it is for the wrong label. What appears to be happening is that the 
> label color that is actually being changed is in reverse order of how the 
> labels are displayed in the drop down list.
>
> For example, the list contains the text labels: One, Two, Three, Four, and is 
> being displayed in that exact order. I am checking for the label "One" and 
> then changing it's text color. What actually ends up ! happening is that the 
> text color for "Four" (first item from bottom) is actually being changed. If 
> I check for the text label, "Three", then the text color for "Two" (third 
> item from bottom) gets changed. If I check for the label text "Four", the 
> text color for "One" (fourth item from bottom) gets changes. This 
> functionality seems to hold true for each item in the DropDownList.
>
> Any suggestions on how to resolve this issue so that the correct text color 
> is being changed?
>
> Thanks for th! e assistance.
>
>
>
>
>
> --
> Alex Harui
> Flex SDK Team
> Adobe System, Inc.
> http://blogs.adobe.com/aharui
>





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


[flexcoders] Re: Security Cameras

2010-03-29 Thread luvfotography
Hi, 
It's most likely the browser caching the image, 
are you getting the image in a normal http request? over and over again?
ex:   http://www.mysite.com/image.jpg   
if so, just add a random number (a timestamp works fine) to the end of the url
ex:   http://www.mysite.com/image.jpg?12343545
This way the browser thinks it's a different image and will reload it.
-steve

--- In flexcoders@yahoogroups.com, "archtechcomputers"  
wrote:
>
> Hi
>   I have a Flex3 application that is displaying images from a security 
> camera.  The camera doesn't stream video but I can get a jpg from it. Because 
> the camera is on a different network, I had to write a php application to get 
> the jpg and send it to the flex app (due to security)
> 
> The flex app has an auto update that after the image has loaded, a 10 sec 
> timer runs and reloads the image.  I load the image into a new bitmap and 
> then swap the images.
> Currently it stopped working.  it seems to only show the last image, like a 
> caching issue.  If I call on the php app the image updates with every reload. 
>  I don't see what might be causing this.
> 
> Any suggestions.
> 
> I was just looking at Tour de FLEX, and there were Effects like Crossfade 
> that could switch between images, but could I make the images dynamic, not 
> embedded?
> 
> Thanks
>




[flexcoders] Utilizing HBox or VBox layouts without actually using them

2010-03-29 Thread djamsheds
I have a bunch of visual objects that should be Hbox'ed and Vbox'ed at 
different times (e.g. object obj1 can should be in Hbox1, and after a certain 
action obj1 should be moved right to the middle of VBox1, and after that it 
could be moved to bottom of VBox2). 

Using CollectionView is one of the choices, but I still feel uncomfortable with 
wrapping the objects to the  HBox (or VBox) because they really yell for 
"freedom". Is there any way I could lay these objects out by stating just 
"layout as VBox" without adding any Vbox into the stage ? 



[flexcoders] Re: Spark DropDownList Custom ItemRenderer Issue

2010-03-29 Thread azona26
Here's the code:
http://ns.adobe.com/mxml/2009";
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" autoDrawBackground="true"
height="20"   
creationComplete="itemrenderer_creationCompleteHandler(event)"> 
 

Thanks for the assistance!
--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> What does your renderer code look like?
>
>
> On 3/29/10 8:08 AM, "azona26" azsl1326-em...@... wrote:
>
>
>
>
>
>
> I have a Spark DropDownList that has a custom ItemRenderer. The
ItemRenderer, upon creation, checks the label text and if it matches
certain criteria, then the label text color changes. The label text
color is changing, however it is for the wrong label. What appears to be
happening is that the label color that is actually being changed is in
reverse order of how the labels are displayed in the drop down list.
>
> For example, the list contains the text labels: One, Two, Three, Four,
and is being displayed in that exact order. I am checking for the label
"One" and then changing it's text color. What actually ends up !
happening is that the text color for "Four" (first item from bottom) is
actually being changed. If I check for the text label, "Three", then the
text color for "Two" (third item from bottom) gets changed. If I check
for the label text "Four", the text color for "One" (fourth item from
bottom) gets changes. This functionality seems to hold true for each
item in the DropDownList.
>
> Any suggestions on how to resolve this issue so that the correct text
color is being changed?
>
> Thanks for the assistance.
>
>
>
>
>
> --
> Alex Harui
> Flex SDK Team
> Adobe System, Inc.
> http://blogs.adobe.com/aharui
>



Re: [flexcoders] Spark DropDownList Custom ItemRenderer Issue

2010-03-29 Thread Alex Harui
What does your renderer code look like?


On 3/29/10 8:08 AM, "azona26"  wrote:






I have a Spark DropDownList that has a custom ItemRenderer. The ItemRenderer, 
upon creation, checks the label text and if it matches certain criteria, then 
the label text color changes. The label text color is changing, however it is 
for the wrong label. What appears to be happening is that the label color that 
is actually being changed is in reverse order of how the labels are displayed 
in the drop down list.

For example, the list contains the text labels: One, Two, Three, Four, and is 
being displayed in that exact order. I am checking for the label "One" and then 
changing it's text color. What actually ends up ! happening is that the text 
color for "Four" (first item from bottom) is actually being changed. If I check 
for the text label, "Three", then the text color for "Two" (third item from 
bottom) gets changed. If I check for the label text "Four", the text color for 
"One" (fourth item from bottom) gets changes. This functionality seems to hold 
true for each item in the DropDownList.

Any suggestions on how to resolve this issue so that the correct text color is 
being changed?

Thanks for the assistance.





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


Re: [flexcoders] Error #2170: Security sandbox violation

2010-03-29 Thread Oleg Sivokon
http://test.salesforce.com/crossdomain.xml must permit your domain to
connect and get the data. If it doesn't, you'll have to either ask the
owners of that domain to add your domain to the list or proxy the requests
to their domain through your own proxy.

Best.

Oleg


[flexcoders] Re: Adding Drag/Drop with selected text within a TextArea

2010-03-29 Thread valdhor
I don't think you need to extend any classes.

You already know what the text is in the Text Input and you already know the 
text that the user is dragging so all you need to know is where the user has 
the mouse at the current moment and where they release the mouse button. The 
first is so you can place a vertical bar inside the text to show where the drop 
should happen. The second is where they let go of the mouse and the insert 
should happen. 
http://livedocs.adobe.com/flex/3/html/help.html?content=containers_intro_5.html 
should give you an idea of how to get the mouse position. Then all you need to 
do is grab both pieces of text, merge them at the mouse position and put the 
result back in the text input.

--- In flexcoders@yahoogroups.com, "gareth_arch"  wrote:
>
> Yeah, that's what I meant.  I never ended up changing the arrow to a hand.  
> It's the blinking "I" (when you click in a TextInput) that is causing the 
> issue.  The CursorManager only seems to be for switching the mouse cursor, 
> not stopping the blinking "I" insertion thing from making Flex think it's 
> inside the TextArea still.
> 
> My latest issue is that I'm trying to figure out how to allow the user to 
> insert the text at the exact drop point of the mouse cursor (previously I was 
> just replacing what was in there with the selected text).  Will I have to 
> extend TextInput and TextArea so I can access the protected TextField or is 
> there a method within the TextInput and TextArea that I can reference 
> externally (without the need to extend the Flex components)?
> 
> --- In flexcoders@yahoogroups.com, "valdhor"  wrote:
> >
> > There are other cursors you can set it to. That one was to set it back to 
> > the standard system cursor.
> > 
> > --- In flexcoders@yahoogroups.com, "gareth_arch"  wrote:
> > >
> > > This appears to just be for the mouse cursor.  It's actually in the 
> > > TextArea itself (the blinking "I" bar).  I got it working by doing a 
> > > this.setFocus() in the component outside of the TextArea, then it removes 
> > > the focus.
> > > 
> > > --- In flexcoders@yahoogroups.com, "valdhor"  wrote:
> > > >
> > > > When the drop is made, use the CursorManager class to set the cursor...
> > > > 
> > > > CursorManager.setCursor(CursorManager.NO_CURSOR);
> > > > 
> > > > --- In flexcoders@yahoogroups.com, "gareth_arch"  wrote:
> > > > >
> > > > > OK, very close with this now.
> > > > > 
> > > > > The final thing is that after I have dragged the value to the 
> > > > > TextInputs, and dropped the value into them, the original TextArea 
> > > > > still thinks the mouse is over it (so as you move the mouse around it 
> > > > > looks like the mouse is still clicked in the TextArea and selects and 
> > > > > deselects the text).
> > > > > 
> > > > > I've tried firing mouse_click and mouse_out events from the TextArea, 
> > > > > or setting the begin and end indices to 0, but nothing seems to stop 
> > > > > it from "thinking" the mouse is still clicked in the TextArea.
> > > > > 
> > > > > --- In flexcoders@yahoogroups.com, "gareth_arch"  wrote:
> > > > > >
> > > > > > Our end user is wanting us to try to build something where they can 
> > > > > > drag text from the left side (in a TextArea) to TextInput boxes on 
> > > > > > the right hand side.
> > > > > > 
> > > > > > I've tried some different ways to try to accomplish this:
> > > > > > 
> > > > > > Making the TextArea draggable - This then prevents using the mouse 
> > > > > > to highlight the text because as soon as you start to select the 
> > > > > > text, you are now dragging the textarea.
> > > > > > 
> > > > > > Trying to get the selected text, but it gets deselected as soon as 
> > > > > > you "re-click" the selected text.
> > > > > > 
> > > > > > My latest solution (which I thought *might* be OK with the end 
> > > > > > user) is adding a mouse_up listener to the textarea, which then 
> > > > > > adds the selected text to a variable.  The user can then double 
> > > > > > click the TextInput box, and the previously selected text is added 
> > > > > > to the TextInput.text  This got an "ah, hmm" from our end user, so 
> > > > > > I'm trying to figure out something else, or this will be it :)
> > > > > > 
> > > > > > I'm trying to figure out how to keep the text selected "on 
> > > > > > re-click"...so highlight text with mouse, left click on selected 
> > > > > > text (text stays highlighted), and then I can use the DragManager 
> > > > > > and some finagling to get the text to the TextInputs hopefully.  
> > > > > > Only problem is, as soon as I re-click, the selected text is 
> > > > > > deselected.  Any way to prevent this from happening (or any other 
> > > > > > solutions that someone might have are always welcome)?
> > > > > > 
> > > > > > Thanks.
> > > > > >
> > > > >
> > > >
> > >
> >
>




[flexcoders] Fold empty packages when using SVN

2010-03-29 Thread tntomek
This might be more of an Eclipse/Subversive/Subclipse question but I thought 
I'd post anyways.

Is there any way to get Flash Builder to auto fold empty packages when using 
SVN? 

Eclipse is nice enough to not show the .svn subfolders but looks like that is 
independent of the part where it auto folds namespaces.

Does Subversive or Subclipse fix this?

-Tomek (http://tomek.me)



[flexcoders] Spark DropDownList Custom ItemRenderer Issue

2010-03-29 Thread azona26
I have a Spark DropDownList that has a custom ItemRenderer. The
ItemRenderer, upon creation, checks the label text and if it matches
certain criteria, then the label text color changes. The label text
color is changing, however it is for the wrong label. What appears to be
happening is that the label color that is actually being changed is in
reverse order of how the labels are displayed in the drop down list.
For example, the list contains the text labels: One, Two, Three, Four,
and is being displayed in that exact order. I am checking for the label
"One" and then changing it's text color. What actually ends up happening
is that the text color for "Four" (first item from bottom) is actually
being changed. If I check for the text label, "Three", then the text
color for "Two" (third item from bottom) gets changed. If I check for
the label text "Four", the text color for "One" (fourth item from
bottom) gets changes. This functionality seems to hold true for each
item in the DropDownList.
Any suggestions on how to resolve this issue so that the correct text
color is being changed?
Thanks for the assistance.


[flexcoders] Graphics

2010-03-29 Thread Dan Vega
I copied an example from a website and for whatever reason I can not get the
graphics to show up? No errors and the example runs fine except I don't see
the rectangle or the ellipse? What gives?


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


 




 






 








 






Thank You
Dan Vega
danv...@gmail.com
http://www.danvega.org/


Re: [flexcoders] Security Cameras

2010-03-29 Thread Kevin F. Benz

Load a http analyzer to determine of the request is happening. If so
Look at the server logs to determing if it's seeing the traffic or for  
any errors.


Kevin F. Benz (iPhone)
kb...@kbenz.com

On Mar 28, 2010, at 12:01 PM, "archtechcomputers" > wrote:



Hi
I have a Flex3 application that is displaying images from a security  
camera.  The camera doesn't stream video but I can get a jpg from  
it. Because the camera is on a different network, I had to write a  
php application to get the jpg and send it to the flex app (due to  
security)


The flex app has an auto update that after the image has loaded, a  
10 sec timer runs and reloads the image. I load the image into a new  
bitmap and then swap the images.
Currently it stopped working. it seems to only show the last image,  
like a caching issue. If I call on the php app the image updates  
with every reload.  I don't see what might be causing this.


Any suggestions.

I was just looking at Tour de FLEX, and there were Effects like  
Crossfade that could switch between images, but could I make the  
images dynamic, not embedded?


Thanks




Re: [flexcoders] Upload image from local disk to textarea

2010-03-29 Thread gabriel montagné
Hi Venkat,

On 29 March 2010 02:30, Venkateswara  wrote:

> I need to upload an image from local disk by clicking an button(Browse),the
> image needs to be loaded in the textarea.

I don't really understand how are you thinking to load the image in the text
area, but perhaps, for uploading an image from local disk, I can help you out
with this,

http://github.com/gabrielmontagne/avena/blob/master/src/com/rojored/net/ImageUploader.as

Which can be used like,

http://gist.github.com/347872

HTH,
Gabriel

--
gabriel montagné láscaris comneno
http://rojored.com
+44 (0) 7500 709 209


[flexcoders] Upload image from local disk to textarea

2010-03-29 Thread Venkateswara
Hi,
 I need to upload an image from local disk by clicking an button(Browse),the 
image needs to be loaded in the textarea.

Can anyone solve me out.

Thanks & Regards,
venkat



[flexcoders] Increase the height of Flex Container dynamically

2010-03-29 Thread shrutijakhete
Hi,

I am trying to increase the height of container with increase in the number of 
contents inside the container.
Like in my case I m using tileList and have put contents within it .When I put 
contents inside the tileList, the height of tileList does not increase 
beyond vertical height of the viewport. It puts scrollbar on the container. I 
want to increase the height of an flex container with increase in the contents 
and introduce scrollbar on the browser with increase in contents in the flex 
container.

Could anybody suggest me the way out for the same.

Thanks.



[flexcoders] Re: How to attach a local file to an email with URLRequest from AIR

2010-03-29 Thread Venkateswara


--- In flexcoders@yahoogroups.com, "breizo"  wrote:
>
> I am trying to send an email through the default local email system with 
> URLRequest. 
> Tried the example below with no success. 
> Also tried to add " around s with no more success...
> Has anybody done it before?
> 
> Thanks
> 
> var file:File = File.documentsDirectory("myfile.txt");
> var s:String = file.url;
> 
> var request:URLRequest=new 
> URLRequest("mailto:a...@b.com?subject=hello&body=trying to 
> attach&attachment="+s);
> navigateToURL(request,"_self");
>




[flexcoders] Error #2170: Security sandbox violation

2010-03-29 Thread jeyathilak
Hi,

When connecting to Salesforce from Flex Builder, there is no problem. But when I
deploy the Flex app to a webserver and connect to Salesforce, it throws this
error during runtime.

Error #2170: Security sandbox violation:
http://192.168.1.113:8080/yfiles-flex/sf/salesforce.swf cannot send HTTP headers
to http://test.salesforce.com/services/Soap/u/16.0?1000.7836196422577

I added salesforce url in the security panel of swf settings to allow connection
to http://test.salesforce.com/services/Soap/u/16.0

I have also unchecked the https connection request in salesforce admin
interface. (so that it is a http to http connection)

Anyone had this error before and any inputs on how you solved it?

Thank you
David.



Re: [flexcoders] FlashBuilder 4 Linux Released!

2010-03-29 Thread Guillaume Aveline



Le 29/03/2010 12:47, Tom Chiverton a écrit :


On Thursday 25 Mar 2010, feiy wrote:
> base the office released FlashBuilder4 2010/03/23.
> more info:

All the links except the GoogleCode one are dead, and I doubt the legal
situation has been cleared up ?



quote :

port the Adobe Flash Builder 4 to Linux

this is not a official version.





--
Helping to efficiently harvest attention-grabbing portals as part of 
the IT

team of the year 2010, '09 and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in 
England and Wales under registered number OC307980 whose registered 
office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, 
Manchester, M3 3EB. A list of members is available for inspection at 
the registered office together with a list of those non members who 
are referred to as partners. We use the word ?partner? to refer to a 
member of the LLP, or an employee or consultant with equivalent 
standing and qualifications. Regulated by the Solicitors Regulation 
Authority.


CONFIDENTIALITY

This email is intended only for the use of the addressee named above 
and may be confidential or legally privileged. If you are not the 
addressee you must not read it and must not use any information 
contained in nor copy it nor inform any person other than Halliwells 
LLP or the addressee of its existence or contents. If you have 
received this email in error please delete it and notify Halliwells 
LLP IT Department on 0870 365 2500.


For more information about Halliwells LLP visit www.Halliwells.com 
.





--
*Guillaume Aveline*
Ingénieur développement
_www.Pikko-Software.com_


Re: [flexcoders] FlashBuilder 4 Linux Released!

2010-03-29 Thread Tom Chiverton
On Thursday 25 Mar 2010, feiy wrote:
> base the office released FlashBuilder4 2010/03/23.
> more info:

All the links except the GoogleCode one are dead, and I doubt the legal 
situation has been cleared up ?

-- 
Helping to efficiently harvest attention-grabbing portals as part of the IT 
team of the year 2010, '09 and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.

Re: [flexcoders] Re: Do you need to uninstall Flex 3 before installing Flex 4?

2010-03-29 Thread Tom Chiverton
On Wednesday 24 Mar 2010, reflexactions wrote:
> You should note that although using the standlone version both can coexist,
> the project file format is different so you cant actually access a project
> with FB3 once you have accessed it using FB4.

To clarify, you are talking about the Builder IDE, whereas the OP seemed to be 
just asking about the SDK (compiler), in which case, yes, they absolutely can 
exist side by side.
Even if you upgrade to Builder 4, you can still access both the v4 and v3 
SDKs, which is very important if you are (re)working older projects and want 
to be sure they come out the same as they used to.

-- 
Helping to quickly reintermediate high-yield ubiquitous synergistic clusters 
as part of the IT team of the year 2010, '09 and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.

Re: [flexcoders] Re: Flash builder 4 installation options

2010-03-29 Thread Tom Chiverton
On Wednesday 24 Mar 2010, stephen_anson wrote:
> Sorry that was meant to read is Flash Builder 4 plugin going to work ok in
> eclipse 3.4.2

I have no idea, Adobe are leaving us Linux users hanging so I've just been 
using the standalone in a virtual machine.
The download page should say.

-- 
Helping to interactively leverage revolutionary viral methodologies as part of 
the IT team of the year 2010, '09 and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.

Re: [flexcoders] Re: Font Embedding from *.ttc files

2010-03-29 Thread Baz
He is not a genius, just highly gifted, he missed the mensa cut-off by 2
points...

/RandomLateNightComment


[flexcoders] Re: Font Embedding from *.ttc files

2010-03-29 Thread dmjabbo
Pete - you're a genius. Works like a charm - thanks a million!

Duncan


--- In flexcoders@yahoogroups.com, Peter Farland  wrote:
>
> In the @font-face rule use the full font name in the fontFamily alias to 
> describe the specific face in the TTC file that you're trying to embed. 
> 
> @font-face {
> fontFamily: "Helvetica Neue Condensed Bold";
> ...
> }
> 
> 
> Pete
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> Behalf Of dmjabbo
> Sent: Thursday, March 25, 2010 10:29 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Font Embedding from *.ttc files
> 
> Anyone got any ideas on this? I'm desperate!
> 
> 
> --- In flexcoders@yahoogroups.com, "dmjabbo"  wrote:
> >
> > Hi All,
> > This may be a very quick one for one of you clever folks but it has got
> > me completely stumped.
> > How on earth do you embed a specific typeface from a .ttc file?
> > I have HelveticaNeue.ttc which contains 11 typfaces and I'm embedding
> > using css / @font-face. I can get at the standard typefaces such as
> > regular, bold and italic by setting the fontStyle attribute but and I
> > need to embed some others like "Condensed Bold" and "UltraLight".
> > If I set fontStyle to anything non-standard I just get the regular /
> > normal typeface.
> > Any anyone shed some light on this please?
> > ThanksDuncan
> > PS - using Flex 4 and CFF
> >
> 
> 
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location: 
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
>