[flexcoders] flex preloaders stopped working on flash 11? (WIN 11,0,1,152) DEBUG

2011-10-09 Thread fotis.chatzinikos
My custom preloader stopped working with flash 11 (WIN 11,0,1,152) DEBUG

Can somebody else check their apps and let me know? 

Thanks,
Fotis



[flexcoders] RichTextEditor + CSS Style + Embeded Font - nothing works as should...

2010-07-23 Thread fotis.chatzinikos
Hi everybody,

I have a RichTextEditor which I am trying to set its default Font Face size and 
color using the following CSS:

RichTextEditor
{
textAreaStyleName: 'rteStyle';
}

.rteStyle
{
font-size:26;
font-family:Arial;
color:#00;
}   

While this works, the htmlText output of the editor when used inside a 
mx:text/ field displays ... NOTHING (The text is there you can copy and paste 
it but it seems that its renderer in ...micropixels)

removing the CSS font-face :


.rteStyle
{
font-size:26;
color:#00;
}   


fixed the rendering but .. breaks the initialization of the RichTextEditor...

It now displays as the selected font Myriad Pro (an embeded font i am using), 
the font size to default 13 and the color to default white. Typing the first 
character inide it it fixes the defaults to 26, black... Changing from Myriad 
to Arial makes the htmlText of the Text field to disappear again... Plus Myriad 
disappears from the font selector ...

Has anybody managed to use The richTextEditor ever? Am i doing something wrong? 
IS IT REALLY SO BADLY IMPLEMENTED?





[flexcoders] flex SSL facebook graph api and IE

2010-06-03 Thread fotis.chatzinikos
Hello all ...

Anybody playing with Facebook's new graph api?

I have an application that uses:

https://graph.facebook.com/me?access_token=...token here...

To get the logged in user's data (name, surname ,...)

Firefox, chrome it works perfectly

in IE i get an IOError without any descriptive data (2032 stream error)

any help or suggestion welcome :-)

Thanks,
Fotis



[flexcoders] Difficult to debug error.. Any ideas?

2010-05-27 Thread fotis.chatzinikos
Hello,

I have a viewstack with several children. Sometimes i get the following error 
when i switch views, but the problem is that sometimes it happens once every 
4-5 switches sometimes the error goes away for several days...

Any ideas on how to debug?

TIA,
Fotis

TypeError: Error #1009: Cannot access a property or method of a null
object reference.
   at mx.controls.sliderClasses::Slider/commitProperties()
   at mx.core::UIComponent/validateProperties()
   at mx.managers::LayoutManager/validateProperties()
   at mx.managers::LayoutManager/doPhasedInstantiation()
   at Function/http://adobe.com/AS3/2006/builtin::apply()
   at mx.core::UIComponent/callLaterDispatcher2()
   at mx.core::UIComponent/callLaterDispatcher()

   TypeError: Error #1009: Cannot access a property or method of a null
object reference.
   at mx.controls.sliderClasses::Slider/setPosFromValue()
   at mx.controls.sliderClasses::Slider/updateDisplayList()
   at mx.core::UIComponent/validateDisplayList()
   at mx.managers::LayoutManager/validateDisplayList()
   at mx.managers::LayoutManager/doPhasedInstantiation()
   at mx.managers::LayoutManager/validateNow()
   at mx.effects.effectClasses::TweenEffectInstance/onTweenEnd()
   at mx.effects.effectClasses::ResizeInstance/onTweenEnd()
   at mx.effects::Tween/endTween()
   at 
mx.effects::Tween/http://www.adobe.com/2006/flex/mx/internal::doInterval()
   at mx.effects::Tween$/timerHandler()
   at flash.utils::Timer/_timerDispatch()
   at flash.utils::Timer/tick()



[flexcoders] SystemManager and RSL linkage

2010-05-11 Thread fotis.chatzinikos
I am building my flex 3 project using the external RSL support.

What confuses me is that when I try to use the SystemManager (and thus import 
it) my swf increases in size (~250KBs).

Why is that? Is not SystemManager included in the RSL? 
Can somebody explain? 
Any ideas on what classes are included in the RSL?

TIA,
Fotis



[flexcoders] Localization problems mainly on Macs - Cannot switch to second input Language

2010-01-29 Thread fotis.chatzinikos
Any ideas why on mac browsers we can not control-shift (or whatever is the 
appropriate keys combo to switch to another language) to Greek for example 
(some minor windows browsers as well)? The language indicator some times 
switches to Greek but still all text inputs are broken. Either empty spaces or 
broken characters instead of Greek.

PS: Follows history from previously (slightly hijacked thread)

Thanks Gordon, I will open a new Thread

On Fri, Jan 29, 2010 at 2:09 AM, Gordon Smith gosm...@adobe.com wrote:

 

I'm not aware of this particular problem, but I'll ask a Player engineer 
who might know what's going on.

 

Gordon Smith

Adobe Flex SDK Team


Sorry for being slightly off topic, but I also have a localization problem 
and Gordon seems the right person to ask..

Any ideas why on mac browsers we can not control-shift (or whatever is the 
appropriate keys combo to switch to another language) to Greek for example 
(some minor windows browsers as well)? The language indicator some times 
switches to Greek but still all text inputs are broken. Either empty spaces or 
broken characters instead of Greek.

TIA,
Fotis



[flexcoders] language switch on mac does not work?

2009-11-23 Thread fotis.chatzinikos
Hello all,

I have tried to google this but I do not seem to find anything... 

Anyone knows if this is a known bug? Is there a solution? 

TIA,
Fotis



[flexcoders] easy way to make a tree auto-expand?

2009-11-12 Thread fotis.chatzinikos
Hi,

Is there an easy way to do this?

for example opening a node of the tree
expands the tree's height to fit the new expanded tree

I have managed to do this with a cumbersome combination of parsing the tree 
into a flat openitems array and assigning its count to the tree's rowcount and 
was wandering if there is a more 'automatic' way..

PS: Nodes are also dynamically added in the data provider (arraycollection with 
children) and these need to expand the height of the tree while keeping the 
already selectedIndex. (works as described earlier but i would prefer a more 
manageable solution)



[flexcoders] [Module][Flash10/9 integration] Can i load a flash 10 module into app build on 9

2009-10-25 Thread fotis.chatzinikos
Hello all,

Has anybody tried loading a flash 10 module, into an application build using 
version 9? Is it possible?

Thanks,
Fotis

PS: In case anybody noticed, I spammed the list with a message in Greek.
It was sent here by mistake, I am sorry.



[flexcoders] [BlazeDS] float serialization to Number problem

2009-10-13 Thread fotis.chatzinikos
Hi,

I have a float in java which (in debug) shows as 214.59 after serialization it 
appears in the client as : 214.58999633789062

I have found a possible fix here 

http://stackoverflow.com/questions/632802/how-to-deal-with-number-precision-in-actionscript

but i am interested to find out which this happens. Anybody with enough 'under 
the hood' knowledge?


TIA,
Fotis



[flexcoders] [slightly off topic] flex / as3 ad networks

2009-09-05 Thread fotis.chatzinikos
Hello all,

could you provide some links to ad networks that have actionscript APIs?

1. mochiads
2. inviziads
3. google ads for games (only games, need 50 gameviews a day)

any more? that will will accept applications and not ust games?

TIA,
Fotis



[flexcoders] mx:tree hand cursor on disclosure icons (the arrows next to folders) possible?

2009-08-31 Thread fotis.chatzinikos
Is there a way to set the hand cursor on the disclosure icons? (The little 
arrows next to the folders in the tree)

Thanks,
Fotis



[flexcoders] horizontallist scrolltoindex question

2009-08-27 Thread fotis.chatzinikos
Any ideas how to simulate scroll bar arrow clicks? I.E. moving a lists element 
one - by - one and not by 'page' as scrolltoindex does.

By page i mean the following:
list contains 5 elements
scroll to index 0-5 does nothing visually, while scroll to index 6 brings 6 as 
the first element and you can see 7,8,9 and 10

The strange thing is that moving backwords works perfectly ok...

So, anyway to make this :

1 2 3 4 5 -- into -- 2 3 4 5 6

?
Thanks,
Fotis



[flexcoders] VBox constrains - A simple question :-p

2009-08-19 Thread fotis.chatzinikos
mx:Application 
xmlns:mx=http://www.adobe.com/2006/mxml; 
width=640 
height=480

mx:VBox top=100 bottom=10 horizontalCenter=0 width=90% 
horizontalAlign=left verticalGap=5 id=debugWinVB_ID
/mx:VBox
/mx:Application


At the start of the application the VBox height is 370 (Application.height - 
vbox.top - vbox.bottom) - Correct.

Child labels are added to this vbox in runtime and as soon as the cumulative 
labels height becomes  370 the vbox expands and scroll bars appear @ the 
Application level...Why? 

Should not the Vbox remain @ 370 height and display inner scrollbars, according 
to the following rule:?

* Component size determined by a pair of constraint-based layout properties 
(left-right or top-bottom) overrides any explicit or percentage-based size 
specifications. For example, if you specify both left and right constraints, 
the calculated constraint-based width overrides the width set by a width or 
percentWidth property.




[flexcoders] Re: Java/Flex questions answered by James Ward

2009-08-17 Thread fotis.chatzinikos
make a remote call implementation in java that fills a hashmap or related 
object with all the info you want:

init()
{
   people = getPeople() ;
   towns = getTowns() ;
   etc...
}

if you want them 1-by-1 call them in sequence:

getPeople() on responce getTowns and so on...

--- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote:

 I don't understand. Each call _IS_ a separate request. Even though Flex 
 batches them up together, each remoteObject call hits the server as a 
 separate request. They will return asynchronously. This is what you want so 
 that you get the data back as fast as possible.
 
 
 --- In flexcoders@yahoogroups.com, ilikeflex ilikeflex@ wrote:
 
  HI
  
  I am using Blazeds. At the start of my application i am making couple of 
  request to get the data from the backend. I am tracking my request through 
  Charles Debugger. I see that all my initial request are put together in one 
  POST request. I want that each service call to backend be a different POST 
  request. So that i can get the data fast.
  
  Please have a look at the screen 
  shot.(http://4.bp.blogspot.com/_v7fXKpvsYl0/SoW5_0lZl6I/APg/caJ1-RzjZAE/s1600-h/Query.png)
  
  How can i achieve this?
  I am using the Remote Objec to make the calls
  
  indexProfileListRemoteObject = new RemoteObject(indexMasterDAO);
  indexProfileListRemoteObject.addEventListener( ResultEvent.RESULT, 
  indexProfileListHandler );
  
  indexListRemoteObject = new RemoteObject(indexMasterDAO);
  indexListRemoteObject.addEventListener( ResultEvent.RESULT, 
  indexListHandler );
  
  
  Thanks
  ilikeflex
   
  
  
  --- In flexcoders@yahoogroups.com, James Ward jaward@ wrote:
  
   Thanks for the plug.  I'm using StackOverflow.com to manage the 
   questions.  Just tag them with riacowboy so that I can find them.
   
   I'm seeing a big shift from the Adobe forums, flexcoders, etc to Stack 
   Overflow - so hopefully many here will start getting more involved in 
   Stack Overflow.
   
   BTW: Here is the Ask The RIA Cowboy post:
   http://www.jamesward.com/blog/ask-the-ria-cowboy/
   
   -James
   
   
   From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
   Behalf Of hworke
   Sent: Friday, August 14, 2009 11:17 AM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] Java/Flex questions answered by James Ward
   
   
   
   
   Hello Devs,
   
   James Ward the Technical Evangelist for Flex at Adobe
   encourages all to post RIA related questions in his
   blog. I asked him JAVA/LCDS questions before and got
   instant answer from him. If you have JAVA/BlazeDS/
   LCDS related questions then you can post it here:
   
   http://www.jamesward.com/blog/
  
 





[flexcoders] BUG: mx.controls.LinkBar - can somebody confirm?

2009-07-30 Thread fotis.chatzinikos
override protected function hiliteSelectedNavItem(index:int):void
{
var child:Button;

// Un-hilite the current selection.
if (selectedIndex != -1  selectedIndex  numChildren)
{
child = Button(getChildAt(selectedIndex));
child.enabled = true;
}

// Set new index.
super.selectedIndex = index;

// Hilite the new selection.
child = Button(getChildAt(selectedIndex));
child.enabled = false;
}

Should not the last two lines be inside a conditional != -1? There is not 
button @ -1 :

if (selectedIndex != -1)
{
child = Button(getChildAt(selectedIndex));
child.enabled = false;
}




[flexcoders] mx:image bottom=0 problems with vertical bar

2009-05-12 Thread fotis.chatzinikos
Hello all,

I am trying to align an image at the bottom of the screen.

My structure is the following:

mx:application
   mx:Image bottom=0/
   hbox left=0 top=0
   ...
   /hbox
/mx:application

When the the hbox is less than the screen hight (ie no scrollbars)
the image is correctly alligned at the bottom of the screen/application.

The problem appears when the hbox height becomes bigger than the screen and a 
vertical bar appears. When i scroll down the image stays where it was.

Is there a way to make the image bottom always 'touch' the bottom of the flex 
application?

TIA,
Fotis



[flexcoders] Sound class Security Sandbox violation ONLY on Internet Explorer - ID3 related

2009-03-19 Thread fotis.chatzinikos
Hi,

I am trying to make a simple mp3 player. 

At first i got errors when i was trying to get the ID3 info via the Sound class 
ID3 handler. I fixed it by removing the ID3 handler and audio plays OK in 
Firefox. The problem is that in Internet Explorer 7
I get the following exception:

SecurityError: Error #2122: Security sandbox violation: Sound.id3: 
http://localhost:8084/Main.swf/[[DYNAMIC]]/2 cannot access 
http://someplace.com/Ganglians%20-%20Hair.mp3. A policy file is required, but 
the checkPolicyFile flag was not set when this media was loaded.

Inspecting the Sound object in the debugger shows the following info (in the 
ID3 filed of the sound class):

id3 = exception thrown by getter

Why is flash in IE trying to load ID3 info without me explicitly setting the 
ID3 handler?

Any way to bypass this?

Thanks in advance,
Fotis



[flexcoders] swf file size changes from build to build?

2009-03-18 Thread fotis.chatzinikos
Hi,

I am working on a project where the debug build is about 1MB. 

The problem is that from build to build i have seen the resulting swf changing 
sizes. The builds do not add or remove any code, its just minor changes ie 
myIntVar = 1 instead of 0.

Last 5 builds:

1. 1086 KB
2. 1086 KB
3. 894 KB
4. 933 KB
5. 1087 KB

I am not sure yet if this happens in the release build as well...

Anybody seen that before? 

PS: Else i will keep rebuilding until i get the smaller possible size to 
publish... (just joking)



[flexcoders] [Tree][move scrollbar to selectedIndex] how to ?

2009-03-05 Thread fotis.chatzinikos
Hello everybody,
after much search on programatically opening a tree node, openItems, 
selectedIndex, and calllater magic, I managed to open AND select a node deep 
inside an mx:tree.

The problem? this node might be lower in the tree than is visible (scrollbars 
appear as needed).

Any ideas how to move the scrollbar where the selected node is?

TIA,
Fotis



[flexcoders] [Complicated ? :-p] dynamic itemRenderer + dataprovider problems

2009-02-23 Thread fotis.chatzinikos
Hello all,

I a have a List component which at runtime I change its dataProvider
AND item renderer via a button click.

Everything runs smoothly until new data are added to the data provider
that is current. The list picks up the change, but after this when i
try to switch to the second provider + renderer (via the button) i get
the following:

TypeError: Error #1010: A term is undefined and has no properties.
at mx.controls::List/createItemRenderer()
at
mx.controls::List/http://www.adobe.com/2006/flex/mx/internal::getMeasuringRenderer()
at mx.controls::List/commitProperties()
at mx.core::UIComponent/validateProperties()
at mx.managers::LayoutManager/validateProperties()
at mx.managers::LayoutManager/doPhasedInstantiation()
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.core::UIComponent/callLaterDispatcher2()
at mx.core::UIComponent/callLaterDispatcher()

both item renderers and data providers are initialized and i can
switch between them without problems up to the point described earlier.

Does it ring a bell?

the switching code is the following:

tileListID.itemRenderer = friendsActionsRenderer ;
tileListID.dataProvider = friendsDataProvider ;

Thanks,
Fotis



[flexcoders] [Air Skin in Flex] Is it possible to use the dark default air theme in flex?

2009-02-19 Thread fotis.chatzinikos
Hi,

Anybody knows if it is possible to use the default dark Air theme in
online flex apps?

There are some similar ones online, for example in the scalenine site,
but i was just wondering if it is a flag or something in the SDK...

TIA,
Fotis



[flexcoders] [SebCoverFlow] Enablinghand cursor when user mouse overs an item/picture?

2009-02-08 Thread fotis.chatzinikos
Hello all,

I am trying to do what the subject suggests, ie enable the hand cursor
when a user mouse overs an item/picture in Seb's CoverFlow component.

Any ideas?

TIA,
Fotis

PS: I extended It to provide a new event coverClicked, because the
click event did not fire every time and i needed to catch a click on
any cover not just the selected one (selectedCoverClicked). If anybody
is interested the following addition are needed:

SebCoverFlow.as

//just after the imports on top of the file:

[Event(name=coverClicked, type=flash.events.Event)]

In function _coverClickedHandler, add the following (@ the bottom/last
line):

this.dispatchEvent(new Event(coverClicked)) ;




[flexcoders] [ds-console] help / pointers needed...

2009-02-04 Thread fotis.chatzinikos
Hello,

Does any of you use ds-console to monitor your in development RIAs?

I tried to use it but it does not seem to pick up my custom/new
application.

* In server management, all throughput values are 0 
* In generic administration view, i can only see 3 root beans
:runtime, BlazeDS and samples

How do i configure it to monitor my own app?

Any ideas, pointers, tutorials, references would be more than welcome...

TIA,
Fotis 



[flexcoders] vertical scrollbar problems...Please help i am freaking out :-)

2008-12-09 Thread fotis.chatzinikos
Hello all, I do not know how many hours i have spend playing around
with scroll policies, heights, tops and bottoms...but still no solution.

The application layout is the following:

HBOX
LEFT VBOX
RIGHT VBOX
--PANEL
--VIEW STACK
PANEL 1 (lets say 200 pixels height)
PANEL 2 (lets say 500 pixels height)

Initialy, The viewstack show Panel 1, and when i play with smaller
screen sizes, ie make firefox smaller than my monitor's full height a
vertical scroll bar appears correctly (when panel 1 bottom reaches the
bottom of the browser window)...

The problem appears when i switch to the second panel in the viewstack
(selectedIndex==1). The scrollbar appears and disappears, but it seems
that the measuredHeight is wrong! The scrollbar only appears when the
screen becomes less than the height of the first panel which is 300
pixels less height than the second panel making the application not
usable as 300 pixels of panel 2 are hidden...

Does it pop any ideas? The viewstack's resizeToContent is true...

Thanks,
Fotis



[flexcoders] errorTip fontSize break the tooltip? Possible bug?

2008-12-04 Thread fotis.chatzinikos
Hi, the following works:

.errorTip 
{
color: #FF;
/*fontSize: 11;*/
fontWeight: bold;
shadowColor: #00;
borderColor: #FF;
borderStyle: errorTipAbove;
paddingBottom: 4;
paddingLeft: 4;
paddingRight: 4;
paddingTop: 4;
}

If I un-comment fontSize, the font gets bigger but the tooltip text
gets outside of the tooltips 'area'. Ie text length is 200 pixels and
tooltips area 150 pixels... Is the tooltip's area calculations
hardcoded to font size 9?

Fotis



[flexcoders] repeater problems and localization

2008-11-27 Thread fotis.chatzinikos
Hi, i am using a repeater to draw dynamic grid rows with labels and
togglebutton bars. The following works initially, but when the
localizedMessages object is updated and a binding event fires the
repeater breaks with the following error:

Error: Repeater is not executing.
at mx.core::Repeater/get currentItem()
at anonymous()

I have searched and found some staff on getRepeaterItem(), but if i
use it inside the repeater instead of currentItem it does not work
even the first time...

Any ideas?

Repeater mxml: 

mx:Repeater id=notificationsRepeater
dataProvider={notificationsData}
  mx:GridRow width=100% height=30
mx:GridItem width=100% height=100% verticalAlign=middle
  mx:Label
text={localizedMessages[String(notificationsRepeater.currentItem.name)]}/
/mx:GridItem
mx:GridItem width=100% height=100% horizontalAlign=center
verticalAlign=middle colSpan=2
  mx:ToggleButtonBar dataProvider=[Yes,No]
selectedIndex={notificationsRepeater.currentItem.value==true?0:1}
itemClick=notificationsChanged()
  /mx:ToggleButtonBar
/mx:GridItem
  /mx:GridRow
/mx:Repeater




[flexcoders] Found a filter explorer online (flex 2) maybe usefull to some people here...

2008-11-27 Thread fotis.chatzinikos
Online filter explorer (v2 not 3)

http://www.merhl.com/flex2_samples/filterExplorer/



[flexcoders] Bug: Combobox maxWidth does not work with percent width

2008-11-25 Thread fotis.chatzinikos
Hi,
When the following comboBox is used with width=100% and maxWidth 190
the maxwidth is not used when the underlying list contains names wider
than 190 pixels...Instead the full name is shown and the combo becomes
230 or any other amount of pixels needed...

This is only fixed if the width is specified to for example 190...

Bug?

mx:ComboBox id=regionsComboID width=100% maxWidth=190
dataProvider={regions} labelField=name prompt={regionPrompt}
enabled={regionEnabled} change=regionChanged(event)/mx:ComboBox




[flexcoders] non english character input in TextFields problems...

2008-11-21 Thread fotis.chatzinikos
Hi, 

When i hit Alt-shift to switch from English to another language,
in Firefox input remain english, while in internet explorer the input
switches to the second language (Greek) but the characters are not
Greek, but broken symbols...

Do i need to do something special to get this functionality?

The firefox issue might be related to a different problem (html
wrapper?) as my tries do not get scroll events in FF either...

Any ideas on the language thing?



[flexcoders] strange warning: Class already marked[Bindable]; property-level [Bindable]

2008-11-20 Thread fotis.chatzinikos
Class already marked[Bindable]; property-level [Bindable] is redundant
and will be ignored,

but i do not have any property level bindings:

Is it better/ more appropriate to mark the fields/properties as
[Bindable] and remove Bindable from the class?

Code:

package beans
{
[RemoteClass(alias=net.w2w.rpc.beans.UserActionNewsRPC)]

[Bindable]
public class UserActionNews
{
public var newDescription:String ;
public var linksMap:Object ;
public var dateTime:Date ;  

public function UserActionNews()
{
newDescription =  ;
linksMap = new Object() ;
dateTime = new Date() ;
}
}
}

I am using the binding in an inline item renderer:

mx:itemRenderer
  mx:Component
mx:Canvas width=100% height=50
mx:Script
  ![CDATA[
import beans.UserActionNews;
  ]]
/mx:Script
mx:Image x=0 y=0 width=40 height=40 source=/
mx:Label x=0 y=0 textAlign=left text={(data as
UserActionNews).newDescription}/
/mx:Canvas
  /mx:Component
/mx:itemRenderer




[flexcoders] how to change panel's hideEffect and showEffect (inside a viewStack) via states

2008-11-19 Thread fotis.chatzinikos
Hi, i am trying to change a Panel's hide and show effect via a state.

The following does not work:

mx:states
  mx:State name=LeftToRight
mx:SetEventHandler target={actionsPanelLarge} name=hideEffect
handler=mainStackWR/
mx:SetEventHandler target={actionsPanelLarge} name=showEffect
handler=mainStackWR/
  /mx:State 
  mx:State name=RightToLeft
mx:SetEventHandler target={userCurrentLookLargePanel}
name=hideEffect handler={mainStackWL}/
mx:SetEventHandler target={userCurrentLookLargePanel}
name=showEffect handler={mainStackWL}/
  /mx:State 
/mx:states

As you can see i tried both handler=mainStackWR and
handler={mainStackWR}

mainStackWR is the following:

mx:WipeRight id=mainStackWR duration=500/

What am i doing wrong? Sorry but its my first try with state
management, and i cannot seem to find any info on this...Property
changing works fine, but here??

TIA,
Fotis




[flexcoders] bug or feature (or am i doing something wrong)?

2008-11-11 Thread fotis.chatzinikos
Hi,

I am using ObjectUtil.copy to deep copy an object.

The following code works: (note the call to new)

var catTreeLocalToFiltered:CategoryTree = new CategoryTree() ;

catTreeLocalToFiltered = ObjectUtil.copy(categoriesTree) as CategoryTree ;

The problem is that the following code DOES NOT WORK:(note the absense
of new)

var catTreeLocalToFiltered:CategoryTree =
ObjectUtil.copy(categoriesTree) as CategoryTree ;

Actually it semi works. The first time catTreeLocalToFiltered is the
same as categoriesTree. 

The second time catTreeLocalToFiltered does not become equal to
categoriesTree but becomes equal to itself as it was after the first call.

Are bytes cached for local variables if new is not explicitly used?

Anybody from Adobe?

PS: All this was checked/found out in the debugger stepping throught
the code line by line...

Thanks,
Fotis



[flexcoders] tile list animation / transition throws error when height shrinks(not always!)

2008-11-07 Thread fotis.chatzinikos
Hello all,

can anybody throw any pointer on this?

I have a tilelist (vertical/single column) with custom item renderer,
when i use a state to shrink its height (minimize like functionality)
sometimes i get the following error (note: SOMETIMES once every ... do
not know 5 times):

TypeError: Error #1009: Cannot access a property or method of a null
object reference.
at mx.controls.listClasses::ListBase/addToFreeItemRenderers()
at mx.controls.listClasses::ListBase/reduceRows()
at mx.controls.listClasses::ListBase/updateDisplayList()
at mx.controls.listClasses::TileBase/updateDisplayList()
at mx.controls.listClasses::ListBase/validateDisplayList()
at mx.managers::LayoutManager/validateDisplayList()
at mx.managers::LayoutManager/doPhasedInstantiation()
at mx.managers::LayoutManager/validateNow()
at mx.effects::Tween$/timerHandler()
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()

TIA,
Fotis



[flexcoders] Re: mouse wheel behaviour mxml and actionscript based components

2008-10-26 Thread fotis.chatzinikos
Jim, you are right! In IE 7 the trees scroll without any extra
codes-automagically :-) (no need to attach a mouse wheel event and
handle scrolling- the tree does it already...)

The problems are on Firefox 3.0.3 - windows - XP...

This is strange. Firefox used to be my favorite, but lately i have
lots of wierd problems with flash... Videos not playing (youtube and
others), audio is mute after a while and i need to restart and now this...

Can anybody else test this situation on firefox / windows xp or vista?

TIA,
Fotis 

--- In flexcoders@yahoogroups.com, Jim Hayes [EMAIL PROTECTED] wrote:

 The mouse wheel events are not getting eaten by the browser before they
 get to your swf, are they?
 Perhaps due to some difference in the html embed code?
 (I've not seen this happen, but what you describe sounds odd)
  
 I'm wondering what happens if you were to try publishing your test file
 as AIR, or perhaps try a different browser ?
 It might at least help eliminate the possibility?
  
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of fotis.chatzinikos
 Sent: 23 October 2008 12:45
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: mouse wheel behaviour mxml and actionscript
 based components
  
 This is driving me nuts!
 
 Go here:
 http://examples.adobe.com/flex3/componentexplorer/explorer.html
 http://examples.adobe.com/flex3/componentexplorer/explorer.html 
 
 open visual components-general controls-Tree
 
 mouse wheel works!
 
 copy paste the code in a new flex (3) project, run the project, NO
 MOUSE WHEEL functionality...
 
 Any ideas?
 
 Can somebody (Mike are you there? :-) have a look at the previous post
 code and see if there is something wrong with my mouse_wheel handler?
 
 Anybody from adobe?
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 , Fotis Chatzinikos
 fotis.chatzinikos@ wrote:
 
  Mike, thinks for the reply, here is some code:
  
  From the following code we are interested in the following line:
  
  t.addEventListener(MouseEvent.MOUSE_WHEEL, mouseWheelTreeListener)
  ;//noluck
  
  is there something wrong with what you see? The alert is never called
  
  TIA,
  Fotis
  
  
  private function
 mouseWheelTreeListener(event:MouseEvent):void
  {
  Alert.show(wheel);
  }
  
  //tree code:
  
  var c:Canvas = new Canvas();
  
  c.label = a string;
  c.width = 185 ;
  c.horizontalScrollPolicy=ScrollPolicy.OFF ;
  c.verticalScrollPolicy=ScrollPolicy.OFF ;
  c.percentHeight = 100 ;
  
  var t:Tree = new Tree() ;
  t.width = c.width ;
  t.percentHeight = 100 ;
  t.setStyle(backgroundColor,0xFF) ;
  
  t.dataProvider = categories.getItemAt(i).children
  ;//some tree data
  t.addEventListener(ListEvent.CHANGE,categoryChanged)
  ;//works
  t.addEventListener(MouseEvent.MOUSE_WHEEL,
  mouseWheelTreeListener) ;//noluck
  c.addChild(t);
  
  categoriesAccordionID.addChild(c);
  
  On Tue, Oct 21, 2008 at 7:33 PM, Michael Schmalle
  teoti.graphix@wrote:
  
   Hi,
  
   No, it's automatic.
  
   Without an example I can't help. :)
  
   Mike
  
  
   On Tue, Oct 21, 2008 at 12:01 PM, fotis.chatzinikos 
   fotis.chatzinikos@ wrote:
  
   Hello Michael,
  
   i just tried your suggestion and i still do not get the mouse
 wheel to
   scroll the tree. I also did a quick test to see if it will work on
 an
   mxml based tree control and surprisinly it does not scroll
  
   Do i remember something wrong? I thought i have seen some trees
 scroll
   without writting any special code...
  
   Do i need to implement listeners to get the tree to scroll via
 mouse
   wheel? I thought it was automatically done... :-(
  
   --- In flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com  flexcoders%40yahoogroups.com,
   Michael Schmalle
  
   teoti.graphix@ wrote:
   
Hi,
Usually the reason for no mouse wheel events is a lack of
 background
   color.
   
Can you give some examples (mxml/as) of what 'doesn't' work for
 you?
   
Anyway, you need a background color for the control to
 broadcast mouse
wheel events.
   
Other than that it's just a guess what the problem could be
 without an
example.
   
Mike
   
On Mon, Oct 20, 2008 at 7:03 PM, fotis.chatzinikos 
fotis.chatzinikos@ wrote:
   
 Hello all,

 any ideas what is the expected behaviour of the mouse wheel in
   flex apps?

 I have noticed that some mxml based trees scroll with the
 mouse wheel
 while actionscript based ones do not.

 A few minutes ago i also did a test with the main (root /
 mainApplication) making bigger than 100% of the screen (lets
 assume
 3000 pixels hight) so a scroll bar would appear. Can only
 scroll via
 the bar, not the mouse wheel...

 Has any of you any pointers, on this?

 TIA,
 Fotis



   
   
   
--
Teoti Graphix, LLC
http://www.teotigraphix.com http://www.teotigraphix.com 
   
Teoti Graphix Blog

[flexcoders] Re: mouse wheel behaviour mxml and actionscript based components

2008-10-23 Thread fotis.chatzinikos
This is driving me nuts!

Go here:
http://examples.adobe.com/flex3/componentexplorer/explorer.html

open visual components-general controls-Tree

mouse wheel works!

copy paste the code in a new flex (3) project, run the project, NO
MOUSE WHEEL functionality...

Any ideas?

Can somebody (Mike are you there? :-) have a look at the previous post
code and see if there is something wrong with my mouse_wheel handler?

Anybody from adobe?

--- In flexcoders@yahoogroups.com, Fotis Chatzinikos
[EMAIL PROTECTED] wrote:

 Mike, thinks for the reply, here is some code:
 
 From the following code we are interested in the following line:
 
t.addEventListener(MouseEvent.MOUSE_WHEEL, mouseWheelTreeListener)
 ;//noluck
 
 is there something wrong with what you see? The alert is never called
 
 TIA,
 Fotis
 
 
 private function
mouseWheelTreeListener(event:MouseEvent):void
 {
 Alert.show(wheel);
 }
 
 //tree code:
 
 var c:Canvas = new Canvas();
 
 c.label = a string;
 c.width = 185 ;
 c.horizontalScrollPolicy=ScrollPolicy.OFF ;
 c.verticalScrollPolicy=ScrollPolicy.OFF ;
 c.percentHeight = 100 ;
 
 var t:Tree = new Tree() ;
 t.width = c.width ;
 t.percentHeight = 100 ;
 t.setStyle(backgroundColor,0xFF) ;
 
 t.dataProvider = categories.getItemAt(i).children
 ;//some tree data
 t.addEventListener(ListEvent.CHANGE,categoryChanged)
 ;//works
 t.addEventListener(MouseEvent.MOUSE_WHEEL,
 mouseWheelTreeListener) ;//noluck
 c.addChild(t);
 
 categoriesAccordionID.addChild(c);
 
 On Tue, Oct 21, 2008 at 7:33 PM, Michael Schmalle
 [EMAIL PROTECTED]wrote:
 
Hi,
 
  No, it's automatic.
 
  Without an example I can't help. :)
 
  Mike
 
 
  On Tue, Oct 21, 2008 at 12:01 PM, fotis.chatzinikos 
  [EMAIL PROTECTED] wrote:
 
Hello Michael,
 
  i just tried your suggestion and i still do not get the mouse
wheel to
  scroll the tree. I also did a quick test to see if it will work on an
  mxml based tree control and surprisinly it does not scroll
 
  Do i remember something wrong? I thought i have seen some trees
scroll
  without writting any special code...
 
  Do i need to implement listeners to get the tree to scroll via mouse
  wheel? I thought it was automatically done... :-(
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
  Michael Schmalle
 
  teoti.graphix@ wrote:
  
   Hi,
   Usually the reason for no mouse wheel events is a lack of
background
  color.
  
   Can you give some examples (mxml/as) of what 'doesn't' work for
you?
  
   Anyway, you need a background color for the control to
broadcast mouse
   wheel events.
  
   Other than that it's just a guess what the problem could be
without an
   example.
  
   Mike
  
   On Mon, Oct 20, 2008 at 7:03 PM, fotis.chatzinikos 
   fotis.chatzinikos@ wrote:
  
Hello all,
   
any ideas what is the expected behaviour of the mouse wheel in
  flex apps?
   
I have noticed that some mxml based trees scroll with the
mouse wheel
while actionscript based ones do not.
   
A few minutes ago i also did a test with the main (root /
mainApplication) making bigger than 100% of the screen (lets
assume
3000 pixels hight) so a scroll bar would appear. Can only
scroll via
the bar, not the mouse wheel...
   
Has any of you any pointers, on this?
   
TIA,
Fotis
   
   
   
  
  
  
   --
   Teoti Graphix, LLC
   http://www.teotigraphix.com
  
   Teoti Graphix Blog
   http://www.blog.teotigraphix.com
  
   You can find more by solving the problem then by 'asking the
question'.
  
 
 
 
 
  --
  Teoti Graphix, LLC
  http://www.teotigraphix.com
 
  Teoti Graphix Blog
  http://www.blog.teotigraphix.com
 
  You can find more by solving the problem then by 'asking the
question'.
   
 
 
 
 
 -- 
 Fotis Chatzinikos, Ph.D.
 Founder,
 Phinnovation
 [EMAIL PROTECTED],





[flexcoders] Re: Alert.show - Detect when closed from another mxml component

2008-10-21 Thread fotis.chatzinikos
Hm, I am doing something similar in some item renderers (Have in mind
that there might be an easier / better way i am still learning this):

I can think of two ways 

1) (simple and dirty):

Register the callback and in the callback call a function on the other
component that you are interested:

 a) Component A throws Alert with callback A
 b) callback a calls (component B).alertClosed(some var here if needed)

2) Generic / better ? way (not sure if it any better actually :-)

 a) Create a new event class ie:

package events
{
import flash.events.Event;

public class DeletePhotoEvent extends Event
{
public var photoId:String ;

public function DeletePhotoEvent (type:String,
bubbles:Boolean=false, cancelable:Boolean=false)
{
super(type, bubbles, cancelable);
}

// Override the inherited clone() method. 
override public function clone():Event 
{
return new DeletePhotoEvent (type);
}
}
}

 b) Make your component - the one with the alert register this type of
event (TileList example):

mx:TileList xmlns:mx=http://www.adobe.com/2006/mxml;
direction=horizontal
mx:Metadata
[Event(name=deletePhotoEvent,
type=events.DeletePhotoEvent)]
/mx:Metadata
/mx:TileList

 c) associate this callback with your component b method

  ns1:UserPhotos id=rightPanelId
deletePhotoEvent=componentB.alertClosed()/
  
 *) you will still need the callback in component A:

  private function deleteMe(event:MouseEvent):void
  {
 var delPhotoEv:DeletePhotoEvent = new
DeletePhotoEvent(deleteProductEvent, true) ;

 delPhotoEv.photoId = event.currentTarget.value ;   
 dispatchEvent(delPhotoEv);// bubble to parent
  }

Hope it helps ;-)
   

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

 Thanks. That is not exactly what I am asking. I understand how to set
 a callback/listener for Alert.show() as you explained. However, is
 there another way to detect from another component when the alert has
 been closed (i.e. bubbling, etc.)?
 
 --- In flexcoders@yahoogroups.com, fotis.chatzinikos
 fotis.chatzinikos@ wrote:
 
  Hi, if i understand correctly, the following doesit:
  
  Alert.show(This is the alert text.,,4,null,alertClosed) ;
  
  where alertClosed is an event listener...
  
  Check the asdoc for the alert.show method ;-)
  
  
  --- In flexcoders@yahoogroups.com, sleblang scott@ wrote:
  
   I have an Alert.show() being called from a command class. I need to
   detect when this Alert is closed in another mxml component (as
opposed
   to the command class). What's the best way to determine when
it's been
   closed?  Does the event bubble? So far I have not been able to
'catch'
   it.
   
   Thanks for any and all replies.
  
 





[flexcoders] Re: Alert.show - Detect when closed from another mxml component

2008-10-21 Thread fotis.chatzinikos
Forgot to mention that (1) is 'dirty' because you will need to pass a
reference of component B to component A on initialization, so
component A knows about B, something similar to:

componentA
  script
 [Bindable]
componentBReference:ComponentB ;
  /script
componentA/

...

application
   componentA componentBReference={B}/

   componentB id=B/

/application

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

 Thanks. That is not exactly what I am asking. I understand how to set
 a callback/listener for Alert.show() as you explained. However, is
 there another way to detect from another component when the alert has
 been closed (i.e. bubbling, etc.)?
 
 --- In flexcoders@yahoogroups.com, fotis.chatzinikos
 fotis.chatzinikos@ wrote:
 
  Hi, if i understand correctly, the following doesit:
  
  Alert.show(This is the alert text.,,4,null,alertClosed) ;
  
  where alertClosed is an event listener...
  
  Check the asdoc for the alert.show method ;-)
  
  
  --- In flexcoders@yahoogroups.com, sleblang scott@ wrote:
  
   I have an Alert.show() being called from a command class. I need to
   detect when this Alert is closed in another mxml component (as
opposed
   to the command class). What's the best way to determine when
it's been
   closed?  Does the event bubble? So far I have not been able to
'catch'
   it.
   
   Thanks for any and all replies.
  
 





[flexcoders] Re: z property in mx.core.UIComponent

2008-10-21 Thread fotis.chatzinikos
Hello geng, i have seen the link thanks. Interesting staff, and Flash
10 supports peer-to-peer connections as well this makes me think
multiplayer games and other cool staff such as audio/video (via
webcam) player collaboration and anything else you might think.  

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

 Hi fotis,
 
 In the docs example for property z two ellipses are moving on screen
 because of their z properties changing.
 
 best,
 
 geng
 --- In flexcoders@yahoogroups.com, gwangdesign gwangdesign@ wrote:
 
  It's even better now. You can check out them here:
  
 

http://livedocs.adobe.com/flex/gumbo/langref/flash/display/DisplayObject.html#propertySummary
  
  It's odd that transformX/Y/Z are not showing up although they *are*
  members of UIComponent in gumbo...
  
  Anyone from Adobe?
  
  
  
  
  --- In flexcoders@yahoogroups.com, fotis.chatzinikos
  fotis.chatzinikos@ wrote:
  
   Not sure, but did you try to put two objects (ie buttons) in an
semi-
   overlapping area and change their z to see if they switch between
   them? in 2d systems z (z-order) is the 'hight' of the object on
the 2d
   screen...ie which object hides what...
   
   Check and let us know ;-)
   --- In flexcoders@yahoogroups.com, gwangdesign gwangdesign@
wrote:
   
I was trying to set z property for a Button and expected to see it
either get bigger or smaller. But despite my expectation, nothing
seemed to happen (nor did the compiler complain)...

So is this 3D thing only working with rotationX/Y/Z for
 UIComponent as
someone mentioned a while ago?

I was using gumbo sdk and targeting fp10. Thanks.
   
  
 





[flexcoders] Re: Refreshing Project

2008-10-21 Thread fotis.chatzinikos
I always have a string somewhere visible that says version 0.9.7.a,
then b, c etc... IE nearly always caches, and firefox 3 is even worse
:-) It never caches until it decides to do so 3 in the morning when
you have forgot everything about caching and starting beating yourself
on the head debugong something that is not there any more...

--- In flexcoders@yahoogroups.com, jitendra jain
[EMAIL PROTECTED] wrote:

 May be your browser is using cache. Try to clean it also..
 
  Thanks,
 
 with Regards,
 Jitendra Jain
 
 
 
 
 
 
 
 From: jitendra jain [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Tuesday, 21 October, 2008 11:37:48 AM
 Subject: Re: [flexcoders] Refreshing Project
 
 
 Which IDE you are using... If you are using Flex Builder then try to
delete bin-debug folder. 
 It will help
 
  Thanks,
 
 with Regards,
 Jitendra Jain
 
 
 
 
 
 
 
 From: Guilherme Blanco guilhermeblanco@ gmail.com
 To: [EMAIL PROTECTED] ups.com
 Sent: Tuesday, 21 October, 2008 10:56:40 AM
 Subject: [flexcoders] Refreshing Project
 
 
 Hi,
 
 After more than 4h trying everything I know and researched until page
 25 of Google results, I give up and decided to ask here.
 
 I wrote a piece of code that was trying to do something like that:
 
 AsyncToken(RemoteOb jectInstance. AsyncTokenMethod Name).send. apply(
 RemoteObjectInstanc e, args );
 
 This was crashing inside the send method when it was trying to get
 remoteObject. concurrency; reporting my the remoteObject == null;
 
 So I changed my code a bit to work around it and leave this call (send
 + unknown number of arguments) to the right place.
 Compiled and nothing. It was referencing to my previous code (the
 one with send..apply) .
 
 So I started my attempts:
 
 turned off build automatically
 
 refresh + build
 refresh + clean + build
 clean + build
 clean + refresh + build
 refresh + build + build
 clean + build + build
 delete files from filesystem manually + clean + refresh + build + build
 
 turned on build automatically
 
 all previous attempts
 
 I decided then to reboot my system and try again everything. Nothing.
 
 It lasted my attempt to delete the project and import a new one.
 I did it no success. Reboot? Ok...
 
 Deleted project again, rebooted, imported again, compiled and...
nothing.
 
 Maybe a fresh checkout and merge of patch? Yeah... let's try it
and... nothing.
 Reboot again? Oh my God!... Nothing!
 
 Now I'm asking to you HOW CAN I GET THIS REFRESHED??! ?!??!?!
 
 Regards,
 
 -- 
 Guilherme Blanco - Web Developer
 CBC - Certified Bindows Consultant
 Cell Phone: +55 (16) 9166-6902
 MSN: guilhermeblanco@ hotmail.com
 URL: http://blog. bisna.com
 Rio de Janeiro - RJ/Brazil
 
 Send free SMS to your Friends on Mobile from your Yahoo! Messenger.
Download Now! http://messenger. yahoo.com/ download. php 
 
 Send free SMS to your Friends on Mobile from your Yahoo! Messenger.
Download Now! http://messenger.yahoo..com/download.php





[flexcoders] actionscript made canvas scrollpolicy problems-similar to previous vbox problem

2008-10-21 Thread fotis.chatzinikos
Hello again, this time i am trying to create a canvas inside a canvas
with their scroll policies set to off - It does not work -again...

I tried both:

setStyle(verticalScrollPolicy,off)
 
setStyle(verticalScrollPolicy,ScrollPolicy.OFF) 

I assume that the second line is the correct code to use?

full code here (assume that a number of components are added
dynamically in the inside canvas @ runtime, FYI: the scroll bars do
not work even before the extra components are added...):

Am i doing something wrong again?
TIA,
Fotis   

extraTagsChildSelectionContainerCanvas = new Canvas() ;
extraTagsChildSelectionContainerCanvas.width  = 200 ;
extraTagsChildSelectionContainerCanvas.height = 285 ;
extraTagsChildSelectionContainerCanvas.setStyle(cornerRadius,10) ;
extraTagsChildSelectionContainerCanvas.setStyle(backgroundColor,0xFF);
extraTagsChildSelectionContainerCanvas.setStyle(borderStyle,solid); 
extraTagsChildSelectionContainerCanvas.setStyle(borderThickness,3)
;
extraTagsChildSelectionContainerCanvas.setStyle(verticalScrollPolicy,ScrollPolicy.OFF);
extraTagsChildSelectionContainerCanvas.setStyle(horizontalScrollPolicy,ScrollPolicy.OFF);

extraTagsChildRollingCanvas = new Canvas() ;
extraTagsChildRollingCanvas.x = 5 ;
extraTagsChildRollingCanvas.y = 5 ;
extraTagsChildRollingCanvas.width = 190 ;
extraTagsChildRollingCanvas.height = 285 ;  
extraTagsChildRollingCanvas.setStyle(verticalScrollPolicy,ScrollPolicy.OFF);

extraTagsChildRollingCanvas.setStyle(horizontalScrollPolicy,ScrollPolicy.OFF);

extraTagsChildRollingCanvas.setStyle(backgroundColor,0x00FF00);   


extraTagsChildSelectionContainerCanvas.addChild(extraTagsChildRollingCanvas);
  



[flexcoders] Re: actionscript made canvas scrollpolicy problems-similar to previous vbox problem

2008-10-21 Thread fotis.chatzinikos
Thanks Mike :-) My mistake again... I usually try with the property
first and if i that the property is not there i go for the
style...Somehow i went to step 2 directly here, and then googling for
setstyle(horizontalScrollPolicy) made it even worse...

Thanks again
Fotis

--- In flexcoders@yahoogroups.com, Michael Schmalle
[EMAIL PROTECTED] wrote:

 Hi,
 Consult the ASDoc (API), you are trying to set properties with
styles. This
 won't work.
 
 The correct implementation is;
 
 myContainer.verticalScrollPolicy = ScrollPolicy.OFF;
 
 Mike
 
 On Tue, Oct 21, 2008 at 6:19 AM, fotis.chatzinikos 
 [EMAIL PROTECTED] wrote:
 
Hello again, this time i am trying to create a canvas inside a
canvas
  with their scroll policies set to off - It does not work -again...
 
  I tried both:
 
  setStyle(verticalScrollPolicy,off)
 
  setStyle(verticalScrollPolicy,ScrollPolicy.OFF)
 
  I assume that the second line is the correct code to use?
 
  full code here (assume that a number of components are added
  dynamically in the inside canvas @ runtime, FYI: the scroll bars do
  not work even before the extra components are added...):
 
  Am i doing something wrong again?
  TIA,
  Fotis
 
  extraTagsChildSelectionContainerCanvas = new Canvas() ;
  extraTagsChildSelectionContainerCanvas.width = 200 ;
  extraTagsChildSelectionContainerCanvas.height = 285 ;
  extraTagsChildSelectionContainerCanvas.setStyle(cornerRadius,10) ;
 
 
extraTagsChildSelectionContainerCanvas.setStyle(backgroundColor,0xFF);
 
extraTagsChildSelectionContainerCanvas.setStyle(borderStyle,solid);
  extraTagsChildSelectionContainerCanvas.setStyle(borderThickness,3)
  ;
 
 
extraTagsChildSelectionContainerCanvas.setStyle(verticalScrollPolicy,ScrollPolicy.OFF);
 
 
extraTagsChildSelectionContainerCanvas.setStyle(horizontalScrollPolicy,ScrollPolicy.OFF);
 
  extraTagsChildRollingCanvas = new Canvas() ;
  extraTagsChildRollingCanvas.x = 5 ;
  extraTagsChildRollingCanvas.y = 5 ;
  extraTagsChildRollingCanvas.width = 190 ;
  extraTagsChildRollingCanvas.height = 285 ;
 
 
extraTagsChildRollingCanvas.setStyle(verticalScrollPolicy,ScrollPolicy.OFF);
 
 
 
extraTagsChildRollingCanvas.setStyle(horizontalScrollPolicy,ScrollPolicy.OFF);
  extraTagsChildRollingCanvas.setStyle(backgroundColor,0x00FF00);
 
 
 
extraTagsChildSelectionContainerCanvas.addChild(extraTagsChildRollingCanvas);
 
 
   
 
 
 
 
 -- 
 Teoti Graphix, LLC
 http://www.teotigraphix.com
 
 Teoti Graphix Blog
 http://www.blog.teotigraphix.com
 
 You can find more by solving the problem then by 'asking the question'.





[flexcoders] Re: postgresql java resultset date column

2008-10-21 Thread fotis.chatzinikos
Hmmm, not sure about flex but is there a possibility of different
locales on the two machines? 

An english and american locale (same local time) might be on different
days. Do you have time with date or just date in the data? Try
removing the time info possibly...


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

 A java ArrayList of a LinkedHaskMap from a postgresql resultset is
 returned to Flex 3.0.1 to fill a DataGrid.
 
 One of the columns is a date.
 
 On one computer it subtracts 1 day form the date and on another it is
 correct, it always does this.
 
 Both computers have the same flash version and operating system WinXP.





[flexcoders] Re: mouse wheel behaviour mxml and actionscript based components

2008-10-21 Thread fotis.chatzinikos
Hello Michael, 

i just tried your suggestion and i still do not get the mouse wheel to
scroll the tree. I also did a quick test to see if it will work on an
mxml based tree control and surprisinly it does not scroll

Do i remember something wrong? I thought i have seen some trees scroll
without writting any special code...

Do i need to implement listeners to get the tree to scroll via mouse
wheel? I thought it was automatically done... :-( 


--- In flexcoders@yahoogroups.com, Michael Schmalle
[EMAIL PROTECTED] wrote:

 Hi,
 Usually the reason for no mouse wheel events is a lack of background
color.
 
 Can you give some examples (mxml/as) of what 'doesn't' work for you?
 
 Anyway, you need a background color for the control to broadcast mouse
 wheel events.
 
 Other than that it's just a guess what the problem could be without an
 example.
 
 Mike
 
 On Mon, Oct 20, 2008 at 7:03 PM, fotis.chatzinikos 
 [EMAIL PROTECTED] wrote:
 
Hello all,
 
  any ideas what is the expected behaviour of the mouse wheel in
flex apps?
 
  I have noticed that some mxml based trees scroll with the mouse wheel
  while actionscript based ones do not.
 
  A few minutes ago i also did a test with the main (root /
  mainApplication) making bigger than 100% of the screen (lets assume
  3000 pixels hight) so a scroll bar would appear. Can only scroll via
  the bar, not the mouse wheel...
 
  Has any of you any pointers, on this?
 
  TIA,
  Fotis
 
   
 
 
 
 
 -- 
 Teoti Graphix, LLC
 http://www.teotigraphix.com
 
 Teoti Graphix Blog
 http://www.blog.teotigraphix.com
 
 You can find more by solving the problem then by 'asking the question'.





[flexcoders] Re: VISTA plus SSL plus AIR - error 2032 stream error

2008-10-20 Thread fotis.chatzinikos
As well as the previous post, you can do the following, it seems
nearer to your case (from asdoc - online):

check the protocol line in the following spec:

 mx:HTTPService
   concurrency=multiple|single|last
   contentType=application/x-www-form-urlencoded|application/xml
   fault=No default.
   id=No default.
   method=GET|POST
b   protocol=http|https/b
   result=No default.
   resultFormat=object|xml|flashvars|text
   serviceName=No default.
   showBusyCursor=false|true
   url=No default.
   useProxy=true|false
   xmlEncode=No default.
   xmlDecode=No default.
 / 

--- In flexcoders@yahoogroups.com, vaidotas P [EMAIL PROTECTED] wrote:

  
 Hi,
 
 I know,  this error is very generic. I have read huge amount of
posts, comments about this, but still I don't have a solution.
 
 I start our AIR application, enter login and username trying to
login to https://192.168.3.38/flex.cgi. I get two security alerts
about untrusted issuer and not matching to name of website, but flex
lets to continue.
 
 I get error after issue of request:
 Error: [IOErrorEvent type=ioError bubbles=false cancelable=false
eventPhase=2 text=Error #2032: Stream Error. URL:
https://192.168.3.38/flex.cgi; errorID=2032]. URL:
https://192.168.3.38/flex.cgi
 
 On server, in root dir I have crossdomain.xml file:
 
 ?xml version=1.0?
 
 !DOCTYPE cross-domain-policy SYSTEM
http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd;
 
 cross-domain-policy
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:noNamespaceSchemaLoca
 allow-access-from domain=* secure=false/
 site-control permitted-cross-domain-policies=all/
 allow-http-request-headers-from domain=*
headers=* secure=false/
 /cross-domain-policy
 
 
 My https request looks like this:
 {
 var params:Object = new Object();
 params.username = username;
 params.password = password;
 
 var http:HTTPService = new HTTPService();
 http.url = https://192.168.3.38;;
 http.contentType = application/xml;
 http.method = POST;
 http.addEventListener(ResultEvent.RESULT, handleRes);
 http.addEventListener(FaultEvent.FAULT, handleFault);
 http.send(params);
 }
 
 This login request works fine on IE and FF (win vista). But not on
the AIR.
 On XP I dont have such issue, login on AIR works fine.
 
 May somebody has an idea, what is wrong with my code/configuration?
 
 thanks in advice,
 vaidotas
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around 
 http://mail.yahoo.com





[flexcoders] Re: AIR+VISTA+SSL - #2032StreamError

2008-10-20 Thread fotis.chatzinikos
Do not know if it helps, but your crossdomain.xml is not correctly
formed... check this line:

cross-domain-policy
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:noNamespaceSchemaLoca
allow-access-from domain=* secure=false/

false should be inside the quotes, now i do not have a clue if this is
your problem :-) , but fix this first (which is possibly a problem
with strict/correct parsers ie possibly AIR?)


Fotis


--- In flexcoders@yahoogroups.com, vaidotas P [EMAIL PROTECTED] wrote:

 Hi,
 
 I know,  this error is very generic. I have read huge amount of
posts, comments about this, but still I don't have a solution.
 
 I start our AIR application, enter login and username trying to
login to https://192.168.3.38/flex.cgi. I get two security alerts
about untrusted issuer and not matching to name of website, but flex
lets to continue.
 
 I get error after issue of request:
 Error: [IOErrorEvent type=ioError bubbles=false cancelable=false
eventPhase=2 text=Error #2032: Stream Error. URL:
https://192.168.3.38/flex.cgi; errorID=2032]. URL:
https://192.168.3.38/flex.cgi
 
 On server, in root dir I have crossdomain.xml file:
 
 ?xml version=1.0?
 
 !DOCTYPE cross-domain-policy SYSTEM
http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd;
 
 cross-domain-policy
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:noNamespaceSchemaLoca
 allow-access-from domain=* secure=false/
 site-control permitted-cross-domain-policies=all/
 allow-http-request-headers-from domain=*
headers=* secure=false/
 /cross-domain-policy
 
 
 My https request looks like this:
 {
 var params:Object = new Object();
 params.username = username;
 params.password = password;
 
 var http:HTTPService = new HTTPService();
 http.url = https://192.168.3.38;;
 http.contentType = application/xml;
 http.method = POST;
 http.addEventListener(ResultEvent.RESULT, handleRes);
 http.addEventListener(FaultEvent.FAULT, handleFault);
 http.send(params);
 }
 
 This login request works fine on IE and FF (win vista). But not on
the AIR.
 On XP I dont have such issue, login on AIR works fine.
 
 May somebody has an idea, what is wrong with my code/configuration?
 
 thanks in advice,
 vaidotas





[flexcoders] programmatic vbox serious bug?

2008-10-20 Thread fotis.chatzinikos
Hi, i am making a vbox via actionscript and set its width and height
to 200x300... After adding a single button (or anything else) if i
throw an alert with its width and height they seem correct
but...scroll bars appear which can scroll the vbox as if it was 2000
by 2000 pixels wide/high...

The relevant code is:

var extraTagsSelectionVBox:VBox = new VBox() ;
extraTagsSelectionVBox.setStyle(cornerRadius,10) ;
extraTagsSelectionVBox.setStyle(backgroundColor,#00FF00) ;
extraTagsSelectionVBox.setStyle(borderStyle,solid) ;
extraTagsSelectionVBox.setStyle(borderThickness,3) ;
extraTagsSelectionVBox.setStyle(paddingLeft,5) ;
extraTagsSelectionVBox.setStyle(paddingRight,5) ;
extraTagsSelectionVBox.setStyle(paddingTop,5) ;
extraTagsSelectionVBox.setStyle(paddingBottom,5) ;

var b:Button = new Button() ;
b.label = Extra Tags [Close] ;
b.addEventListener(MouseEvent.CLICK,closeExtraTagsSelection) ;
extraTagsSelectionVBox.addChild(b) ;

//THIS ADDS the VBox in a parent container
//rawchildren...

mainContainerID.rawChildren.addChild(extraTagsSelectionVBox) ;

please can someone have a look?



[flexcoders] Re: programmatic vbox serious bug?

2008-10-20 Thread fotis.chatzinikos
Amazing ;-) It works now... Did not know the bit about passing correct
types to setstyles... Thought that i had to pass strings like when
using mxml...

Thanks!

PS: The amazing bit is because all properties that i was setting
seemed to be ok (debug via Alert)...



--- In flexcoders@yahoogroups.com, Michael Schmalle
[EMAIL PROTECTED] wrote:

 Hi,
 extraTagsSelectionVBox.setStyle(cornerRadius,10) ;
 extraTagsSelectionVBox.setStyle(backgroundColor,#00FF00) ;
 
 Set your styles with correct as3 Types;
 
 extraTagsSelectionVBox.setStyle(cornerRadius,10) ;
 extraTagsSelectionVBox.setStyle(backgroundColor, 0x00FF00) ;
 
 Mike
 
 On Mon, Oct 20, 2008 at 11:59 AM, fotis.chatzinikos 
 [EMAIL PROTECTED] wrote:
 
Hi, i am making a vbox via actionscript and set its width and height
  to 200x300... After adding a single button (or anything else) if i
  throw an alert with its width and height they seem correct
  but...scroll bars appear which can scroll the vbox as if it was 2000
  by 2000 pixels wide/high...
 
  The relevant code is:
 
  var extraTagsSelectionVBox:VBox = new VBox() ;
  extraTagsSelectionVBox.setStyle(cornerRadius,10) ;
  extraTagsSelectionVBox.setStyle(backgroundColor,#00FF00) ;
  extraTagsSelectionVBox.setStyle(borderStyle,solid) ;
  extraTagsSelectionVBox.setStyle(borderThickness,3) ;
  extraTagsSelectionVBox.setStyle(paddingLeft,5) ;
  extraTagsSelectionVBox.setStyle(paddingRight,5) ;
  extraTagsSelectionVBox.setStyle(paddingTop,5) ;
  extraTagsSelectionVBox.setStyle(paddingBottom,5) ;
 
  var b:Button = new Button() ;
  b.label = Extra Tags [Close] ;
  b.addEventListener(MouseEvent.CLICK,closeExtraTagsSelection) ;
  extraTagsSelectionVBox.addChild(b) ;
 
  //THIS ADDS the VBox in a parent container
  //rawchildren...
 
  mainContainerID.rawChildren.addChild(extraTagsSelectionVBox) ;
 
  please can someone have a look?
 
   
 
 
 
 
 -- 
 Teoti Graphix, LLC
 http://www.teotigraphix.com
 
 Teoti Graphix Blog
 http://www.blog.teotigraphix.com
 
 You can find more by solving the problem then by 'asking the question'.





[flexcoders] Re: Alert.show - Detect when closed from another mxml component

2008-10-20 Thread fotis.chatzinikos
Hi, if i understand correctly, the following doesit:

Alert.show(This is the alert text.,,4,null,alertClosed) ;

where alertClosed is an event listener...

Check the asdoc for the alert.show method ;-)


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

 I have an Alert.show() being called from a command class. I need to
 detect when this Alert is closed in another mxml component (as opposed
 to the command class). What's the best way to determine when it's been
 closed?  Does the event bubble? So far I have not been able to 'catch'
 it.
 
 Thanks for any and all replies.





[flexcoders] Re: Keeping a UIComponent out of the UpdateDisplayList

2008-10-20 Thread fotis.chatzinikos
Have you tried includeInLayout=false?

Fotis

--- In flexcoders@yahoogroups.com, Ralf Bokelberg
[EMAIL PROTECTED] wrote:

 includeInLayout=false maybe?
 
 On Mon, Oct 20, 2008 at 9:57 PM, flexaustin [EMAIL PROTECTED] wrote:
  Is it possible using MXML, not AS3 classes, to keep an item out of the
  updateDisplayList and/or the measure() method?
 
  I have an icon that is 30px by 30px and needs to remain centered
  within a component. But the catch is that if someone clicks the icon
  it will show another state where I add a graph underneath the icon.
  This works fine but what happens is that flex on the next
  updatedisplaylist and measure call it sees the new graph then centers
  on the icon + graph, which I don't want to happen. I don't want Flex
  to know it exists.
 
  Isn't there a property for?
 
 
 





[flexcoders] Re: Keeping a UIComponent out of the UpdateDisplayList

2008-10-20 Thread fotis.chatzinikos
Sorry had not seen that Ralf had replied the same think...

--- In flexcoders@yahoogroups.com, fotis.chatzinikos
[EMAIL PROTECTED] wrote:

 Have you tried includeInLayout=false?
 
 Fotis
 
 --- In flexcoders@yahoogroups.com, Ralf Bokelberg
 ralf.bokelberg@ wrote:
 
  includeInLayout=false maybe?
  
  On Mon, Oct 20, 2008 at 9:57 PM, flexaustin flexaustin@ wrote:
   Is it possible using MXML, not AS3 classes, to keep an item out
of the
   updateDisplayList and/or the measure() method?
  
   I have an icon that is 30px by 30px and needs to remain centered
   within a component. But the catch is that if someone clicks the icon
   it will show another state where I add a graph underneath the icon.
   This works fine but what happens is that flex on the next
   updatedisplaylist and measure call it sees the new graph then
centers
   on the icon + graph, which I don't want to happen. I don't want Flex
   to know it exists.
  
   Isn't there a property for?
  
  
  
 





[flexcoders] mouse wheel behaviour mxml and actionscript based components

2008-10-20 Thread fotis.chatzinikos
Hello all,

any ideas what is the expected behaviour of the mouse wheel in flex apps?

I have noticed that some mxml based trees scroll with the mouse wheel
while actionscript based ones do not.

A few minutes ago i also did a test with the main (root /
mainApplication) making bigger than 100% of the screen (lets assume
3000 pixels hight) so a scroll bar would appear. Can only scroll via
the bar, not the mouse wheel...

Has any of you any pointers, on this?

TIA,
Fotis



[flexcoders] Re: How Do I Programatically Make Flash Movie's Stage Expand Over its Container Div?

2008-10-19 Thread fotis.chatzinikos
It is usually done but setting the wmode to transparent (or simething
similar cannot remember - google for it) instead of opaque (flash
objects in an html page are rendered on top of everything else this way)

--- In flexcoders@yahoogroups.com, Paul Andrews [EMAIL PROTECTED] wrote:

 
 - Original Message - 
 From: jwebbsuccess [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Sunday, October 19, 2008 11:58 PM
 Subject: [flexcoders] How Do I Programatically Make Flash Movie's Stage 
 Expand Over its Container Div?
 
 
  http://www.futurewebstudios.com/clientspace/OMCC/ohpws_preview/index.p
  hp
 
  In the animation on the page above, notice the toy soldier spinning
  the candy cane.  The candy cane gets cut off by the bottom of the
  stage as it spins.  I'd like to grow the stage height to reveal the
  whole candy cane as it spins, then shink it back to it's starting
  height once the cane stops spinning.
 
  Does anyone know how to make the flash movie expand over the HTML div
  it is contained inside without changing the div's size?  I've seen
  Flash ads on websites like Yahoo.com and Huffingtonpost.com where
  mousing over the ad makes the ad expand to an arbitrary size without
  moving any of the page elements, as if the flash movie suddenly
  overlaps the rest of the page.  Once you mouseout, the movie returns
  to its original size/state inside the div.
 
 I think the movie is always at the full size, but has a transparent 
 background. Then you just mask the contents and change the size of the 
 mask..
 
 
 
  I've already got the code that fires an event when the toy solider
  starts and stops the spin.  Now I need the code to resize the
  animation without without moving any HTML elements.
 
 
 
 
  
 
  --
  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
 
 
 
 





[flexcoders] Re: z property in mx.core.UIComponent

2008-10-19 Thread fotis.chatzinikos
Not sure, but did you try to put two objects (ie buttons) in an semi-
overlapping area and change their z to see if they switch between
them? in 2d systems z (z-order) is the 'hight' of the object on the 2d
screen...ie which object hides what...

Check and let us know ;-)
--- In flexcoders@yahoogroups.com, gwangdesign [EMAIL PROTECTED] wrote:

 I was trying to set z property for a Button and expected to see it
 either get bigger or smaller. But despite my expectation, nothing
 seemed to happen (nor did the compiler complain)...
 
 So is this 3D thing only working with rotationX/Y/Z for UIComponent as
 someone mentioned a while ago?
 
 I was using gumbo sdk and targeting fp10. Thanks.





[flexcoders] Tilelist and lists in general minimum height is always 2 rendered children?

2008-10-19 Thread fotis.chatzinikos
It seems that a tilelist (or any list in general) with a percent
height = 100% does not respect this but automatically makes its
minimum height equal to the height of two display items (using a
custom renderer.

Is there a way to fix this?

Example:

Canvas[300x600] (width-height)
   canvas[100%x100]
   tilelist[100%x100%]  -- using custom item renderer with 100x100 item 

displays ok on a large browser window (600 height) showing 5-6 items
in the tile list

when the browser is resized the components jeight gets smaller and
smaller UNTIL 2 children as shown... THEN, the list stays @ 200 pixels
height and the parent canvas gets smaller, making the vertical scroll
bars broken (you can not see the bottom arrow and part of the bar)

If you need screenshots i would be happy to submit some...

Thanks,
Fotis