[flexcoders] arraycollection to xml

2006-08-18 Thread keithtucci
i have an xml as my source for a model which i use as the source for 
arraycollection.  in my array collection i may add or remove items.  
i would like to get the modified arraycollection back to xml format.  
the reason for needing the arraycollection in xml format is i use 
zinc to save the xml file locally.

--


public function addPerson():void {
ac.addItem({first:firstInput.text, last:lastInput.text,
email:emailInput.text});
//clearInputs();
}

public function removePerson():void {
if (dg.selectedIndex >= 0) {
ac.removeItemAt(dg.selectedIndex);
}
}

public function updatePerson():void {
if (dg.selectedItem !== null) {
ac.setItemAt({first:firstInput.text, last:lastInput.text,
email:emailInput.text}, dg.selectedIndex);
}
}

 






 











any help will be greatly appreciated...

thanks

keith






--
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] SWFLoader - local parent SWF / remote child SWF

2006-11-24 Thread keithtucci
i have a local SWF file (to be more exact a projector executable, built 
w/ zinc) that needs to use SWFLOADER to run a remote swf file.  i get 
sandbox security errors when i attempt to do this...

is this even possible...?

thanks in advance...



[flexcoders] modules & httpservice

2007-09-11 Thread keithtucci
i am attempting to use ModuleLoader to load a module that is using 
httpservice and i keep getting a 1009 error.  i am not sure if this 
is a known issue or i am just doing something incorrectly...

any ideas...?

TypeError: Error #1009: Cannot access a property or method of a null 
object reference.
at mx.rpc::AbstractInvoker$cinit()
at [newclass]
at global$init()
at global$init()
at test1c/private::_test1c_HTTPService1_i()
at test1c()
at _test1c_mx_core_FlexModuleFactory/create()
at mx.modules::ModuleLoader/private::moduleReadyHandler()
at 
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEv
entFunction()
at flash.events::EventDispatcher/dispatchEvent()
at private::ModuleInfoProxy/private::moduleEventHandler()
at 
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEv
entFunction()
at flash.events::EventDispatcher/dispatchEvent()
at private::ModuleInfo/readyHandler()
at 
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEv
entFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::FlexModuleFactory/private::update()
at mx.core::FlexModuleFactory/private::docFrameHandler()
at [execute-queued]




[flexcoders] Re: modules & httpservice

2007-09-12 Thread keithtucci
thanks for the feedback so far...

my orginal post was referncing a single project with both the module 
and the calling application in the same project.  this scenario is 
what caused the error.  

if i now create a new project and call the orginal module from the 
new project (the module is in the same domain but not in the same 
directory as the calling swf) then everything works just fine.  

i am not sure if that changes your assesment...

any thoughts...?



--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> I think the original poster is hitting a shared code issue.  
HTTPService
> might be in two different modules?  If putting a dummy HTTPService 
in
> the main app makes it go away, then that's what it is.
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of grimmwerks
> Sent: Tuesday, September 11, 2007 9:31 PM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] modules & httpservice
> 
>  
> 
> I'm getting the same error now; it's been working fine for awhile; 
I'd
> uninstalled and now just reinstalled the flash plugin:
> 
>  
> 
>   TypeError: Error #1009: Cannot access a property or method of 
a
> null object reference.
> 
>   at mx.effects.effectClasses::ZoomInstance/play
()
> 
>   at mx.effects::EffectInstance/startEffect()
> 
>   at
> mx.effects.effectClasses::ParallelInstance/play()
> 
>   at mx.effects::EffectInstance/startEffect()
> 
>   at mx.effects::Effect/play()
> 
>   at mx.core::UIComponent/::commitCurrentState()
> 
>   at
> mx.core::UIComponent/::creationCompleteHandler()
> 
>   at
> 
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEv
en
> tFunction()
> 
>   at flash.events::EventDispatcher/dispatchEvent
()
> 
>   at mx.core::UIComponent/dispatchEvent()
> 
>   at mx.core::UIComponent/set initialized()
> 
>   at
> mx.managers::LayoutManager/::doPhasedInstantiation()
> 
>   at mx.managers::LayoutManager/validateNow()
> 
>   at mx.core::UIComponent/::commitCurrentState()
> 
>   at
> mx.core::UIComponent/::creationCompleteHandler()
> 
>   at
> 
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEv
en
> tFunction()
> 
>   at flash.events::EventDispatcher/dispatchEvent
()
> 
>   at mx.core::UIComponent/dispatchEvent()
> 
>   at mx.core::UIComponent/set initialized()
> 
>   at
> mx.managers::LayoutManager/::doPhasedInstantiation()
> 
>   at
> Function/http://adobe.com/AS3/2006/builtin::apply(
> <http://adobe.com/AS3/2006/builtin::apply(> )
> 
>   at mx.core::UIComponent/::callLaterDispatcher2
()
> 
>   at mx.core::UIComponent/::callLaterDispatcher
()
> 
>  
> 
>  
> 
> On Sep 11, 2007, at 4:31 PM, keithtucci wrote:
> 
> 
> 
> 
> 
> i am attempting to use ModuleLoader to load a module that is using 
> 
> httpservice and i keep getting a 1009 error.  i am not sure if this 
> 
> is a known issue or i am just doing something incorrectly...
> 
>  
> 
> any ideas...?
> 
>  
> 
> TypeError: Error #1009: Cannot access a property or method of a 
null 
> 
> object reference.
> 
> at mx.rpc::AbstractInvoker$cinit()
> 
> at [newclass]
> 
> at global$init()
> 
> at global$init()
> 
> at test1c/private::_test1c_HTTPService1_i()
> 
> at test1c()
> 
> at _test1c_mx_core_FlexModuleFactory/create()
> 
> at mx.modules::ModuleLoader/private::moduleReadyHandler
()
> 
> at 
> 
> 
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEv
> 
> entFunction()
> 
> at flash.events::EventDispatcher/dispatchEvent()
> 
> at private::ModuleInfoProxy/private::moduleEventHandler
()
> 
> at 
> 
> 
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEv
> 
> entFunction()
> 
> at flash.events::EventDispatcher/dispatchEvent()
> 
> at private::ModuleInfo/readyHandler()
> 
> at 
> 
> 
flash.events::EventDispatcher/flash.events:EventDispa

[flexcoders] how to call a method in a custom mxml component

2006-08-30 Thread keithtucci
how do i go about calling a method in a custom mxml component from the 
main applciation...

currently in my mxml component, 'creationcomplete' calls my init 
method, but it only fires one time, when the applciation loads, but i 
need to fire that init method at other times, after the application has 
already loaded...

any help will be greatly appreciated...

thanks





--
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/