Re: [flexcoders] mobile pushView Transition

2012-09-04 Thread dorkie dork from dorktown
Hi Mark,

Check if there is an option to playTransition. If so you can set this to
false.

navigator.pushView(nextScreen, false);

http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/spark/components/ViewNavigator.html#pushView()


On Wed, Aug 29, 2012 at 9:12 AM, markflex2007 markflex2...@yahoo.comwrote:

 **


 Hi,

 I use navigator.pushView(NextScreen) to changes to the new view.

 but transition seems always exist.

 May I use pushView change to a new view immediately without any time delay
 like state change?

 Please give me a idea

 Thanks for help

 Mark

  



Re: [flexcoders] Re: Adding stroke to text or bitmap at runtime

2012-08-03 Thread dorkie dork from dorktown
I discovered that using the DropShadowFilter with the right settings gets
really close to the border stroke created by the effects filters in
Photoshop. I mean it's like 95% accurate. I've posted examples (comparing
bitmap from photoshop and a live BorderStrokeFilter on my site
http://bit.ly/OP10l6.

PS The example also has a drop shadow filter explorer, text shadow filter
and skinnable container frame skin.

On Sat, Apr 28, 2012 at 1:33 AM, Alex H aha...@adobe.com wrote:

 **


 There are edge detection algorithms. You might need something like that.
 The glyph information would be better, but I don't think it is available.


 --- In flexcoders@yahoogroups.com, dorkie dork from dorktown
 dorkiedorkfromdorktown@... wrote:
 
  The picture I linked is not that clear. Here is a clearer picture and the
  article,
 
 http://www.blog.spoongraphics.co.uk/wp-content/uploads/2011/cafe-racer/13.jpg
 
 http://internetwebsitedesign.biz/design/how-to-create-a-retro-cafe-racer-motorcycle-ad-design
 
  What he is doing at design time I want to do at runtime.
 
  On Thu, Apr 26, 2012 at 8:41 PM, dorkie dork from dorktown 
  dorkiedorkfromdorktown@... wrote:
 
   I want to add a stroke (a border or outline) to the *edge* of the text
 or

   image itself.
  
   For example, the text and the image in this screenshot show what I'd
 like
   to do,
  
 http://blog.spoongraphics.co.uk/wp-content/uploads/2011/cafe-racer/retro-cafe-racer-ad.jpg.
  
  
   There are filters that add drop shadow or a glow around the
   non-transparent pixels (content) of a display object. But no one in the
   world has been able to create a filter to add a stroke.
  
   On Thu, Apr 26, 2012 at 1:05 AM, Alex Harui aharui@... wrote:
  
   **

  
  
   I'm still not sure I understand. Why do you have to add Stroke
   components? You can just call graphics APIs on them.
  
   If you must use components, can you overlay or underlay them in a
 Group
   parenting the Label?
  
  
  
   On 4/25/12 12:59 AM, dorkiedorkfromdorktown@... 

   dorkiedorkfromdorktown@... wrote:
  
  
  
  
  
  
   I'm looking for more of something like this:
  
   s:Label text=Hello Filters!
   s:stroke
   s:SolidColorStroke weight=4 color=#ABCDEF/
   /s:stroke
   /s:Label
  
   or this:
  
   s:Label text=Hello Filters!
   s:filters
   s:SolidColorStrokeFilter weight=4 color=#ABCDEF/
   /s:filters
   /s:Label
  
   On Fri, Apr 13, 2012 at 12:15 AM, Alex Harui aharui@... wrote:
  
  
  
  
  
  
   In Spark controls, you can add children to the TextLine like a sprite.
  
  
  
  
   On 4/12/12 5:43 PM, dorkiedorkfromdorktown@... 
   http://dorkiedorkfromdorktown@...  
   dorkiedorkfromdorktown@... http://dorkiedorkfromdorktown@...

wrote:
  
  
  
  
  
  
   How would you add a stroke to dynamic text at runtime? If that's not
   possible how would you add a stroke to a bitmap (snapshot of text)?
  
  
  
  
  
   --
   Alex Harui
   Flex SDK Team
   Adobe Systems, Inc.
   http://blogs.adobe.com/aharui
  
  
  
  
  
 

  



Re: [flexcoders] check if the user has block all sites from using the camera and microphone

2012-08-02 Thread dorkie dork from dorktown
I don't know of a property that tells you this. But there may be a way to
find out with the users help.

If the mic is muted I open an alert window and tell the user that they'll
need to enable it in the settings dialog. If they click OK to the alert
window then I open the Flash microphone settings window and listen for the
mic status change event to know when they've made a choice.

When you hear back from that event (in onMicAccessChange) you can check if
the muted property is still true. If they say yes then the user may have
the global settings selected. You can then inform them that the global
settings might be preventing your app from accessing the mic and then ask
them to check the global settings themselves or open the global settings
page for them. You may want to show another alert asking if the global mute
was enabled and if they click Yes then reload the app).


/**
 * Shows dialog if microphone is not enabled or available.
 */
public function enableMicrophone():void {
microphone = Microphone.getMicrophone();

// If Microphone.getMicrophone() returns null, either the
microphone is in use by
// another application, or there are no microphones installed
on the system.
// To determine whether any microphones are installed, use
Microphones.names.length.
if (microphone == null) {
Alert.show(You will need to select a microphone and allow
this application to access it., Microphone Required, 4,
FlexGlobals.topLevelApplication as Sprite, selectMicrophoneHandler);
}

if (microphone.muted) {
Alert.show(You will need to allow access to you microphone
to continue. Select Allow., Microphone Required, 4,
FlexGlobals.topLevelApplication as Sprite, allowAccessToMicrophoneHandler);
}

}


/**
 *
 * @param event
 */
public function selectMicrophoneHandler(event:CloseEvent):void {

// show settings if mic is muted
if (event.detail == Alert.OK) {
Security.showSettings(SecurityPanel.MICROPHONE);
displayedMicrophoneSettings = true;
}
else if (event.detail == Alert.CANCEL) {

if (microphone == null) {
Alert.show(If you don't have a microphone or have
selected one from the menu you won't be able to record audio...);
}
}

}


/**
 *
 * @param event
 */
public function
allowAccessToMicrophoneHandler(event:CloseEvent):void {

// show settings if mic is muted
if (event.detail == Alert.OK) {
Security.showSettings(SecurityPanel.PRIVACY);
displayedPrivacySettings = true;
}

// user canceled selection
else if (event.detail == Alert.CANCEL) {

// user chose to not allow microphone access
// may need to reload the app to pop up the security dialog
again
if (microphone.muted) {
Alert.show(If you don't enable your microphone you
won't be able to record anything...);
}
}


// set mic name and mute status
if (microphone 
!microphone.hasEventListener(StatusEvent.STATUS)) {
microphone.addEventListener(StatusEvent.STATUS,
onMicAccessChange);
}

}


/**
 *
 * @param event
 */
public function onMicAccessChange(event:StatusEvent):void {
statusCode = event.code;
statusMessageLevel = event.level;
// check for microphone is still muted here
}


On Tue, Jun 19, 2012 at 12:23 PM, Chuck Preston itsmechuc...@yahoo.comwrote:

 **


 Is there a way to check if the user has selected block all sites from
 using the camera and microphone in the global Flash settings with AS3?

 I'm trying to access the microphone and if the user has block all
 sites... selected, I need to put up a dialog box. Microphone.muted is true
 if the user has block all sites... selected or not.

  



[flexcoders] Tweens animated on a pixel or subpixel level

2012-05-30 Thread dorkie dork from dorktown
Are tweens animated to pixel or the subpixel value? For instance, if you
were to animate a Spark Button x value from 0 to 100 would the button snap
to whole pixel values?


[flexcoders] Memory Leak but why?

2012-05-15 Thread dorkie dork from dorktown
I've created a custom Effect called EndEffect that when played will call
the end() method on the target effect sequence.

I've tested this code in both the Effect.initInstance() call of the Effect
and the EffectInstance.play() method:


/**
 *  @private
 */
override protected function
initInstance(instance:IEffectInstance):void
{
super.initInstance(instance);

var targetEffect:IEffect = effect || target as IEffect;

targetEffect.end();
targetEffect = null;
}

In my declarations I have this code:

c:EndEffect id=explicitEndSequence
effect={playerSequence}/

The effect that this effect targets (playerSequence) has an effect end
event listener like so:

s:Sequence id=player effectEnd=trace('effect end')
... it contains 3 child effects
/s:Sequence

With I play explicitEndSequence the console traces effect end 3 times:

effect end
effect end
effect end

Each subsequent calls it will show 3 more than the last (2nd call):

effect end
effect end
effect end
effect end
effect end
effect end

If I change the EndEffect code so that it doesn't create a local variable
it ends once correctly:

/**
 *  @private
 */
override protected function
initInstance(instance:IEffectInstance):void
{
super.initInstance(instance);

effect.end(); // this works! Btw effect is a property on
EndEffect
}

Why does the first code cause a memory leak and not delete the instances?


[flexcoders] Dynamic Composite Effects

2012-05-15 Thread dorkie dork from dorktown
I need to be able to switch between two different child effects based on a
condition at runtime such as this:

DynamicSequenceEffect
 conditionOneEffectsArray
Fade /
 /conditionOneEffectsArray
 conditionTwoEffectsArray
Fade /
 /conditionTwoEffectsArray

/DynamicSequenceEffect

If you had to create a custom effect that branched to play other effects
would you create a Composite Effect and set the child effects dynamically
at runtime or provide properties that point to an effect to play and call
effect.play on them?

I'm wondering if the composite effects playback and / or duration would get
screwed up.


Re: [flexcoders] Adding stroke to text or bitmap at runtime

2012-04-26 Thread dorkie dork from dorktown
I want to add a stroke (a border or outline) to the *edge* of the text or
image itself.

For example, the text and the image in this screenshot show what I'd like
to do,
http://blog.spoongraphics.co.uk/wp-content/uploads/2011/cafe-racer/retro-cafe-racer-ad.jpg.


There are filters that add drop shadow or a glow around the non-transparent
pixels (content) of a display object. But no one in the world has been able
to create a filter to add a stroke.

On Thu, Apr 26, 2012 at 1:05 AM, Alex Harui aha...@adobe.com wrote:

 **


 I’m still not sure I understand.  Why do you have to add Stroke
 components?  You can just call graphics APIs on them.

 If you must use components, can you overlay or underlay them in a Group
 parenting the Label?



 On 4/25/12 12:59 AM, dorkiedorkfromdorkt...@gmail.com 
 dorkiedorkfromdorkt...@gmail.com wrote:






 I'm looking for more of something like this:

 s:Label text=Hello Filters!
 s:stroke
 s:SolidColorStroke weight=4 color=#ABCDEF/
 /s:stroke
 /s:Label

 or this:

 s:Label text=Hello Filters!
 s:filters
 s:SolidColorStrokeFilter weight=4 color=#ABCDEF/
 /s:filters
 /s:Label

 On Fri, Apr 13, 2012 at 12:15 AM, Alex Harui aha...@adobe.com wrote:






 In Spark controls, you can add children to the TextLine like a sprite.




 On 4/12/12 5:43 PM, dorkiedorkfromdorkt...@gmail.com 
 http://dorkiedorkfromdorkt...@gmail.com  
 dorkiedorkfromdorkt...@gmail.com http://dorkiedorkfromdorkt...@gmail.com
  wrote:






 How would you add a stroke to dynamic text at runtime? If that's not
 possible how would you add a stroke to a bitmap (snapshot of text)?





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

  



Re: [flexcoders] Adding stroke to text or bitmap at runtime

2012-04-26 Thread dorkie dork from dorktown
The picture I linked is not that clear. Here is a clearer picture and the
article,
http://www.blog.spoongraphics.co.uk/wp-content/uploads/2011/cafe-racer/13.jpg
http://internetwebsitedesign.biz/design/how-to-create-a-retro-cafe-racer-motorcycle-ad-design

What he is doing at design time I want to do at runtime.

On Thu, Apr 26, 2012 at 8:41 PM, dorkie dork from dorktown 
dorkiedorkfromdorkt...@gmail.com wrote:

 I want to add a stroke (a border or outline) to the *edge* of the text or
 image itself.

 For example, the text and the image in this screenshot show what I'd like
 to do,
 http://blog.spoongraphics.co.uk/wp-content/uploads/2011/cafe-racer/retro-cafe-racer-ad.jpg.


 There are filters that add drop shadow or a glow around the
 non-transparent pixels (content) of a display object. But no one in the
 world has been able to create a filter to add a stroke.

 On Thu, Apr 26, 2012 at 1:05 AM, Alex Harui aha...@adobe.com wrote:

 **


 I’m still not sure I understand.  Why do you have to add Stroke
 components?  You can just call graphics APIs on them.

 If you must use components, can you overlay or underlay them in a Group
 parenting the Label?



 On 4/25/12 12:59 AM, dorkiedorkfromdorkt...@gmail.com 
 dorkiedorkfromdorkt...@gmail.com wrote:






 I'm looking for more of something like this:

 s:Label text=Hello Filters!
 s:stroke
 s:SolidColorStroke weight=4 color=#ABCDEF/
 /s:stroke
 /s:Label

 or this:

 s:Label text=Hello Filters!
 s:filters
 s:SolidColorStrokeFilter weight=4 color=#ABCDEF/
 /s:filters
 /s:Label

 On Fri, Apr 13, 2012 at 12:15 AM, Alex Harui aha...@adobe.com wrote:






 In Spark controls, you can add children to the TextLine like a sprite.




 On 4/12/12 5:43 PM, dorkiedorkfromdorkt...@gmail.com 
 http://dorkiedorkfromdorkt...@gmail.com  
 dorkiedorkfromdorkt...@gmail.com http://dorkiedorkfromdorkt...@gmail.com
  wrote:






 How would you add a stroke to dynamic text at runtime? If that's not
 possible how would you add a stroke to a bitmap (snapshot of text)?





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

  





Re: [flexcoders] Adding stroke to text or bitmap at runtime

2012-04-25 Thread dorkie dork from dorktown
I'm looking for more of something like this:

s:Label text=Hello Filters!
s:stroke
s:SolidColorStroke weight=4 color=#ABCDEF/
/s:stroke
/s:Label

or this:

s:Label text=Hello Filters!
s:filters
s:SolidColorStrokeFilter weight=4 color=#ABCDEF/
/s:filters
/s:Label

On Fri, Apr 13, 2012 at 12:15 AM, Alex Harui aha...@adobe.com wrote:

 **


 In Spark controls, you can add children to the TextLine like a sprite.



 On 4/12/12 5:43 PM, dorkiedorkfromdorkt...@gmail.com 
 dorkiedorkfromdorkt...@gmail.com wrote:






 How would you add a stroke to dynamic text at runtime? If that's not
 possible how would you add a stroke to a bitmap (snapshot of text)?





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

  



[flexcoders] Adding stroke to text or bitmap at runtime

2012-04-12 Thread dorkie dork from dorktown
How would you add a stroke to dynamic text at runtime? If that's not
possible how would you add a stroke to a bitmap (snapshot of text)?


Re: [flexcoders] external debugger

2012-03-29 Thread dorkie dork from dorktown
Not that I know of (if you declared it MXML). You could set enabled to
false in the release version but probably the best option is to use
conditional compilation,
http://stackoverflow.com/questions/2736411/flash-flex-conditional-compilation-else


On Mon, Mar 26, 2012 at 4:45 AM, Wouter Schreuders wschreud...@gmail.comwrote:

 **


 Is there any way to exlude this code being compiled into the release
 version?


 On 26 March 2012 11:20, Wouter Schreuders wschreud...@gmail.com wrote:

 great! thanks this is a super handy class


 On 23 March 2012 16:50, dorkie dork from dorktown 
 dorkiedorkfromdorkt...@gmail.com wrote:

 **


 You can use MiniInspector to get that type of information.

 http://code.google.com/p/flexcapacitor/source/browse/trunk/library/src/com/flexcapacitor/utils/MiniInspector.as


 On Thu, Feb 9, 2012 at 5:22 AM, Wouter Schreuders wschreud...@gmail.com
  wrote:

 **


 well the kind of functionality I'm looking for is really for the back
 end programmers, occasionally they need to dip into the flex side of things
 and they have a lot of difficulty figuring out which class they need to
 work on(for instance you have your application, then a module, then a
 component which contains an itemrenderer which contains another
 itemrenderer and on of those has some custom component inside).

 If they can just hover their mouse over that element and it tells them
 what class it is it would help them alot.


 On 9 February 2012 07:17, Alex Harui aha...@adobe.com wrote:

 **


 FDB comes with the SDK.  It is command-line, but I use it 99% of the
 time as it is way faster than the GUI debugger in FlashBuilder for most
 problems I have to solve.



 On 2/7/12 11:06 PM, Wouter Schreuders wschreud...@gmail.com wrote:






 Hi All

 Can anyone recommend a debugger for flex that allows you to inspect
 and changed properties at runtime? Something like Flex-Spy or x-ray(for
 as2), but I'm looking for something that is not obsolete.

 Any recommendations?

 Thanks

 Wouter





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





  



Re: [flexcoders] Debug Woes - Redux

2012-03-29 Thread dorkie dork from dorktown
It sounds like the SWF is cached. You'll need to find out if it is.

I suggest you add a build number to your project that you can check if the
swf is cached. There are ANT scripts online that increment a build number
automatically before each build. If you can't find it online I can post an
example when I get a chance.

If it's a cached SWF then there are a few things you can do for your future
development. BTW You don't need restart your browser or Flash Builder. That
wouldn't help anyway.

Use Firefox (not your normal browser) as your browser in Flash Builder for
this test and debug the project. Check if the SWF is cached (using the
build number or changing a background color or something). If it is then go
to Tools  Clear Recent History and make sure the cache option is checked
and time range is set to everything. Remember, Firefox will start caching
the swf after an hour automatically and if that happens you need to clear
the cache again. If the browser's not caching it but it's still cached then
it sounds like it's something up the line IE your server etc.

BTW Personally, I don't like when if statements don't use brackets. For
kicks add brackets to your statement:

if (something  0) {
something = 0; // put the break point here
}

If you see that you are setting the value but it doesn't stick then it may
be a rare case that has to do with double bindings and temp variables. It's
something along the lines of you assign a bindable variable to a temporary
variable and then when you try to assign a value to that temporary variable
it isn't assigned the value (or something like that). The way to get passed
this is to set the actual variable not the temp variable. In my case I had
to do something like this:

this.something = 0;
or
document['something'] = 0;

instead of

something = 0;



On Thu, Mar 29, 2012 at 5:51 AM, Paul Andrews p...@ipauland.com wrote:

 **


 On 28/03/2012 19:20, Davidson, Jerry wrote:

  I”ve got old eyes (along with the rest of me).  How are they different?

 My bad - sort of.


 *if* (adjInc  0)   *//
 for negatives*
   adjInc = 0;

 I've pasted the above in from your earlier post and the adjInc text is
 identical.

 When I look at the original post in my email client the two variables look
 different - the I looks like l.

 Looking back and trying to edit the post I see that the  *if* (adjInc
 is in a different font to adjInc = 0; (just as they look now as I type
 this line!), so I thought the names were different. Bizarre.

 So, you're right they are the same but they look different in my mail
 reader.

 Paul

  

 ** **

 *From:* flexcoders@yahoogroups.com 
 [mailto:flexcoders@yahoogroups.comflexcoders@yahoogroups.com]
 *On Behalf Of *Paul Andrews
 *Sent:* Wednesday, March 28, 2012 11:36 AM
 *To:* flexcoders@yahoogroups.com
 *Cc:* John McCormack
 *Subject:* Re: [flexcoders] Debug Woes - Redux

 ** **

   

 adjInc and adjInc

 are different variables.


 On 28/03/2012 17:03, John McCormack wrote: 

 Just wondering...
 If you copy the variable's value to the variable 'temp' and test that,
 what do you see?
 John

 On 27/03/2012 21:34, Davidson, Jerry wrote: 

 It’s happening again.  This never happened when I was using Flex 3.5.

  

 Make a change in the code.  Do a Project | Clean.  Make sure the debugging
 session is over.  Do a File |Refresh.

  

 Start a debugging session and watch it go past a line:

 *if* (adjInc  0)   *//
 for negatives*

   adjInc = 0;

 Watch both lines (value at his point in this test is -43) execute.  After
 the assignment watch the value not change to zero, but stay at -43.

  

 Repeat above steps 2-3 times with no difference.  Shut down Flash Builder
 and start it again and repeat.  No change.

  

 I’ve only got a little hair left and don’t think I can pull any more out.*
 ***

  

 1)  How can I force Flex to recognize code?

 2)  How can I force Flex (Flash Builder 4) to execute – as in making
 an assignment – the code?

  

  

 Jerry Davidson

 ** **

 ** **

 


  



Re: [flexcoders] external debugger

2012-03-23 Thread dorkie dork from dorktown
You can use MiniInspector to get that type of information.
http://code.google.com/p/flexcapacitor/source/browse/trunk/library/src/com/flexcapacitor/utils/MiniInspector.as

On Thu, Feb 9, 2012 at 5:22 AM, Wouter Schreuders wschreud...@gmail.comwrote:

 **


 well the kind of functionality I'm looking for is really for the back end
 programmers, occasionally they need to dip into the flex side of things and
 they have a lot of difficulty figuring out which class they need to work
 on(for instance you have your application, then a module, then a component
 which contains an itemrenderer which contains another itemrenderer and on
 of those has some custom component inside).

 If they can just hover their mouse over that element and it tells them
 what class it is it would help them alot.


 On 9 February 2012 07:17, Alex Harui aha...@adobe.com wrote:

 **


 FDB comes with the SDK.  It is command-line, but I use it 99% of the time
 as it is way faster than the GUI debugger in FlashBuilder for most problems
 I have to solve.



 On 2/7/12 11:06 PM, Wouter Schreuders wschreud...@gmail.com wrote:






 Hi All

 Can anyone recommend a debugger for flex that allows you to inspect and
 changed properties at runtime? Something like Flex-Spy or x-ray(for as2),
 but I'm looking for something that is not obsolete.

 Any recommendations?

 Thanks

 Wouter





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


  



[flexcoders] How to create a line after each line in a TextArea

2012-01-30 Thread dorkie dork from dorktown
I'm trying to show a horizontal line under each row of text sort of like
legal paper. I'm not sure what to do to accomplish this.


Re: [flexcoders] blackberry playbook cameraUI, cameraRoll problems

2012-01-11 Thread dorkie dork from dorktown
BTW If you are getting errors loading in media from Blackberry Playbook
make sure to enable the permission access_shared. Otherwise you will get
a Error 3003.

2011/7/23 Csomák Gábor csom...@gmail.com

 **


 i use panels instead of titlewindows. it works for popups (check desktop
 version at www.sharedboard.net, and a tablet version on bberry or android)

 by the way, the solution for the first letter: cameraroll is not supported
 in bberry, so it goes to the else {} part, where it needs permission to
 access shared media. thats it :)

 On Fri, Jul 22, 2011 at 10:56 AM, John Fletcher fletch...@gmail.comwrote:


  Thanks for that. In my case I'm looking for something more
 comprehensive, I have an existing Air desktop app with much code that in
 principle was written in AS3 and Skins to be re-used but it references
 things that don't exist in Mobile Projects. For example TitleWindows
 (popups), Mobile projects complain that they don't have this component. So
 now we have to re-architect things a bit to figure out how to do what we
 want to do whilst we maximise code sharing.

 John

 2011/7/20 Csomák Gábor csom...@gmail.com


  its a simple mobile project.. i tick all mobile os-es (bberry,
 android, iphone).
 there are some parts (like menu button) where i have an if
 (qnx||android) removeMenuBtn() like functions. (see below for code)
 (because on bberry, swipe_down is the menu, and android has a menu key)

 the only trick there is a bug in the PlayBook swipe_down with the
 simulator, so i have to toggle the // in the beginning of this line, when
 releasing:
 private function deviceIsPlaybook():void {
 *//
 QNXApplication.qnxApplication.addEventListener(QNXApplicationEvent.SWIPE_DOWN,
 swipeDown);//errort dob :S*
 hgroup.removeElement(menuBtn);
 }

 So this is how you check system:

 if (flash.system.Capabilities.version.substr(0,3) == IOS){ //WIN, MAC,
 UNIX, AND
 //iOS
  trace(device recognised as iOS device)
 } else if (flash.system.Capabilities.version.substr(0,3) == QNX){
  //Blackberry
 trace(device recognised as PlayBook)
  try {
   deviceIsPlaybook() //this must be a separate function, otherwise it
 won't catch the simulator error
   } catch(error:Error) { }

  } else if (flash.system.Capabilities.version.substr(0,3) == AND){
 //Android
  trace(device recognised as Android device)
 hgroup.removeElement(menuBtn);
   //listen for menu key elsewhere!
 } else {
  //Desktop
 trace(device recognised as desktop)
  }


 On Wed, Jul 20, 2011 at 10:25 AM, John Fletcher fletch...@gmail.comwrote:


  May I ask what technique you are using for code sharing between
 platforms? Currently a hot topic in my opinion, I saw an interesting video
 from Adobe Max where some Adobe devs talked about it, apart from that there
 are no resources or recommendations out there.

 John

 2011/7/18 Csomák Gábor csom...@gmail.com


  Hi!
 I'm developing Shared Board (sharedboard.net) for multiple platforms:
 iPad, Android, Playbook, and desktop.
 I have 2 problems with PlayBook, what runs flawlessly on iPad: (I've
 included the working the working desktop solutions, those are the 
 elseparts)

 *First* is when I want to add an Image to the visCompHand.toMove MC
 with the cameraRoll Browse for Image function: on iPad, desktop it works
 perfect, but on PlayBook, if I select a picture, it doesn't load it to the
 MC.

 if(CameraRoll.supportsBrowseForImage){
  cameraRollom=new CameraRoll();
 cameraRollom.addEventListener(MediaEvent.SELECT, onMediaSelect);
  cameraRollom.browseForImage()

  function onMediaSelect(e:MediaEvent):void{
 var promise:MediaPromise=e.data
  loader.loadFilePromise(promise)
 loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
 imageContentLoaderComplete);
  FlexGlobals.topLevelApplication.homeView.addElement(visCompHand);
 visCompHand.toMove.addChild(loader);
  }
   } else {
  var imagesFilter:FileFilter = new FileFilter(Images,
 *.jpg;*.gif;*.png;*.swf;);
   var imageFile:File = new File();
  imageFile.browseForOpen(Select an Image, [imagesFilter]);
 imageFile.addEventListener(Event.SELECT, imageSelected2);

 function imageSelected2(e:Event):void{
  imageSelected(e.target as File);
  }
 }

 *Second* is when I try to save the board MC as picture to cameraRoll.
 On iPad it works, on Playbook it fails:
 if(CameraRoll.supportsAddBitmapData){
 cameraRollom=new CameraRoll();
 var
 imagesn:ImageSnapshot=ImageSnapshot.captureImage(FlexGlobals.topLevelApplication.homeView.board)
 var loader : Loader = new Loader();

 loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
 getBitmapData);
  loader.loadBytes(imagesn.data);

 function getBitmapData(e:Event):void{
  var content:*=loader.content;
 var image:Bitmap = Bitmap(content);
 /** get the bitmapdata **/
  var bitmap:BitmapData = image.bitmapData
 cameraRollom.addBitmapData(bitmap)
   }
 } else {
 var image:ImageSnapshot =
 ImageSnapshot.captureImage(FlexGlobals.topLevelApplication.homeView.board,
 300, new PNGEncoder());
 var file:FileReference = 

Re: [flexcoders] Re: HTML component with PDF disappears on rotate/scale

2012-01-05 Thread dorkie dork from dorktown
I think the PDF is being displayed in the Adobe Reader plugin and layered
on top of your SWF. It doesn't support rotation at least not via component
rotation property. You may be able to talk to the Reader plugin and specify
a way to rotate it.

On Thu, Jan 5, 2012 at 10:37 AM, markflex2007 markflex2...@yahoo.comwrote:

 **


 Please help me. I need to fix it.

 Thanks

 Mark


 --- In flexcoders@yahoogroups.com, markflex2007 markflex2007@...
 wrote:
 
  I have same issue like:
 
  http://forums.adobe.com/thread/712793?tstart=0
 
  I rotate 90 degree for mx:HTML , but it disappear .
 
  any way to fix the issue.
 
  Thanks
 
  Mark
 

  



Re: [flexcoders] You are the product

2011-12-22 Thread dorkie dork from dorktown
There is no flash application on the web that was designed with mobile
devices in mind. 

There are people working on just those things. I'm one of them and I'll
tell you why.

I've created mobile apps for the Android market and there are advantages to
that. But there are also advantages to putting apps on your intranet or
internet site. This lets me distribute my app to any device or tablet,
provide instant updates and bug fixes (the user doesn't have worry about
having the latest version as they do with apps), I can use Flex in the
browser and by default (but not limited to) the app can use a universal
layout because the browser allows the user to zoom in or out on it's
viewport. If you've created mobile apps you'll know about DPI's. Of course
Flex handles this in 4.6 as well!

I've looked at the mobile framework and there are about 2% of it that isn't
compatible with the browser. I know because I've ported it to the browser
and it's fast and it works (including the touch interaction). The 2% that
doesn't convert is the AIR features and half of those have alternatives.
btw I found out there are posts out there showing how to do this (they used
a different method). If Adobe approves it maybe they can take out the AIR
dependencies and allow the mobile components to run in the browser.

People hate Flash because it doesn't have or provide the basic features
that HTML and browsers have. And people blame it on Flash developers not
adding those features but they shouldn't have to. Also, because in general
it costs money to create flash content (Flash pro) and it's controlled by a
single company that can fix it break it or take it away on a whim (ie Flash
Player on mobile). Usually people don't hate something that doesn't affect
them. I think they'd rather see it fixed and working. I'm rambling...

On Sun, Dec 18, 2011 at 5:12 AM, Haykel BEN JEMIA hayke...@gmail.comwrote:

 **


 Interesting answers but they almost all are based on the assumption that
 you have much time and enough money to waste. You can do almost everything
 with HTML/JS/CSS, but for many things you will require much (really much)
 more time than with Flash. I say 'almost' because there are things you
 can't do, an example is applications using peer-assisted networking
 (peer-to-peer), which is a realworld project I'm working on currently.

 Let's stop this war because both technologies are complementary and there
 are things you should do with one technology and others with other
 technologies.

 Now regarding the attitude of Adobe, it's true that the way they did the
 annoucement was not 'friendly', but it was actually a logical decision.
 There is no flash application on the web that was designed with mobile
 devices in mind. Users generally install apps on their devices and we have
 AIR for that, especially with the new native extensions there is no
 limitations to what you can do anymore. Developing using Flash and native
 languages for extensions is a new way of developing applications and it
 should be the same for web apps, where we develop with Flash and HTML.

 The reality is that every technology has its advantages and as a developer
 you have to know when to use each one.

 Haykel Ben Jemia

 Allmas
 Web  RIA Development
 http://www.allmas-tn.com




 On Sun, Dec 18, 2011 at 11:24 AM, Rick Winscot rick.wins...@zyche.comwrote:

 **


 Uh… the original question is pretty simple - can you do anything [ like
 the link provided ] in HTML / CSS? The short answer is, yes. Since you
 opened a can of worms… I'll bite.

 Specs not yet finished… blah blah blah. If you're looking for a
 language to get carved in stone before you write a line of code… good luck.
 There are plenty of apps out there that are working just fine on 'draft'
 technology. Innovation typically drives change – not the other way around.

 Newer features… bah! If you find a browser that supports the features
 you must have… try to standardize on that browser if you can. If you can't…
 then cross that bridge if you have to come to it and not before. Getting
 your panties in a wad over something that isn't on your plate is a waste of
 time.

 One code-base everywhere… Urk. Really? I thought that was what Flash
 was supposed to do! Seriously… I don't know what you're trying to say here.
 If you need an HTML/CSS app that runs just about anywhere… wrap it in AIR
 and move on. Did he even state that it needs to run on desktop, mobile,
 tablets, and the voyager I spacecraft?

 Any good programmer… barf. I do get sick of pious comments like this. I
 mean – the guy just asked a simple question. Architecture is a subject best
 served after a developer has a chance to get cozy with the technology. I
 mean – I appreciate your desire to go deep on this question but really…
 milk before meat. The question was simple – if he needs more – let the
 subject blossom.


 From: Robert VanCuren Jr robert.vancuren...@gmail.com
 Reply-To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com
 

[flexcoders] Re: Check if a Security Domain is accepted or not (IE for bitmap smoothing)

2011-12-02 Thread dorkie dork from dorktown
To sort of answer my own question I've read that you can check
parentAllowsChild and childAllowsParent on the loader of the Image.

On Tue, Nov 29, 2011 at 11:33 AM, dorkie dork from dorktown 
dorkiedorkfromdorkt...@gmail.com wrote:

 I have an image I am pulling in from Facebook. It is running ok but now
 that we rotated the image it looks horribly pixelated with a lot of
 aliasing. I tried to set bitmap smoothing to true and it resulted in the
 famous error:

 SecurityError: Error #2122: Security sandbox violation: Loader.content:
 http:// cannot access .jpg. A policy file is required, but the
 checkPolicyFile flag was not set when this media was loaded.

 I found online that Facebook has a policy file and I applied it
 successfully using:

 protected function initializeHandler(event:FlexEvent):void
 {
 // allows bitmap smoothing (which we need here)
 Security.loadPolicyFile(
 http://profile.ak.fbcdn.net/crossdomain.xml;);
 var context:LoaderContext = new LoaderContext();
 context.checkPolicyFile = true;
 context.applicationDomain =
 ApplicationDomain.currentDomain;
 }

 This is called before the Image source is set. In fact it is in the
 initialize event of the Image container component.

 But I am wary to upload it to a site where I do not know if it will break
 because it is will be in a different security sandbox again.

 My question is, is there a way to tell if I can set bitmap smoothing to
 true on my images (bc if it is not allowed it will cause fatal errors and
 the whole application will explode). In other words, is it possible to tell
 if I'm in the correct security sandbox (security policy loaded and was
 successful) so I know smoothing is allowed. Does that make sense?





Re: [flexcoders] Re: Red error borders on form items before form is validated

2011-11-29 Thread dorkie dork from dorktown
After some testing it appears to prevent red borders early as you say if I
do not assign validators until the time the submit button is clicked. thank
you

On Tue, Nov 22, 2011 at 1:56 AM, Asad Zaidi asadzaid...@yahoo.com wrote:

 **


 this occurs due to validation errors. in ur case i think while rendering
 it focus in ur component and on focus out it validates ur component. i
 havent tried it but i think u can use initialize property of the component
 to stop validation at initialization process. Or u can assign the validator
 to that component after all components have been rendered.
 i will try to find out more and will let u know.

 Asad.

  *From:* michael_reg...@dell.com michael_reg...@dell.com
 *To:* flexcoders@yahoogroups.com
 *Sent:* Monday, November 21, 2011 7:41 PM
 *Subject:* RE: [flexcoders] Re: Red error borders on form items before
 form is validated


  Can you give an example of how you’ve written your validator?  I’m
 suspecting it is on how you defined the trigger.

  *Michael J. Regert***

  *From:* flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] *On
 Behalf Of *Khanh
 *Sent:* Thursday, November 17, 2011 4:20 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Re: Red error borders on form items before form
 is validated


   It's a focus border.
 Usually, it's blue. I'm not sure how it's red in your case!
 You can change the color following this example.
 Thanks to Peter Dehaan for his great tip.

 http://blog.flexexamples.com/2008/04/12/changing-the-focus-rectangle-color-on-a-textinput-control-in-flex/

 OR you can hide this by using the property: focusAlpha
 mx:TextInput id=txtInput focusAlpha=0/

 Good luck.

 --- In flexcoders@yahoogroups.com, dorkie dork from dorktown 
 dorkiedorkfromdorktown@... wrote:
 
  When I display my Form elements (TextInput, Combox, etc) the red error
  border is shown right away before the user even types into it. Why is
 this
  happening? How can I prevent it from showing a red error border when it's
  first displayed?
 


  



[flexcoders] Check if a Security Domain is accepted or not (IE for bitmap smoothing)

2011-11-29 Thread dorkie dork from dorktown
I have an image I am pulling in from Facebook. It is running ok but now
that we rotated the image it looks horribly pixelated with a lot of
aliasing. I tried to set bitmap smoothing to true and it resulted in the
famous error:

SecurityError: Error #2122: Security sandbox violation: Loader.content:
http:// cannot access .jpg. A policy file is required, but the
checkPolicyFile flag was not set when this media was loaded.

I found online that Facebook has a policy file and I applied it
successfully using:

protected function initializeHandler(event:FlexEvent):void
{
// allows bitmap smoothing (which we need here)
Security.loadPolicyFile(
http://profile.ak.fbcdn.net/crossdomain.xml;);
var context:LoaderContext = new LoaderContext();
context.checkPolicyFile = true;
context.applicationDomain = ApplicationDomain.currentDomain;
}

This is called before the Image source is set. In fact it is in the
initialize event of the Image container component.

But I am wary to upload it to a site where I do not know if it will break
because it is will be in a different security sandbox again.

My question is, is there a way to tell if I can set bitmap smoothing to
true on my images (bc if it is not allowed it will cause fatal errors and
the whole application will explode). In other words, is it possible to tell
if I'm in the correct security sandbox (security policy loaded and was
successful) so I know smoothing is allowed. Does that make sense?


Re: [flexcoders] Re: Red error borders on form items before form is validated

2011-11-28 Thread dorkie dork from dorktown
It seems to be the case that it's validating on focus out. I realize I need
to come up with a test case to see if this is the default behavior or
something causing it in my project.

On Tue, Nov 22, 2011 at 1:56 AM, Asad Zaidi asadzaid...@yahoo.com wrote:

 **


 this occurs due to validation errors. in ur case i think while rendering
 it focus in ur component and on focus out it validates ur component. i
 havent tried it but i think u can use initialize property of the component
 to stop validation at initialization process. Or u can assign the validator
 to that component after all components have been rendered.
 i will try to find out more and will let u know.

 Asad.

  *From:* michael_reg...@dell.com michael_reg...@dell.com
 *To:* flexcoders@yahoogroups.com
 *Sent:* Monday, November 21, 2011 7:41 PM
 *Subject:* RE: [flexcoders] Re: Red error borders on form items before
 form is validated


  Can you give an example of how you’ve written your validator?  I’m
 suspecting it is on how you defined the trigger.

  *Michael J. Regert***

  *From:* flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] *On
 Behalf Of *Khanh
 *Sent:* Thursday, November 17, 2011 4:20 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Re: Red error borders on form items before form
 is validated


   It's a focus border.
 Usually, it's blue. I'm not sure how it's red in your case!
 You can change the color following this example.
 Thanks to Peter Dehaan for his great tip.

 http://blog.flexexamples.com/2008/04/12/changing-the-focus-rectangle-color-on-a-textinput-control-in-flex/

 OR you can hide this by using the property: focusAlpha
 mx:TextInput id=txtInput focusAlpha=0/

 Good luck.

 --- In flexcoders@yahoogroups.com, dorkie dork from dorktown 
 dorkiedorkfromdorktown@... wrote:
 
  When I display my Form elements (TextInput, Combox, etc) the red error
  border is shown right away before the user even types into it. Why is
 this
  happening? How can I prevent it from showing a red error border when it's
  first displayed?
 


  



[flexcoders] Red error borders on form items before form is validated

2011-11-17 Thread dorkie dork from dorktown
When I display my Form elements (TextInput, Combox, etc) the red error
border is shown right away before the user even types into it. Why is this
happening? How can I prevent it from showing a red error border when it's
first displayed?


[flexcoders] Way to determine if an active debugging session is in progress

2011-11-08 Thread dorkie dork from dorktown
I need to find out if there is an active debugging session going on. Is it
possible? I would like to have it setup to throw an error for the developer
who is actively debugging but if it is at runtime I want to show a pop up
message. I'm guessing there is possible since debugging goes through a
socket connection (I know little about sockets)?

This is not asking if the swf is a debug swf. This is not asking if the
Flash Player is a content debugger build.


Re: [flexcoders] Re: Hit test fails when over Group

2011-10-27 Thread dorkie dork from dorktown
It works :)  ...sortof.
I have to set the property to true and also add an event listener to each
group. From the mouseEndabledWhereTransparent docs:

*This property only goes in to effect if mouse, touch, or flash player
gesture events are added to this instance. In addition, it assumes that the
calls to addEventListener()/removeEventListener() are not superfluous.

*Let's say theoretically I don't know about the content ahead of time. And
that it is out of my control whether the mouseEndabledWhereTransparent
propety is set on those groups in addition they may not have event listeners
on them.*

*Knowing what we know what would a person do to be able to drag and drop
over all those groups? If there is no better way then I'm guessing I would
need to start at the Application and find all the groups in that
application, add event listeners to them and set the
mouseEndabledWhereTransparent property to true. I would do this at the start
of a drag operation and then revert all the changes on drag drop.
*
*
On Thu, Oct 27, 2011 at 12:27 PM, Alex Harui aha...@adobe.com wrote:

 **


 Did you try the mouseEnabledWhereTransparent property?


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

  




[flexcoders] Hit test fails when over Group

2011-10-26 Thread dorkie dork from dorktown
Hi, I'm trying to use drag and drop into a hgroup, vgroup and group but the
getObjectsUnderPoint is not detecting it!

This is an example,

group width=200 height=50
button width=100
/group


If you move the mouse over the button you will get the button and the group
in the objects under point array. But if you move the mouse pointer to the
right of the button but still within the group area you won't get the
group!?! I have to get the group. What am I doing wrong?


[flexcoders] Re: Hit test fails when over Group

2011-10-26 Thread dorkie dork from dorktown
 backgroundAlpha=.5
width=100% height=24/
s:VGroup width=100% height=160
s:Rect width=100% height=100%
s:fill
s:SolidColor color=0x554422 alpha=.3/
/s:fill
/s:Rect
/s:VGroup

s:Label text=HGroup backgroundColor=0 backgroundAlpha=.5
width=100% height=24/

s:HGroup width=100% height=160
s:Rect width=100% height=100%
s:fill
s:SolidColor color=0x554422 alpha=.3/
/s:fill
/s:Rect
/s:HGroup
/s:BorderContainer
/s:HGroup

On Thu, Oct 27, 2011 at 12:01 AM, dorkie dork from dorktown 
dorkiedorkfromdorkt...@gmail.com wrote:

 Hi, I'm trying to use drag and drop into a hgroup, vgroup and group but the
 getObjectsUnderPoint is not detecting it!

 This is an example,

 group width=200 height=50
 button width=100
 /group


 If you move the mouse over the button you will get the button and the group
 in the objects under point array. But if you move the mouse pointer to the
 right of the button but still within the group area you won't get the
 group!?! I have to get the group. What am I doing wrong?





[flexcoders] Re: HELP Embedded font looks bold in Flash but crisp in Photoshop [1 Attachment]

2011-09-30 Thread dorkie dork from dorktown
When I said I set it to bold in Photoshop I meant strong. The font
weight is normal in both Flash and Photoshop. I've attached an image to show
you the settings in Photoshop, the settings in Flash and the visual results.



On Thu, Sep 29, 2011 at 2:30 PM, dorkie dork from dorktown 
dorkiedorkfromdorkt...@gmail.com wrote:

 I have embedded a font in my application and it looks bold when at runtime
 in Flash but in Photoshop it looks normal. I tried changing every setting in
 the world and what I found was that when I set the anti aliasing in
 Photoshop to bold it looks exactly like it does in Flash. So that tells me
 that in Flash the Anti Alias is set to bold and if I can set it to crisp
 I'll get the style I want. How do I match the font???





Re: [flexcoders] Re: HELP Embedded font looks bold in Flash but crisp in Photoshop

2011-09-30 Thread dorkie dork from dorktown
I found this 
examplehttp://blog.flexexamples.com/2007/10/24/setting-a-fonts-anti-alias-type-sharpness-thickness-and-grid-fit-type-in-flex/but
these styles have no effect on spark label. I think this is what I
need.


http://blog.flexexamples.com/2007/10/24/setting-a-fonts-anti-alias-type-sharpness-thickness-and-grid-fit-type-in-flex/

On Fri, Sep 30, 2011 at 10:18 AM, dorkie dork from dorktown 
dorkiedorkfromdorkt...@gmail.com wrote:

 **

  [Attachment(s) #132baea1f9a8a2f5_TopText from dorkie dork from dorktown
 included below]



[flexcoders] HELP Embedded font looks bold in Flash but crisp in Photoshop

2011-09-29 Thread dorkie dork from dorktown
I have embedded a font in my application and it looks bold when at runtime
in Flash but in Photoshop it looks normal. I tried changing every setting in
the world and what I found was that when I set the anti aliasing in
Photoshop to bold it looks exactly like it does in Flash. So that tells me
that in Flash the Anti Alias is set to bold and if I can set it to crisp
I'll get the style I want. How do I match the font???


Re: [flexcoders] Re: Flash Builder, The user operation is waiting for background work to complete

2011-08-31 Thread dorkie dork from dorktown
That seems to fix it as far as I can tell. Thanks :)

On Fri, Aug 19, 2011 at 10:52 AM, valdhor valdhorli...@embarqmail.comwrote:

 **


 I get that On my Windows XP box. It's usually when I have changed multiple
 files and save them one after the other. I have build automatically turned
 on so it compiles after each change. Sometimes that takes a bit longer than
 normal and I get that message. Waiting for a little while usually clears it
 up.


 --- In flexcoders@yahoogroups.com, dorkie dork from dorktown
 dorkiedorkfromdorktown@... wrote:
 
  Occasionally something happens to Flash Builder where everytime I save I
 get
  the dialog,
  The user operation is waiting for background work to complete. I've
 tried
  restarting and it doesn't seem to make a difference.
  Usually I end up closing all the editors and all the projects, cleaning
 them
  and restarting FB and restarting the OS and usually one of those things
  works and sometimes none of them work. I have 8GB of memory and a 2011
 mac.
 
  Is there a way to turn this message off or determine what's causing it?
 

  



Re: [flexcoders] Preventing Spark List from scrolling to top when adding / removing items.

2011-08-07 Thread dorkie dork from dorktown
See if this will work,

// your code
var index:int = list.selectedIndex;
list.dataProvider.addItem(item);
list.validateNow();
moveToIndex(index);

protected function moveToIndex(index:int):void {
var point:Point =
list.layout.getScrollPositionDeltaToElement(index);
if (point) {
list.scroller.viewport.horizontalScrollPosition =
point.x;
}
}

let me know if it works for you


On Wed, Aug 3, 2011 at 2:27 PM, vigilsolace sig...@orianmarx.com wrote:

 **


 Any time I add or remove an item from a Spark list, the list resets itself
 to display the first element at the top. Is there a way to get the list to
 remember its current location? For example if I'm scrolled half way down a
 list and remove an item I would like the list to remain scrolled to where it
 was, rather than resetting.

 I'm currently listening for change events on the dataprovider and capturing
 the list layout's lastIndexInView, then using ensureIndexIsVisible to
 restore that index after the next display update. However, this still
 results in the list jumping around quite a bit. Is there a better solution?
 Shouldn't the list handle this by default?

  



Re: [flexcoders] Error TooTips in Spark Forms

2011-08-07 Thread dorkie dork from dorktown
Hi Jeff,

Since I've been working on mobile I don't have much room either. I use a
label for error messages with includeInLayout and visible set to false and
place it inside the FormItem container. If it's a vertical form item then
the error label shows up beneath the form item. If it's horizontal layout I
need to put both the form item and the error label in a VGroup. This allows
the form to flow when error messages are visible.

On Sun, Aug 7, 2011 at 8:21 AM, Battershall, Jeff 
jeff.battersh...@djindexes.com wrote:

 **


  What I’m discovering about Spark Forms is  that error messaging is inside
 the form item container and unless I make the form large enough to
 accommodate the error message I might see some unexpected layout issues such
 as the error text appearing over the form element, etc.  Pretty darned ugly.
 

 ** **

 What I’d prefer is to have the error tips appear over the form and not be
 constrained by the form dimensions.  It appears that the only option I have
 is to roll my own solution using skins and ToolTipManager, etc.  I’m
 prepared to dig in to do this but I just wanted to make sure that I wasn’t
 missing a more straightforward solution.  

 ** **

 

 * *

 *Jeff Battershall*
 Application Architect

 T 609 520 5637

 F 609 520 5370
 C 484 477 9900
 *jeff.battersh...@djindexes.com*

 *Dow Jones Indexes*
 4300 Route 1 North

 South Brunswick, NJ 08852

 www.djindexes.com http://www.cmegroup.com/

  



Re: [flexcoders] Newbie Question: Library Path for Using a 3rd-party utility

2011-08-07 Thread dorkie dork from dorktown
Hi Tac,

First setup your library project. Then go back to your original project and
go into Properties  Flex Build Path and click Add Project. A dialog will
display available library projects for you to choose. Select your new
library and click OK. The workspace will rebuild if it doesn't click Project
 Clean. From now on your original project will be able to access classes in
your library project. Note you may need to open the library project when
working in your main project.

On Sun, Aug 7, 2011 at 6:59 AM, tacman1123 tac...@gmail.com wrote:

 **


 I'm new to Flex, I've been reading the Adobe Training from the Source book,
 but am stuck on a simple setup question.

 I want to integrate SQLite, and figured I'd use probinson's sqlite
 utilities (https://github.com/probertson/air-sqlite) to manage the
 connections.

 My question is where do I download this set of utilities so that I can
 incorporate them into other projects? I'm modifying the test application
 FlexGrocer to store the inventory locally rather than via the web, but I
 don't want to copy the files into the FlexGrocer/src directory, but probably
 somewhere else that can be more easily used by other projects.

 I suspect there's a path I need to set somewhere for where to look for the
 libraries, and then I can just use

 import com.probertson.data.QueuedStatement;
 import com.probertson.data.SQLRunner;

 In the Project Properties, there's an option for adding a source path --
 should I use that? Or import the swc file that's available from git? If I do
 this, how can I then apply these settings to my project, is that something I
 need to do manually each time I set up a new project?

 Thanks, sorry for such basic questions!

 Tac

  



Re: [flexcoders] Newbie Question: Library Path for Using a 3rd-party utility

2011-08-07 Thread dorkie dork from dorktown
BTW Welcome to Flex! :)

On Sun, Aug 7, 2011 at 6:59 AM, tacman1123 tac...@gmail.com wrote:

 **


 I'm new to Flex, I've been reading the Adobe Training from the Source book,
 but am stuck on a simple setup question.

 I want to integrate SQLite, and figured I'd use probinson's sqlite
 utilities (https://github.com/probertson/air-sqlite) to manage the
 connections.

 My question is where do I download this set of utilities so that I can
 incorporate them into other projects? I'm modifying the test application
 FlexGrocer to store the inventory locally rather than via the web, but I
 don't want to copy the files into the FlexGrocer/src directory, but probably
 somewhere else that can be more easily used by other projects.

 I suspect there's a path I need to set somewhere for where to look for the
 libraries, and then I can just use

 import com.probertson.data.QueuedStatement;
 import com.probertson.data.SQLRunner;

 In the Project Properties, there's an option for adding a source path --
 should I use that? Or import the swc file that's available from git? If I do
 this, how can I then apply these settings to my project, is that something I
 need to do manually each time I set up a new project?

 Thanks, sorry for such basic questions!

 Tac

  



[flexcoders] Determine the framerate of a display object, Alex

2011-08-04 Thread dorkie dork from dorktown
Is there way to determine the frame rate of a specific Flex component or
display object?

For example, if I have a display object that is using a heavy amount of
graphics drawing commands and another visual element next to it that is not
would adding listeners on each for the render event produce different
results or results that would reflect the fps per second?


[flexcoders] Flash Builder, The user operation is waiting for background work to complete

2011-08-02 Thread dorkie dork from dorktown
Occasionally something happens to Flash Builder where everytime I save I get
the dialog,
The user operation is waiting for background work to complete. I've tried
restarting and it doesn't seem to make a difference.
Usually I end up closing all the editors and all the projects, cleaning them
and restarting FB and restarting the OS and usually one of those things
works and sometimes none of them work. I have 8GB of memory and a 2011 mac.

Is there a way to turn this message off or determine what's causing it?


[flexcoders] Proper way to ensure components in a different state are created

2010-09-01 Thread dorkie dork from dorktown
When I try to access components that are in a different state on the
line after I set the current state I get this error,
TypeError: Error #1009: Cannot access a property or method of a null
object reference.

// code
currentState = NOTES;
noteComponent.text = value; // noteComponent exists in NOTES state and
is not created yet

I know this is because of the Flex invalidation cycle and I'm aware I
could use databinding and I know I could use callLater. But if I
needed to create the components immediately for only the state I'm
going to how would I do that?

Custom Component:
Group

states
State 1
State 2
State 3
/states

imageComponent includeIn=State 1/
videoComponent includeIn=State 2/
noteComponent includeIn=State 3/

/Group

JP


Re: [flexcoders] Proper way to ensure components in a different state are created

2010-09-01 Thread dorkie dork from dorktown
Yeah, I created a test project and itemCreationPolicy immediate and deferred
both work. But in my application only immediate works. It seems like
currentState is deferring creating the components for some odd reason.

On Wed, Sep 1, 2010 at 5:43 AM, f...@guitar-learning.com wrote:



  If you use includeIn or excludeFrom, then itemCreationPolicy becomes
 available and you can set it to “immediate” –



 imageComponent includeIn=State 1 itemCreationPolicy=immediate
 id=”imcomp” /



 Then in code you could in imcomp.currentState = “myDesiredState”, even
 before State 1 has been used.



 Hope this helps,

 Derek





 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *dorkie dork from dorktown
 *Sent:* Wednesday, September 01, 2010 5:15 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Proper way to ensure components in a different
 state are created





 When I try to access components that are in a different state on the
 line after I set the current state I get this error,
 TypeError: Error #1009: Cannot access a property or method of a null
 object reference.

 // code
 currentState = NOTES;
 noteComponent.text = value; // noteComponent exists in NOTES state and
 is not created yet

 I know this is because of the Flex invalidation cycle and I'm aware I
 could use databinding and I know I could use callLater. But if I
 needed to create the components immediately for only the state I'm
 going to how would I do that?

 Custom Component:
 Group

 states
 State 1
 State 2
 State 3
 /states

 imageComponent includeIn=State 1/
 videoComponent includeIn=State 2/
 noteComponent includeIn=State 3/

 /Group

 JP



 __ Information from ESET NOD32 Antivirus, version of virus
 signature database 5414 (20100901) __



 The message was checked by ESET NOD32 Antivirus.



 http://www.eset.com


 __ Information from ESET NOD32 Antivirus, version of virus
 signature database 5414 (20100901) __

 The message was checked by ESET NOD32 Antivirus.

 http://www.eset.com

  



Re: [flexcoders] Proper way to ensure components in a different state are created

2010-09-01 Thread dorkie dork from dorktown
Thanks, I'll do that. My main quest was trying to find the equivalent of

createComponentFromDescriptors in Flex 4 spark components. If I find
anything I'll post back.

On Wed, Sep 1, 2010 at 6:19 PM, Haykel BEN JEMIA hayke...@gmail.com wrote:



 You could add a bindable var, e.g. noteText, and set the text property in
 the mxml tag to {noteText}. Then you only have to assign the value to the
 noteText variable.

 Le 2010 9 1 10:48, dorkie dork from dorktown 
 dorkiedorkfromdorkt...@gmail.com a écrit :

  When I try to access components that are in a different state on the
  line after I set the current state I get this error,
  TypeError: Error #1009: Cannot access a property or method of a null
  object reference.
 
  // code
  currentState = NOTES;
  noteComponent.text = value; // noteComponent exists in NOTES state and
  is not created yet
 
  I know this is because of the Flex invalidation cycle and I'm aware I
  could use databinding and I know I could use callLater. But if I
  needed to create the components immediately for only the state I'm
  going to how would I do that?
 
  Custom Component:
  Group
 
  states
  State 1
  State 2
  State 3
  /states
 
  imageComponent includeIn=State 1/
  videoComponent includeIn=State 2/
  noteComponent includeIn=State 3/
 
  /Group
 
  JP

  



Re: [flexcoders] Proper way to ensure components in a different state are created

2010-09-01 Thread dorkie dork from dorktown
Arggh I forgot I have to set certain components visible,

currentState = note;
source = note.text; // databinding
note.visible = true;
border.visible = true;
border.y = note.y;
border.width = note.width;

I think this is impossible in Flex 4. I'm think my only option is to set
every component creation policy to immediate.

On Wed, Sep 1, 2010 at 10:44 PM, dorkie dork from dorktown 
dorkiedorkfromdorkt...@gmail.com wrote:

 Thanks, I'll do that. My main quest was trying to find the equivalent of

 createComponentFromDescriptors in Flex 4 spark components. If I find
 anything I'll post back.


 On Wed, Sep 1, 2010 at 6:19 PM, Haykel BEN JEMIA hayke...@gmail.comwrote:



 You could add a bindable var, e.g. noteText, and set the text property in
 the mxml tag to {noteText}. Then you only have to assign the value to the
 noteText variable.

 Le 2010 9 1 10:48, dorkie dork from dorktown 
 dorkiedorkfromdorkt...@gmail.com a écrit :

  When I try to access components that are in a different state on the
  line after I set the current state I get this error,
  TypeError: Error #1009: Cannot access a property or method of a null
  object reference.
 
  // code
  currentState = NOTES;
  noteComponent.text = value; // noteComponent exists in NOTES state and
  is not created yet
 
  I know this is because of the Flex invalidation cycle and I'm aware I
  could use databinding and I know I could use callLater. But if I
  needed to create the components immediately for only the state I'm
  going to how would I do that?
 
  Custom Component:
  Group
 
  states
  State 1
  State 2
  State 3
  /states
 
  imageComponent includeIn=State 1/
  videoComponent includeIn=State 2/
  noteComponent includeIn=State 3/
 
  /Group
 
  JP

  





Re: [flexcoders] Calculating width of a child BEFORE it's added...

2010-08-30 Thread dorkie dork from dorktown
Example code,
mx:VBox width=100%
mx:Text width=100% /
/mx:VBox

If you need to truncateToFit the text you can use the truncateToFit
property, more info...
http://blog.flexexamples.com/2008/01/26/truncating-text-in-the-flex-label-control-using-the-truncatetofit-property/

On Mon, Aug 30, 2010 at 12:06 AM, Alex Harui aha...@adobe.com wrote:



 For mx:Label, you can try using measureText() on the parent unless the
 label will have different styles that will affect measurement.  Then you’ll
 have to add it and call validateNow() and call getExplicitOrMeasuredWidth().

 But why not use mx:Text?  Why do you have to get the width exactly?  If you
 stretch an mx:Text to the width of the Vbox it sounds like it would suit
 your needs.



 On 8/29/10 2:06 PM, Laurence lmacne...@comcast.net wrote:






 Using ActionScript, I want to add a Label to a VBox.  I know what text I
 want to put into the label (said text is read from an XML file), but of
 course, the program cannot know what the width of the label should be until
 after the text is read from that XML file.  I want the label to be as wide
 as it needs to be, but not wider than the vBox I'm adding it to -- if that
 label will need to be wider than the given amount to display all the text,
 then I want to add a TextArea (with word-wrap turned on) so I can display
 all the text in that given width.

 My question is, how do I calculate the width of a label I'll need, when
 given a string of text?  I do know the font-family and font-size the label
 will have.  Is there an easy way to go from a string of text to the width
 that a label will need to be to display that text?

 Thanks,
 Laurence MacNeill
 Mableton, Georgia, USA






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

  



[flexcoders] Preventing selected item in List from auto scrolling into view

2010-08-28 Thread dorkie dork from dorktown
When I select an partially visible item/row in a vertical Spark List the
item will scroll into view but only the bare minimum. So if there are 5 rows
on the screen and I click row 3, 4 or 5 then that row will expand but it
will usually stay at the Y position it is at leaving rows 1 and 2 visible
above it. I'd like to make sure that the row that is selected is flush
against the top edge of the List.

Is the only way to prevent the List from auto scrolling that item into view
to extend and override that method? I believe the method is that is doing
this is called ensureIndexIsVisible().

I've been able to position it flush against the top without overriding the
above method but then there are two tweens going on and it doesn't always
position correctly or look right.

Here is the code I've been using in the List changing event handler:
var newRow:DisplayObject = list.dataGroup.getChildAt(newIndex);

if (newIndex != contentCount) {
itemY = newRow.y;
itemY -= oldIndex  newIndex ? oldRow.height - newRow.height : 0;
}
else {
itemY = maxVerticalScrollPosition;
}

// move item to the top of the list
TweenLite.to(list.dataGroup, 1.5, {verticalScrollPosition:itemY});

JP


[flexcoders] Constraining one components location to another component

2010-08-26 Thread dorkie dork from dorktown
Is there a way to constrain one component to another component? I've looked
at constraint rows and constrain columns in the past but I haven't got it to
work myself. IE,

Group id=imageContainer width=500 height=500
 Image id=mainImage width=100 height=100 verticalCenter=0
horizontalCenter=0/
/Group

Image source=download.jpg toolTip=Download this image
   right=[Right edge of main image] top=[Top edge of main image]/

In this example the download icon would float in the upper right corner of
the image component as the image component floats in the middle of the
container it is in. FYI In this project there are additional components that
will float relative to the location and size of the image as well.

JP


Re: [flexcoders] Re: Speeding project compilation

2010-08-24 Thread dorkie dork from dorktown
rantBecause it's a pain in the a$$. You have to install Ant which requires
you to install other crap. Then you have the learning curve associated with
ANT. Then you run into random errors where something doesn't copy and you
waste hours tracking it down to having spaces in your file path. In the end
you waste more time than you save. It's a rabbit hole. It's an mirage. And
its being slung around more than $hit in a monkey cage /rant

Amy, can you embed your XML files? It's something like this,

[Embed]
public var myXML:Class;

ps it's not personal

On Tue, Aug 24, 2010 at 8:31 AM, mark.jonk...@comcast.net wrote:



 Why not create a simple ANT build script that simply copies your XML files
 into the appropriate directory for you. Then uncheck the copy non-embedded
 files checkbox. Then execute that script when you need to (assuming your XML
 doesn't change every time) or add the script as another builder on the
 project.

 Sincerely
 Mark R. Jonkman

 http://bitsbytesandsawdust.blogspot.com

 - Original Message -
 From: Amy amyblankens...@bellsouth.net
 To: flexcoders@yahoogroups.com
 Sent: Tuesday, August 24, 2010 9:12:27 AM
 Subject: [flexcoders] Re: Speeding project compilation



 --- In flexcoders@yahoogroups.com, dorkie dork from dorktown
 dorkiedorkfromdorkt...@... wrote:
 
  There's an option in Project  Properties  Flex Compiler called Copy
  non-embedded files to the output folder.

 Unfortunately, we can't uncheck this, or our XML files don't get copied.
  You would think it would not copy the _embedded_ files, but it does.

  Also, you can embed your assets via your stylesheet by selecting your css
  file in package explorer and selecting, Compile CSS to SWF from the
  context menu. This will wrap up all your embedded assets into a compiled
  binary so the compiler won't have embed your assets each time you compile
  your project.

 That's not really an option for our project. Besides, I doubt it will stop
 the files that get compiled into the swf from also being copied to the debug
 folder.

 I'm really just looking for a way to get it to stop the delete embedded
 files/copy embedded files cycle every time it compiles.  This would save a
 HUGE amount of time.

 Thanks!

 Amy



 


 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Alternative FAQ location:
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
 Links

 http://groups.yahoo.com/group/flexcoders/



  



Re: [flexcoders] Speeding project compilation

2010-08-23 Thread dorkie dork from dorktown
There's an option in Project  Properties  Flex Compiler called Copy
non-embedded files to the output folder.

Also, you can embed your assets via your stylesheet by selecting your css
file in package explorer and selecting, Compile CSS to SWF from the
context menu. This will wrap up all your embedded assets into a compiled
binary so the compiler won't have embed your assets each time you compile
your project.

On Mon, Aug 23, 2010 at 1:02 PM, Oleg Sivokon olegsivo...@gmail.com wrote:



 I believe it's somewhere in the context menu of the file in the project
 view. It should say something like Copy to output folder. Sorry, I don't
 have FB at this machine atm. Could be the assets weren't embedded originally
 and this setting suck to them since they were loaded at runtime?

  



Re: [flexcoders] Re: Encoding XML Character Entity References *properly*

2010-08-22 Thread dorkie dork from dorktown
 var x:XML = new XML(root/root);
var b:String = a foostring/foo/ ie lkj l;
x.appendChild(b);
textarea.text = x.toXMLString();

does this work for you? it is for me. also what SDK FP version are you
using? are you using as3corelib? there is an xmlutil.isvalid method that you
can use


On Thu, Aug 19, 2010 at 8:21 AM, pmorch li...@morch.com wrote:



 I figured it out:


  new XML(value + xmlEscape(string) + /value);

 is better done as:


  new XML(value{string}/value);

 See also:
 http://stackoverflow.com/questions/1856726/how-do-you-encode-xml-safely-with-actionscript-3/

  



[flexcoders] Key listener doesn't work in pop up

2010-08-19 Thread dorkie dork from dorktown
I have a Spark List where the key listener works fine in a Group component
on the Application. But when I put it in a pop up no key events are firing.

JP


[flexcoders] Re: Key listener doesn't work in pop up

2010-08-19 Thread dorkie dork from dorktown
I got it fixed. I had to set focus to the List.

On Thu, Aug 19, 2010 at 6:20 PM, dorkie dork from dorktown 
dorkiedorkfromdorkt...@gmail.com wrote:

 I have a Spark List where the key listener works fine in a Group component
 on the Application. But when I put it in a pop up no key events are firing.

 JP



[flexcoders] Why can't I change the highlight color of Spark text?

2010-08-17 Thread dorkie dork from dorktown
I've spent soo much time trying to find how to do this.

I'm using, sparkTextArea.selectAll() to select text but I've found no way to
change the highlight color.

JP


Re: [flexcoders] Why can't I change the highlight color of Spark text?

2010-08-17 Thread dorkie dork from dorktown
Thanks. It was working all along. I was using textarea.selectRange(). Since
I was pressing a button to select the text the textarea was always
unfocused so I wasn't seeing the effect of that style. I
added unfocusedTextSelectionColor as well.

On Tue, Aug 17, 2010 at 12:07 PM, Alex Harui aha...@adobe.com wrote:



 focusedTextSelectionColor?



 On 8/17/10 2:14 AM, dorkiedorkfromdorkt...@gmail.com 
 dorkiedorkfromdorkt...@gmail.com wrote:






 I've spent soo much time trying to find how to do this.

 I'm using, sparkTextArea.selectAll() to select text but I've found no way
 to change the highlight color.

 JP





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

  



[flexcoders] How to get the width of the Itemrenderer in a List

2010-08-17 Thread dorkie dork from dorktown
How would I get the width of an item renderer in a list?

I'm trying to fit the width of a list so that it doesn't clip an item
renderer half way thru if there's not enough space. So if the List is 105 px
wide and an single itemrenderer is 10 pixels wide then I want to resize the
list to 100 pixels so item 11 doesn't show.


Re: [flexcoders] HTTPService not updating...

2010-08-17 Thread dorkie dork from dorktown
it's prob accessing it from the cache.

instead of this,
url=reports/xml/{_reportInfo.fileName}.xml

use this:
url=reports/xml/{_reportInfo.fileName}.xml?time={getTimer()}

that snippet might not be bindable so add the time in code whenever you
access that file

On Tue, Aug 17, 2010 at 6:17 PM, Laurence lmacne...@comcast.net wrote:



 Ok. I have the following HTTP Service declared:
 mx:HTTPService id=reportDataRPC
 url=reports/xml/{_reportInfo.fileName}.xml
 result=rdHandler(event);
 fault=rpcFaultHandler(event);/

 In the init() function (which is called when the 'show' event happens,
 because the page it's on happens to be part of a ViewStack) I have the
 following line:
 reportDataRPC.send();

 This loads the data from the .xml file and in the rdHandler function lets
 me put that data into my various ArrayCollections and whatnot... That's
 working fine... At least, the FIRST time...

 Every subsequent time, the result-set is exactly the same as the first time
 -- even if the .xml file it's reading has changed in the interim.

 If I completely shut-down the program and re-load it, then I finally get
 the new .xml file in there.

 So, how do I get it to give me a complete refresh of the data? I've tried
 calling 'reportDataRPC.clearResult()' and 'reportDataRPC.disconnect()' after
 storing the data in my ArrayCollections, but that didn't seem to do anything
 at all...

 I'm at a complete loss -- it's totally unacceptable to not be able to get
 the new data when the underlying .xml file changes. Can someone point me in
 the right direction?

 Thanks,
 Laurence MacNeill
 Mableton, Georgia, USA

  



Re: [flexcoders] How to get the width of the Itemrenderer in a List

2010-08-17 Thread dorkie dork from dorktown
Spark. If the item renderer item is outside of the Lists visible area then
it returns width or height 0 or sometimes index out of bounds errors. It
seems items aren't created if they haven't been scrolled into view yet and
if they have but they aren't in view currently then I think it's returning
width and height as 0. I've made sure to set useVirtualLayout false.

s:HorizontalLayout useVirtualLayout=false/

I don't have the columnWidth or list height set but I have the ItemRenderer
width and height set to 32.

On Tue, Aug 17, 2010 at 8:05 PM, Alex Harui aha...@adobe.com wrote:



 Spark or MX List.  Did you confuse width for height?



 On 8/17/10 2:30 PM, dorkiedorkfromdorkt...@gmail.com 
 dorkiedorkfromdorkt...@gmail.com wrote:






 How would I get the width of an item renderer in a list?

 I'm trying to fit the width of a list so that it doesn't clip an item
 renderer half way thru if there's not enough space. So if the List is 105 px
 wide and an single itemrenderer is 10 pixels wide then I want to resize the
 list to 100 pixels so item 11 doesn't show.





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

  



Re: [flexcoders] Push verse Poll in Flash Player

2010-08-16 Thread dorkie dork from dorktown
good idea :) that'll work

On Mon, Aug 16, 2010 at 2:42 AM, Alexander Farber 
alexander.far...@gmail.com wrote:



 An idea: you could open a socket connection
 (because of corporate proxies best would be the port 80)
 and try to read an integer:

 private function handleTcpData(event:Event):void {
 while(_socket.bytesAvailable) {
 try{
 var i:int = _socket.readInt();
 fetchHttpData(i);
 }catch(e:Error){
 // incomplete integer, will be read by another handleTcpData call
 return;
 }
 }
 }

 and whenever an integer arrives from your backend,
 your client could read the whole data over HTTP.

 Regards
 Alex
  



Re: [flexcoders] Ahhh, Problems with Modules and Skins...

2010-08-16 Thread dorkie dork from dorktown
Can you use an ID reference?

s|Group #groupID_in_Module {
   skin:ClassReference(something);
}


Also can you paste the code you're using and a example module? This will
help future readers ;)

JP

On Mon, Aug 16, 2010 at 8:20 PM, Wally Kolcz wko...@isavepets.com wrote:



 So, what works is CSS and a ClassReference. Now I am trying to figure out
 how to set up the CSS to allow me to assign them to the same elements
 individually.


 On 8/16/2010 8:17 PM, Wally Kolcz wrote:



 So after a ton on ranting on these boards and even more experimenting, I
 realize that the problems I have with creating and loading modules in
 Flex 4 all has to do with the Skins I create and use in modules. So, my
 $100,000,000 is how to I create skins that are only for modules OR how
 can I create the same graphics as Skins to use in a module.


  



Re: [flexcoders] Re: Push verse Poll in Flash Player

2010-08-13 Thread dorkie dork from dorktown
i will! thanks

what about creating a php socket server? is that practical?

On Wed, Aug 11, 2010 at 7:34 PM, flexcodemonkey michael_reg...@dell.comwrote:



 Have you looked into BlazeDS or LCDS?


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, dorkie
 dork from dorktown dorkiedorkfromdorkt...@... wrote:
 
  Is there a way to get notifications on a regular interval for Flash
  applications? Any and all suggestions about push vs pull vs poll vs etc.
 We
  would be checking every 30 seconds to 60 seconds.
 
  JP
 

  



Re: [flexcoders] Copy/Clone UIComponent

2010-08-13 Thread dorkie dork from dorktown
i don't know of any method to copy a component. is the pop up modal? what i
would do is create a bitmap copy of the accordion while the pop up is
visible and then add it back to it's original location when the pop up is
closed.

or create the original accordion to use a dataProvider. then in the popup
create a new instance of your accordion and supply the same dataProvider
content to it.

On Thu, Aug 12, 2010 at 9:08 AM, samuelfac samuel...@gmail.com wrote:



 Hello ..
 I'm having a problem sending an already existing one UIComponent
 screen for a popup.
 The problem:
 when I try to add an Accordion (or any other UIComponent) ja
 existing in a popup with win.addChild(accordion) the object is
 passed to the popup, but simply some of the original screen.

 EX:
 var win:Popup = new Popup();
 win.addChild(accordion);
 PopUpManager.addPopUp(win, this);
 PopUpManager.bringToFront(win);
 PopUpManager.centerPopUp(win);

 with this code the accondion some of the screen that it was created, and
 appears
 in the popup.
 I do not like it to disappear from the screen original, but that copies are

 to popup ...

 ObjectUtil.copy() does not work with UIComponents

 it does not work:

 http://www.mail-archive.com/flexcompone...@yahoogroups.com/msg02326.html


 http://stackoverflow.com/questions/566066/cloning-object-in-flex-canvas-degrafa-help

 ---
 I'm using flex 3.5
 can someone help me?

 *Sorry for bad english*

  



Re: [flexcoders] Push verse Poll in Flash Player

2010-08-12 Thread dorkie dork from dorktown
correct

On Wed, Aug 11, 2010 at 11:40 PM, Akshar Kaul akshar.k...@gmail.com wrote:



 what kind of notifictions do you want. i guess you want to query your
 backend every 30 or 60 seconds..

 Akshar Kaul



 On Thu, Aug 12, 2010 at 05:46, dorkie dork from dorktown 
 dorkiedorkfromdorkt...@gmail.com wrote:



 Is there a way to get notifications on a regular interval for Flash
 applications? Any and all suggestions about push vs pull vs poll vs etc. We
 would be checking every 30 seconds to 60 seconds.

 JP


  



[flexcoders] Push verse Poll in Flash Player

2010-08-11 Thread dorkie dork from dorktown
Is there a way to get notifications on a regular interval for Flash
applications? Any and all suggestions about push vs pull vs poll vs etc. We
would be checking every 30 seconds to 60 seconds.

JP


[flexcoders] Rectangle border is not drawn in Item Renderer in List when moving to next page of items

2010-08-10 Thread dorkie dork from dorktown
I have a Spark List with an Item Renderer that contains a Rectangle with a
solid color stroke. When the list first appears it works fine. I use the
keyboard to go to the next item until I get to the last visible item. When I
go to the next item, its in a horizontal list, all the borders disappear
from all the previous item. If I mouse over those items or select them the
borders appear as normal. Here is the Item Renderer code:

!-- BORDER --
!-- if 10 items are showing and the user presses right arrows to the 11th
item, the border disappears in all visible items except the selected item.
on mouse over the border returns. --

s:Rect height=50 width=50
s:stroke
s:SolidColorStroke id=borderColor
color.hoveredAndShowsCaret=#FF
color.normalAndShowsCaret=#00
color.selectedAndShowsCaret=#FF99FF
color.hovered=#FF
color.normal=#0fFFf0
color.selected=#FF00FF
weight=2/
/s:stroke
/s:Rect


[flexcoders] Re: Rectangle border is not drawn in Item Renderer in List when moving to next page of items

2010-08-10 Thread dorkie dork from dorktown
It's fixed. It was my error. I was setting the color in another place.

On Tue, Aug 10, 2010 at 3:25 AM, dorkie dork from dorktown 
dorkiedorkfromdorkt...@gmail.com wrote:

 I have a Spark List with an Item Renderer that contains a Rectangle with a
 solid color stroke. When the list first appears it works fine. I use the
 keyboard to go to the next item until I get to the last visible item. When I
 go to the next item, its in a horizontal list, all the borders disappear
 from all the previous item. If I mouse over those items or select them the
 borders appear as normal. Here is the Item Renderer code:

 !-- BORDER --
 !-- if 10 items are showing and the user presses right arrows to the 11th
 item, the border disappears in all visible items except the selected item.
 on mouse over the border returns. --

 s:Rect height=50 width=50
 s:stroke
  s:SolidColorStroke id=borderColor
 color.hoveredAndShowsCaret=#FF
  color.normalAndShowsCaret=#00
 color.selectedAndShowsCaret=#FF99FF
  color.hovered=#FF
 color.normal=#0fFFf0
  color.selected=#FF00FF
 weight=2/
  /s:stroke
 /s:Rect



Re: [flexcoders] Re: ItemRenderer gets invalidated when List is scrolled

2010-08-09 Thread dorkie dork from dorktown
With useVirtualLayout set to true the list will create a set number of
renderers. As you scroll the list will recycle these item renderers. In this
scenario you are never guaranteed that the renderer associated with your
data will remain with that data.

If you want to guarantee that the renderer always remains connected with the
data item then set useVirtualLayout to false.

Alex can correct me, but you may also be able to check if the data is the
same data in the set data override and if so prevent setting the super.data
property. Although, I think once it is decided a renderer will be recycled
the data property is set to null before hand.

On Mon, Aug 9, 2010 at 4:26 AM, Florian florian.saliho...@gmail.com wrote:



 My thoughts more specifically:
 - the data property is set - an invalidation should occur.
 - a renderer is reused - an invalidation should occur.
 - a renderer is scrolled within the view port - no invalidation should
 occur, after its size is determined.

 Or am i wrong?


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 Florian florian.saliho...@... wrote:
 
  Yes, i understand this aspect of the component model. But since nothing
 happens after the renderer references a new data, why is there the
 invalidation of renderers which have a correct state already?
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Alex
 Harui aharui@ wrote:
  
   When useVirtualLayout=true, renderers are being recycled so more
 invalidation does go on. It pretty much has to. You might be able to block
 some of it, depending on your scenario.
  
  
   On 8/9/10 12:12 AM, Florian florian.salihovic@ wrote:
  
  
  
  
  
  
   When scrolling my custom item renderer, which inherits from
 ItemRenderer, i notice significant performance problems, when scrolling the
 list. It seems like the list's layout is invalidating the component when the
 list is scrolled.
  
   I configured the list's layout with the following parameters:
  
   s:VerticalLayout gap=0 horizontalAlign=contentJustify
 paddingBottom=0 paddingLeft=0 paddingRight=0 paddingTop=0
 rowHeight=82 useVirtualLayout=true, variableRowHeight=false /
  
   I also overwrote the renderer's measuredWidth and measuredHeight
 properties:
  
   override public function set measuredHeight(value:Number):void
   {
   height = super.measuredHeight = value;
   }
  
   override public function set measuredWidth(value:Number):void
   {
   width = super.measuredWidth = value;
   }
  
   The question for me now popping up is, how to avoid those unnecessary
 invalidation cycles? I'd expect the layout to be at least as smart as
 handling size changes only when the item renderer's owner changes it's
 width, since the rowHeight is set.
  
   Best regards
  
  
  
  
  
  
   --
   Alex Harui
   Flex SDK Team
   Adobe System, Inc.
   http://blogs.adobe.com/aharui
  
 

  



[flexcoders] Making the background of a spark list transparent

2010-08-06 Thread dorkie dork from dorktown
I can't seem to find it anywhere. Is there a property that I can set to set
the white background of the transparent?

JP


Re: [flexcoders] Why does Flex 4 hate modules?

2010-08-05 Thread dorkie dork from dorktown
Is it possibly some of your components are still using references to
StyleManager (mx) and have not been updated to styleManager (spark).
http://www.jonathanrowny.com/journal/migrating-flex-4-stylemanager

2010/8/5 Alex Harui aha...@adobe.com



 Because I see _AdminPortal_FlexInit and
 _AdminPortal_mx_core_FlexModuleFactory, I'm guessing this is the
 link-report
 for the _AdminPortal module, not the main app.

 If you just add -link-report to the compiler options, both the main app and
 module will output the link-report to the same file, and since modules
 compile after apps, the module's link-report overwrites the apps. You have
 to find a way to only tickle an app rebuild or do what I do and just use
 ANT
 or command line.


 On 8/5/10 8:33 AM, Wally Kolcz 
 wko...@isavepets.comwkolcz%40isavepets.com
 wrote:

  After looking at the report I see things like (which makes no sense to
 me):
 
  script name=_AdminPortal_Styles.as mod=1281021647964 size=16395
  optimizedsize=15325
  def id=_AdminPortal_Styles /
  pre id=Object /
  dep id=mx.skins.spark:TabSkin /
  dep id=mx.core:UIComponent /
  dep id=spark.skins.spark:FocusSkin /
  dep id=mx.skins.spark:ScrollBarTrackSkin /
  dep id=mx.core:mx_internal /
  dep id=mx.skins.spark:PanelBorderSkin /
  dep id=mx.skins.spark:BorderSkin /
  dep id=mx.skins.spark:ButtonBarFirstButtonSkin /
  dep id=mx.skins.spark:ButtonBarLastButtonSkin /
  dep id=mx.styles:CSSCondition /
  dep id=mx.utils:ObjectUtil /
  dep id=AS3 /
  dep id=mx.skins.spark:ScrollBarDownButtonSkin /
  dep id=mx.skins.halo:HaloFocusRect /
  dep
 
 id=_AdminPortal_Styles__embed_css_Assets_swf_mx_containers_FormItem_Required_
  1342721164
  /
  dep id=mx.styles:CSSSelector /
  dep id=mx.styles:CSSStyleDeclaration /
  dep id=mx.skins.spark:DefaultButtonSkin /
  dep id=mx.skins.spark:ContainerBorderSkin /
  dep id=spark.skins.spark:ErrorSkin /
  dep id=mx.skins.halo:BusyCursor /
  dep id=mx.core:UITextField /
  dep
 
 id=_AdminPortal_Styles__embed_css_Assets_swf_mx_skins_cursor_BusyCursor_89976
  7333
  /
  dep id=mx.skins.spark:ButtonSkin /
  dep id=mx.core:IFlexModuleFactory /
  dep id=spark.skins.spark:SkinnableContainerSkin /
  dep id=mx.skins.spark:ScrollBarUpButtonSkin /
  dep id=mx.skins.spark:ButtonBarMiddleButtonSkin /
  dep id=mx.skins.halo:ToolTipBorder /
  dep id=mx.skins.spark:ScrollBarThumbSkin /
  dep id=mx.styles:IStyleManager2 /
  /script
 
  script name=_AdminPortal_FlexInit-generated.as mod=1281021648317
  size=7494 optimizedsize=6782
  def id=_AdminPortal_FlexInit /
  pre id=Object /
  dep id=spark.accessibility:TextBaseAccImpl /
  dep id=mx.collections:ArrayList /
  dep id=mx.messaging.messages:MessagePerformanceInfo /
  dep id=mx.managers.systemClasses:ChildManager /
  dep id=mx.messaging.messages:CommandMessage /
  dep id=en_US$containers_properties /
  dep id=mx.messaging.channels:HTTPChannel /
  dep id=mx.core:TextFieldFactory /
  dep id=mx.core:mx_internal /
  dep id=en_US$components_properties /
  dep id=en_US$logging_properties /
  dep id=mx.accessibility:UIComponentAccProps /
  dep id=mx.messaging.messages:AsyncMessageExt /
  dep id=mx.utils:ObjectProxy /
  dep id=en_US$layout_properties /
  dep id=mx.messaging.messages:AcknowledgeMessageExt /
  dep id=AS3 /
  dep id=mx.accessibility:AlertAccImpl /
  dep id=en_US$messaging_properties /
  dep id=en_US$collections_properties /
  dep id=mx.styles:StyleManagerImpl /
  dep id=mx.messaging.messages:HTTPRequestMessage /
  dep id=mx.messaging.messages:AcknowledgeMessage /
  dep id=en_US$skins_properties /
  dep id=mx.messaging.channels:SecureAMFChannel /
  dep id=mx.messaging.config:ServerConfig /
  dep id=en_US$core_properties /
  dep id=Error /
  dep id=en_US$styles_properties /
  dep id=mx.core:IFlexModuleFactory /
  dep id=mx.collections:ArrayCollection /
  dep id=flash.net:registerClassAlias /
  dep id=mx.effects:EffectManager /
  dep id=flash.net:getClassByAlias /
  dep id=en_US$controls_properties /
  dep id=en_US$effects_properties /
  dep id=mx.accessibility:LabelAccImpl /
  dep id=mx.accessibility:TabBarAccImpl /
  dep id=mx.messaging.channels:AMFChannel /
  dep id=flash.system:Capabilities /
  dep id=mx.messaging.config:ConfigMap /
  dep id=mx.messaging.channels:SecureHTTPChannel /
  dep id=mx.styles:IStyleManager2 /
  dep id=mx.messaging.messages:ErrorMessage /
  dep id=mx.accessibility:ButtonAccImpl /
  dep id=mx.messaging.messages:AsyncMessage /
  dep id=mx.accessibility:PanelAccImpl /
  dep id=mx.messaging.messages:CommandMessageExt /
  /script
 
  script
 
 name=_AdminPortal_Styles__embed_css_Assets_swf_mx_containers_FormItem_Require
  d_1342721164.as
  mod=1265215554000 size=1096 optimizedsize=385
  def
 
 id=_AdminPortal_Styles__embed_css_Assets_swf_mx_containers_FormItem_Required_
  1342721164
  /
  pre id=mx.core:SpriteAsset /
  dep id=AS3 /
  /script
 
  script name=_AdminPortal_mx_core_FlexModuleFactory.as
  mod=1281021648317 size=2781 optimizedsize=2042
  def id=_AdminPortal_mx_core_FlexModuleFactory /
  pre 

Re: [flexcoders] How to compile single project as both Desktop and WEB

2010-08-04 Thread dorkie dork from dorktown
I think you can set a property that will allow it to incremental build.

Also, how are you deploying the same project to desktop and web? Desktop
requires WindowApplication and web Application.

On Wed, Aug 4, 2010 at 5:00 PM, Oleg Sivokon olegsivo...@gmail.com wrote:



 Maybe someone will correct me... but I think that the antTask from the SDK
 doesn't cache do the iterative compilation, so that's why it may be slower.
 This may not be the best technique, but I build with Ant in a way, I set it
 as an alternative builder... so, it's the same as running the Ant script
 from the command line basically. However, I don't think this will have any
 effect on speed...
 Generally, I don't think there is a way to make the compiler think that it
 should cache data from one compilation to reuse it in another compilation,
 if that's not the same project... But, again, I'm not really sure about it.
 Well, if the compilation speed matters, I can only think of some general
 advises, like, putting more code into SWCs, removing all [Embed] and
 @Embed() tags from the code, avoiding MXML in general... Compiling separate
 classes for testing rather than rebuilding the entire project (in fact, I
 build the entire project only few times a day, the rest of the time I'd work
 on a single class, or a small set of classes)...
  



Re: [flexcoders] Whats Next in Flex ?

2010-08-02 Thread dorkie dork from dorktown
hmm i develop with the beta builds on labs so for me its sooner than that :)

*Once the current in-development Flash Player and AIR runtimes are showcased
in a public release, Hero nightly builds will resume.

**In the interim, we will release semi-regular builds that showcase Hero
features not dependent on features under development in the latest Flash
Player and AIR runtimes. We will be posting the first of such builds over
the next coming days.*


On Mon, Aug 2, 2010 at 1:08 AM, Alex Harui aha...@adobe.com wrote:



 4.5 release date is in 2011.



 On 8/1/10 1:35 AM, dorkiedorkfromdorkt...@gmail.com 
 dorkiedorkfromdorkt...@gmail.com wrote:






 it sounds like with sdk 4.5 they can't release any new  builds because it's
 based on features in flash player 11 or whatever is the next version of fp.
 once that's released you'll see builds out that you can develop with. from
 what i've read 4.5 is planned to be released second half of this year.

 Sat, Jul 31, 2010 at 6:45 PM, Wally Kolcz wko...@isavepets.com wrote:






 Ok, I've read all about Hero, when is it going to be available for
 development?



 On 7/31/2010 12:25 PM, dorkie dork from dorktown wrote:




 http://iamdeepa.com/blog/?p=62



 On Sat, Jul 31, 2010 at 10:57 AM, Sajid Hussain enchanter_...@yahoo.com
 wrote:








 Whats more exciting in Flex ? for future























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



Re: [flexcoders] Whats Next in Flex ?

2010-08-01 Thread dorkie dork from dorktown
it sounds like with sdk 4.5 they can't release any new builds because it's
based on features in flash player 11 or whatever is the next version of fp.
once that's released you'll see builds out that you can develop with. from
what i've read 4.5 is planned to be released second half of this year.

Sat, Jul 31, 2010 at 6:45 PM, Wally Kolcz wko...@isavepets.com wrote:



 Ok, I've read all about Hero, when is it going to be available for
 development?


 On 7/31/2010 12:25 PM, dorkie dork from dorktown wrote:



 http://iamdeepa.com/blog/?p=62

  On Sat, Jul 31, 2010 at 10:57 AM, Sajid Hussain 
 enchanter_...@yahoo.comwrote:


   Whats more exciting in Flex ? for future



  



Re: [flexcoders] Whats Next in Flex ?

2010-07-31 Thread dorkie dork from dorktown
http://iamdeepa.com/blog/?p=62

On Sat, Jul 31, 2010 at 10:57 AM, Sajid Hussain enchanter_...@yahoo.comwrote:



 Whats more exciting in Flex ? for future

  



Re: [flexcoders] Argghhh!

2010-07-21 Thread dorkie dork from dorktown
What are you talking about? I like the behavior if you copy a folder in
Finder and then paste that into a project it pastes the folder and the
folders contents go with it. Why would you only want 1 file to be copied
with it? If you want that just copy the one file.

On Wed, Jul 21, 2010 at 11:16 AM, Patrick djhatr...@yahoo.com wrote:



 Please fix the bug where if you copy a folder into a project on OSX, it
 copies more than the first file only.

 WTF? How did that pass QA? Do you test this stuff?

  



Re: [flexcoders] Is there a way to tell flash NOT to render a certain area?

2010-07-13 Thread dorkie dork from dorktown
right. its for lazy loading. when the scroll thumb goes into the hot area
then it sends requests to the server for new content. when new content is
received i create a new container and add it to the accordion with
addChildAt(newContainer, 0); to make sure it is before existing content. to
keep a natural feel the view should stay where it is, where the user has the
mouse down on the scroll thumb.

code example. this isn't showing lazy loading. it is only showing that when
adding a container before exiting content that new container is selected

?xml version=1.0 encoding=utf-8?
s:Application xmlns:code=http://code.google.com/p/flexlib/2010/;
   xmlns:fx=http://ns.adobe.com/mxml/2009;
   xmlns:mx=library://ns.adobe.com/flex/mx
   xmlns:s=library://ns.adobe.com/flex/spark

fx:Script
![CDATA[
private var item:int;
private var itemAfter:int;

protected function addBefore_clickHandler(event:MouseEvent):void
{
var prevIndex:int = accordion.selectedIndex;
var canvas:Canvas = new Canvas();
var label:Label = new Label();
label.text = item  + --item;
canvas.addChild(label);

// when we add to the beginning of the current content it
becomes selected
accordion.addChildAt(canvas, 0);

// to keep the selected item the same you must set the index
// or the new item will be selected
//accordion.selectedIndex = ++prevIndex;
}

protected function addAfter_clickHandler(event:MouseEvent):void
{
var prevIndex:int = accordion.selectedIndex;
var canvas:Canvas = new Canvas();
var label:Label = new Label();
label.text = item  + accordion.numChildren;
canvas.addChild(label);

// add to the end of the current content
accordion.addChild(canvas);
}
]]
/fx:Script

fx:Declarations
!-- Place non-visual elements (e.g., services, value objects) here
--
/fx:Declarations

s:Scroller height=100% width=100%
s:Group
code:HAccordion id=accordion
 height=200 width=100%
mx:Canvas
s:Label text=item 0/
/mx:Canvas
mx:Canvas
s:Label text=item 1/
/mx:Canvas
mx:Canvas
s:Label text=item 2/
/mx:Canvas
mx:Canvas
s:Label text=item 3/
/mx:Canvas
/code:HAccordion
/s:Group
/s:Scroller

s:Button label=add before y=200
  click=addBefore_clickHandler(event)/
s:Button label=add after y=230
  click=addAfter_clickHandler(event)/
/s:Application





On Tue, Jul 13, 2010 at 12:49 AM, Alex Harui aha...@adobe.com wrote:



 I’m having trouble picturing an accordion with scrollbars.  But if it did,
 why wouldn’t the scrollbar be tuned for the total number of children?  Why
 are children being added as you scroll?



 On 7/12/10 6:59 PM, dorkiedorkfromdorkt...@gmail.com 
 dorkiedorkfromdorkt...@gmail.com wrote:






 In that case, I'll elaborate on the situation...

 I am using a horizontal Accordion component with newest items to the right.
 When you scroll left you get to a location where more items are added. As
 you add each item the scrollbar thumb track jumps to the right and then
 jumps back to where the mouse is. This happens every time a new item is
 added to the accordion.


 On Mon, Jul 12, 2010 at 6:35 PM, Alex Harui aha...@adobe.com wrote:






 Flash renders what is visible and on the display list.  UIComponent is
 invisible until creationComplete and theoretically, it and all of its
 children shouldn’t be changing after then.  Or make it visible=false until
 you know it is ready.



 On 7/12/10 2:37 PM, dorkiedorkfromdorkt...@gmail.com 
 http://dorkiedorkfromdorkt...@gmail.com  
 dorkiedorkfromdorkt...@gmail.com http://dorkiedorkfromdorkt...@gmail.com
  wrote:






 There's a component that I'm adding child components too it. When I do this
 there's a flash as the component is added and resized and then put into the
 right position. Is there a way to prevent a square area from being rendered
 for a second or two? I can fix the issue but I'd have to go into UIComponent
 and mess with the base classes. Since I've run into this before (elastic
 race track) and will in the future its seems a reasonable request.





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



Re: [flexcoders] Is there a way to tell flash NOT to render a certain area?

2010-07-13 Thread dorkie dork from dorktown
i tried both adding it before and after data is available. the data isn't
necessary. its as soon as i add a new container to the beginning of the
accordion

2010/7/13 Tom Chiverton tom.chiver...@halliwells.com



 On Tuesday 13 Jul 2010 08:48:43 you wrote:
  right. its for lazy loading. when the scroll thumb goes into the hot
 area
  then it sends requests to the server for new content. when new content is
  received i create a new container

 Why not create an empty 'dummy' container before firing the request, then
 populate it when it comes back ?

 --
 Tom Chiverton
 Helping to completely utilize interactive transparent customers as part of
 the
 IT team of the year 2010, '09 and '08

 

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

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

 CONFIDENTIALITY

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

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



Re: [flexcoders] Is there a way to tell flash NOT to render a certain area?

2010-07-13 Thread dorkie dork from dorktown
I think what I'm looking for is a way to have it not apply any updates for a
few frames. In the same way includeInLayout set to false causes it to be
skipped in the layout, something similar to prevent any updates to scroll
position.

On Tue, Jul 13, 2010 at 3:54 AM, dorkie dork from dorktown 
dorkiedorkfromdorkt...@gmail.com wrote:

 i tried both adding it before and after data is available. the data isn't
 necessary. its as soon as i add a new container to the beginning of the
 accordion

 2010/7/13 Tom Chiverton tom.chiver...@halliwells.com



 On Tuesday 13 Jul 2010 08:48:43 you wrote:
  right. its for lazy loading. when the scroll thumb goes into the hot
 area
  then it sends requests to the server for new content. when new content
 is
  received i create a new container

 Why not create an empty 'dummy' container before firing the request, then
 populate it when it comes back ?

 --
 Tom Chiverton
 Helping to completely utilize interactive transparent customers as part of
 the
 IT team of the year 2010, '09 and '08

 

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

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

 CONFIDENTIALITY

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

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





Re: [flexcoders] Is there a way to tell flash NOT to render a certain area?

2010-07-13 Thread dorkie dork from dorktown
that makes sense. i wanted to make sure there wasn't any other options
before working on that. ps the scroller scrollerbar. the mxml example
doesn't show that.

On Tue, Jul 13, 2010 at 12:14 PM, Alex Harui aha...@adobe.com wrote:



 I’m still lost.  Are you trying to control the wrapping Scroller’s
 scrollbar or is there a  scrollbar in your Haccordion?

 I think I would build one into the Haccordion that knows how many children
 exist.  That’s how List and others handle virtualized renderers.



 On 7/13/10 2:52 AM, dorkiedorkfromdorkt...@gmail.com 
 dorkiedorkfromdorkt...@gmail.com wrote:






 I think what I'm looking for is a way to have it not apply any updates for
 a few frames. In the same way includeInLayout set to false causes it to be
 skipped in the layout, something similar to prevent any updates to scroll
 position.

 On Tue, Jul 13, 2010 at 3:54 AM, dorkie dork from dorktown 
 dorkiedorkfromdorkt...@gmail.com wrote:

 i tried both adding it before and after data is available. the data isn't
 necessary. its as soon as i add a new container to the beginning of the
 accordion

 2010/7/13 Tom Chiverton tom.chiver...@halliwells.com






  On Tuesday 13 Jul 2010 08:48:43 you wrote:
  right. its for lazy loading. when the scroll thumb goes into the hot
 area
  then it sends requests to the server for new content. when new content is
  received i create a new container

 Why not create an empty 'dummy' container before firing the request, then
 populate it when it comes back ?


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



Re: [flexcoders] Re: stopping accodion animation

2010-07-12 Thread dorkie dork from dorktown
i *haven't* been able to get this to work but you may,

accordion.endEffectsStarted();

you can also set the openDuration to 0 when you remove the children. then
set it back after. its a style so use:

accordion.setStyle(openDuration, 0);


On Mon, Jul 12, 2010 at 8:03 AM, valdhor valdhorli...@embarqmail.comwrote:



 Have a look at the TweenEvent.TWEEN_END, EffectEvent.EFFECT_END and
 TweenEvent.TWEEN_UPDATE events. They may send you in the right direction.


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 flexwdw flex...@... wrote:
 
  Hey all,
 
  I have to be able to dynamically remove children from an accordion
 container. Problem is, this causes a crash when the animation that runs on
 the selected child is running when I need to remove the panel. I see no way
 to force this animation to end or register for notification of it ending. Am
 I missing something? Turning animation off is not an option. I have worked
 around this to try to ensure it is impossible for a selected child change to
 occur anywhere near the remove child, but I would rather code this more
 defensively if possible.
 
  thanks!
 
  (ps, I am using 3.5 targeting FP 10.0.0)
 

  



[flexcoders] Is there a way to tell flash NOT to render a certain area?

2010-07-12 Thread dorkie dork from dorktown
There's a component that I'm adding child components too it. When I do this
there's a flash as the component is added and resized and then put into the
right position. Is there a way to prevent a square area from being rendered
for a second or two? I can fix the issue but I'd have to go into UIComponent
and mess with the base classes. Since I've run into this before (elastic
race track) and will in the future its seems a reasonable request.


Re: [flexcoders] Is there a way to tell flash NOT to render a certain area?

2010-07-12 Thread dorkie dork from dorktown
In that case, I'll elaborate on the situation...

I am using a horizontal Accordion component with newest items to the right.
When you scroll left you get to a location where more items are added. As
you add each item the scrollbar thumb track jumps to the right and then
jumps back to where the mouse is. This happens every time a new item is
added to the accordion.


On Mon, Jul 12, 2010 at 6:35 PM, Alex Harui aha...@adobe.com wrote:



 Flash renders what is visible and on the display list.  UIComponent is
 invisible until creationComplete and theoretically, it and all of its
 children shouldn’t be changing after then.  Or make it visible=false until
 you know it is ready.



 On 7/12/10 2:37 PM, dorkiedorkfromdorkt...@gmail.com 
 dorkiedorkfromdorkt...@gmail.com wrote:






 There's a component that I'm adding child components too it. When I do this
 there's a flash as the component is added and resized and then put into the
 right position. Is there a way to prevent a square area from being rendered
 for a second or two? I can fix the issue but I'd have to go into UIComponent
 and mess with the base classes. Since I've run into this before (elastic
 race track) and will in the future its seems a reasonable request.





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



Re: [flexcoders] Dispatch an event from a non visual non IEventDispatcher class

2010-07-11 Thread dorkie dork from dorktown
thank u!

On Sun, Jul 11, 2010 at 4:16 AM, Andriy Panas a.pa...@gmail.com wrote:



 You can use composition to acquire the functionality of EventDispather, in
 other words add the instance of EventDispatcher class as a property of your
 VO class

 More on this:
 http://www.gskinner.com/blog/archives/2007/07/building_a_stat_1.html

 http://www.gskinner.com/blog/archives/2007/07/building_a_stat_1.html
 --
 Best regards,
 JabbyPanda



 On 11 July 2010 08:13, dorkie dork from dorktown 
 dorkiedorkfromdorkt...@gmail.com wrote:



 Is there a way to dispatch an event from a class that doesn't extend
 EventDispatcher? For example, lets say you have 30 different value
 object classes. You want to have one method called invalidateData()
 that dispatches an event to get the latest content from the server.
 Since I want to keep the data separate from the view I may need to
 call this in several different places. Any help would be appreciated.


  



[flexcoders] Re: Adding an new child to an accordion changes selected panes

2010-07-10 Thread dorkie dork from dorktown
Actually I'm using addChildAt(0, new Canvas()). It may only be an
issue with the HAccordion but still I need a way to stop it animating
to the next pane.

On Sat, Jul 10, 2010 at 2:32 PM, dorkie dork from dorktown
dorkiedorkfromdorkt...@gmail.com wrote:
 When I add a new child to an accordion it is moving the selection item
 or selected index one position over. Is there something I'm doing
 wrong or a way to prevent this?



Re: [flexcoders] Capturing ENTER key in a Numeric Stepper

2010-07-10 Thread dorkie dork from dorktown
the canvas tag has a defaultButton property that will dispatch a click event
on your submitSearch button. i'm not sure what the eq would be in flex 4.

On Sat, Jul 10, 2010 at 7:08 PM, Nick Middleweek n...@middleweek.co.ukwrote:



 Hello,

 I've got a form with a few fields on, one being a numeric stepper. On the
 TextInput, I can test the enter key being pressed using the enter event
 but there doesn't appear to be an equivalent for the numericstepper...

 Has anyone managed to acheive this and how did you do it please?

 On enter, I want to dispatch a submitSearch event but can't seem to detect
 this for the NS control..


 Any ideas will be great..


 Cheers,
 Nick

  



[flexcoders] Dispatch an event from a non visual non IEventDispatcher class

2010-07-10 Thread dorkie dork from dorktown
Is there a way to dispatch an event from a class that doesn't extend
EventDispatcher? For example, lets say you have 30 different value
object classes. You want to have one method called invalidateData()
that dispatches an event to get the latest content from the server.
Since  I want to keep the data separate from the view I may need to
call this in several different places. Any help would be appreciated.


Re: [flexcoders] Re: reuse paths shapes in skins

2010-07-09 Thread dorkie dork from dorktown
hi, wanted to get to this but was busy,

that's exactly what you want to use. do u have flash catalyst? get the
trial. then add some path or rectangle content to the stage and select all
of them. right click and choose group. look at code. then right click again
and select optimize graphics. then look at code again. walla. presto chango.
u have code for reuse. library i think is inline while fxg can be inline or
an external document.

you can put components in ur skins.

On Fri, Jul 9, 2010 at 2:35 PM, arocheking rochek...@gmail.com wrote:



 Would using the library and definition tags be the way to go?
 Anyone?

 http://sherifabdou.com/2008/09/creating-symbols-in-flex-4/

  



[flexcoders] any word on smooth mouse wheel scrolling?

2010-07-09 Thread dorkie dork from dorktown
does anyone have a fix for a smooth mouse wheel scroll in datagroups or lists?

right now it's jumping by 40px per scroll. it looks awful.


Re: [flexcoders] User Interface Design Groups

2010-07-07 Thread dorkie dork from dorktown
nick,
i know the perfect group, its called flexcoders. ...or flashcoders. most
flash platform developers come from a design background and have a passion
for the best UI experience.

so post it here!! :)

design and UI xp IS part of the flash platform...


On Wed, Jul 7, 2010 at 1:27 PM, Nick Middleweek n...@middleweek.co.ukwrote:



 Hi,

 I've been working on a little composite search UI component but it needs
 polishing off and I wondered if there were any groups out there that could
 help with this sort of thing? Does anyone know of any?


 Cheers,
 Nick

  



Re: [flexcoders] line break?

2010-07-06 Thread dorkie dork from dorktown
// it used to be an issue which line break you used \n vs \r or the famous
\n\r
// each would work or not work depending on operating system
// or \n or \n\r or br/ if html email

var lineBreak:String = \r;
private var emailString:String = emailMsg1 + lineBreak + emailMsg1 +
lineBreak +  emailMsg3;

On Tue, Jul 6, 2010 at 11:28 AM, Oleg Sivokon olegsivo...@gmail.com wrote:



 [foo, bar, foobar].join(\r);
  



[flexcoders] how do u know if a component has a scroller attached?

2010-07-05 Thread dorkie dork from dorktown
how do u know if a component has a scroller attached? will it alwats
be a direct parent of the component?

also how can you check or add a scroller to the application?


[flexcoders] Is there a way to get the memory footprint of the display list

2010-07-03 Thread dorkie dork from dorktown
I know getSize() will return the size of the object you pass into it.

jp


Re: [flexcoders] Is there a way to get the memory footprint of the display list

2010-07-03 Thread dorkie dork from dorktown
thx

On Sun, Jul 4, 2010 at 12:08 AM, Alex Harui aha...@adobe.com wrote:



 You might be able to compute that from profiler output, but it won’t really
 tell you about backing Flash Player objects and OS graphics overhead.



 On 7/3/10 7:00 PM, dorkiedorkfromdorkt...@gmail.com 
 dorkiedorkfromdorkt...@gmail.com wrote:






 I know getSize() will return the size of the object you pass into it.

 jp





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



[flexcoders] Is there a way to reach into a skinClass of a component and update a property?

2010-07-01 Thread dorkie dork from dorktown
I have a RadioButton component that uses a custom skin. This skin has
a text field on it that contains the number of items that can change
over time. Is there a way to access this property and update the
value?

JP


[flexcoders] Re: Is there a way to reach into a skinClass of a component and update a property?

2010-07-01 Thread dorkie dork from dorktown
I think I found the answer in myComponent.skin. i wish there was a
skin properties object on UIComponents. if i want to set a property in
a skin there's no way to do that without extending the component and
adding the property to the subclass. it's not a far fetched idea. in
HTML there is a style attribute that accepts an object literal, for
example:

div style={color:blue;height:100px;} /

normally you would want to separate the view from the model etc but
with skins it's a new type of view. some properties pass from the host
component to the skin. if you're making your own skins you're probably
having to add custom properties.

On Thu, Jul 1, 2010 at 7:34 PM, dorkie dork from dorktown
dorkiedorkfromdorkt...@gmail.com wrote:
 I have a RadioButton component that uses a custom skin. This skin has
 a text field on it that contains the number of items that can change
 over time. Is there a way to access this property and update the
 value?

 JP



Re: [flexcoders] Flex version of excel spreadsheet?

2010-06-29 Thread dorkie dork from dorktown
all your questions will be answered with google spreadsheets and google
domain key...

On Mon, Jun 28, 2010 at 8:51 AM, Paul Andrews p...@ipauland.com wrote:



 I have a potential client who has an excel spreadsheet they'd like to
 make into a proper application, delivered via a web page. Problem is
 that they are protective of the formulas used in the spreadsheet and
 don't want them running on the client (I may talk to them about that
 again). As far as I know the only way to make use of what they have is
 to build a Java calculation engine that runs on the server and takes
 inputs from the Flex front end and returns the outputs.

 I'm no Excel specialist so as far as I know there's no alternative to
 taking excel out of the equation for a web delivered solution.

 Any other ideas?

 Paul
  



[flexcoders] How to check if display object is visible to the user?

2010-06-29 Thread dorkie dork from dorktown
Let's say I have 10 images in a list. Only one is visible to the user.
If I have a fade in effect I want to add to that image on load
complete is there a way to see if the component is visible to the user
so then on those instances i'm not running the fade in effect?

JP


Re: [flexcoders] How much does FXG affect performance?

2010-06-28 Thread dorkie dork from dorktown
i had seen this before but in the context of this thread it makes much more
sense this time around:

http://help.adobe.com/en_US/as3/mobile/index.html
http://help.adobe.com/en_US/as3/mobile/WS4bebcd66a74275c36c11f3d612431904db9-7ffc.html

On Wed, Jun 23, 2010 at 4:29 PM, dorkie dork from dorktown 
dorkiedorkfromdorkt...@gmail.com wrote:

 so if you were in my position working on a large project how would you
 determine when to use FXG vector art and when to use a bitmap of that art?



 On Wed, Jun 23, 2010 at 11:06 AM, Alex Harui aha...@adobe.com wrote:



 Many FXG files are compiled down to Flash symbols (unless there is text
 involved).  There is no “code” for them, but moving them or otherwise
 invalidating that area of the screen makes the renderer re-consider all
 those paths in the symbol.



 On 6/22/10 11:28 PM, dorkiedorkfromdorkt...@gmail.com 
 dorkiedorkfromdorkt...@gmail.com wrote:






 so if i had an fxg file with 1 paths but those paths didn't change
 they wouldn't be redrawn every frame correct?

 how should i determine when to rasterize vector FXG art vs leaving it as
 is?

 On Fri, Jun 18, 2010 at 1:49 AM, Alex Harui aha...@adobe.com wrote:






 Maybe, yes, none, n/a, no, yes (17), no, depends, bribery, no thank you.
  Not necessarily in that order.



 On 6/17/10 7:15 PM, dorkiedorkfromdorkt...@gmail.com 
 http://dorkiedorkfromdorkt...@gmail.com  
 dorkiedorkfromdorkt...@gmail.com http://dorkiedorkfromdorkt...@gmail.com
  wrote:






 I saw a comment recently that large FXG usage can affect performance.
 For example, FXG in skins. But I also read it affects file size??? If
 it's vector shouldn't it in most cases be smaller in size than a
 rasterized representation of the vector? What about If the vector skin
 art is relatively static how much of it is getting redrawn every
 frame? If it is redrawn every frame what is the use of Show redrawn
 regions in the Flash Player context menu?

 To quote Ted P, Internally the player sweeps the DisplayList and
 processes all graphics, then processes all frame bytecode, then
 processed events. If there are things to do in each phase, the phase
 will expand potentially slowing down the frame speed.
 http://tinyurl.com/2erm72a

 Has this behavior changed in Flash Player 10.1? BTW Is there a limit
 to the number of questions I can ask in a single post? Have I past
 that limit? If so will any of my questions get answered or is the
 whole post disqualified? If so how do I get it re-qualified? Separate
 posts for each question?

 JP





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





Re: [flexcoders] Get all styles at runtime of specific component [2 Attachments]

2010-06-26 Thread dorkie dork from dorktown
So there are two parts to this. I'm reiterating your replies:

1. Get a reference to a component at runtime via code and providing a list
of all applicable styles just like design time displays in the property
inspector.

A: this is not possible to get all the styles of a component unless the
metadata styles are compiled into the swf. plus there may be additional
styles defined by themes and skins (skins can define styles???) that there
is no way to get access to.

me: Is there then a file that FB uses that contains all the styles in
existence?

2. Getting all the styles that have been applied to a component to create a
style / inheritance tree like in Firebug. See attached image...

A: you can use getStyle to get the computed style but only if you know the
name of the style. ie getStyle(style)

me: is there a getStyle() method that returns all computed styles?

me: is there an api (online even) that exists that i can pass a qualified
class name to get this information? for example,

myService.url = http://alexh.adobe.com/sdkapi.php;
myService.send({className:UIComponent, styles:true, properties:true})

// returns an xml list of all properties and styles for the given class?
UIComponent
styles
style name=border defaultValue=1px /
style name=color defaultValue=1px /
style name=padding defaultValue=1px /
...
/styles
properties
property name=text defaultValue= type=String/
property name=etc /
...
/properties
/UIComponent



On Sat, Jun 26, 2010 at 12:23 AM, Alex Harui aha...@adobe.com wrote:



 Styles are defined by metadata and further controlled by the theme and
 skin.  You’d probably have to retain metadata to introspect at runtime.

 I’m not sure I understand the last question.  getStyle() would return the
 computed style.



 On 6/25/10 5:38 PM, dorkiedorkfromdorkt...@gmail.com 
 dorkiedorkfromdorkt...@gmail.com wrote:






 How do you get a list of all styles that a component supports?

 var buttonStyles:Array = getStyles(buttonComponent);
 var containerStyles:Array = getStyles(borderContainer);

 The follow up question to this is there a recommended api to get the
 computed style for that component instance?

 JP





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



Re: [flexcoders] Debug button launching wrong file.

2010-06-25 Thread dorkie dork from dorktown
You can go into your project properties and remove all the applications
except the main one. You can add them back later. Also go into the menu Run
 Debug  Other. Remove or modify those as well. You may want to restart and
clean as well. If it still persists post back. If you do post back I'd say
go into the Flex project properties and check for rogue application
references in the XML. I'd then say clean and restart. These files are in
the project root and hidden. If it still persists post back. If you do post
back I'd then say you're wasting too much time tracking down a project
properties related problem. In that case create a NEW blank project and copy
the original files (not folders) into it. Recreate any folders. If it's in
SVN copy the files out and try reverting back to an earlier version. Then
recheck out the project again. Then of course paste in your local files. DO
NOT COPY or PASTE directories from your original project if it is using SVN.
Doing so will copy the hidden svn folders.

On Fri, Jun 25, 2010 at 3:31 AM, Clark Stevenson a.scots...@gmail.comwrote:



 Hey all,

 I have a habit of hitting the debug tool button in FB4, lastnight i
 right clicked on a MXML component and hit set as default
 application.

 However, i didnt mean to do that. I have set the default app back to
 Main.mxml but when i click the debug button, Main.mxml never runs. I
 need to select the arrow, select Main.mxml and click that.

 This morning i have debugged 10 times and 6 of those times i used the
 debug button by habit So incredibly frustrating.

 Where i can stop this from happening? So i can set debug button back
 to Main.mxml

 Cheers,

 Clark.
  



Re: [flexcoders] Wheel Scroll on Mac Buggy

2010-06-25 Thread dorkie dork from dorktown
I've seen it as well. Are you manually adding mouse wheel support through
one of the numerous javascript patches? Try disabling it and see if it
works.

Note: There is no support for mouse wheel natively in Firefox browsers on
Mac.

On Fri, Jun 25, 2010 at 11:15 AM, Brendan Meutzner bmeutz...@gmail.comwrote:



 Hi All,

 I was very happy to see wheel scrolling implemented on Mac in Player
 10.1... however, I've found it's kind of buggy.


 Essentially, if I use it to scroll a list based component, it works great.
  If I use it to scroll a container based component it jumps around a lot.
  For example, a roll/swipe down will move it down, but it will partially
 jump back up after the event is completed.  I see this activity on Safari
 and Chrome on Mac, while Firefox on mac doesn't even work at all (yes i'm
 sure I've got the latest player version).  It occurs with both magic mouse
 swiping, and trackbar swiping.

 Firing up VMWare on Mac in Win7, it works just fine with both of these
 methods, so I know it's not my hardware.


 Has anybody else seen this odd behavior before I post a bug?


 Brendan


  



[flexcoders] Get all styles at runtime of specific component

2010-06-25 Thread dorkie dork from dorktown
How do you get a list of all styles that a component supports?

var buttonStyles:Array = getStyles(buttonComponent);
var containerStyles:Array = getStyles(borderContainer);

The follow up question to this is there a recommended api to get the
computed style for that component instance?

JP


Re: [flexcoders] How much does FXG affect performance?

2010-06-23 Thread dorkie dork from dorktown
so if i had an fxg file with 1 paths but those paths didn't change they
wouldn't be redrawn every frame correct?

how should i determine when to rasterize vector FXG art vs leaving it as is?

On Fri, Jun 18, 2010 at 1:49 AM, Alex Harui aha...@adobe.com wrote:



 Maybe, yes, none, n/a, no, yes (17), no, depends, bribery, no thank you.
  Not necessarily in that order.



 On 6/17/10 7:15 PM, dorkiedorkfromdorkt...@gmail.com 
 dorkiedorkfromdorkt...@gmail.com wrote:






 I saw a comment recently that large FXG usage can affect performance.
 For example, FXG in skins. But I also read it affects file size??? If
 it's vector shouldn't it in most cases be smaller in size than a
 rasterized representation of the vector? What about If the vector skin
 art is relatively static how much of it is getting redrawn every
 frame? If it is redrawn every frame what is the use of Show redrawn
 regions in the Flash Player context menu?

 To quote Ted P, Internally the player sweeps the DisplayList and
 processes all graphics, then processes all frame bytecode, then
 processed events. If there are things to do in each phase, the phase
 will expand potentially slowing down the frame speed.
 http://tinyurl.com/2erm72a

 Has this behavior changed in Flash Player 10.1? BTW Is there a limit
 to the number of questions I can ask in a single post? Have I past
 that limit? If so will any of my questions get answered or is the
 whole post disqualified? If so how do I get it re-qualified? Separate
 posts for each question?

 JP





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



Re: [flexcoders] Re: Time for a facelift - Flex 2 to Flash 4....:)

2010-06-23 Thread dorkie dork from dorktown
Though the changes seem small, alpha, asthetics, etc they can amass to
something huge. Our project has experienced many upgrade pains and took much
longer than anticipated. There are benefits of course but you shouldn't
underestimate the time to upgrade.

Hmm one point. You can build your project with Flash Builder 4 using the SDK
of your choice, be it 3.5 or 4.0, etc. You don't have to use the latest SDK.
The issues mentioned above are from going from SDK 3 to SDK 4. Best wishes,

JP

On Wed, Jun 23, 2010 at 2:56 PM, flexnewbie06 flexnewbi...@yahoo.ca wrote:



 Thanks! I have resolved all my initial errors and compiled and re-deployed
 my App. Wow that was really painless! so surprised. Although, i had to set
 the compiler to use

 -theme=${flexlib}/themes/Halo/halo.swc

 so it would resolve half the issues, however it doesn't look anything like
 the Flex 2 version does. Alpha's are missing and other random aesthetics
 aren't supported. So I have some clean up to do.

 My main reason for the upgrade - DataGrid...works like CRAP in Flex 2.
 Random re-drawing of fonts, item rendered cell with checkboxes or images get
 placed anywhere in the grid when you scroll around. Lots of weird things
 (that my boss wants fixed and I can't fix them)...so I'm hoping this upgrade
 fixes some of those issues.

 I only have 9 days left on my trial though!! eek.

 :)


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Brendan
 Meutzner bmeutz...@... wrote:
 
  Yeah, you don't want to have LiveCycle or BlazeDS checked... those both
 rely
  on services which would be present on your backend server, and dictated
 in
  the services-config.xml file. LiveCycle and BlazeDS would have nothing to
  do with your web service calls.
 
  You should use the RemoteObject checkbox, and honestly, if you're using
 web
  services, it shouldn't really affect it at all. Correct me if I'm wrong,
  but your web services would have url endpoints defined within each call
 (ie.
  the mxml tag) from Flex 2.0 right?
 
  The remaining errors you face if you choose RemoteObjects checkbox should
 be
  fixable as Jeffry points out.
 
 
  Brendan
 
 
 
  On Wed, Jun 23, 2010 at 2:15 PM, flexnewbie06 flexnewbi...@... wrote:
 
  
  
   Yes Apologies...I think I typed before I thought about this some more.
  
   Flex 2.0.1 SDK To Flex 4 SDK(I guess I was stuck on the name change
 from
   flex builder 2 to Flash builder 4)...I dunno.
  
   Yes I downloaded Flash Builder 4 Trial. Tried to open my project in and
 I
   tried to update some build path properties. One option is to Use
 remote
   object access services, in the Flex Server tab of project properties.
 Maybe
   I'm not supposed to be using that check box at all?
  
   So If I select Live Cycle - because my only other options BlazeDS
 (which
   I'm certain I'm not using)...Only LiveCycle Data Services 2.6 and
 higher
   are supported is the error I get. I suppose this wasn't introduced
 until a
   later SDK for web Services?
  
   So I just left it unchecked (not knowing if this will make my
 web-services
   unusable or not) and it let me proceed and compile...I have a few
 errors to
   sort out...
  
   However, as mixed up as I am, relatively few problems sounds like a
 good
   start.
  
   Thanks.
   Jenn
  
  
   --- In flexcoders@yahoogroups.com 
   flexcoders%40yahoogroups.comflexcoders%
 40yahoogroups.com, Jeffry

   Houser jeffry@ wrote:
   
   
Do you mean that you're moving from Flex 2 to Flex 4? Or from Flex 2
to Flash 4? They mean radically different things. I'm going to assume
you mean the former.
   
Did you download a trial of Flash Builder 4? You said you hit a wall;
what wall did you hit?
   
When you say that Web Services Not Using Live cycle; I'm not sure
what that means. But to me that sounds like it might be a problem
 with
your server side code.
   
It would be my expectation that compiling a Flex 2 application
 against
the Flex 4 SDK would present relatively few problems.
   
On 6/23/2010 2:19 PM, flexnewbie06 wrote:

 Hi all,
 I would like to see our current code base updated from Flex 2.0.1
 to
 Flash 4. We have many bugs inherent to the components in the SDK I
 would like to see resolved. The project is quite large...using web
 services and many many components(and States..I think these guys
   changed).

 I downloaded the trial for Flash 4 and tried to port some of our
 code
 over, but immediately hit a wall with the web services not using
 live
 cycle. So I am looking for some thoughts from you guys...aside from
 some of the web services being broken, am I looking at a whole of
 change? How much backwards compatibility does this migration
 support.

 Thanks so much for any suggestions.

 Jenn


   
   
--
Jeffry Houser, Technical Entrepreneur
Adobe Community Expert: http://tinyurl.com/684b5h
http://www.twitter.com/reboog711 | 

Re: [flexcoders] How much does FXG affect performance?

2010-06-23 Thread dorkie dork from dorktown
so if you were in my position working on a large project how would you
determine when to use FXG vector art and when to use a bitmap of that art?


On Wed, Jun 23, 2010 at 11:06 AM, Alex Harui aha...@adobe.com wrote:



 Many FXG files are compiled down to Flash symbols (unless there is text
 involved).  There is no “code” for them, but moving them or otherwise
 invalidating that area of the screen makes the renderer re-consider all
 those paths in the symbol.



 On 6/22/10 11:28 PM, dorkiedorkfromdorkt...@gmail.com 
 dorkiedorkfromdorkt...@gmail.com wrote:






 so if i had an fxg file with 1 paths but those paths didn't change they
 wouldn't be redrawn every frame correct?

 how should i determine when to rasterize vector FXG art vs leaving it as
 is?

 On Fri, Jun 18, 2010 at 1:49 AM, Alex Harui aha...@adobe.com wrote:






 Maybe, yes, none, n/a, no, yes (17), no, depends, bribery, no thank you.
  Not necessarily in that order.



 On 6/17/10 7:15 PM, dorkiedorkfromdorkt...@gmail.com 
 http://dorkiedorkfromdorkt...@gmail.com  
 dorkiedorkfromdorkt...@gmail.com http://dorkiedorkfromdorkt...@gmail.com
  wrote:






 I saw a comment recently that large FXG usage can affect performance.
 For example, FXG in skins. But I also read it affects file size??? If
 it's vector shouldn't it in most cases be smaller in size than a
 rasterized representation of the vector? What about If the vector skin
 art is relatively static how much of it is getting redrawn every
 frame? If it is redrawn every frame what is the use of Show redrawn
 regions in the Flash Player context menu?

 To quote Ted P, Internally the player sweeps the DisplayList and
 processes all graphics, then processes all frame bytecode, then
 processed events. If there are things to do in each phase, the phase
 will expand potentially slowing down the frame speed.
 http://tinyurl.com/2erm72a

 Has this behavior changed in Flash Player 10.1? BTW Is there a limit
 to the number of questions I can ask in a single post? Have I past
 that limit? If so will any of my questions get answered or is the
 whole post disqualified? If so how do I get it re-qualified? Separate
 posts for each question?

 JP





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



[flexcoders] How to check if a control is positioned by styles like Top and Left vs X and Y

2010-06-20 Thread dorkie dork from dorktown
How do you check at runtime if a control is positioned by styles like
Top and Left vs X and Y?

these always return 0
targetTop = target.getStyle(top);
targetBottom = 
target.getStyle(bottom);
targetLeft = target.getStyle(left);
targetRight = target.getStyle(right);
targetVertical = 
target.getStyle(verticalCenter);
targetHorizontal = 
target.getStyle(horizontalCenter);

jp


  1   2   3   4   5   >