[flexcoders] styles are ignored

2010-08-27 Thread Jesse Warden
This Flex app loads in a module, and an external stylesheet (no, I can't get
into why).  When I put my mx:Style source=defaults.css / in the app,
they don't show up.  If I trace out the CSSStyleDeclaration in
creationComplete it's null.  The code doesn't allow me to compile with
-keep-generated-actionscript, so it's not easy for me to figure out why.

So:
1. why the hell is it ignoring my syles; I have things like Selectors that
are unique, yet aren't in StyleManager at all...?
2. If I load them in dynamically as a SWF, will that fix it?


[flexcoders] Re: word stops

2010-06-22 Thread Jesse Warden
Apparently here is a fix:

http://www.visible-form.com/blog/mac-eclipse-word-boundary-issue-fix/

On Thu, Jun 17, 2010 at 1:43 PM, Jesse Warden jesse.war...@gmail.comwrote:

 It appears upgrading to the latest Java on my Mac has affected my ability
 to tab  double-click for certain word stops.  Things like : and other
 symbols (. still works) that used to stop a double click selection or a tab
 no longer do.  Others have had the same experience as well and we all
 believe it's the latest update to Java on the Mac.

 Any solutions? (Yes, I'm using FDT instead of Flash Builder until I figure
 this out... good bye Library projects... I miss you .)



[flexcoders] word stops

2010-06-17 Thread Jesse Warden
It appears upgrading to the latest Java on my Mac has affected my ability to
tab  double-click for certain word stops.  Things like : and other symbols
(. still works) that used to stop a double click selection or a tab no
longer do.  Others have had the same experience as well and we all believe
it's the latest update to Java on the Mac.

Any solutions? (Yes, I'm using FDT instead of Flash Builder until I figure
this out... good bye Library projects... I miss you .)


[flexcoders] Socket Acks?

2009-11-21 Thread Jesse Warden
It seems the Socket class gets mad if you pump too many flushes out.  Do I
need to create Ack messages; meaning, ensure the client has sent an
acknowledge message before sending it another one?


[flexcoders] Flex Profiler Questions

2009-10-22 Thread Jesse Warden
1. Why doesn't he show assets (bitmaps, fonts, ... the things that take the
most RAM)?  Profiler reports 6 megs, but System.totalMemory reports 40 megs.
 No other SWF is open on the system beyond that one (so as not to pollute
System.totalMemory accounting for multiple SWF's).

2. I had some XML accounting for 150 megs of 190 megs, yet the profiler
didn't show it; said 21 megs.  I ran garbage collection multiple times in
the profiler, but it still stayed around.  Why isn't it picking this massive
chunk up?

3. What are Method Closure; event listeners?

4. Running code in Flash, I can confirm from both viewing memory via
System.totalMemory + having a timer that traces out a message on every tick
that a SWF is in fact unloaded from a Loader in Flash Player 10.  Running
this code in the profiler shows the Loader never unloading (yes, I'm
compiling for 10 and yes I'm using unloadAndStop; remember, same code).  The
profiler claims Loader still has it's instance around and the timer doesn't
die with his weak listener... but does running in Flash.


[flexcoders] Inconsistant linkage, 'isNaN' is marked as extern, but '__AS3__.vec:Vector$int' is not.

2009-05-20 Thread Jesse Warden
When trying to create a library project with AIR as an external library, I
keep getting the above error.  I've tried multiple SDK's, using Flex
Builder, Eclipse plugin, and the ANT tasks; all result in the same error.


[flexcoders] Apple + O in AIR 1.5 on Mac

2009-04-16 Thread Jesse Warden
In my AIR app, I can get Control + O to work, but not Apple + O.  The Apple
key does register the keyDown, but it seems the Mac OS is stealing Apple +
O.  Known?  Same thing on Windows?  Workaround (beyond using Control + O)?


Re: [flexcoders] Re: Illegal override of WindowedSystemManager in mx.managers.WindowedSystemManager

2009-01-26 Thread Jesse Warden
I changed all of my classes that didn't look unique (ecspecially Message n'
friends) and that seemed to fix it.  Thanks guys!


Re: [flexcoders] Re: Illegal override of WindowedSystemManager in mx.managers.WindowedSystemManager

2009-01-16 Thread Jesse Warden
I don't know of an easy way to search, but Message and MessageType are
the only 2 that seem like they could match.

On Fri, Jan 16, 2009 at 1:47 AM, Doug McCune d...@dougmccune.com wrote:

   Did the SWC include any classes that have the same names (but not the
 same package structure) as some built-in AIR or flash classes? I recently
 heard a report of someone unable to compile an app with player 10 for AIR
 1.5 if the project had a custom class named Vector.

 Doug


 On Thu, Jan 15, 2009 at 10:38 PM, Jesse Warden jesse.war...@gmail.comwrote:

   I removed an SWC from my libs dir, a debug window component that has
 nothing to do with AIR and air related classes... and it fixed my problem.
  wtf?


 On Fri, Jan 16, 2009 at 1:20 AM, Jesse Warden jesse.war...@gmail.comwrote:

 I keep getting this error for Flex 3.1 in AIR in the Flex Builder IDE
 3.0.2.  If I switch the SDK to 3.2, the app doesn't event launch.  I've even
 tried targeting flash player 10 via -target-player=10.0.0, but no dice.
 Any clue?  Here's some more debug info that appears in the Output panel
 that isn't mine:


 method not implemented
 mx.managers::ISystemManager/mx.managers:ISystemManager::dispatchEventFromSWFBridges()

over-binding 0 in mx.managers::WindowedSystemManager


 method not implemented
 mx.managers::ISystemManager/mx.managers:ISystemManager::getSandboxRoot()

over-binding 0 in mx.managers::WindowedSystemManager


 accessor not implemented mx.managers:ISystemManager::swfBridgeGroup

over-binding 0 in mx.managers::WindowedSystemManager


 method not implemented
 mx.managers::ISystemManager/mx.managers:ISystemManager::addChildToSandboxRoot()

over-binding 0 in mx.managers::WindowedSystemManager


 method not implemented
 mx.managers::ISystemManager/mx.managers:ISystemManager::addChildBridge()

over-binding 0 in mx.managers::WindowedSystemManager


 method not implemented
 mx.managers::ISystemManager/mx.managers:ISystemManager::getTopLevelRoot()

over-binding 0 in mx.managers::WindowedSystemManager


 method not implemented
 mx.managers::ISystemManager/mx.managers:ISystemManager::removeChildBridge()

over-binding 0 in mx.managers::WindowedSystemManager


 method not implemented
 mx.managers::ISystemManager/mx.managers:ISystemManager::isTopLevelRoot()

over-binding 0 in mx.managers::WindowedSystemManager


 method not implemented
 mx.managers::ISystemManager/mx.managers:ISystemManager::isDisplayObjectInABridgedApplication()

over-binding 0 in mx.managers::WindowedSystemManager


 method not implemented
 mx.managers::ISystemManager/mx.managers:ISystemManager::useSWFBridge()

over-binding 0 in mx.managers::WindowedSystemManager


 method not implemented
 mx.managers::ISystemManager/mx.managers:ISystemManager::getVisibleApplicationRect()

over-binding 0 in mx.managers::WindowedSystemManager


 method not implemented
 mx.managers::ISystemManager/mx.managers:ISystemManager::removeChildFromSandboxRoot()

over-binding 0 in mx.managers::WindowedSystemManager


 method not implemented
 mx.managers::ISystemManager/mx.managers:ISystemManager::deployMouseShields()

over-binding 0 in mx.managers::WindowedSystemManager

 VerifyError: Error #1053: Illegal override of WindowedSystemManager in
 mx.managers.WindowedSystemManager.


  at mx.core::Window/commitProperties()

 at
 mx.core::Window/open()[E:\dev\3.1.0\frameworks\projects\airframework\src\mx\core\Window.as:2548]

 at
 com.jxl.powerz.managers::PowerBarWindowsManager/createPowerBar()[/Users/jesse/Documents/_Projects/DnDWorkspace/Powerz/src/com/jxl/powerz/managers/PowerBarWindowsManager.as:52]

 at
 com.jxl.powerz.managers::PowerBarWindowsManager/loadPowerBarsFromVOs()[/Users/jesse/Documents/_Projects/DnDWorkspace/Powerz/src/com/jxl/powerz/managers/PowerBarWindowsManager.as:42]

 at
 com.jxl.powerz.views::Main/init()[/Users/jesse/Documents/_Projects/DnDWorkspace/Powerz/src/com/jxl/powerz/views/Main.mxml:16]

 at
 com.jxl.powerz.views::Main/___Main_Canvas1_creationComplete()[/Users/jesse/Documents/_Projects/DnDWorkspace/Powerz/src/com/jxl/powerz/views/Main.mxml:5]

 at flash.events::EventDispatcher/dispatchEventFunction()

 at flash.events::EventDispatcher/dispatchEvent()

 at
 mx.core::UIComponent/dispatchEvent()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:9298]

 at mx.core::UIComponent/set
 initialized()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:1169]

 at
 mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:718]

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

 at
 mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8628]

 at
 mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8568]



  



[flexcoders] Illegal override of WindowedSystemManager in mx.managers.WindowedSystemManager

2009-01-15 Thread Jesse Warden
I keep getting this error for Flex 3.1 in AIR in the Flex Builder IDE 3.0.2.
 If I switch the SDK to 3.2, the app doesn't event launch.  I've even tried
targeting flash player 10 via -target-player=10.0.0, but no dice.
Any clue?  Here's some more debug info that appears in the Output panel that
isn't mine:


method not implemented
mx.managers::ISystemManager/mx.managers:ISystemManager::dispatchEventFromSWFBridges()

   over-binding 0 in mx.managers::WindowedSystemManager


method not implemented
mx.managers::ISystemManager/mx.managers:ISystemManager::getSandboxRoot()

   over-binding 0 in mx.managers::WindowedSystemManager


accessor not implemented mx.managers:ISystemManager::swfBridgeGroup

   over-binding 0 in mx.managers::WindowedSystemManager


method not implemented
mx.managers::ISystemManager/mx.managers:ISystemManager::addChildToSandboxRoot()

   over-binding 0 in mx.managers::WindowedSystemManager


method not implemented
mx.managers::ISystemManager/mx.managers:ISystemManager::addChildBridge()

   over-binding 0 in mx.managers::WindowedSystemManager


method not implemented
mx.managers::ISystemManager/mx.managers:ISystemManager::getTopLevelRoot()

   over-binding 0 in mx.managers::WindowedSystemManager


method not implemented
mx.managers::ISystemManager/mx.managers:ISystemManager::removeChildBridge()

   over-binding 0 in mx.managers::WindowedSystemManager


method not implemented
mx.managers::ISystemManager/mx.managers:ISystemManager::isTopLevelRoot()

   over-binding 0 in mx.managers::WindowedSystemManager


method not implemented
mx.managers::ISystemManager/mx.managers:ISystemManager::isDisplayObjectInABridgedApplication()

   over-binding 0 in mx.managers::WindowedSystemManager


method not implemented
mx.managers::ISystemManager/mx.managers:ISystemManager::useSWFBridge()

   over-binding 0 in mx.managers::WindowedSystemManager


method not implemented
mx.managers::ISystemManager/mx.managers:ISystemManager::getVisibleApplicationRect()

   over-binding 0 in mx.managers::WindowedSystemManager


method not implemented
mx.managers::ISystemManager/mx.managers:ISystemManager::removeChildFromSandboxRoot()

   over-binding 0 in mx.managers::WindowedSystemManager


method not implemented
mx.managers::ISystemManager/mx.managers:ISystemManager::deployMouseShields()

   over-binding 0 in mx.managers::WindowedSystemManager

VerifyError: Error #1053: Illegal override of WindowedSystemManager in
mx.managers.WindowedSystemManager.


 at mx.core::Window/commitProperties()

at
mx.core::Window/open()[E:\dev\3.1.0\frameworks\projects\airframework\src\mx\core\Window.as:2548]

at
com.jxl.powerz.managers::PowerBarWindowsManager/createPowerBar()[/Users/jesse/Documents/_Projects/DnDWorkspace/Powerz/src/com/jxl/powerz/managers/PowerBarWindowsManager.as:52]

at
com.jxl.powerz.managers::PowerBarWindowsManager/loadPowerBarsFromVOs()[/Users/jesse/Documents/_Projects/DnDWorkspace/Powerz/src/com/jxl/powerz/managers/PowerBarWindowsManager.as:42]

at
com.jxl.powerz.views::Main/init()[/Users/jesse/Documents/_Projects/DnDWorkspace/Powerz/src/com/jxl/powerz/views/Main.mxml:16]

at
com.jxl.powerz.views::Main/___Main_Canvas1_creationComplete()[/Users/jesse/Documents/_Projects/DnDWorkspace/Powerz/src/com/jxl/powerz/views/Main.mxml:5]

at flash.events::EventDispatcher/dispatchEventFunction()

at flash.events::EventDispatcher/dispatchEvent()

at
mx.core::UIComponent/dispatchEvent()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:9298]

at mx.core::UIComponent/set
initialized()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:1169]

at
mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:718]

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

at
mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8628]

at
mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8568]


[flexcoders] Re: Illegal override of WindowedSystemManager in mx.managers.WindowedSystemManager

2009-01-15 Thread Jesse Warden
I removed an SWC from my libs dir, a debug window component that has nothing
to do with AIR and air related classes... and it fixed my problem.  wtf?

On Fri, Jan 16, 2009 at 1:20 AM, Jesse Warden jesse.war...@gmail.comwrote:

 I keep getting this error for Flex 3.1 in AIR in the Flex Builder IDE
 3.0.2.  If I switch the SDK to 3.2, the app doesn't event launch.  I've even
 tried targeting flash player 10 via -target-player=10.0.0, but no dice.
 Any clue?  Here's some more debug info that appears in the Output panel
 that isn't mine:


 method not implemented
 mx.managers::ISystemManager/mx.managers:ISystemManager::dispatchEventFromSWFBridges()

over-binding 0 in mx.managers::WindowedSystemManager


 method not implemented
 mx.managers::ISystemManager/mx.managers:ISystemManager::getSandboxRoot()

over-binding 0 in mx.managers::WindowedSystemManager


 accessor not implemented mx.managers:ISystemManager::swfBridgeGroup

over-binding 0 in mx.managers::WindowedSystemManager


 method not implemented
 mx.managers::ISystemManager/mx.managers:ISystemManager::addChildToSandboxRoot()

over-binding 0 in mx.managers::WindowedSystemManager


 method not implemented
 mx.managers::ISystemManager/mx.managers:ISystemManager::addChildBridge()

over-binding 0 in mx.managers::WindowedSystemManager


 method not implemented
 mx.managers::ISystemManager/mx.managers:ISystemManager::getTopLevelRoot()

over-binding 0 in mx.managers::WindowedSystemManager


 method not implemented
 mx.managers::ISystemManager/mx.managers:ISystemManager::removeChildBridge()

over-binding 0 in mx.managers::WindowedSystemManager


 method not implemented
 mx.managers::ISystemManager/mx.managers:ISystemManager::isTopLevelRoot()

over-binding 0 in mx.managers::WindowedSystemManager


 method not implemented
 mx.managers::ISystemManager/mx.managers:ISystemManager::isDisplayObjectInABridgedApplication()

over-binding 0 in mx.managers::WindowedSystemManager


 method not implemented
 mx.managers::ISystemManager/mx.managers:ISystemManager::useSWFBridge()

over-binding 0 in mx.managers::WindowedSystemManager


 method not implemented
 mx.managers::ISystemManager/mx.managers:ISystemManager::getVisibleApplicationRect()

over-binding 0 in mx.managers::WindowedSystemManager


 method not implemented
 mx.managers::ISystemManager/mx.managers:ISystemManager::removeChildFromSandboxRoot()

over-binding 0 in mx.managers::WindowedSystemManager


 method not implemented
 mx.managers::ISystemManager/mx.managers:ISystemManager::deployMouseShields()

over-binding 0 in mx.managers::WindowedSystemManager

 VerifyError: Error #1053: Illegal override of WindowedSystemManager in
 mx.managers.WindowedSystemManager.


  at mx.core::Window/commitProperties()

 at
 mx.core::Window/open()[E:\dev\3.1.0\frameworks\projects\airframework\src\mx\core\Window.as:2548]

 at
 com.jxl.powerz.managers::PowerBarWindowsManager/createPowerBar()[/Users/jesse/Documents/_Projects/DnDWorkspace/Powerz/src/com/jxl/powerz/managers/PowerBarWindowsManager.as:52]

 at
 com.jxl.powerz.managers::PowerBarWindowsManager/loadPowerBarsFromVOs()[/Users/jesse/Documents/_Projects/DnDWorkspace/Powerz/src/com/jxl/powerz/managers/PowerBarWindowsManager.as:42]

 at
 com.jxl.powerz.views::Main/init()[/Users/jesse/Documents/_Projects/DnDWorkspace/Powerz/src/com/jxl/powerz/views/Main.mxml:16]

 at
 com.jxl.powerz.views::Main/___Main_Canvas1_creationComplete()[/Users/jesse/Documents/_Projects/DnDWorkspace/Powerz/src/com/jxl/powerz/views/Main.mxml:5]

 at flash.events::EventDispatcher/dispatchEventFunction()

 at flash.events::EventDispatcher/dispatchEvent()

 at
 mx.core::UIComponent/dispatchEvent()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:9298]

 at mx.core::UIComponent/set
 initialized()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:1169]

 at
 mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:718]

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

 at
 mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8628]

 at
 mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8568]




[flexcoders] Shape blocking mouse down

2008-12-17 Thread Jesse Warden
I'm drawing a horizontal timeline graph, my own component, not Flex
charting.  The horizontal bars are blocking the mouse down event from
reaching a component in a lower depth.  I'm confused because I've set the
parent, the children, and everything near there's mouseChildren and
mouseEnabled to false, yet the contents of the rows, little squares, block
the mouse down event.  Doing tests in Flash, I've proven those are the only
2 properties you need to set to false, even with nested containers, and
cacheAsBitmap set to true.  I have no events on this children; they are just
a bunch of Shapes inside a Sprite, with his mouseChildren and mouseEnabled
set to false as well.
So, I'm confused.

I know UIComponent sets your doubleClickEnabled to true, but tracing my
components out, they seem to all say false for those values.  What could
possibly be causing those Shapes in a Sprite to be blocking the mouse down
events?


[flexcoders] Image Data Caching

2008-10-14 Thread Jesse Warden
Anyone already built an image caching solution?  What about data?
I have the need to cache an immense amount of images and data locally.  No,
I cannot use AIR.  Since I cannot depend on the browser cache, I'm currently
using a modified version of Ely's SuperImage, and plan on saving the images
as compressed ByteArray's in local SharedObjects.  We have no qualms asking
the user to up the settings the SharedObject settings panel, unlimited even.
 For data, we're doing the same thing.  While I don't mind writing my own,
this project is time intensive, so was curious if someone has already built
a local caching engine for ActionScript data objects and images.


[flexcoders] Compressing BitmapData

2008-08-07 Thread Jesse Warden
How can you compress BitmapData in Flash to reduce the amount of RAM it
uses?

I need to scrub H264 video frame by frame.  You cannot do this utilizing
NetStream.seek because it seeks to the nearest keyframe.  This would require
the video to consist of nothing but keyframes.  Naturally this is not an
option for file size and playback performance reasons.  So, what I did was
record a 10 second section of the video using BitmapData.draw ( t3hV1d30 ),
shove the captures in an Array, and playback in a simple Bitmap swapper.  It
works well, allowing me to scrub frame by frame...

... except for the RAM; it takes 30 to 40 megs for just 10 seconds of
640x480 captures.  Someone mentioned ByteArray.deflate.  Looking for any
ideas on how to reduce the RAM cost here???

-- sorry for the x-post for those on Flash_Tiger --


[flexcoders] AS3 RSS Parser

2008-01-17 Thread Jesse Warden
Anyone know of an ActionScript 3 RSS feed parser that does not have any Flex
framework dependencies?

This one has a dependency to the mx.formatters.DateFormatter:

http://labs.adobe.com/wiki/index.php/ActionScript_3:resources:apis:libraries


[flexcoders] AS3 Components?

2007-08-31 Thread Jesse Warden
Anyone know of any sets beyond this list:

   1. Flex 2 SDK http://www.adobe.com/products/flex/downloads/
   2. Flash CS3
Componentshttp://livedocs.adobe.com/flash/9.0/main/Part2_Using_AS3_Components_1.html
   3. Jumpeye http://www.jumpeyecomponents.com/
   4. AsWing http://www.aswing.org/
   5. 
Razorberryhttp://www.razorberry.com/blog/archives/2007/07/27/component-comparison/

???


Re: [flexcoders] CDATA and E4X

2007-06-05 Thread Jesse Warden
Rad, thanks a bunch Michael!

On 6/4/07, Michael Schmalle [EMAIL PROTECTED] wrote:






 Hey man,

 I just hacked this out. it's ugly but works.


 function cdata(string:String):XML{
 return new XML('![CDATA[' + string + ']]')
 }

 var username = Jesse;
 var lastname = Warden;

 var re:XML =
 nodes
 node{username}/node
 node{cdata(lastname)}/node
 /nodes

 Peace, Mike



  On 6/4/07, Jesse Warden [EMAIL PROTECTED] wrote:
 
 
 
 
 
 
  How do I use CDATA with E4X?
 
  Reading CDATA nodes is easy. Sending, however, is hampered by the
  fact that I cannot use binding within CDATA nodes, and all text is URL
  encoded.
 
  So, if I do this:
 
  username = Jesse;
  lastname = Warden;
 
  nodes
  node{username}/node
  node![CDATA[{lastname}]]/node
  /nodes
 
  It'll look like this:
 
  nodes
  nodeJesse/node
  node![CDATA[{lastname}]]/node
  /nodes
 
  If I try assembling manually, it still URL encodes it:
 
  var request:XML = request
  moo
  gooHello/goo
  pan3/pan
  /moo
  /request;
  var sup:String = sup dog;
  var s:String = ![CDATA[;
  s += sup;
  s += ]];
  request.moo.appendChild(gai{s}/gai);
  trace(request);
 
  This is a problem because I'm sending a URL through E4X with URL
  parameters, and it's encoding it twice; basically, my  are becoming
  amp;.
 
  I asked the server guy to just let me send this particular value as an
  attribute so we could move on, but... no dice, my problem.
 
  ???
 



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

  


[flexcoders] CDATA and E4X

2007-06-04 Thread Jesse Warden
How do I use CDATA with E4X?

Reading CDATA nodes is easy.  Sending, however, is hampered by the
fact that I cannot use binding within CDATA nodes, and all text is URL
encoded.

So, if I do this:

username = Jesse;
lastname = Warden;

nodes
   node{username}/node
   node![CDATA[{lastname}]]/node
/nodes

It'll look like this:

nodes
   nodeJesse/node
   node![CDATA[{lastname}]]/node
/nodes

If I try assembling manually, it still URL encodes it:

var request:XML = request
moo
gooHello/goo
pan3/pan
/moo
/request;
var sup:String = sup dog;
var s:String = ![CDATA[;
s += sup;
s += ]];
request.moo.appendChild(gai{s}/gai);
trace(request);

This is a problem because I'm sending a URL through E4X with URL
parameters, and it's encoding it twice; basically, my  are becoming
amp;.

I asked the server guy to just let me send this particular value as an
attribute so we could move on, but... no dice, my problem.

???


[flexcoders] wmode transparency in OSX Dashboard

2007-06-02 Thread Jesse Warden

I've been at these for hours to no avail.  No matter what I try, I cannot
get a SWF in a Mac OSX Dashboard widget to show transparently when setting
wmode to transparent.  I've confirmed that windowlessDisable is false (via
mms.cfg).

I know Safari supports wmode=transparent so anyone know why a widget SWF
won't work?


[flexcoders] encode +

2007-04-24 Thread Jesse Warden
Running encode on a String seems to be missing the +.  For example, a
space   becomes %20 like expected.  But, a + is not becoming %2D...
anyone know why?


Re: [flexcoders] encode +

2007-04-24 Thread Jesse Warden
Weird... encodeURI does the same thing.  Check it:

var str:String = encodeURI(dude man+);

Notice that with encode or encodeURI, you'll get:

dude%20man+

...bleh!  That dang + should be %2D instead.

BTW, for background context, I'm first base64'ing some XML, and then
encoding it to send as a GET request param.  If you know of a better
way, I'm all ears.

On 4/24/07, Jesse Warden [EMAIL PROTECTED] wrote:
 Nope.  I'm using encode.

 On 4/24/07, Michael Wills [EMAIL PROTECTED] wrote:
 
 
 
 
 
 
   Are you using encodeURI? You may need to use encodeURIComponent instead.
  Just checking briefly on the JS versions.
 
   Michael
 
   Jesse Warden wrote:
 
 
 
  Running encode on a String seems to be missing the +. For example, a
   space   becomes %20 like expected. But, a + is not becoming %2D...
   anyone know why?
 
 
   



Re: [flexcoders] encode +

2007-04-24 Thread Jesse Warden
Nope.  I'm using encode.

On 4/24/07, Michael Wills [EMAIL PROTECTED] wrote:






  Are you using encodeURI? You may need to use encodeURIComponent instead.
 Just checking briefly on the JS versions.

  Michael

  Jesse Warden wrote:



 Running encode on a String seems to be missing the +. For example, a
  space   becomes %20 like expected. But, a + is not becoming %2D...
  anyone know why?


  


[flexcoders] ASDoc on a Mac

2007-04-13 Thread Jesse Warden
Anyone ever get ASDoc to work on a Mac?

I'm having the same problem these dudes are having.

http://www.google.com/search?hl=ensafe=offq=asdoc+Exception+in+thread+%22main%22+java.lang.NoClassDefFoundError%3A+FlexbtnG=Search


[flexcoders] SWF in a Mac OSX Widget

2007-04-08 Thread Jesse Warden
Has anyone gotten this to work?  I'm having an extrodinarly hard time
getting a simple test case to work; we're talking dead simple HTML and
JavaScript here.  I've tried both Flex SWF's, Flash SWF's, Flash
Player 9, 8, 7, and 6 SWF's.  I've tried both local and server only
SWF's.  I've played with wmodes... all to no avail.

I managed to replace this Widget's SWF file with my own Flex SWF:

http://www.apple.com/downloads/dashboard/movie_tv/flvplayer.html

...and I can see it appear as a 10 pixel by 10 pixel in the top left,
but don't understand why it's so small when the example's code makes
it bigger.

Really confused and frustrated.  Any help is appreciated.


[flexcoders] Re: SWF in a Mac OSX Widget

2007-04-08 Thread Jesse Warden
Nevermind, got it.

On 4/7/07, Jesse Warden [EMAIL PROTECTED] wrote:
 Has anyone gotten this to work?  I'm having an extrodinarly hard time
 getting a simple test case to work; we're talking dead simple HTML and
 JavaScript here.  I've tried both Flex SWF's, Flash SWF's, Flash
 Player 9, 8, 7, and 6 SWF's.  I've tried both local and server only
 SWF's.  I've played with wmodes... all to no avail.

 I managed to replace this Widget's SWF file with my own Flex SWF:

 http://www.apple.com/downloads/dashboard/movie_tv/flvplayer.html

 ...and I can see it appear as a 10 pixel by 10 pixel in the top left,
 but don't understand why it's so small when the example's code makes
 it bigger.

 Really confused and frustrated.  Any help is appreciated.



Re: [flexcoders] Re: Chrome behind content?

2007-03-11 Thread Jesse Warden

Thanks Michael, I'll try your code.

Paul, if you look in mx.containers.Container, you can see how they override
and abstract the DisplayList API so that you have 2 types of children; raw
and regular.  This allows you to have those you put in Canvas and those
that make Panel.  For example, the title bar, close button, title, etc. are
NOT something you want inside your Panel container to interact with your
children.  If you put a CheckBox control into a Panel, you would expect only
1 child to be in your container (numChildren, getChildAt(0), etc.).  This
allows you to build container components for others to use without knowing
how your child setup works.

On 3/11/07, Paul DeCoursey [EMAIL PROTECTED] wrote:


  I'm not really sure what that is all about, Background isn't chrome it
is background. Children need to be in front of background. I know at
one point I was having trouble with a background rendering over some
graphical elements that I had. So to fix that I did my graphical
elements on a child item, that way the canvas background rendered
behind my content. I'm not sure you have the same issue, but perhaps
you could use that technique to solve your issue. Create a container
with two children, one for display elements and one for chrome. Add
the chrome first and the children second and your children will be
above the chrome.

Paul


--- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Jesse
Warden [EMAIL PROTECTED] wrote:

 I'm extending Canvas. His base class, Container, decrees on line
4608 that
 all children are behind chrome. I want the opposite. I want my chrome
 BEHIND the content; I want the content IN FRONT of my chrome.

 However, since Container does all kinds of crazy over-writting of
 DisplayObject methods and tucks them away in mx_internal and various
other
 private  final prefix's, I have no clue how to easily make my
chrome inside
 of rawChildren go backwards. Obviously, setChildIndex doesn't work
at this
 point because the base class owns those methods as proxies now.

 The hack, for now, is to NOT have my chrome draw a background. If it
 doesn't, I can click on children just fine. That, however, sucks
because I
 want a background. Figured 2nd hack is to just set the backgroundColor
 property to my chrome's background, and redraw my chrome as a mask
for the
 background. That is worse.

 Suggestions?


 



Re: [flexcoders] Re: Chrome behind content?

2007-03-11 Thread Jesse Warden

Grr... works for everything but my Label.  Keeps whining about antiAlias
being null.  Had this happen last night (this morning?) when the TextField
isn't in the DisplayList, but gets measure called on 'em.  Fuggit,
everything else works; thanks a bunch Michael!

On 3/11/07, Jesse Warden [EMAIL PROTECTED] wrote:


Thanks Michael, I'll try your code.

Paul, if you look in mx.containers.Container, you can see how they
override and abstract the DisplayList API so that you have 2 types of
children; raw and regular.  This allows you to have those you put in
Canvas and those that make Panel.  For example, the title bar, close
button, title, etc. are NOT something you want inside your Panel container
to interact with your children.  If you put a CheckBox control into a Panel,
you would expect only 1 child to be in your container (numChildren,
getChildAt(0), etc.).  This allows you to build container components for
others to use without knowing how your child setup works.

On 3/11/07, Paul DeCoursey [EMAIL PROTECTED] wrote:

   I'm not really sure what that is all about, Background isn't chrome it
 is background. Children need to be in front of background. I know at
 one point I was having trouble with a background rendering over some
 graphical elements that I had. So to fix that I did my graphical
 elements on a child item, that way the canvas background rendered
 behind my content. I'm not sure you have the same issue, but perhaps
 you could use that technique to solve your issue. Create a container
 with two children, one for display elements and one for chrome. Add
 the chrome first and the children second and your children will be
 above the chrome.

 Paul


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Jesse
 Warden [EMAIL PROTECTED] wrote:
 
  I'm extending Canvas. His base class, Container, decrees on line
 4608 that
  all children are behind chrome. I want the opposite. I want my chrome
  BEHIND the content; I want the content IN FRONT of my chrome.
 
  However, since Container does all kinds of crazy over-writting of
  DisplayObject methods and tucks them away in mx_internal and various
 other
  private  final prefix's, I have no clue how to easily make my
 chrome inside
  of rawChildren go backwards. Obviously, setChildIndex doesn't work
 at this
  point because the base class owns those methods as proxies now.
 
  The hack, for now, is to NOT have my chrome draw a background. If it
  doesn't, I can click on children just fine. That, however, sucks
 because I
  want a background. Figured 2nd hack is to just set the backgroundColor
  property to my chrome's background, and redraw my chrome as a mask
 for the
  background. That is worse.
 
  Suggestions?
 

  






[flexcoders] Chrome behind content?

2007-03-10 Thread Jesse Warden

I'm extending Canvas.  His base class, Container, decrees on line 4608 that
all children are behind chrome.  I want the opposite.  I want my chrome
BEHIND the content; I want the content IN FRONT of my chrome.

However, since Container does all kinds of crazy over-writting of
DisplayObject methods and tucks them away in mx_internal and various other
private  final prefix's, I have no clue how to easily make my chrome inside
of rawChildren go backwards.  Obviously, setChildIndex doesn't work at this
point because the base class owns those methods as proxies now.

The hack, for now, is to NOT have my chrome draw a background.  If it
doesn't, I can click on children just fine.  That, however, sucks because I
want a background.  Figured 2nd hack is to just set the backgroundColor
property to my chrome's background, and redraw my chrome as a mask for the
background.  That is worse.

Suggestions?


Re: [flexcoders] Alternative to Repeater

2006-01-07 Thread Jesse Warden
Well, only problem with Composition is it's now a black box; that can be
good or bad.  For example, if your class is the only one ever operating on
the custom Repeater, then sure, that's fine.  However, if you ever want to
expose those methods, you have to write proxy methods for them all
including re-doing all the getters and setters.

So, using a List in a form via composition is fine; you have buttons in
that form that add/delete items from the list.  From that point on,
however, no one else can ever interact with that lists data.

...unless you expose the dataProvider, or the dataProvider is public.  If
it is, you can only operate on that dataProvider via the dataProvider API.
 If that's ok with you, that's ok with me.  IF, however, you are building
a re-usable View, then that isn't very eloquent.  Just depends on how your
going to use it.  List for example can be extended if you want.  Most
people, however, use it via composition.


 Thanks. That make it a lot clearer.

 Although, am not sure I understand why you would use the mixin
 approach here  compared to using Composition.
 Are there any benefits of doing it this way as opposed to say:

 Embed a dataProvider inside Comp.mxml  and have the comp listen for and
 handle the modelChanged event of the DP ?

 TIA

 - superabe





 On 1/7/06, JesterXL [EMAIL PROTECTED] wrote:

  *** resending, other one got lost in the ether I spose: 2:48pm
 1.7.2006***

 In a nutshell, DataSelector is a mixin.  A mixin adds methods and
 properties to a class at runtime.  Since you cannot do multiple
 inheritance
 in ActionScript, using a mixin is a way around that.  DataSelector adds
 dataProvider powers to a class:

 DataSelector.initialize(YourClass);

 Any class that utilizes DataSelector gets a length property.
 DataSelector
 gives a class pretty much all the DataProvider methods (which are really
 proxies to the dataProvider it contains a reference to), length being
 one of
 them.  So:

 yourComponent.length

 is the same as:

 yourComponent.dataProvider.length


 Yes, modelChanged fires everytime you use a DataProvider method on a
 dataProvider or dataProvider component.

 a = [one, two, three];
 yourComponent.dataProvider = a;

 a.addItem(cow); // fires modelChanged
 a.push(cheese); // does not fire modelChanged
 yourComponent.addItem(moo); // fires modelChanged

 ModelChanged actually has an object that is passed to it, the event
 object, that has information about what changed.  You can use a switch
 statement to know what changed, and how, and more intelligently draw
 your
 component.  A note; this is a fuoi$%(*)$% load of work.  If you don't
 believe me, go look in DataGrid.as.

 So, to be lazy, I just ignore it and redraw everytime.  Keep in mind,
 even
 if you use the code above, it'll only redraw once:
 - modelChanged fired for setting the dataProvider
 - modelChanged fired for adding cow to it
 - modelChagned fired for addingmoo to it

 Since I use a doLater, and only 1, it'll only redraw once per frame.
 - Original Message - *From:* superabe
 superabe[EMAIL PROTECTED]
 *To:* flexcoders@yahoogroups.com
  *Sent:* Saturday, January 07, 2006 11:38 AM
 *Subject:* Re: [flexcoders] Alternative to Repeater


 Thanks for the help.
 Couple of question

 1 .What do you mean by - utilize Data Selector on that class ?

 2. In the redrawForm method what does the value length represent.
 If it is the length of the dataProvider, am not clear how that was
 established

 3. Does modelChanged fire every time the dataProvider changes?
 If so seems like it would redraw the entire form even if only one item
 in
 the array changed (say using addItem).

 Thanks,

 - superabe

 On 1/7/06, JesterXL [EMAIL PROTECTED] wrote:
 
  You basically do:
  - create a new abstract base class for your component as ActionScript
  - utilize DataSelector on that class
  - extend that class in a new file
  - have the new file do something like this
 
  function modelChanged()
  {
  cancelAllDoLaters();
  doLater(this, redrawForm);
  }
 
  function redrawForm()
  {
  canvas_mc.destroyAllChildren();
  var i:Number = length;
  while(i--)
  {
  var item:Object = getItemAt(i);
  canvas_mc.createChild(SomeComponent);
  }
  }
 
 
  What is happening here is whenever the dataProvider changes, the form
 is
  redrawn.  It's only redrawn once per frame in case dataProvider has 50
  billion changes.
 
  If you see the createChild call for the canvas, basically you could
 put
  in logic, say, to create images, and then call load on them based on
 the url
  for the current item.
 
  Then, you can finally use that AS component as MXML elsewhere.  Make
  sense?
 
 
  - Original Message - *From:* superabe
 superabe[EMAIL PROTECTED]
  *To:* flexcoders@yahoogroups.com
  *Sent:* Saturday, January 07, 2006 11:09 AM
  *Subject:* [flexcoders] Alternative to Repeater
 
 
  Is there an alternative to using a Repeater , that I could make use of
  in my