Re: [flexcoders] flex uploading to amazon s3

2007-08-24 Thread grimmwerks

Thanks


On Aug 24, 2007, at 6:58 PM, Peter Connolly wrote:


Should have included a link: http://tinyurl.com/2lsry7




Re: [flexcoders] flex uploading to amazon s3

2007-08-24 Thread grimmwerks


Argh. Does that mean only Apollo would be able to upload to s3?


On Aug 24, 2007, at 6:58 PM, Peter Connolly wrote:


Should have included a link: http://tinyurl.com/2lsry7

Sorry,
pc

On 8/24/07, Peter Connolly [EMAIL PROTECTED]  wrote:
Take a look at the Salsa application.


On 8/24/07, grimmwerks [EMAIL PROTECTED] wrote:
Has anyone attempted this before?








[flexcoders] ARGH rubyamf in debug vs non-debug

2007-08-24 Thread grimmwerks
For some reason any remote objects that I call get a 'send failed'  
when I'm in regular (non-debug) mode; but when I'm in debug mode,  
they're returning perfectly.

What is the difference in the compilation? What's NOT getting  
compiled in the non-debug mode?

This is driving me crazy.


[flexcoders] file upload max?

2007-08-26 Thread grimmwerks
Is the max filesize 100 megs? Testing upload functionality and it  
seems to be working, but I'm testing the max size, and huge files  
(224megs) report that they upload but then they're not there on the  
server...


[flexcoders] examples of form submits?

2007-08-29 Thread grimmwerks
Seems ridiculous, but does anyone have any examples of form submits  
to a ruby backend in flex? I originally created an application using  
rubyamf, but the ruby developer flipped to just simple form submitting.


Re: [flexcoders] examples of form submits?

2007-08-29 Thread grimmwerks

I'm trying to play with this, but I'm confused by the error I'm getting:

[RPC Fault faultString=HTTP request error  
faultCode=Server.Error.Request faultDetail=Error: [IOErrorEvent  
type=ioError bubbles=false cancelable=false eventPhase=2  
text=Error #2032: Stream Error. URL: http://localhost:3000/signup/ 
register]. URL: http://localhost:3000/signup/register;]
	at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/ 
internal::faultHandler()[C:\dev\enterprise_bali\frameworks;mx 
\rpc;AbstractInvoker.as:193]
	at mx.rpc::Responder/fault()[C:\dev\enterprise_bali\frameworks;mx 
\rpc;Responder.as:56]
	at mx.rpc::AsyncRequest/fault()[C:\dev\enterprise_bali 
\frameworks;mx\rpc;AsyncRequest.as:107]
	at DirectHTTPChannel.as$139::DirectHTTPMessageResponder/ 
errorHandler()[C:\dev\enterprise_bali\frameworks;mx\messaging 
\channels;DirectHTTPChannel.as:323]
	at flash.events::EventDispatcher/ 
flash.events:EventDispatcher::dispatchEventFunction()

at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/flash.net:URLLoader::redirectEvent()
at [io]


what's up with that C:\dev\enterprise_bali stuff? That's not my  
machine...?

Re: [flexcoders] examples of form submits?

2007-08-29 Thread grimmwerks
SIGH - just don't get it.

 [RPC Fault faultString=HTTP request error  
 faultCode=Server.Error.Request faultDetail=Error: [IOErrorEvent  
 type=ioError bubbles=false cancelable=false eventPhase=2  
 text=Error #2032: Stream Error. URL: http://localhost:3000/signup/ 
 register]. URL: http://localhost:3000/signup/register;]
   at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/ 
 internal::faultHandler()
   at mx.rpc::Responder/fault()
   at mx.rpc::AsyncRequest/fault()
   at private::DirectHTTPMessageResponder/errorHandler()
   at flash.events::EventDispatcher/ 
 flash.events:EventDispatcher::dispatchEventFunction()
   at flash.events::EventDispatcher/dispatchEvent()
   at flash.net::URLLoader/flash.net:URLLoader::redirectEvent()
   at [io]



[flexcoders] more httpservice / ruby form post fun

2007-08-29 Thread grimmwerks

Trying to simplify this:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;  
layout=absolute  
	mx:HTTPService id=temp url=http://localhost:3000/signup/ 
register result=resBack(event) resultFormat=e4x method=POST /

mx:TextArea id=txt  width=771 height=251/
mx:Button click=sendIt() label=Click  x=335 y=259/
mx:Script
![CDATA[
public function sendIt():void{
temp.send({first_name: first name});
}

private function resBack(event:Event):void{
txt.text = String(temp.lastResult);
}
]]
/mx:Script
/mx:Application



But when I click the button, I get:

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

at test/sendIt()
at test/___Button1_click()
at [mouseEvent]



Re: [flexcoders] more httpservice / ruby form post fun

2007-08-29 Thread grimmwerks
There's no event.result; there's event.toString() which I used - but  
again:


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

at test/sendIt()
at test/___Button1_click()
at [mouseEvent]



When I click on the button; I don't know what the hell null object  
it's referring to




On Aug 30, 2007, at 12:15 AM, Tracy Spratt wrote:


I don’t see anything wrong.

Try accessing some other properties of “temp” in the handler.

Oh, probably not related, but instead of:
txt.text = String(temp.lastResult);

Do:
txt.text = String(event.result);

Tracy
From: flexcoders@yahoogroups.com  
[mailto:[EMAIL PROTECTED] On Behalf Of grimmwerks

Sent: Wednesday, August 29, 2007 8:12 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] more httpservice / ruby form post fun

Trying to simplify this:


?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;  
layout=absolute  
   mx:HTTPService id=temp url=http://localhost:3000/signup/ 
register result=resBack(event) resultFormat=e4x method=POST /

   mx:TextArea id=txt  width=771 height=251/

   mx:Button click=sendIt() label=Click  x=335 y=259/

   mx:Script

  ![CDATA[
 public function sendIt():void{
   temp.send({first_name: first name});
 }


 private function resBack(event:Event):void{
   txt.text = String(temp.lastResult);
 }
  ]]
   /mx:Script
/mx:Application



But when I click the button, I get:

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

at test/sendIt()
at test/___Button1_click()
at [mouseEvent]






Re: [flexcoders] Re: more httpservice / ruby form post fun

2007-08-30 Thread grimmwerks

Added that but still:


hey
TypeError: Error #1009: Cannot access a property or method of a  
null object reference.
	at crap/sendIt()[/Users/grimm/Documents/__WORK/FLEX/ 
crap;;crap.mxml:42]
	at crap/___Button1_click()[/Users/grimm/Documents/__WORK/FLEX/ 
crap;;crap.mxml:25]

at [mouseEvent]


Maybe someone from Adobe can tell me what I'm doing wrong? What's the  
null object reference here?



On Aug 30, 2007, at 7:22 AM, ronnlixx wrote:


I'm not sure, but I think your missing a reference to the event:

mx:Button click=sendIt(event) label=Click x=335 y=259/

public function sendIt(e:Event):void{
  temp.send({first_name: first name});
 }





[flexcoders] e4x question

2007-08-30 Thread grimmwerks
Finally got my httprequest to work, but the results come back as xml;  
I was hoping to use e4x (cause I used to be all about xfactorstudio's  
xpath classes) -- but I'm curious how I'd get the toplevel 'success'  
response:

results
   successfalse/success
   user_id/
   errorcity can't be blank/error
   errorzip is not a number/error
   errorzip is the wrong length (should be 5 characters)/error
   erroraddress_line_1 can't be blank/error
   errorfirst_name can't be blank/error
   errorpassword can't be blank/error
   errorlast_name can't be blank/error
   errorstate can't be blank/error
   erroremail is invalid/error
   erroremail can't be blank/error
/results


I thought it would be like xml.results.success but it doesn't seem to  
be returning...


Re: [flexcoders] e4x question

2007-08-30 Thread grimmwerks
Sorry; nevermind, got it:

xml.success; the root (results) isn't needed.


[flexcoders] File not launchable?

2007-08-31 Thread grimmwerks
Clicking the main app.mxml of a project and I'm getting 'This file is  
not launchable' -- what up with that?


Re: [flexcoders] Where to learn intermediate/advanced Flex?

2007-08-31 Thread grimmwerks
I also think the Lynda vids are worthwhile.


[flexcoders] image embed and scaling question

2007-08-31 Thread grimmwerks
I've got an image that I want to have across the top - right now it's  
about 800x80; i'd like this to be pinned right/left and top with the  
height scaling to maintain the aspect ratio for the width --

I've been fiddling, but it doesn't work; any suggestions?


[flexcoders] macosx key command: switching source/design?

2007-08-31 Thread grimmwerks
Thought it was option+esc, but it's not flipping; just seems I'm  
clicking the buttons over and over, so


[flexcoders] couple of file upload questions...

2007-09-02 Thread grimmwerks

1) is there a way to upload (ruby backend) via an httpservice?

If so, does anyone have code to demonstrate this? I've got it working  
with the default fileupload stuff, but the ruby backend is tracking  
users via a session; we're most likely going to change this process  
so that a userid is sent downstream (my suggestion) but the ruby  
developer wants to track sessions.

2) is there a way to pass ADDITIONAL parameters via a filereference  
upload?  I want to pass videos to be uploaded (working) but I want to  
be able to pass a file's user-entered description as well.




Re: [flexcoders] couple of file upload questions...

2007-09-02 Thread grimmwerks


On Sep 2, 2007, at 10:32 PM, grimmwerks wrote:


2) is there a way to pass ADDITIONAL parameters via a filereference
upload?  I want to pass videos to be uploaded (working) but I want to
be able to pass a file's user-entered description as well.




Found it from an old post:


var params:URLVariables = new URLVariables();
params.id = 12345;
params.title = This Title;
params.description = This is a description of the file.;
request.data = params;


Re: [flexcoders] setting tab order?

2007-09-03 Thread grimmwerks
Nevermind; dope.


On Sep 3, 2007, at 11:17 PM, grimmwerks wrote:

 I've got two states that are based on another state which has 2
 TextInputs.  Since the other states ALSO have TextInputs, but
 physically above the other TextInputs, the tabbing order is screwed
 up -- it tabs correctly through the other TextInputs, but then jumps
 around before it gets to the consistent TextInputs.

 Is there a way of setting tab order?


 --
 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] TitleWindow close calling Application.application.currentstate?

2007-09-03 Thread grimmwerks
I'm trying to have a close window call upstream to the main  
application to switch the currentstate; is this possible? I keep  
getting:


Access of undefined property Application...


close={Application.application.currentState='start'}


[flexcoders] weird warnings...

2007-09-04 Thread grimmwerks
I'm getting stuff like this:


The type selector 'ComboBox' was not processed, because the type was  
not used in the application.Nestle  Admin.mxml  Unknown 1188872497063   
979

I've got one for a TitleWindow too - what am I missing here?


[flexcoders] datagrid dataProvider xml result -- date formatting?

2007-09-04 Thread grimmwerks
Ok, I'm sure it's going to be something like a labelfunction - but  
I've got an httpservice's result as a dataprovider for a datagrid:


video
bucket/
content-typeapplication/octet-stream/content-type
created-at type=datetime2007-09-04T00:23:00-04:00/created-at
description/
filename/
id type=integer1/id
original-filenameasfi acoustic.aif/original-filename
raw-filename/
titleasfi acoustic.aif/title
user-id type=integer/
/video


Would it be a labelfunction that would convert this to a nicer format?


[flexcoders] datagrid doubleclick -- fires what?

2007-09-04 Thread grimmwerks
I'm trying to figure out how to deal with a dataGrid's doubleClick -  
what type of event is fired?


Re: [flexcoders] NEW FLEX WEBSITE: ManureMail.com

2007-09-04 Thread grimmwerks
Think it looks great - but I'm curious how you put the link buttons  
right in the middle of the text -- is that built up or some secret  
htmlText trick?



On Sep 4, 2007, at 5:12 PM, Randy Cooper wrote:

Guys, I’d love to get your feedback on a new site I just launched  
built entirely in Flex. Thanks in advance for your comments.


Randy Cooper
[EMAIL PROTECTED]
http://www.randycooper.net
678.799.0152






[flexcoders] playing videos from s3

2007-09-06 Thread grimmwerks
We're trying to play some videos from an amazon s3 bucket, but we  
keep getting a security error.

I've tried putting a crossdomain.xml up there, but that's not working.

What's the correct way to deal with this?  Thanks


Re: [flexcoders] playing videos from s3

2007-09-06 Thread grimmwerks
Extremely frustrating; I'm now trying to deal with any possible  
crossdomain.xml or even putting the flash up on the s3 bucket; but  
the video won't load.


[flexcoders] good videoplayer components?

2007-09-06 Thread grimmwerks
Anyone have any suggestions?

I'm still fighting amazon s3...


[flexcoders] good videoplayer components?

2007-09-06 Thread grimmwerks
Anyone have any suggestions?

I'm still fighting amazon s3...


[flexcoders] content not allowed in prolog?

2007-09-08 Thread grimmwerks
I'm getting this error and I don't know what it means...


[flexcoders] main application's url?

2007-09-09 Thread grimmwerks
Hey - I've got a flex app that has to sit on the internet at  
different domains; what's the easiest way to get the main url for  
future httpservice callbacks, as 'localhost' doesn't seem to work...


[flexcoders] building up the url for httpservice

2007-09-09 Thread grimmwerks

Ok this is stupid.

Since we've got an app that might be moving around, I was going to  
either pass the rootURL in flash vars or strip it from the main  
application.url.


Well did all that but how do I set it in the httpservice's url with a  
variable AND a string:


url={rootURL+\/signup/register\}


?


[flexcoders] transitions between states in components

2007-09-10 Thread grimmwerks
I've got an app that has multiple states, and a component in that app  
that has multiple states.

When the main app sets from=* to=* then the component ALSO seems  
to use that transition.

Is there a way of scoping transitions so that the component uses it's  
own * transition, and the main application uses IT's *  
transition? By id perhaps?


Re: [flexcoders] Re: Flex eye candy source

2007-09-10 Thread grimmwerks

ArgumentError: Error #2015: Invalid BitmapData.
at flash.display::BitmapData()
at sandy.util::DistortImage/private::renderVector()
at sandy.util::DistortImage/initialize()
	at com.adobe.ac.mxeffects::SimpleDistortion/ 
private::initDistortImage()

at com.adobe.ac.mxeffects::SimpleDistortion/renderCorners()
at com.adobe.ac.mxeffects::SimpleDistortion/push()
	at com.adobe.ac.mxeffects.effectClasses::CubeRotateInstance/ 
private::updateComing()
	at mx.effects::Tween/http://www.adobe.com/2006/flex/mx/ 
internal::doInterval()

at mx.effects::Tween$/private::timerHandler()
at flash.utils::Timer/flash.utils:Timer::_timerDispatch()
at flash.utils::Timer/flash.utils:Timer::tick()





On Sep 10, 2007, at 7:04 PM, Doug McCune wrote:

Here's that app stepped up a notch: http://dougmccune.com/blog/ 
2007/03/27/updated-mxna-rss-reader-flex-app-now-with-source/


I posted the code for that one.

Doug

On 9/10/07, Abyss Knight [EMAIL PROTECTED]  wrote:
Most likely its from here, the cube effect that is:

http://weblogs.macromedia.com/auhlmann/archives/2007/03/ 
distortion_effe.cfm


--- In flexcoders@yahoogroups.com, garrett.reynolds
[EMAIL PROTECTED] wrote:

 Hi all was wondering if anyone knew where I could find the source
 code for the following Flex app? - There was no mention of the  
code on
 the site. I'm familar with the reflective effect but combined  
with the

 moving images and spinning box it is amazing

 http://dougmccune.com/flex/awesomerss2/

 Thanks, Garrett









[flexcoders] dumb: eclipse on dual monitor?

2007-09-10 Thread grimmwerks
Anyone have any tricks/settings for the Flex IDE on a dual monitor?  
Kind of driving me nuts.


[flexcoders] weird array/datagrid editable thing...

2007-09-10 Thread grimmwerks
Ok, I've got a file uploader where a user can select a file for upload.

When the user does this I'm adding a 'tile' and 'description'  
property to that item in the array.  I've made it so that these two  
cells are editable and allow the user to enter in the info; but when  
enter or escape is hit, it doesn't change that property's data in the  
array; instead it reverts back.

What am I missing?


Re: [flexcoders] weird array/datagrid editable thing...

2007-09-10 Thread grimmwerks
Is this something where I have to have a Model in place for an empty  
'fileItem' with certain properties being editable? Seems weird.


On Sep 11, 2007, at 12:16 AM, grimmwerks wrote:

 Ok, I've got a file uploader where a user can select a file for  
 upload.

 When the user does this I'm adding a 'tile' and 'description'
 property to that item in the array.  I've made it so that these two
 cells are editable and allow the user to enter in the info; but when
 enter or escape is hit, it doesn't change that property's data in the
 array; instead it reverts back.

 What am I missing?




Re: [flexcoders] weird array/datagrid editable thing...

2007-09-10 Thread grimmwerks

Thanks for responding Alex.


Well, it's simpler than that. Originally I had an Array where I'd  
push in an object:



uplist.push({

name:_refAddFiles.fileList[k].name,
title: 
_refAddFiles.fileList[k].name,
description: ,

size:formatFileSize(_refAddFiles.fileList[k].size),

file:_refAddFiles.fileList[k]});



Thing is, when it'd doubleclick and be able to change the title or  
description, the minute I'd escape/enter out of it, the info wouldn't  
change.


I've changed to an ArrayCollection and now, for example, description  
above -- it changes the first time you edit; but the next time you  
attempt to edit, the change isn't taken.


It's as if an empty string is ok to change, but a non-empty string  
won't change.


Should I instead use like a fileItem module and explicitly SET the  
property be editable? But then how does one push a module into an  
array?!






On Sep 11, 2007, at 12:48 AM, Alex Harui wrote:

What does the dataprovider look like?  What does the renderer look  
like?  What flags have you set on the DG and renderer?


From: flexcoders@yahoogroups.com  
[mailto:[EMAIL PROTECTED] On Behalf Of grimmwerks

Sent: Monday, September 10, 2007 9:32 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] weird array/datagrid editable thing...

Is this something where I have to have a Model in place for an empty
'fileItem' with certain properties being editable? Seems weird.

On Sep 11, 2007, at 12:16 AM, grimmwerks wrote:

 Ok, I've got a file uploader where a user can select a file for
 upload.

 When the user does this I'm adding a 'tile' and 'description'
 property to that item in the array. I've made it so that these two
 cells are editable and allow the user to enter in the info; but when
 enter or escape is hit, it doesn't change that property's data in  
the

 array; instead it reverts back.

 What am I missing?








Re: [flexcoders] disable themeColor for individual components

2007-09-11 Thread grimmwerks
CSS?

TitleWindow {
borderColor: #CC9966;
}


[flexcoders] changing a component's currentstate...

2007-09-11 Thread grimmwerks
Ok, I've got a main application, with a registration component that  
has many states.

With one button I want to set the main application's currentstate, as  
well as the component's currentstate.

When I do click={currentState=_registration;  
login.currentState=bday};  the main app works and shifts to the  
_registration state, but the component does NOT set itself back to  
the bday state.

Any suggestions?


[flexcoders] argh -- errors now

2007-09-11 Thread grimmwerks
I wanted to test a swfobject install for detecting the player so I  
uninstalled flash (mac os).


Now that I've reinstalled the debug player I'm getting:

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::dispatchEventFunction()

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::dispatchEventFunction()

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()
at mx.core::UIComponent/::callLaterDispatcher2()
at mx.core::UIComponent/::callLaterDispatcher()


Re: [flexcoders] modules httpservice

2007-09-11 Thread grimmwerks
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::dispatchEventFunction()

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::dispatchEventFunction()

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()
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:EventDispatcher::dispatchEv
entFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::FlexModuleFactory/private::update()
at mx.core::FlexModuleFactory/private::docFrameHandler()
at [execute-queued]




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







Re: [flexcoders] changing a component's currentstate...

2007-09-11 Thread grimmwerks
Anybody know exactly where I can find what version of the flash  
plugin flex 2 expects? I'm getting alerts saying I'm not updated, and  
am trying to make sure it's all installed right -- I think I even  
installed the h.264 update...



On Sep 12, 2007, at 12:08 AM, grimmwerks wrote:

 Ok, I've got a main application, with a registration component that
 has many states.

 With one button I want to set the main application's currentstate, as
 well as the component's currentstate.

 When I do click={currentState=_registration;
 login.currentState=bday};  the main app works and shifts to the
 _registration state, but the component does NOT set itself back to
 the bday state.

 Any suggestions?


 --
 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] type 1009 because of zoominstance?

2007-09-11 Thread grimmwerks

2 different machines are now throwing this error that hadn't before;

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::dispatchEventFunction()

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::dispatchEventFunction()

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()
at mx.core::UIComponent/::callLaterDispatcher2()
at mx.core::UIComponent/::callLaterDispatcher()



One machine still can't get the flash player installed properly.

[flexcoders] 1009 error

2007-09-12 Thread grimmwerks

This is getting frustrating.

I've removed all references to transitions/effects, and have a simple  
button on click calling function {resetRegWindow()}.


There IS a resetRegWindow function.

I get this:

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

at Nestle/resetRegWindow()
at Nestle/___LinkButton2_click()




[flexcoders] sorry - one more about effects...

2007-09-12 Thread grimmwerks
Trying to do about 50 things at once for a demo today.

Say I've got a state with a number of addChildren elements. I've got  
a transition I want to call on those children, but not all at once --  
in sequence. How can I do this?  I realize the Sequence is for  
sequencing effects, not elements; but is there something like that  
here? Or will I have to roll my own function to step through an array?


[flexcoders] sequencing effects

2007-09-12 Thread grimmwerks
Trying to do about 50 things at once for a demo today.

Say I've got a state with a number of addChildren elements. I've got
a transition I want to call on those children, but not all at once --
in sequence. How can I do this?  I realize the Sequence is for
sequencing effects, not elements; but is there something like that
here? Or will I have to roll my own function to step through an array?



Re: [flexcoders] Binding component variable to application variable?

2007-09-12 Thread grimmwerks


On Aug 13, 2007, at 12:10 PM, Alex Harui wrote:


Sorry, {Application.application.mainVariable}


I'm trying to have  a TitleWindow's close call a main application  --  
ie close={Application.application.closeWindow()} -- but I'm getting  
'acces of undefined property 'Application'.


I have to do something like this, as this component and its  
TitleWindow is not added til a later state.

Re: [flexcoders] sequencing effects

2007-09-12 Thread grimmwerks

You put the addChild WITHIN the transition?

Is there an example of this somewhere? I didn't know you could do that.


On Sep 12, 2007, at 3:11 PM, Mike Krotscheck wrote:

If you set up a transition to said state that contains AddChild  
directives, they will occur in the order and with the timing  
configured.


Michael Krotscheck
Senior Developer

RESOURCE INTERACTIVE
www.resource.com
614 621 2888  main
614 410 3195  direct
412 726 8087  mobile
[EMAIL PROTECTED]
From: flexcoders@yahoogroups.com  
[mailto:[EMAIL PROTECTED] On Behalf Of grimmwerks

Sent: Wednesday, September 12, 2007 12:25 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] sequencing effects

Trying to do about 50 things at once for a demo today.

Say I've got a state with a number of addChildren elements. I've got
a transition I want to call on those children, but not all at once --
in sequence. How can I do this? I realize the Sequence is for
sequencing effects, not elements; but is there something like that
here? Or will I have to roll my own function to step through an array?






[flexcoders] here's a fun one: addEventListener to componet's titleWindow....

2007-09-12 Thread grimmwerks
Ok, here's the setup:

MAIN APP
State=reg
Component=login
TitleWindow

At the main app's start, the state is NOT 'reg'. A button sets the  
main app's state to 'login'.

How then can I get that the TitleWindow - held by the component - is  
being closed?

I've tried to do a setEventHandler but it doesn't work.

So on the titleWindow's close, do I dispatch an event, and have the  
main application listen for it?

But how do I set it, if, at the creationComplete if the component  
'login' doesn't exist until the state 'reg' is called?


Re: [flexcoders] here's a fun one: addEventListener to componet's titleWindow....

2007-09-12 Thread grimmwerks

Lessee...

How can the main application get the 'close' event of a TitleWindow  
inside a component when the component is added in a state via addChild?


What can I do when that state is inited -- and the component is added  
to the stage -- to create a listener of the components TitleWindow?


Howzat?

On Sep 12, 2007, at 6:25 PM, Michael Schmalle wrote:


 How then can I get that the TitleWindow - held by the component - is
being closed?

Can you restate that sentence ?

Mike

On 9/12/07, grimmwerks [EMAIL PROTECTED]  wrote:
Ok, here's the setup:

MAIN APP
State=reg
Component=login
TitleWindow

At the main app's start, the state is NOT 'reg'. A button sets the
main app's state to 'login'.

How then can I get that the TitleWindow - held by the component - is
being closed?

I've tried to do a setEventHandler but it doesn't work.

So on the titleWindow's close, do I dispatch an event, and have the
main application listen for it?

But how do I set it, if, at the creationComplete if the component
'login' doesn't exist until the state 'reg' is called?




--
Teoti Graphix
http://www.teotigraphix.com

Blog - Flex2Components
http://www.flex2components.com

You can find more by solving the problem then by 'asking the  
question'. 




Re: [flexcoders] Binding component variable to application variable?

2007-09-12 Thread grimmwerks


On Sep 12, 2007, at 4:30 PM, Alex Harui wrote:


Did you import mx.core.Application?





ALEX!  I had no idea!

You're awesome; fixes my titlewindow close conundrum!

Re: [flexcoders] sequencing effects

2007-09-12 Thread grimmwerks
Thanks Mike -- but it doesn't seem to be working with AddChild; it  
seems that when I do an addChild, nothing gets inited...




On Sep 12, 2007, at 4:52 PM, Mike Krotscheck wrote:

You need to have the addChild in the state declaration and the  
transition itself, but yes- effectively what you’re doing is  
telling the state when it should remove the child. Here’s a brief  
example on something I did recently- it’s not AddChild, but if I  
hadn’t built it out explicitly like this the removechild of the  
state itself would have fired before the transition started.


mx:Transition fromState=state1  
toState=state2

mx:Sequence
mx:Parallel  
duration=2000

mx:Move
   
  target={floatingOffStageComponent}
   
  xFrom=0
   
  xTo=-400
   
  easingFunction={mx.effects.easing.Cubic.easeOut}
   
  /

mx:Move
   
  target={floatingOnStageComponent}
   
  xFrom=-400
   
  xTo=0
   
  easingFunction={mx.effects.easing.Cubic.easeOut}
   
  /

/mx:Parallel
 
mx:RemoveChildAction target={floatingOffStageComponent} /

/mx:Sequence
/mx:Transition


Michael Krotscheck
Senior Developer

RESOURCE INTERACTIVE
www.resource.com
614 621 2888  main
614 410 3195  direct
412 726 8087  mobile
[EMAIL PROTECTED]
From: flexcoders@yahoogroups.com  
[mailto:[EMAIL PROTECTED] On Behalf Of grimmwerks

Sent: Wednesday, September 12, 2007 4:29 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] sequencing effects

You put the addChild WITHIN the transition?


Is there an example of this somewhere? I didn't know you could do  
that.



On Sep 12, 2007, at 3:11 PM, Mike Krotscheck wrote:


If you set up a transition to said state that contains AddChild  
directives, they will occur in the order and with the timing  
configured.


Michael Krotscheck
Senior Developer

RESOURCE INTERACTIVE
www.resource.com
614 621 2888  main
614 410 3195  direct
412 726 8087  mobile
[EMAIL PROTECTED]
From: flexcoders@yahoogroups.com  
[mailto:[EMAIL PROTECTED] On Behalf Of grimmwerks

Sent: Wednesday, September 12, 2007 12:25 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] sequencing effects

Trying to do about 50 things at once for a demo today.

Say I've got a state with a number of addChildren elements. I've got
a transition I want to call on those children, but not all at once --
in sequence. How can I do this? I realize the Sequence is for
sequencing effects, not elements; but is there something like that
here? Or will I have to roll my own function to step through an array?







Re: [flexcoders] sequencing effects

2007-09-13 Thread grimmwerks
I couldn't get addChild to work within a transition; I did searches  
for this in google, but nothing came up. If someone's got specific  
examples, I'd appreciate it.



On Sep 12, 2007, at 4:52 PM, Mike Krotscheck wrote:

You need to have the addChild in the state declaration and the  
transition itself, but yes- effectively what you’re doing is  
telling the state when it should remove the child. Here’s a brief  
example on something I did recently- it’s not AddChild, but if I  
hadn’t built it out explicitly like this the removechild of the  
state itself would have fired before the transition started.


mx:Transition fromState=state1  
toState=state2

mx:Sequence
mx:Parallel  
duration=2000

mx:Move
   
  target={floatingOffStageComponent}
   
  xFrom=0
   
  xTo=-400
   
  easingFunction={mx.effects.easing.Cubic.easeOut}
   
  /

mx:Move
   
  target={floatingOnStageComponent}
   
  xFrom=-400
   
  xTo=0
   
  easingFunction={mx.effects.easing.Cubic.easeOut}
   
  /

/mx:Parallel
 
mx:RemoveChildAction target={floatingOffStageComponent} /

/mx:Sequence
/mx:Transition


Michael Krotscheck
Senior Developer

RESOURCE INTERACTIVE
www.resource.com
614 621 2888  main
614 410 3195  direct
412 726 8087  mobile
[EMAIL PROTECTED]
From: flexcoders@yahoogroups.com  
[mailto:[EMAIL PROTECTED] On Behalf Of grimmwerks

Sent: Wednesday, September 12, 2007 4:29 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] sequencing effects

You put the addChild WITHIN the transition?


Is there an example of this somewhere? I didn't know you could do  
that.



On Sep 12, 2007, at 3:11 PM, Mike Krotscheck wrote:


If you set up a transition to said state that contains AddChild  
directives, they will occur in the order and with the timing  
configured.


Michael Krotscheck
Senior Developer

RESOURCE INTERACTIVE
www.resource.com
614 621 2888  main
614 410 3195  direct
412 726 8087  mobile
[EMAIL PROTECTED]
From: flexcoders@yahoogroups.com  
[mailto:[EMAIL PROTECTED] On Behalf Of grimmwerks

Sent: Wednesday, September 12, 2007 12:25 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] sequencing effects

Trying to do about 50 things at once for a demo today.

Say I've got a state with a number of addChildren elements. I've got
a transition I want to call on those children, but not all at once --
in sequence. How can I do this? I realize the Sequence is for
sequencing effects, not elements; but is there something like that
here? Or will I have to roll my own function to step through an array?







Re: [flexcoders] sequencing effects

2007-09-13 Thread grimmwerks
Still curious if this can be done; I mean I could write my own  
class / method that would flip through an array and make sure the  
first one is finished before going on to the other; but I've also  
tried giving different elements on the page different effects with a  
startDelay - that ALMOST works, meaning, they wait for the delayed  
time and then initiated their effect, but they're visible until that  
time.




On Sep 13, 2007, at 1:19 PM, grimmwerks wrote:

I couldn't get addChild to work within a transition; I did searches  
for this in google, but nothing came up. If someone's got specific  
examples, I'd appreciate it.



On Sep 12, 2007, at 4:52 PM, Mike Krotscheck wrote:

You need to have the addChild in the state declaration and the  
transition itself, but yes- effectively what you’re doing is  
telling the state when it should remove the child. Here’s a brief  
example on something I did recently- it’s not AddChild, but if I  
hadn’t built it out explicitly like this the removechild of the  
state itself would have fired before the transition started.


mx:Transition fromState=state1  
toState=state2

mx:Sequence
mx:Parallel  
duration=2000

mx:Move
  
   target={floatingOffStageComponent}
  
   xFrom=0
  
   xTo=-400
  
   easingFunction={mx.effects.easing.Cubic.easeOut}
  
   /

mx:Move
  
   target={floatingOnStageComponent}
  
   xFrom=-400
  
   xTo=0
  
   easingFunction={mx.effects.easing.Cubic.easeOut}
  
   /

/mx:Parallel
 
mx:RemoveChildAction target={floatingOffStageComponent} /

/mx:Sequence
/mx:Transition


Michael Krotscheck
Senior Developer

RESOURCE INTERACTIVE
www.resource.com
614 621 2888  main
614 410 3195  direct
412 726 8087  mobile
[EMAIL PROTECTED]
From: flexcoders@yahoogroups.com  
[mailto:[EMAIL PROTECTED] On Behalf Of grimmwerks

Sent: Wednesday, September 12, 2007 4:29 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] sequencing effects

You put the addChild WITHIN the transition?


Is there an example of this somewhere? I didn't know you could do  
that.



On Sep 12, 2007, at 3:11 PM, Mike Krotscheck wrote:


If you set up a transition to said state that contains AddChild  
directives, they will occur in the order and with the timing  
configured.


Michael Krotscheck
Senior Developer

RESOURCE INTERACTIVE
www.resource.com
614 621 2888  main
614 410 3195  direct
412 726 8087  mobile
[EMAIL PROTECTED]
From: flexcoders@yahoogroups.com  
[mailto:[EMAIL PROTECTED] On Behalf Of grimmwerks

Sent: Wednesday, September 12, 2007 12:25 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] sequencing effects

Trying to do about 50 things at once for a demo today.

Say I've got a state with a number of addChildren elements. I've got
a transition I want to call on those children, but not all at once --
in sequence. How can I do this? I realize the Sequence is for
sequencing effects, not elements; but is there something like that
here? Or will I have to roll my own function to step through an  
array?










Re: [flexcoders] Flex - Flash Media Server and Mac - connection failed

2007-09-15 Thread grimmwerks
Are you running the server on the pc?

Sent from my iPhone

On Sep 14, 2007, at 5:43 PM, Patrick Lemiuex [EMAIL PROTECTED] wrote:

 i have the strangest situation, where my app works with flash media
 server with flex, however only on PC.  On any mac i get:

 DEBUG_9] : The connection to the server has failed.
 [DEBUG_8] : onNetStatusEvent: NetConnection.Connect.Failed
 [DEBUG_7] : Connecting to socket server...
 [DEBUG_6] : The connection to the server has failed.
 [DEBUG_5] : onNetStatusEvent: NetConnection.Connect.Failed
 [DEBUG_4] : Connecting to socket server...
 [DEBUG_3] : The connection to the server has failed.
 [DEBUG_2] : onNetStatusEvent: NetConnection.Connect.Failed
 [DEBUG_1] : Connecting to socket server...


 Any suggestions?

 Thanks,
 Patrick


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





Re: [flexcoders] Re: SWFLoader Issue

2007-09-15 Thread grimmwerks
Alex had pointed out something similar I was doing - that I needed to  
import mx.Application in the mx:Script area.


On Sep 14, 2007, at 2:08 PM, neilwcameron wrote:

 Thats just the thing, I'm accessing it from another component. :(

 I'm trying a few things now to try and get the instantiated class and
 call the functions from that...on it goes.

 --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote:

 You shouldn't need Application.application unless you are  
 accessing from
 another component/document.



 

 From: flexcoders@yahoogroups.com  
 [mailto:[EMAIL PROTECTED] On
 Behalf Of neilwcameron
 Sent: Friday, September 14, 2007 8:02 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] SWFLoader Issue



 Hi Guys,

 In my application I have a line of code that is used to set up my
 components:

 Application.application.mainDisplay.createComponentsFromDescriptors 
 (true
 );

 But when I try to load my app with SWFLoader for testing purposes, it
 fails because on the SWFLoader app, there is no such component as
 mainDisplay of course.

 Is there anyways around this? I've tried quite a few things but to no
 avail. Any ideas?

 Thanks

 Neil





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






Re: [flexcoders] Flex Chat

2007-09-16 Thread grimmwerks
Why wouldn't it be?  Could work with Flash Media Server (it does  
already) or using any backendeven a socket server you create.

On Sep 16, 2007, at 11:45 AM, Ed Capistrano wrote:

 Realy? A flex chat app! Is it possible? using as2/3



 __ 
 __
 Luggage? GPS? Comic books?
 Check out fitting gifts for grads at Yahoo! Search
 http://search.yahoo.com/search?fr=oni_on_mailp=graduation+giftscs=bz


 --
 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] image / png -- roll on alpha?

2007-09-18 Thread grimmwerks
I've got an image I'd like to function almost as a button  -  
rollovers would trigger an effect, and clicking would trigger a  
function.

Trouble is, it's a rotated image; if I bring it in unrotated, it's  
got an alpha that seems to trigger both the rolls and the clicks; is  
there a way NOT having the alpha trigger it? Maybe bring the image  
into flash?


[flexcoders] rollover effect /mousedown reset

2007-09-18 Thread grimmwerks
Argh - also having a problem - I want to have the swf on rollOver,  
zoom a bit, rollOut, zoomback. Fine. But upon click, it should turn  
off this function -- and reset itself; course, this ain't working:


import mx.effects.*;
import mx.effects.easing.*;
import flash.events.MouseEvent;

var nowClicked:Boolean = false;

public function doZoom(event:MouseEvent):void {
if(nowClicked){
if(hitIt.isPlaying){hitIt.reverse()};
 hitIt.play([event.target], false);
return
};
if (hitIt.isPlaying) {
hitIt.reverse();
}
else {
// If this is a ROLL_OUT event, play the effect  
backwards.
// If this is a ROLL_OVER event, play the effect  
forwards.
hitIt.play([event.target], event.type ==  
MouseEvent.ROLL_OUT ? true : false);

}
}


[flexcoders] embedded swf and button press?

2007-09-18 Thread grimmwerks
How can a flex app get an event from a swf?  Is it like the old  
Director way of getURL?


[flexcoders] multiple effects in one state transition

2007-09-18 Thread grimmwerks

I thought I could do this, but now it's throwing errors:


mx:Transition fromState=_posterState toState=_learn
			mx:WipeRight duration=500 targets={[_paper_back,  
_paper_grid, _topleft_tape,_dv_tape]]} /


mx:Parallel targets={[_learnText]} startDelay=300
mx:Fade duration=300 alphaFrom=0 alphaTo=1 
/
mx:Blur duration=300 blurXFrom=2 blurXTo=0 blurYFrom=2  
blurYTo=0 /

/mx:Parallel

/mx:Transition



Basically I want one transition for a state where different elements  
move in different ways -- no?

[flexcoders] ok then - addChildAction

2007-09-18 Thread grimmwerks
If I have something with 3 elements in a state, how do I use  
AddChildAction? Does an AddChildAction make ALL the 'addChild'  
elements come on, or can you target specific elements to be added?


[flexcoders] please: addChildAction examples

2007-09-18 Thread grimmwerks

I'm really confused as to how to make a vibrant, animated interface.

I've been told by the list that you can have addChild within a  
transition - seems not to be true, but you've got addChildAction and  
removeChildActions; trouble is, I can't figure out how they work.


The examples I've seen on the web only have a non-target, ie



mx:Transition id=Splash fromState=* toState=*
mx:Sequence targets={[SplashScr,Enter]}
mx:AddChildAction/
mx:Fade duration=10 targets={[Main]}
alphaFrom=0.3 alphaTo=0.3/



But what does this mean? Does it mean that each of the sequence  
targets are instructed to do ANY addChild actions at that time?


If say I have a state with box1, box2, and box3; and I want to  
animate n box1 and box2, and, upon finishing, add box3, how would one  
do that? This doesn't seem to work:



mx:transitions
mx:Transition fromState=* toState=ball
mx:Parallel targets={[box1, box2, box3]}
mx:WipeDown target={box1} /
mx:WipeUp target={box2} /
mx:AddChildAction target={boxy} 
startDelay=900 /
mx:Fade target={box3} startDelay=1000 alphaFrom=0   
alphaTo=1/

!--
mx:AddChildAction target=box2 startDelay=500 
/
mx:AddChildAction target=box3 startDelay=1000 
/
--

/mx:Parallel
/mx:Transition


Can someone please show me how exactly this addChildAction works - I  
thought you could target specific addChild targets?

[flexcoders] help

2007-09-18 Thread grimmwerks
I'm very tired and have been struggling with poor documentation  
regarding the transitions and addChild stuff. I've been doing my fair  
share of google searches.

I'm having a love/hate relationship with flash. Today it hates me,  
and I it.

I've got a component that I'm trying to do a hide effect where it  
fades and blurs out. Great. The problem is, upon going back to that  
state where that component should be shown, it's in the blurred state.

How do I reset it at either then end of the transition that causes  
it, or at the state where this is 'inited'?

Please help.


[flexcoders] useHandCursor on swfLoader doesn't work?

2007-09-19 Thread grimmwerks

Trying this:


mx:AddChild position=lastChild
mx:SWFLoader x=15 y=119 source=img/largebar.swf  
id=_largeBar  useHandCursor=true rollOver=doZoom(event)  
rollOut=doZoom(event)  mouseDown={barClicked()} /

/mx:AddChild


But it's still the regular cursor?

It's in a component; do I have to also import the CursorManager?

[flexcoders] addedEffect on an addChild in state....

2007-09-19 Thread grimmwerks
I've been pounding on these transtiions/effects classes for the past  
2 days (if anyone has read my unanswered rants).

I've got a component that has multiple states. The first state is  
blank, the second state has all elements up, via addChild.
There are some elements that have an addedEffect in their  addChild.

My main app is controlling the component's state -- flipping between  
allUp and allGone.

It seems that the addedEffect only gets triggered the SECOND time  
'allUp' is called; even though the components is loaded into the main  
app with the state allGone.

Is this the case? Seems really strange that the addedEffect (blurring  
and fading) only happens after the first call.


Re: [flexcoders] useHandCursor on swfLoader doesn't work?

2007-09-19 Thread grimmwerks

That does it - fantastic! Thanks as always.

I've a HUGE request at some point - regarding Transitions and  
Effects, etc. The docs just don't seem very clear - especially in  
regards to the AddChildAction and RemoveChildAction.


Maybe something in-depth in regards to this in your blog?

The way effects/ transitions and filters init seem to fight as well.


On Sep 19, 2007, at 2:56 PM, Alex Harui wrote:


Try adding buttonMode=”true”

From: flexcoders@yahoogroups.com  
[mailto:[EMAIL PROTECTED] On Behalf Of grimmwerks

Sent: Wednesday, September 19, 2007 9:55 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] useHandCursor on swfLoader doesn't work?

Trying this:



mx:AddChild position=lastChild
   mx:SWFLoader x=15 y=119  
source=img/largebar.swf id=_largeBar  useHandCursor=true  
rollOver=doZoom(event) rollOut=doZoom(event)   
mouseDown={barClicked()} /

 /mx:AddChild


But it's still the regular cursor?

It's in a component; do I have to also import the CursorManager?





[flexcoders] SWFLoader onRoll: can it be set in Actionscript?

2007-09-22 Thread grimmwerks
I've got a swfloader that I want to assign it's rollOver / rollOut  
handler to call only after it's creationComplete fires - can I do it  
in actionscript?

In other worse, I've a page that loads in - and if the user's cursor  
is right over the area of the swfloader as it's being drawn, it gets  
all screwed up; is there a simple way of setting this? 


[flexcoders] questions for a flex / flash online show

2007-09-24 Thread grimmwerks
Hey all;

I'm offering myself up as a spokesperson for the group :P

I'm being sent to Max under On2 to capture segments for a new online  
show concentrating on Flex/Flash/Air.

I've spoken to Mike Chambers about setting up some interviews with  
the Adobe Illuminati -- I personally want to get to the bottom of the  
new Transitions/Effects; but if there's something YOU want to grok  
more, feel free to send your questions / areas of interest to

[EMAIL PROTECTED]

And I'd be more than happy to be your mouthpiece!

Thanks all.


Re: [flexcoders] Any non-attendee access to Adobe Max presentations?

2007-09-24 Thread grimmwerks
If you've got any questions you want to know, I've got interviews  
scheduled during the presentation. Send areas of interest/questions  
to [EMAIL PROTECTED]

Thanks.

On Sep 24, 2007, at 1:36 PM, Peter Connolly wrote:

 Just wondering, since I can't afford to go to Chicago...

 Will Adobe be providing access to any of the presentation materials
 from this year's Max conference?

 TIA,
 pc


 --
 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] help! components getting scrollbars in website?

2007-09-25 Thread grimmwerks
I've created my own components in a larger app that is going to the web.

For some users with a lower resolution monitor, these components are  
popping in with their own scrollbars.

My question is twofold:

1) how can I make sure that the components never show a scroll  
(assuming it's something like horizontalScrollPolicy, etc)
2) how can I make these components scale down to fit the larger 'stage'?

It's strange, since the components aren't being used in the starting  
state, when they're 'popped in' - - then the browser's scroll is  
initiated; quite different from Flash.

Thanks


[flexcoders] scale9 on a custom component

2007-09-25 Thread grimmwerks
I've got a custom component based on Canvas; it's just a little 'blog  
text' display.

It's got:

[ header]
[text box]
[footer]

There's an image behind the whole thing; the image can scale9, but  
I'm afraid that the textarea might get messed?

If this component is loading into a main application, then will the:

a) image scale9 correctly and
b) the textarea fits within the correct (now scaled) area?


Re: [flexcoders] help! components getting scrollbars in website?

2007-09-25 Thread grimmwerks

Yeah, found that after I posted (as always)

I'm trying to understand the scale9 thing: if my component is an  
image (with header, footer and middle) and I've a text area in the  
middle -- I want to keep the header and footer as no scale, but would  
scale the middle area -- however the TextArea in it should NOT scale,  
but meet the bottom of the header and top of the footer - does that  
make sense?


Would I have to programmitically drop the TextArea in or is there  
something I can set for the TextArea to meet the component's scale9's?



On Sep 25, 2007, at 12:23 PM, Alex Harui wrote:

if your comps are based on containers then scrollpolicy should  
work.  Otherwise, it may be that the app size is too big


From: flexcoders@yahoogroups.com  
[mailto:[EMAIL PROTECTED] On Behalf Of grimmwerks

Sent: Tuesday, September 25, 2007 9:08 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] help! components getting scrollbars in website?

I've created my own components in a larger app that is going to the  
web.


For some users with a lower resolution monitor, these components are
popping in with their own scrollbars.

My question is twofold:

1) how can I make sure that the components never show a scroll
(assuming it's something like horizontalScrollPolicy, etc)
2) how can I make these components scale down to fit the larger  
'stage'?


It's strange, since the components aren't being used in the starting
state, when they're 'popped in' - - then the browser's scroll is
initiated; quite different from Flash.

Thanks






Re: [flexcoders] Re: Flash player 9 standalone download

2007-09-27 Thread grimmwerks
My flash player got hosed on two mac systems; now I can't debug  
anymore.  Can someone post the correct debugging version for flex?  
Thanks.



On Sep 26, 2007, at 2:56 PM, Derek Vadneau wrote:


Here ya go:

http://www.adobe.com/support/flashplayer/downloads.html#fp9


On 9/24/07, helix206 [EMAIL PROTECTED] wrote:
Thanks but i need the latest version 9.47 standalone. Any links on
Adobe website?

I think Adobe should make this simpler.

--- In flexcoders@yahoogroups.com, Bart Wttewaall
[EMAIL PROTECTED] wrote:

 After installing Flex 2, you can find the player in the install
folder:

 C:\Program Files\Adobe\Flex Builder 2\Player\debug\Install Flash
Player
 9.exe

 2007/9/24, helix206 [EMAIL PROTECTED]:
 
  Can anyone please tell me where can i download the FP9
standalone
  player and active X so that i can put them on the CD for my
clients? I
  cant find them anyware on adobe.
 
  thansk alot.
 
 
 






--

Derek Vadneau 




[flexcoders] Chicago

2007-09-30 Thread grimmwerks
Geez just got into town and the whole place is asleep, can't even find  
a place to eat... This used to be  the home of Wax Trax and Ministry?

Where's everyone hiding?


Re: [flexcoders] transparent text

2007-10-14 Thread grimmwerks
There was a blog that stated using a filter effect without embedding  
the font would almost bitmap the font and they could do transparent  
text. I can't recall the blog though... :(

On Oct 10, 2007, at 1:13 AM, Alex Harui wrote:

You can control the alpha of the textField in the TextArea if you  
subclass. and also use embedded fonts


From: flexcoders@yahoogroups.com  
[mailto:[EMAIL PROTECTED] On Behalf Of Ju Aedis

Sent: Tuesday, October 09, 2007 8:04 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] transparent text

To flexcoders:

When I wrote the text in the TextArea, How to control the text's  
alpha in TextArea?







[flexcoders] file upload fails on Leopard?

2007-10-31 Thread grimmwerks
Hey - I've got a file uploader that works on Tiger at 
http://100grand.scribemedia.org 
. -- just tested it with a laptop (might be the flash version as well,  
because on this laptop I got the 'dismiss all' screen').

On 2 machines running Leopard I didn't get the plugin alert, but  
fileupload fails - I can't even select a .mov at all. The one on the  
site has a 'video' filterupload; but I've tested with no filter and it  
still fails.

What's changed? Has there been a change to the plugin or is it leopard?

Thanks.


Re: [flexcoders] file upload fails on Leopard?

2007-10-31 Thread grimmwerks
It's definately something with leopard.

Can someone from adobe confirm please?




On Oct 31, 2007, at 7:50 AM, grimmwerks wrote:

 Hey - I've got a file uploader that works on Tiger at 
 http://100grand.scribemedia.org
 . -- just tested it with a laptop (might be the flash version as well,
 because on this laptop I got the 'dismiss all' screen').

 On 2 machines running Leopard I didn't get the plugin alert, but
 fileupload fails - I can't even select a .mov at all. The one on the
 site has a 'video' filterupload; but I've tested with no filter and it
 still fails.

 What's changed? Has there been a change to the plugin or is it  
 leopard?

 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






[flexcoders] AIR problems on Leopard

2007-11-14 Thread grimmwerks
I'm stuck in an endless loop; I've been told to install AIR beta 2;  
but when I try it says I already have it on my system.

I run the AIR beta 1 uninstaller, then try to install beta 2 - same as  
above.

I install AIR beta 1, try to install beta 2 over it - it says I  
already have it on my system.

I try to install an air app  - like pwnce - it tells me I need beta 2.

WTF?!


[flexcoders] Flash video switcher to video file..

2008-01-31 Thread grimmwerks
I've got a client asking me if it's possible to create a sort of video  
switcher -- where users choose shots - and then export to a file.

I think something like this is possible in Flash Media Server, but  
unsure?


[flexcoders] FB3 beta 3

2008-02-13 Thread grimmwerks
Hey - for some reason my Flex3 says it's expired - -and I've even done  
the -clean thing, deleted and installed another - still it says that  
the Beta expired.

Mac OSX Leopard.


Re: [flexcoders] FB3 beta 3

2008-02-13 Thread grimmwerks
Nobody's come across this problem either?


On Feb 13, 2008, at 3:44 PM, grimmwerks wrote:

 Hey - for some reason my Flex3 says it's expired - -and I've even done
 the -clean thing, deleted and installed another - still it says that
 the Beta expired.

 Mac OSX Leopard.


 --
 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] RSS reader class -- dealing with namespaces

2008-03-22 Thread grimmwerks

Hey all - confused a bit by how best to use namespace.

I've got a flex application and am using an rss parser in an external  
class.


The rss has 2 different namespaces (it's the brighcove rss).  I'm  
assuming I put the namespaces variables in the class -- and am parsing  
the items into a variable called 'episodes' -- how then do I get the  
needed elements I'd need? Class and example of xml item:



XML RSS ITEM:

item
titlePGA  - The Old Lions Roar/title
linkhttp://link.brightcove.com/services/link/bcpid1439819625/bclid930119542/bctid1407927614?src=mrss 
/link
descriptionDoubleClick founder Kevin Ryan and former  
Merrill Lynch Internet stock analyst Henry Blodget discuss trends in  
the the tech industry and what producers can expect in a volitile  
marketplace/description
guidhttp://link.brightcove.com/services/link/bcpid1439819625/bclid930119542/bctid1407927614?src=mrss 
/guid

pubDateThu, 07 Feb 2008 13:55:49 -0800/pubDate
media:content medium=video type=video/x-flv url=http://brightcove.vo.llnwd.net/d5/unsecured/media/29794487/29794487_1409022817_4df1dff23eafb105120e49cd80dd3224b8222adb.flv 
/
media:player height=620 url=http://link.brightcove.com/services/link/bcpid1439819625/bclid930119542/bctid1407927614?src=mrss 
 width=790/
media:keywordspga,Silicon Alley Outsider,blog,Merrill  
Lynch,DoubleClick,Kevin Ryan,Henry Blodget/media:keywords
media:thumbnail height=90 url=http://brightcove.vo.llnwd.net/d5/unsecured/media/29794487/29794487_1408983914_65e92c6a9ffbe54794e804dbaae541c61964afa6.jpg?pubId=29794487 
 width=120/
media:thumbnail height=360 url=http://brightcove.vo.llnwd.net/d5/unsecured/media/29794487/29794487_1408984470_ed8142599114fca8c5843193c72f23b8d0dcde79.jpg?pubId=29794487 
 width=480/
media:category11 ScribeMedia.Org - Producers Guild of  
America/media:category

bc:playerid1439819625/bc:playerid
bc:lineupid930119542/bc:lineupid
bc:titleid1407927614/bc:titleid
/item






CLASS:

package com.sm.xml
{
import flash.events.*;
import flash.net.*;

public class BrightCoveRSS extends EventDispatcher
{
private var xmlLoader:URLLoader;
public var feed:XML;
public var episodes:XMLList;
public var title:String;
public var description:String;
public var nsMedia:Namespace;
public var nsBC:Namespace;

public function BrightCoveRSS()
{
xmlLoader = new URLLoader();
}

public function load(xmlReq:URLRequest):void
{
xmlLoader.load(xmlReq);
xmlLoader.addEventListener(Event.COMPLETE, xmlLoaded);
}

private function xmlLoaded(event:Event):void
{
feed = new XML(xmlLoader.data);
nsMedia = feed.namespace(media);
nsBC = feed.namespace(bc);
episodes = feed..item;
title = feed.channel.title;
description = feed.channel.description;
dispatchEvent(new Event(Event.COMPLETE));
}


public function test():void
{
trace(episodes.nsMedia::content);
}



}
} 
 

[flexcoders] help with databinding -- repeater listening for event?

2008-04-03 Thread grimmwerks
I'm a bit frustrated here and hope someone can point out where I've  
gone wrong.


I've got a repeater that is drawing out 4 circles and binding to a  
Singleton class' variable via binding -- all this works well the first  
time -- the Singleton class is loading in xml that holds the x/y and  
size coords for these 4 circles.


I want to load in the next 4 circles xml and have the repeater redraw  
these 4 circles - how best to do this? If I'm using a custom canvas to  
draw these 4 circles; should the canvas itself redraw upon the  
CircleData.getInstance().currentCircle change?!?



If it's not clear what I'm doing, here's some code.

main.mxml is drawing out a CircleLayout.mxml as a component (Canvas),  
and inside there is:




mx:Repeater id=rep  
dataProvider={CircleData.getInstance().currentCircle.circle}
	mx:Button   x={Number([EMAIL PROTECTED])}  
y={Number([EMAIL PROTECTED])}  
width={(Number([EMAIL PROTECTED])*defaultSize)}
		height={(Number([EMAIL PROTECTED])*defaultSize)}  
styleName={String([EMAIL PROTECTED])}  
label={String([EMAIL PROTECTED]).toUpperCase()}
		useHandCursor={CircleData.getInstance().isEdit}   
buttonMode={CircleData.getInstance().isEdit}/

/mx:Repeater 




And within the CircleData class:


public function setCircleData(event:Event):void{
circlesList = new XML(xmlURLLoader.data);
pos = circlesList.item.length()-1;
var tmp:XMLList = [EMAIL PROTECTED];
// change this datelist constructor to have id# of cirlce items
dateList = new ArrayCollection();
for(var i:uint=0; itmp.length(); i++){
dateList.addItem({label: tmp[i], data:i});
}
loadCircles(pos);
}
public function loadCircles(newPos:Number):void{
currentCircle = circlesList.item[pos];
}


And the combo box is really just doing  
CircleData.getInstance().loadCircles(pos)


But the repeaters aren't firing off the redraw again?





[flexcoders] repeater with TextArea -- TextArea not sizing to internal text?

2008-04-03 Thread grimmwerks
I'm using a Repeater to loop through chunks of text and toss them in a  
VBox. Trouble is all the text boxes are the same = there doesn't seem  
to be a way to set a box to it's own internal text size? I'd like the  
boxes to be all different heights, just enough to view the text.

Help?


[flexcoders] weird NumericStepper question / script

2008-04-05 Thread grimmwerks
I've got 4 NumericSteppers; and the problem I'm having is one I can't  
get my head 'round: the values of all the NumericSteppers have to add  
up to 100.

On the whole I could easily check via a 'submit' button if they don't  
addup, but I'd like to check on any of the stepper's 'change' function  
-- what I was thinking was:

As a one is going up, the maximum of all the others goes down in a  
cycle (ie if someone is putting numB, then C then D -- they're max  
slowly goes down.

If the max value of a numeric stepper meets the current value of that  
stepper, and there's no more 'room' -- then the user can't keep  
increasing the size of the current numeric.

Is this making sense? In other words, how does one tie in the value of  
one stepper with another to equal 100. Sure, having 2 steppers makes  
it easier somewhat, but with 4 I don't know how best to pay attention  
to them all while still keeping the numbers validating.

I'd appreciate any thoughts.


[flexcoders] drag and drop a button?

2008-04-11 Thread grimmwerks
Is there a simple tutorial for it? I don't really want to have an  
image proxy - I want to really drag a button somwhere else on the  
canvas. Simple.


[flexcoders] allowing a user to insert but not change existing text...

2008-04-18 Thread grimmwerks
I've got this project where users can come to a flex app with a  
TextArea and can insert their comments using a different font color,  
but not be able to select, or change the text that already exists...

ie if I've got 'The quick brown fox jumped over the sleeping dog.'   
I'd be able to click anywhere within there -- ie between fox and  
jumped -- and type an insert, but NOT be able to change or delete the  
existing text.

Ideas?


[flexcoders] DragEvent question....

2008-04-18 Thread grimmwerks
So I'm dragging an item -- and when dropped I want the initiator to  
move to where the dropped item is.  But I can't seem to find the x,y  
of the copied image is -- I've done it originally to the mouseX/Y, but  
there's a shift as these items can be dragged from the middle, etc.


Re: [flexcoders] DragEvent question....

2008-04-19 Thread grimmwerks
Yup - found it; and then calculating on drop minus the offset. Good  
stuff.  Seems to work most of the time but every so often it does  
something nutty, but good enough for now, thanks.



On Apr 18, 2008, at 11:49 PM, Alex Harui wrote:

If you look at the DragProxy and DragManagerImpl code, it looks like  
the offset is computed at mouseDown.


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]  
On Behalf Of grimmwerks

Sent: Friday, April 18, 2008 5:55 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] DragEvent question

So I'm dragging an item -- and when dropped I want the initiator to
move to where the dropped item is. But I can't seem to find the x,y
of the copied image is -- I've done it originally to the mouseX/Y, but
there's a shift as these items can be dragged from the middle, etc.






[flexcoders] naming children of repeater problem with xml

2008-04-19 Thread grimmwerks
I've read this article on giving the id of a child the  
currentItem.Name of a repeater:


http://www.adobe.com/devnet/air/flex/articles/xml_viewer_on_air_04.html

The trouble is my xml is using attributes such as this:

circle type=work x=100 y=300 percent=25 /



Now on the whole most of what I'm doing to get at attributes works  
EXCEPT for the id:


mx:Repeater id=rep  
dataProvider={CircleData.getInstance().currentCircle.circle}
	mx:Button  x={Number([EMAIL PROTECTED])}  
y={Number([EMAIL PROTECTED])}  
width={(Number([EMAIL PROTECTED])*defaultSize)}
	  height={(Number([EMAIL PROTECTED])*defaultSize)}  
styleName={String([EMAIL PROTECTED])}  
label={String([EMAIL PROTECTED]).toUpperCase()}
		useHandCursor={CircleData.getInstance().isEdit}   
buttonMode={CircleData.getInstance().isEdit}  
mouseMove=mouseMoveCircle(event);circleOffsetClick(event)
		toolTip={'At the moment '+ String([EMAIL PROTECTED])+' is  
'[EMAIL PROTECTED]'% of my life at the moment'}  
addedEffect=blur /

/mx:Repeater 


I can't get the currentItem type and making that the id by  
id={String([EMAIL PROTECTED])}
I can't even 'fake it' with the currentIndex or anything:  
id={String(rep.currentIndex)}.



Is there any way around this?

Re: [flexcoders] naming children of repeater problem with xml

2008-04-19 Thread grimmwerks

Ah - think I might have a way around it with getRepeaterItem()

click=Alert.show(String(event.currentTarget.getRepeaterItem()[EMAIL PROTECTED])  
+ ' pressed')


On Apr 19, 2008, at 10:12 AM, grimmwerks wrote:

I've read this article on giving the id of a child the  
currentItem.Name of a repeater:


http://www.adobe.com/devnet/air/flex/articles/ 
xml_viewer_on_air_04.html


The trouble is my xml is using attributes such as this:

circle type=work x=100 y=300 percent=25 /



Now on the whole most of what I'm doing to get at attributes works  
EXCEPT for the id:


mx:Repeater id=rep  
dataProvider={CircleData.getInstance().currentCircle.circle}
	mx:Button  x={Number([EMAIL PROTECTED])}  
y={Number([EMAIL PROTECTED])}  
width={(Number([EMAIL PROTECTED])*defaultSize)}
	  height={(Number([EMAIL PROTECTED])*defaultSize)}  
styleName={String([EMAIL PROTECTED])}  
label={String([EMAIL PROTECTED]).toUpperCase()}
		useHandCursor={CircleData.getInstance().isEdit}   
buttonMode={CircleData.getInstance().isEdit}  
mouseMove=mouseMoveCircle(event);circleOffsetClick(event)
		toolTip={'At the moment '+ String([EMAIL PROTECTED])+' is  
'[EMAIL PROTECTED]'% of my life at the moment'}  
addedEffect=blur /

/mx:Repeater 


I can't get the currentItem type and making that the id by  
id={String([EMAIL PROTECTED])}
I can't even 'fake it' with the currentIndex or anything:  
id={String(rep.currentIndex)}.



Is there any way around this?





[flexcoders] binding problems

2008-04-20 Thread grimmwerks
Could someone PLEASE point out what I'm doing wrong in the following?  
I want to bind a numeric stepper to a certain size and have it changed  
live; I'm trying to change the scale of these buttons to the numeric  
steppers; here's a test:


---
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;   
width=100% height=100% horizontalScrollPolicy=off  
verticalScrollPolicy=off  


mx:Repeater id=rep dataProvider={objs}
	mx:Button  x={Number(rep.currentItem.x)}  
y={Number(rep.currentItem.y)}  
width={(Number(rep.currentItem.percent)*defaultSize)}
	  height={(Number(rep.currentItem.percent)*defaultSize)}  
styleName={String(rep.currentItem.type)}  
label={String(rep.currentItem.type).toUpperCase()}
		toolTip={'At the moment '+ String(rep.currentItem.type)+' is  
'+rep.currentItem.percent+'% of my life at the moment'}  /

/mx:Repeater 

mx:NumericStepper id=tmp  
change={objs.getItemAt(0).percent=tmp.value}  
value={objs[0].percent} maximum=100 /




mx:Script
![CDATA[
import mx.controls.Button;
import mx.core.BitmapAsset;
import mx.managers.DragManager;
import mx.core.DragSource;
import mx.events.DragEvent;
import flash.events.MouseEvent;
import mx.effects.easing.*;
import mx.binding.utils.BindingUtils;
import mx.collections.ArrayCollection;

import mx.controls.Alert;
import mx.utils.ObjectUtil;
import mx.core.Application;

private var offX:Number;
private var offY:Number;

[Bindable]
		public var objs:Array = new Array({x:30, y:22, percent:20,  
type:community},{x:90, y:22, percent:25, type:work},{x:110, y:72,  
percent:45, type:self},{x:70, y:120, percent:15, type:faily});


[Bindable]
private var defaultSize:Number = new Number(6);



]]
/mx:Script



/mx:Application



Re: [flexcoders] binding problems

2008-04-20 Thread grimmwerks
But that's just casting - I can't think that would have a huge problem  
where it wouldn't work.


I'm just not sure if a) I want to use some sort of Model or b) the  
binding utils


On Apr 20, 2008, at 10:29 PM, Josh McDonald wrote:


I think you want:

{ rep.currentItem.x }

rather than

{ Number(rep.currentItem.x) }

-J

On Mon, Apr 21, 2008 at 12:18 PM, grimmwerks [EMAIL PROTECTED]  
wrote:
Could someone PLEASE point out what I'm doing wrong in the  
following? I want to bind a numeric stepper to a certain size and  
have it changed live; I'm trying to change the scale of these  
buttons to the numeric steppers; here's a test:



---
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;   
width=100% height=100% horizontalScrollPolicy=off  
verticalScrollPolicy=off  


mx:Repeater id=rep dataProvider={objs}
	mx:Button  x={Number(rep.currentItem.x)}  
y={Number(rep.currentItem.y)}  
width={(Number(rep.currentItem.percent)*defaultSize)}
	  height={(Number(rep.currentItem.percent)*defaultSize)}  
styleName={String(rep.currentItem.type)}  
label={String(rep.currentItem.type).toUpperCase()}
		toolTip={'At the moment '+ String(rep.currentItem.type)+' is  
'+rep.currentItem.percent+'% of my life at the moment'}  /

/mx:Repeater 

mx:NumericStepper id=tmp  
change={objs.getItemAt(0).percent=tmp.value}  
value={objs[0].percent} maximum=100 /





mx:Script
![CDATA[
import mx.controls.Button;
import mx.core.BitmapAsset;
import mx.managers.DragManager;
import mx.core.DragSource;
import mx.events.DragEvent;
import flash.events.MouseEvent;
import mx.effects.easing.*;
import mx.binding.utils.BindingUtils;
import mx.collections.ArrayCollection;


import mx.controls.Alert;
import mx.utils.ObjectUtil;
import mx.core.Application;


private var offX:Number;
private var offY:Number;


[Bindable]
		public var objs:Array = new Array({x:30, y:22, percent:20,  
type:community},{x:90, y:22, percent:25, type:work},{x:110, y: 
72, percent:45, type:self},{x:70, y:120, percent:15, type:faily});



[Bindable]
private var defaultSize:Number = new Number(6);






]]
/mx:Script






/mx:Application




--
Therefore, send not to know For whom the bell tolls. It tolls for  
thee.


:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED] 




Re: [flexcoders] binding problems

2008-04-20 Thread grimmwerks

Doug, thanks for weighing in, it's appreciated.

I'm sorry - don't understand the VO class reference - I'm assuming  
that you're just making up a class named VO, right?


So I should create this Class that has the properties I want and push  
them into the array?


It gets hairier actually - originally I had one xml object (here's the  
actual xml):



item id=2 date=2007-03-15T06:14:23Z
info
			circleText![CDATA[Could there by styles? How about iitalic/ 
i. bBoldness/b? Why, yes, there is. This is stll more example  
text regarding the circle data. Typing is fun. It will be full html  
text at when finished and saved to the database when finished. The  
editor itself will be full html control]]/circleText
			workingText![CDATA[I could write all day about example text  
regarding the 'what I'm working on' section. It will be full html  
text at when finished and saved to the database when finished. The  
editor itself will be full html control]]/workingText
			needText![CDATA[This could very well be boldstill/bold  
more example text regarding what I need from you. It will be full  
html text at when finished and saved to the database when finished.  
The editor itself will be full html control]]/needText

/info
circle type=work x=100 y=300 percent=25 /
circle type=home x=10 y=120 percent=40 /
circle type=community x=150 y=10 percent=10 /
circle type=self x=200 y=100 percent=25 /
/item



Originally I had a class called CircleData that was a singleton, and  
binding to the currentData variable; of course everytime I loaded in a  
new xml, everything would change properly, but the minute I'd try  
changing the data of one circle's percent, nothing on stage would be  
updated. Same problem as above it seems.


So you think creating a new Circle class and binding the buttons to  
each circle in an array, when changing the array(circle1.percent)  
(yeah, fake) -- should be enough.



By the way, love the blog. 2 thumbs up.


On Apr 20, 2008, at 11:45 PM, Doug McCune wrote:


You're creating a bindable Array that is full of non-bindable Objects.

Since your Array is bindable you would be able to bind to the Array  
itself, and bindings would get fired when the Array changes (ir you  
do something like objs = new Array()). But inside that Array are  
simple Objects that are not bindable. So no bindings will ever fire  
when: a) objects are added and removed from the array, if you wanted  
that you should use ArrayCollection and getItemAt(), and b) no  
bindings fire when properties of those Objects get updated.


So one way to change your example is to use a VO class to hold the  
data that is in those objects, and make the entire class, or certain  
properties, bindable. So if you had a VO class that had x, y,  
percent, and type properties that were all bindable then your  
example would work. If you want a quick but pretty dirty solution  
try just wrapping your objects in the ObjectProxy class, so your  
Array creation line might look like this:


public var objs:Array = new Array(new ObjectProxy({x:30, y:22,  
percent:20, type:community}) ... );


But it's worth having a proper undertanding of how binding really  
works, so I'd advise against using ObjectProxy to force binding to  
work.


Doug

On Sun, Apr 20, 2008 at 7:18 PM, grimmwerks [EMAIL PROTECTED]  
wrote:
Could someone PLEASE point out what I'm doing wrong in the  
following? I want to bind a numeric stepper to a certain size and  
have it changed live; I'm trying to change the scale of these  
buttons to the numeric steppers; here's a test:



---
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;   
width=100% height=100% horizontalScrollPolicy=off  
verticalScrollPolicy=off  


mx:Repeater id=rep dataProvider={objs}
	mx:Button  x={Number(rep.currentItem.x)}  
y={Number(rep.currentItem.y)}  
width={(Number(rep.currentItem.percent)*defaultSize)}
	  height={(Number(rep.currentItem.percent)*defaultSize)}  
styleName={String(rep.currentItem.type)}  
label={String(rep.currentItem.type).toUpperCase()}
		toolTip={'At the moment '+ String(rep.currentItem.type)+' is  
'+rep.currentItem.percent+'% of my life at the moment'}  /

/mx:Repeater 

mx:NumericStepper id=tmp  
change={objs.getItemAt(0).percent=tmp.value}  
value={objs[0].percent} maximum=100 /





mx:Script
![CDATA[
import mx.controls.Button;
import mx.core.BitmapAsset;
import mx.managers.DragManager;
import mx.core.DragSource;
import mx.events.DragEvent;
import flash.events.MouseEvent;
import mx.effects.easing.*;
import mx.binding.utils.BindingUtils;
import mx.collections.ArrayCollection

Re: [flexcoders] binding problems

2008-04-20 Thread grimmwerks

Ok - well I've created a Circle class that is entirely bindable. I've:


package scribe
{
import mx.controls.Alert;
[Bindable]
public class Circle
{   
public var percent:Number;
public var x:Number;
public var y:Number;
public var type:String;
public function Circle(obj:Object){
type=obj.type;
x=obj.x;
y=obj.y
percent=obj.percent;
}

}
}




Strange thing is in the numeric stepper I had during dev -- it can get  
the current value of the first circle by:
value={CircleData.getInstance().currentCircleArray[0].percent}   
displays the correct amount, but
value 
={CircleData.getInstance().currentCircleArray.getItemAt(0).percent}


Does not...

Re: [flexcoders] binding problems

2008-04-20 Thread grimmwerks

Weird - this DOES work:

mx:NumericStepper id=num y=410  
value={CircleData.getInstance().currentCircleArray[0].percent}   
change={CircleData.getInstance().currentCircleArray[0].percent =  
num.value } maximum=100/



where as I'm flagged that the square brackets don't work.
Any idea how to make a buttons x/y in it's center so these scale nice  
as opposed to off to the top left?


On Apr 21, 2008, at 12:29 AM, grimmwerks wrote:


Ok - well I've created a Circle class that is entirely bindable. I've:


package scribe
{
import mx.controls.Alert;
[Bindable]
public class Circle
{   
public var percent:Number;
public var x:Number;
public var y:Number;
public var type:String;
public function Circle(obj:Object){
type=obj.type;
x=obj.x;
y=obj.y
percent=obj.percent;
}

}
}




Strange thing is in the numeric stepper I had during dev -- it can  
get the current value of the first circle by:
value={CircleData.getInstance().currentCircleArray[0].percent}   
displays the correct amount, but
value 
={CircleData.getInstance().currentCircleArray.getItemAt(0).percent}


Does not...





Re: [flexcoders] binding problems

2008-04-21 Thread grimmwerks
Fantastic - it works.

Now - just wondering - is there a way of binding to an array of  
objects with a filter - ie using a numeric stepper to control an  
object in array with a type of 'blue' or something?z


[flexcoders] filterFunction for Array problem

2008-04-21 Thread grimmwerks
I've got an Array of class objects (a class Circle with a property  
percentage) coming in.

I've got 4 Numeric steppers that are supposed to control each Circle's  
percentage  -- trouble is each of the 4 circles has it's own type - so  
one stepper controls one circle type, etc.

How can I best bind the stepper to the correct circle?

If I use the filter function, it return an array - do I do the filter  
function and return the first Circle returned (there will be only one  
-- and in doing this will the binding still work for live data binding?

Or do I just do the extra code up top that when these are loaded in I  
make sure they're always in the proper order and have the steppers  
just bind via Circles[0] -- positioning?




Re: [flexcoders] filterFunction for Array problem

2008-04-21 Thread grimmwerks
Seems like 'some' is more what I want...?


On Apr 21, 2008, at 3:19 PM, grimmwerks wrote:

 I've got an Array of class objects (a class Circle with a property
 percentage) coming in.

 I've got 4 Numeric steppers that are supposed to control each Circle's
 percentage  -- trouble is each of the 4 circles has it's own type - so
 one stepper controls one circle type, etc.

 How can I best bind the stepper to the correct circle?

 If I use the filter function, it return an array - do I do the filter
 function and return the first Circle returned (there will be only one
 -- and in doing this will the binding still work for live data  
 binding?

 Or do I just do the extra code up top that when these are loaded in I
 make sure they're always in the proper order and have the steppers
 just bind via Circles[0] -- positioning?



 

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






  1   2   3   >