Re: [flexcoders] Record and play back sound on the client in a Flex app

2007-01-29 Thread JesterXL
No.  Flash Player needs Flash Media Server to be able to record audio  
from the Microphone class.  You could use a Windows Media Player  
hosted object to record, but that would end up being a SmartClient  
style app, not a web delivered one and would require the user have  
DirectX installed.


Influxis.com is really cheap; Mediatemple is only slightly more; both  
have FMS hosting in scales.


On Jan 29, 2007, at 4:45 PM, Christian Weibell wrote:


I’d like to build a flex-based app where users can click on a record  
button, talk into microphone, and then listen to what they recorded.  
I’d like to do it all client side so I don’t have to pay for  
expensive hosting or bandwidth. The audio never needs to come to a  
server it just needs to be persisted in memory on the client during  
the session. I would like to do it all in a web-delivered flex app  
without the user having to download and install any additional  
programs on their local machine. Is this possible?




Christian












Re: [flexcoders] Flex working directory

2007-01-28 Thread JesterXL

Check out the base attribute.

http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_04157

On Jan 28, 2007, at 12:52 PM, Christoph Guse wrote:

Hi List,

I try to integrate FLEX 2.0 applications into the Liferay Portal. At a
first glance this should not to difficult but as each of us knows the
details are difficult ;-)

Until now I tried to use FLEX applications which load their information
from XML files. In the FLEX application there is a relative path from
the MXML file to the resource files ( like XML files, Images etc. ). The
standalone FLEX application works like a charm. Then I put the FLEX
application into a JSR 168 portlet container by embedding the SWF file
into the view JSP file of the portlet. The SWF file can be loaded but
the working directory seems to be changed. All resource files can't be
loaded.

Is there a possibility to set a flashvar which tells the Flash Plugin
which is the base folder from which it should load resource files?

Regards,
Christoph

--  


Christoph Guse
Löhstraße 34
41747 Viersen
Tel. / VoIP 0 21 62 / 50 24 066
Mobil 01 51 / 17 80 74 84







Re: [flexcoders] site-wide adjustments - is it even possible?

2007-01-28 Thread JesterXL
In AS2/AS1, you used to be able to hack the prototype so all  
instances used a different method at runtime.


mx.containers.Container.scrollChildren = mx.containers.Container.old;
mx.containers.Container.scrollChildren = function()
{
// your stuff here
};

Unfortunately, I think prototype is read-only in AS3.

Can't you just replace the Container class that is in the frameworks  
directory with your own modified copy, compile a new SWC, and use  
that one instead of the main one?


On Jan 29, 2007, at 2:29 AM, Paul Solomon wrote:

I have created a smooth scroll component that extends a Container
class where I have overridden the scrollChildren() method. I came into
a project late and the code base is rather large at this point. There
are many many places in the code that needs this new component
shoe-horned in.

I have been asked to see if I can provide a site-wide adjustment to
the scrolling functionality that will apply the smooth scrolling style
without manually replacing every instance of the code that needs to be
touched. I am pretty sure that there is not a way after investigating
the framework and common sense, but I thought that I would ask this
board anyway, is it possible? Is there a compiler setting?






Re: [flexcoders] import * vs. import a.b.c performance?

2007-01-27 Thread JesterXL

import * == for slackers

import a.b.c == for pimp-tastic Flex coders

import * allows the compiler to look in the package to find the class  
it needs.  If you don't have *, you have to set it manually.  Both  
will result in the same amount of classes being exported into the  
SWF, so file size is the same.  Readability of the code, however,  
degrades because you don't know what classes are used in the class.


Caveat with the above is just because you use import doesn't mean the  
class is actually exported into the SWF, you have to actually use it,  
like in a variable defintion for example:


import mx.controls.Button;
var myC:Button;

So, it's presumtious to think just because an import is used that it  
IS IN FACT used... could be cruft.


Devil's Advocate?  No, but I'll play the role.

* is great when you are learning, and know ahead of time you are  
about to import a ton of stuff.  The same reason *, :Object, and  
other loose typing things are there (allowing opt-in strict typing as  
it were) allows you to code faster, and type less.





On Jan 27, 2007, at 9:07 PM, Mike Crowe wrote:

Hi folks,

Any downside of doing an:

import *
vs.
import com.adobe.cairngorm.control.CairngormEventDispatcher;

for example? Any reason not to do this?

TIA
Mike






Re: [flexcoders] Label vs. Text

2007-01-26 Thread JesterXL
Label is 1 line only, and truncates text that is longer than it is  
wide via Super becoming Su


Text allows multiline and word wrapping whereas Label does not.

On Jan 26, 2007, at 10:21 PM, Howard Fore wrote:

Can someone tell me what the difference is between the Label and Text  
controls?


--
Howard Fore, [EMAIL PROTECTED]
Gliddy glub gloopy / Nibby nabby noopy / La la la lo lo / Sabba sibby
sabba / Nooby abba nabba / Le le lo lo / Tooby ooby walla / Nooby abba
naba / Early morning singing song - Good Morning Starshine





Re: [flexcoders] Ogg Vorbis Tremor in AS3?

2007-01-25 Thread JesterXL
Andre managed to make a mod player.  Not sure what mods are, but they  
have that 8 bit feel.


http://lab.andre-michelle.com/8bitboy

More of his audio work here, maybe something along the lines of what  
you are looking for:


http://lab.andre-michelle.com/tag/audio/


On Jan 25, 2007, at 1:03 PM, Kevin Newman wrote:

Hello,

I was wondering what the feasibility of porting an integer based audio
decoder like Ogg Vorbis Tremor to Actionscript 3 is. Are there APIs in
place that would allow you to load a vorbis file, decode it and output
the audio? Does AVM2 have the horse power to pull off something like  
that?


Just curious. :-)

Kevin N.






Re: [flexcoders] Flowcharting/Drawing Components

2007-01-24 Thread JesterXL

http://www.gliffy.com/

Don't see a download link, doesn't look like they are sharing the love.

On Jan 24, 2007, at 12:08 PM, Jim Zafrani wrote:

Hello All,

I am just getting started with Flex and was wondering whether or not a
component existed that would allow me to draw a flowchart on a canvas
or a tree-like diagram. Are there any such components/libraries for
flex out there?

Thanks in advance,

Jim Zafrani






Re: [flexcoders] Simple question- Can I pass a data object in a method from flex 2 into an externally loaded flash 9 built swf?

2007-01-24 Thread JesterXL

With the appendum, Compiled in Flash 9 AND AS3, NOT AS2, then yes.

On Jan 24, 2007, at 1:57 PM, Manuel Saint-Victor wrote:


To clarify the question- If I'm building my shell in Flex 2 and a  
library of swf content to load developed in flash- and I load them in  
with the swfLoader component can I Pass objects in through the calls  
to methods on the SWFLoader.content.[whatevermethod] ??


It would seem logical to me that this would be straightforward if the  
child SWFs are compiled  and coded in Flash 9 but I just want 2 be  
certain before I stand behind the statement for sure.


Mani






Re: [flexcoders] ActionScript Mozill

2007-01-24 Thread JesterXL
Java made Ant, Ruby made Rake, Tamarin made...???  I dig Ant and all,  
but it'd be neat to have an AS3 alternative.


On Jan 24, 2007, at 6:48 PM, Jim Cheng wrote:

Abdul Qabiz wrote:

 What does it mean to me as ActionScript developer? I can use my  
existing

 skills and write code in other environment which uses Tamarin.

Absolutely. I've been working with the Tamarin source code quite a bit
recently and have found that the AVM+ run-time can be readily abused
for doing file format conversions and other such automation from the
command-line, as it already supports file I/O and binary data. Adobe's
Tamarin developers actually have one AS3 script that reformats an opcode
table into a source and header file in C.

Just out of the box, this functionality is perfect for writing little
AS3 scripts for manipulating and reformatting data, be they plain ASCII
or binary much like what people more often use Unix shell scripting or
Perl scripts. If you ever needed to do global regular expression search
and replaces across a lot of files and didn't know enough Perl, young
ActionScript developer, now is your chance.

And just wait until Tamarin gets hooked in as the scripting engine for
other bits of fun. Maybe someone should nudge Blizzard to let us script
World of Warcraft using AS3. The boys here would certainly love it ;)

Jim






[flexcoders] States Transitions Example

2007-01-23 Thread JesterXL
An example of using states and transitions in Flex 2 components.

http://www.jessewarden.com/archives/2007/01/flex_2_states_t.html




Re: [flexcoders] how do i pass variables to a swf???

2007-01-23 Thread JesterXL

Why not use a FlashVars tag?

On Jan 23, 2007, at 10:48 PM, Bjorn Schultheiss wrote:


LocalConnection is the go.

I would love to be able to use the query string to be able to set my  
LocalConnection.connection string at runtime.
At the moment where using a IFrame hack to pass the connection  
variable to the swf via External Interface to set the connection  
string at runtime



regards,

Bjorn


On 24/01/2007, at 2:37 PM, greg h wrote:


Hi mazarflex,

Two general scenarios:
1) swf-to-swf communication.
2) swf-to-outside world communication.

My sense from your question is that you are looking for solutions  
regarding swf-to-swf communication.  The following post by super  
Jesse gives you a good big picture on swf-to-swf communication  
options.  If Jesse's post addresses your request, you can research  
in the Flex 2 documentation the topics that he raises.  Here is the  
link to Jesse's post:

http://www.jessewarden.com/archives/2006/12/integrating_a_f.html

Since you also asked or any other way?? ... If you are interested  
in options regarding swf-to-outside world communication, the  
following link highlights options:
http://adobe.com/cfusion/webforums/forum/messageview.cfm? 
forumid=60catid=585threadid=1233665


Please post back as you have further questions :-)

hth,

g



On 1/23/07, mazarflex [EMAIL PROTECTED] wrote:
can anyone tell me how to pass a parameter in flex to a swf in a  
swfloader--or any other way?? say on my swf there is a label  
(Label1)


should it be something like this or am i was off...

mx:SWFLoader id=Swf1 source=CompLabel.swf?this.Label1.text='H/ 
W!' width=668 height=357 x=22 y=10 autoLoad=true/


OR maybe call a function...

flash code...
function traceMe(yourMessage:String):Void {
trace(yourMessage);
}

flex...mx:SWFLoader id=Swf1 source=CompLabel.swf? traceMe 
(Hello World!);

 width=668 height=357 x=22 y=10 autoLoad=true/

thanks so much i am new to flex but you guys are helping me learn  
super fast. thanks a bunch!!











Re: [flexcoders] Need ur help

2007-01-22 Thread JesterXL

What is 10.21.160.125:1935?  Is that a Flash Media Server?

On Jan 21, 2007, at 10:48 AM, sekar r wrote:


Dear Friends,

i am getting this error on runtime. [NetConnection object must be  
connected.].


i have attached image file for error.

plz help me for this.

this my mxml. file.

?xml version=1.0?
!-- controls\videodisplay\VideoDisplayCamera.mxml --
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
mx:Script
![CDATA[

// Define a variable of type Camera.
import flash.media.Camera;
public var cam:Camera;
[Bindable] private var con:NetConnection;
public var ns:NetStream;

private function initCamera():void {
   con = new NetConnection();
   con.objectEncoding = flash.net.ObjectEncoding.AMF0;
   //if(!con.connected)
   con.connect(rtmp://10.21.160.125:1935/liveApp);
//else
 //con.close();
   var ns:NetStream=new NetStream(con);
   // Initialize the variable.
 cam = Camera.getCamera();
myVid.attachCamera(cam)

ns.attachCamera(cam);
ns.publish(dhina,live);
 }
]]
/mx:Script

mx:VideoDisplay id=myVid
width=320 height=240
creationComplete=initCamera();/
/mx:Application


waiting for ur valuable reply
thanks in advance

sekar.

Any questions? Get answers on any topic at Yahoo! Answers. Try it now.

Looking for earth-friendly autos?
Browse Top Cars by Green Rating at Yahoo! Autos' Green Center.


error.JPG



Re: [flexcoders] Need ur help

2007-01-22 Thread JesterXL

No, that's good!

The problem is that you cannot pass a NetConnection to a NetStream  
that is not yet connection.  NetStream needs to have the  
NetConnection that is passed to it be connected.


You need to add an event listener to NetConnection, wait for onStatus  
to fire with NetConnection.Connect.Success, THEN create the  
NetStream.  Make sense?


On Jan 22, 2007, at 9:46 AM, sekar r wrote:


Yes this is ipaddress of my flash media server and port.

anything wrong this?

from
sekar





JesterXL [EMAIL PROTECTED] wrote:
What is 10.21.160.125:1935?  Is that a Flash Media Server?

On Jan 21, 2007, at 10:48 AM, sekar r wrote:


Dear Friends,

i am getting this error on runtime. [NetConnection object must be  
connected.].


i have attached image file for error.

plz help me for this.

this my mxml. file.

?xml version=1.0?
!-- controls\videodisplay\VideoDisplayCamera.mxml --
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
mx:Script
![CDATA[

// Define a variable of type Camera.
import flash.media.Camera;
public var cam:Camera;
[Bindable] private var con:NetConnection;
public var ns:NetStream;

private function initCamera():void {
   con = new NetConnection();
   con.objectEncoding = flash.net.ObjectEncoding.AMF0;
   //if(!con.connected)
   con.connect(rtmp://10.21.160.125:1935/liveApp);
//else
 //con.close();
   var ns:NetStream=new NetStream(con);
   // Initialize the variable.
 cam = Camera.getCamera();
myVid.attachCamera(cam)

ns.attachCamera(cam);
ns.publish(dhina,live);
 }
]]
/mx:Script

mx:VideoDisplay id=myVid
width=320 height=240
creationComplete=initCamera();/
/mx:Application


waiting for ur valuable reply
thanks in advance

sekar.

Any questions? Get answers on any topic at Yahoo! Answers. Try it now.

Looking for earth-friendly autos?
Browse Top Cars by Green Rating at Yahoo! Autos' Green Center.

error.JPG







Warm Regards
Sekar.R
i-Grandee Software Technologies (P) Ltd




Access over 1 million songs - Yahoo! Music Unlimited.





Re: [flexcoders] Please Help - Components, States, Transitions

2007-01-22 Thread JesterXL
Components should never know about other components, in this case,  
a View knowing about another View.  They should emit events about  
their state changing, or some other action being peformed.  In the  
case of a LoginForm, a user clicking the submit button.


Additionally, while states are really nice to have a comopnent  
represent different visual states, they shouldn't necessarely assume  
these states are exposed.  They technically are since the  
currentState function is public, so shouldn't assume others won't set  
it.  It's nicer if you provide a public method to change state  
internally, but for brevity's sake, let's just assume a parent will  
set it.


Here's the scenario:
- user submits signup1.mxml; it emits event
- MXML view that is hosting signup1.mxml responds to event, and  
changes state in child ops_v1.mxml

- user clicks cancel in ops_v1.mxml; it emits event
- MXML view that is hosting ops_v1.xml responds to event, and changes  
state in signup1.mxml


Rule of thumb: Views handle their own internal workings, and emit  
events about what happened.  Parent can respond how they so choose.   
Parent in this case being the MXML form that hosts the child (Canvas  
embedding your signup1.mxml for example).


Transitions are the change in one state to another.  State being the  
state tag that has a string ID name in an MXML / AS component.   
Transition tags have a fromState and toState properties that are the  
names of the states you wish to transition between.


In the case of a Login component that has, say main, loggingIn,  
error, and success.  You want to disable the form fields when the  
user hits submit, and goes to the loggingIn state.  You could easily  
do this by simply setting all fields enabled property to false.  That  
looks boring, and is quite abrupt to the user.  Why not fade + blur  
while placing a progress bar atop that waits for the server to tell  
it success or false?


You can do this by making a transition tag that starts with the  
fromState being main and the toState being loggingIn.  Whenever  
your loginform has it's currentState change from main to  
loggingIn, the transition will be triggered autoatically.  Within  
the transition tag is where you can create animations, changes in  
form properties, styles, etc.  Additionally, if your first attempt at  
creating a cool effect fails, you can simply delete the transition  
tag, and all code + states remain intact; transitions are only  
coupled to state names; that's it.  If you don't have transitions,  
state changes are instaneous.


Some people disagree with me, but I highly recommend all View's start  
with a main state that is the default currentState value so you can  
easily add more states later; either based off the main state or some  
other diffrent state.  FlexBuilder the IDE is really helpful in  
starting these for you, although, the state tags are usually put at  
the top of your MXML and need to be moved lower manually.


On Jan 22, 2007, at 12:46 PM, David Terry wrote:


Hello,

First, let me apologize.  I am very, very new to Flex 2   
ActionScript 3, and the learning process has been very slow going and  
painful.


I truly do not understand the relationship between components,  
states, and transitions.


I have a main application page (ops_v1.mxml) with 2 custom components  
- login.mxml and signup1.mxml.  I have figured out how to hide and  
show the components depending on states in the ops_v1.mxml page.  But  
here is where I am completely lost.  When someone clicks the register  
button within the login custom component how do I change the state on  
the ops_v1.mxml page?  Conversely…  How do I change back to the login  
state when someone clicks the cancel button on the register custom  
component?


Next question.  After figuring out how to change states; how do you  
apply a transition between those 2 custom controls?  I am guessing I  
am really transitioning between the states, but I am lost here also.


This is a really big problem for me.  I have an application I need to  
make, but I am totally stuck here.  The application will have many  
different custom controls and this is my first big step in  
understanding how integration between the components will work.


Enclosed is the code for each item mentioned above.

Thank you for all your help in advance.

Best regards,
David T.

code.zip



code.zip



Re: [flexcoders] Please Help - Components, States, Transitions

2007-01-22 Thread JesterXL
Technically, I reckon it could either via parent.currentState, or  
parentDocument.currentState or something... but that's horrible OOP  
practice.  You don't let your children in real life control you; code  
should be no different.


You can use the transition tag in any Flex component that extends  
UIComponent.  All GUI classes of the Flex framework do, thus if your  
classes extend them, you can too.


For examples of state usage, which unfortunately is very verbose, go  
here:


http://www.jessewarden.com/flex/flash_flex/source/srcview/

And look for com.jxl.downloads.views.DownloadsPanel.mxml

I'm sure there are way more simpler examles on the interweb from  
poeple on this list.


On Jan 22, 2007, at 1:49 PM, David Terry wrote:


Wow!  Remember I said I was a beginner.  I'm sure this is great  
information JesterXL, but it is WAY over my head for now.


So, a custom component on the 'parent' can not change the 'parent  
state'?


You can not transition between custom components?

How would I code this?

~David T.



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

Sent: Monday, January 22, 2007 12:06 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Please Help - Components, States,   
Transitions


Components should never know about other components, in this case,  
a View knowing about another View.  They should emit events about  
their state changing, or some other action being peformed.  In the  
case of a LoginForm, a user clicking the submit button.



Additionally, while states are really nice to have a comopnent  
represent different visual states, they shouldn't necessarely assume  
these states are exposed.  They technically are since the  
currentState function is public, so shouldn't assume others won't set  
it.  It's nicer if you provide a public method to change state  
internally, but for brevity's sake, let's just assume a parent will  
set it.


Here's the scenario:
- user submits signup1.mxml; it emits event
- MXML view that is hosting signup1.mxml responds to event, and  
changes state in child ops_v1.mxml

- user clicks cancel in ops_v1.mxml; it emits event
- MXML view that is hosting ops_v1.xml responds to event, and changes  
state in signup1.mxml


Rule of thumb: Views handle their own internal workings, and emit  
events about what happened.  Parent can respond how they so choose.   
Parent in this case being the MXML form that hosts the child (Canvas  
embedding your signup1.mxml for example).


Transitions are the change in one state to another.  State being the  
state tag that has a string ID name in an MXML / AS component.   
Transition tags have a fromState and toState properties that are the  
names of the states you wish to transition between.


In the case of a Login component that has, say main, loggingIn,  
error, and success.  You want to disable the form fields when the  
user hits submit, and goes to the loggingIn state.  You could easily  
do this by simply setting all fields enabled property to false.  That  
looks boring, and is quite abrupt to the user.  Why not fade + blur  
while placing a progress bar atop that waits for the server to tell  
it success or false?


You can do this by making a transition tag that starts with the  
fromState being main and the toState being loggingIn.  Whenever  
your loginform has it's currentState change from main to  
loggingIn, the transition will be triggered autoatically.  Within  
the transition tag is where you can create animations, changes in  
form properties, styles, etc.  Additionally, if your first attempt at  
creating a cool effect fails, you can simply delete the transition  
tag, and all code + states remain intact; transitions are only  
coupled to state names; that's it.  If you don't have transitions,  
state changes are instaneous.


Some people disagree with me, but I highly recommend all View's start  
with a main state that is the default currentState value so you can  
easily add more states later; either based off the main state or some  
other diffrent state.  FlexBuilder the IDE is really helpful in  
starting these for you, although, the state tags are usually put at  
the top of your MXML and need to be moved lower manually.


On Jan 22, 2007, at 12:46 PM, David Terry wrote:


Hello,

First, let me apologize.  I am very, very new to Flex 2   
ActionScript 3, and the learning process has been very slow going and  
painful.


I truly do not understand the relationship between components,  
states, and transitions.


I have a main application page (ops_v1.mxml) with 2 custom components  
- login.mxml and signup1.mxml.  I have figured out how to hide and  
show the components depending on states in the ops_v1.mxml page.  But  
here is where I am completely lost.  When someone clicks the register  
button within the login custom component how do I change the state on  
the ops_v1.mxml page?  Conversely…  How do I change back to the login  
state

Re: [flexcoders] YouTube and LocalConnection

2007-01-22 Thread JesterXL

Make:
- Proxy.swf that loads the YouTube SWF's and interacts with them in  
Flash 8

- A class that talks to Proxy.swf via LocalConnection

While you don't have access to SWF's lower than 9, you can make your  
own SWF that DOES have a LocalConnection to talk to.  You then use  
this SWF as your middle-man to YouTube.swf's.


Just because you don't have access to the knowledge of knowing  
Japanese doesn't mean you can't use your friend who does know it to  
hit on the hottie-mo-hottie from Japan at the bar.  You dig?


On Jan 22, 2007, at 10:26 PM, Ryan Stewart wrote:


Hi All,



I'm loading YouTube videos in my application using SWFLoader (I don't  
want to grab the FLV directly so I have to use SWF). The problem is  
that while the video plays, when I unload the SWF, the sound keeps  
playing. Calling AS3 functions like stopAll(); does nothing, so I'm  
assuming I need to call stopAllSounds(); directly on the YouTube SWF.




In researching, I know I can use LocalConnection to talk to VM2 SWFs,  
but all of the examples I've seen are ones in which I would have  
access to the code in the VM2 SWF, which I don't. I'm not sure I  
totally understand how LocalConnection works, so I may be missing  
something, but I thought I'd ping the list and see if anyone could  
point me in the right direction. I'm also not a huge fan of using  
External interface, so that's my last resort right now.




Thanks in advance,



=Ryan






Re: [flexcoders] Using Flash For Authoring Flex 2 Content -- A Definitive Guide?

2007-01-20 Thread JesterXL
I know it's my blog, but this particular entry wasn't cited here, so  
just in case:


http://www.jessewarden.com/archives/2006/12/integrating_a_f.html

On Jan 19, 2007, at 5:22 PM, Russell Sprague wrote:

Greg, you are right, there doesn't seem to be much about using Flash  
and Flex together.  I read a lot of Flex/Flash blogs, and Jesse's  
post was the first I had seen of any crossover.
I personally like to have my How Tos spoon fed to me, and coming  
from a Designer gone Programmer background, it would be nice to see  
more Flash style development  for Flex.


I know they are to different products, but I personally can't wait  
for Flash 9's release,  The Flex docs are a little to programmer  
oriented for my taste..


Russ


greg h wrote:

Thank you Jesse Warden:
Flash 9 Button in Flex 2
http://www.jessewarden.com/archives/2006/08/flash_9_button.html

Now I know how grateful Flash developers were when Colin Moock  
first published ADG (ActionScript: The Definitive Guide).


This morning I started reading the post by Jesse's that I have  
linked to above.  Wow!


Jesse's post has one thing after another that I have not seen in  
any other source.  And it leaves me wondering, Jesse, where did  
you get all this from?  If this was substantially all from just  
doin' it and doping it out, thank you.  But regardless, thank you  
for posting the link above (and so many others).


Two questions for this list:
1) Can anyone provide other links to blog posts, articles, etc that  
detail how to use Flash for authoring Flex 2 content?  And I mean  
Flash authoring content that integrates with Flex 2 content (i.e.  
AS3, not relying on LocalConnection or ExternalInterface)  (And  
sources other than Jesse's blog ;-)


I know there was the following thread here on FlexCoders:
http://tech.groups.yahoo.com/group/flexcoders/message/55461

2) But more important, links into Adobe.com (including Livedocs)?

This second question is my real question.

The Flash Professional 9 ActionScript 3.0 Preview has been public  
for over 6 months.  And there have been demos of Flash CS3 for  
months.  But so far I do not see anyone from Adobe focusing on  
Flash Authoring for Flex 2 using AS3.


I am not saying that it is not there, just that I am not seeing  
it.  And I keep my eyes open for it all the time.


The scariest thing for me, is that Flash CS3 is looking like it  
will integrate better with Illustrator than with Flex 2.


Please excuse me if I seem like I am asking for clearly documented  
workflows and processes.  But both Flash and Flex 2 are:  a)  
commercial products; b) owned by Adobe; c) do integrate.


Yes, I would like the How Tos handed to me on a silver platter.   
In Adobe docs.  On Devnet.  etc.


Thanks,

g







Re: [flexcoders] New Component Released - Animated Gif Loader

2007-01-19 Thread JesterXL

OMFG, are you kidding me!?!?!?!

http://www.ytmnd.com

Its a blast!  Make sure to hit the Hall of Fame first; lot less  
confusing that way.


On Jan 19, 2007, at 1:36 AM, Brendan Meutzner wrote:

Sorry, but I've gotta ask but what the heck are people still using  
animated GIFs for?  I kinda thought it was so yesterday...?  You  
know, the waving flag, the (sorry Doug... I saw your demo) rotating  
earth, etc...


Brendan




On 1/18/07, JesterXL [EMAIL PROTECTED] wrote:
I musta read like 3 C classes that convert GIF's to SWF's only to  
realize I'd have to take years to learn C JUST to get Flash Player to  
support this in converting the C to AS3... and now you've coded it,  
HOT!!!




On Jan 18, 2007, at 5:20 PM, dougmccune wrote:

[I apologize if this is a double post, had a timeout when I first
tried posting.]

I just released a new commercial component for Flex that loads and
plays animated GIFs. This has been brought up a few times here on
flexcoders and flexcomponents. Now there's no need to hack together
some weird IFrame solution, or figure out how to do the server-side
conversion of all your GIFs. You can try the demo version for free and
the commercial version is $50.

Here's the description I posted on Flex Exchange:

The AnimatedGifLoader loads and plays animated GIF files. This
component adds support for animated GIFs, a feature that has been
lacking from Flex.

This works just like the SWFLoader component from the Flex Framework.
Use it inline in your MXML code or by using Actionscript. This
component supports everything the SWFLoader component does, with a few
additions.

New methods: play(), pause()
New properties: autoPlay, playing, currentFrame, delay

Test it out with your own animated GIFs to see how it works by
clicking on the sample URL.

I've written up the full details on my blog. There are some examples
and you can even test out any GIF you want by uploading it and seeing
it loaded by the component instantly:
http://dougmccune.com/blog/ 2007/01/17/animatedgifloader/

Here's the Flex Exchange posting:
http://www.adobe.com/cfusion/ exchange/index.cfm? 
view=sn610#view=sn611viewName=Flex%20Extension  
loc=en_usauthorid=61303741page=0scrollPos=0subcatid=0snid=sn611 i 
temnumber=0extid=1103970catid=0


Feedback is always appreciated!

Thanks,
Doug McCune










Re: [flexcoders] New Component Released - Animated Gif Loader

2007-01-18 Thread JesterXL
I musta read like 3 C classes that convert GIF's to SWF's only to  
realize I'd have to take years to learn C JUST to get Flash Player to  
support this in converting the C to AS3... and now you've coded it,  
HOT!!!



On Jan 18, 2007, at 5:20 PM, dougmccune wrote:

[I apologize if this is a double post, had a timeout when I first
tried posting.]

I just released a new commercial component for Flex that loads and
plays animated GIFs. This has been brought up a few times here on
flexcoders and flexcomponents. Now there's no need to hack together
some weird IFrame solution, or figure out how to do the server-side
conversion of all your GIFs. You can try the demo version for free and
the commercial version is $50.

Here's the description I posted on Flex Exchange:

The AnimatedGifLoader loads and plays animated GIF files. This
component adds support for animated GIFs, a feature that has been
lacking from Flex.

This works just like the SWFLoader component from the Flex Framework.
Use it inline in your MXML code or by using Actionscript. This
component supports everything the SWFLoader component does, with a few
additions.

New methods: play(), pause()
New properties: autoPlay, playing, currentFrame, delay

Test it out with your own animated GIFs to see how it works by
clicking on the sample URL.

I've written up the full details on my blog. There are some examples
and you can even test out any GIF you want by uploading it and seeing
it loaded by the component instantly:
http://dougmccune.com/blog/2007/01/17/animatedgifloader/

Here's the Flex Exchange posting:
http://www.adobe.com/cfusion/exchange/index.cfm? 
view=sn610#view=sn611viewName=Flex% 
20Extensionloc=en_usauthorid=61303741page=0scrollPos=0subcatid=0sn 
id=sn611itemnumber=0extid=1103970catid=0


Feedback is always appreciated!

Thanks,
Doug McCune






Re: [flexcoders] pass vars to AVM1Movie

2007-01-17 Thread JesterXL
 JavaScript out the values via ExternalInterface, and have  
JavaScript send in the value to the AVM1Movie (assuming Flash 8 which  
also supports ExternalInterface).



On Jan 17, 2007, at 7:35 PM, Bjorn Schultheiss wrote:

Hey,

I'm loading AVM1 swfs into my flex app via SWFLoader.
I want to be able to pass in a unique connection id from flex to
flash to use for my localconnection.

Any solutions?

Bjorn





Re: [flexcoders] movie clip/sprite instances and items in repeaters

2007-01-17 Thread JesterXL
Answering your last question first.  MovieClips and Sprites are not  
allowed willy nilly in Flex.  The Flex framework allows UIComponents  
only.  If you control the UIComponent, you are welcome to put what  
you want in it.  Otherwise, you'll get an exception if you try to put  
a Sprite or MovieClip inside a Canvas for example.  So, you don't  
access MovieClip's and sprites that are in MXML.  AS3 allows only  
certain access to certain things; this isn't the benevolent AS2 / AS1  
of yore that had no rules.


The Image class extends SWFLoader, and SWFLoader does some nice  
abstraction of stuff that's loaded in it.


So, image.content could be:
- a loader
- an internal class
- a loaded asset (SWF, JPG, etc.)

If it's a Loader, you'd go:

image.content.content, and cast that to what it is; in your case, I  
think Bitmap.


The only time Image.content isn't a loader is if you pass it a class  
name (usually).


On Jan 17, 2007, at 5:09 PM, Merrill, Jason wrote:


Been trying to post this all day, but no luck.

How do I access the sprite/movieClip instance (not sure which it is,  
since this is in the image class) of an image loaded into image tag  
and then pass that to an actionscript method?



Basically, I have a repeater that loads dynamic images (based on XML  
data) into an mx:Image tag. That works fine. I also have a  
Reflection class (currently porting it from AS 2.0 to 3.0) which  
applys a reflection effect to a movie clip's bitmap data, which also  
works fine in plain old Flash. However in Flex, I know how to import  
the class, but not how to tie the rendering of the different dynamic  
images in my MXML with the Reflection class. I read the help docs on  
mx.controls.image, and it seems like the image might be loaded into a  
sprite instance, but how to I send that sprite instance to my  
actionscript method right after the image loads?



Any ideas? Also, in general, how to do you access sprites or movie  
clips on the stage created with MXML from Actionscript?



Jason Merrill
Bank of America
Learning  Organizational Effectiveness










Re: [flexcoders] pass vars to AVM1Movie

2007-01-17 Thread JesterXL

1. code your SWF's in Flash 9 using AS3; these problems disappear.
2. If it's a number, simply have your SWF register for a  
Stage.onResize, and have Flex set the width of the SWF.  The width  
can be the number.  Naturally, this is a SWFInt (just made that up)  
so it can only be between -2880 and 2880 in size, hehe.  Maybe bigger  
but that's technically illegal.


There were a ton of blog entries on this subject, and most rave about  
LocalConnection and JavaScript.  Both solutions suck, but not much  
you can really do about it.  If both are from the same domain...  
maybe...


3. write to a local SharedObject, have other SWF poll it... :: shrugs ::



On Jan 18, 2007, at 12:20 AM, Bjorn Schultheiss wrote:


Jxl,

Is there any other way without round tripping through the browser?

I have multiple swfs loaded in my flex app simultaneously,
can i pass the param to a specific swf via externalInterface?


Regards,

Bjorn


On 18/01/2007, at 4:08 PM, JesterXL wrote:

 JavaScript out the values via ExternalInterface, and have  
JavaScript send in the value to the AVM1Movie (assuming Flash 8  
which also supports ExternalInterface).



On Jan 17, 2007, at 7:35 PM, Bjorn Schultheiss wrote:

Hey,

I'm loading AVM1 swfs into my flex app via SWFLoader.
I want to be able to pass in a unique connection id from flex to
flash to use for my localconnection.

Any solutions?

Bjorn










Re: [flexcoders] Scrollbars

2006-08-01 Thread JesterXL
If maxVerticalPosition  1?  Guessing, can't confirm currently.

- Original Message - 
From: chrislee943 [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, August 01, 2006 4:54 AM
Subject: [flexcoders] Scrollbars


Hi all,
Is there any solutions to determine if scrollbar showing at the
component or not?

Thanks,
With best regards
Dmitry





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



 




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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Re: Simple way to do Please wait... type window

2006-08-01 Thread JesterXL





This is easier in 2. You just make a state 
that either disables the button in question via a SetPropertyAction or simply 
removes it and replaces it with a label of "Please wait...".

- Original Message - 
From: Douglas 
Knudsen 
To: flexcoders@yahoogroups.com 
Sent: Tuesday, August 01, 2006 9:00 AM
Subject: Re: [flexcoders] Re: Simple way to do "Please wait..." type 
window
I'm liking Jesse 'JW' Wardens's suggestion. (If you had a 
dollar for everyone that noticed that, eh?) But I've been playing with 
this. I set a bool flag in my model called inProgress. When a 
command runs its execute() method, I set inProgress = true. in the 
onresult() and onfault() I set inProgress = false. Now anywhere I have say 
a button I don't want the user to click I use enabled="{ 
!pathtomaodel.inProgress }" OR in the event handler for a button I usea 
conditional around inProgress. Why do we need such a beast? 
Something I ran into with a app I built in 1.5. user mashes save. 
Events fire and server side code is called, yeehaw. User then mashes save 
again BEFORE the above save event is complete. This can really fubar up 
stuff. Also note, many web users actually double click buttons in a web 
interface still. DK
On 8/1/06, Stefan 
Schmalhaus [EMAIL PROTECTED] wrote:
--- 
  In flexcoders@yahoogroups.com, 
  "JesterXL" [EMAIL PROTECTED] wrote: The spinning watch is 
  what we use 100% of the time; that's the default cursor that still 
  allows you to click around. Is there a way to make the busy cursor 
  modal so that the user can'tuse it to click 
  around?Stefan--Flexcoders Mailing 
  ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
  Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
  Groups Links * To visit your group on the web, go 
  to:http://groups.yahoo.com/group/flexcoders/* 
  To unsubscribe from this group, send an email to: 
  [EMAIL PROTECTED]* 
  Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/ 
  -- Douglas 
Knudsenhttp://www.cubicleman.comthis is my 
signature, like it?  
__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] PopUp from within a class

2006-08-01 Thread JesterXL





Don't create the class. The PopUpManager 
creates it for you.

var tw = PopUpManager.createPopUp ( 
Application.application as DisplayObject, TitleWindow, true);
var txt:Label = new Label();
txt.text = "This is a test.";
tw.addChild(txt);

- Original Message - 
From: Doug Arthur 

To: flexcoders@yahoogroups.com 
Sent: Tuesday, August 01, 2006 9:09 AM
Subject: Re: [flexcoders] PopUp from within a class

Yes, I've dealt with PopUp's plenty of times, but the problem is while I'm 
within a class object, it will not let me reference the document. I've tried 
using "this", and it does not work. this.parent is null. The only thing I've 
found to work now is the following: 

var tw:TitleWindow = 
new 
TitleWindow();tw.title = 'Test 
Window...';var txt:Label = new Label();txt.text = 'THIS IS A TEST';tw.addChild(txt);PopUpManager.addPopUp(tw, 
Application.application as DisplayObject, true);

I'm not sure if there is any other way though...?

Thanks!

On 7/31/06, Martina 
Smith [EMAIL PROTECTED] 
wrote: 

  
  
  
  
  
  
  Hi Doug,
  
  You can make use of PopupManager Class to create a popup 
  dynamically.
  
  Regards,
  Martina
  Doug Arthur [EMAIL PROTECTED] 
  wrote:
  
  
  
  


Does anyone know how to create a popup from within a class? I can't 
seem to reference anything of typeDisplayObject such as .parent and so 
on... I've even tried instantiating SystemManager.getSWFRoot(this), and 
other things with SystemManager... Nothing is working. 

Any ideas? Thanks!

  
  
  
  Here's a new way to find what you're looking for - Yahoo! Answers 
  
  
   
__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] Announcing SeeFusion 4!

2006-08-01 Thread JesterXL





I'm not a server geek, but "The Live Demo 
previously ran under a constant load for 72 consecutive days, during which time 
SeeFusion processed 833,294,343 queries and 6,265,371 requests." sounds bad 
ass.

- Original Message - 
From: Shannon Hicks 
To: flexcoders@yahoogroups.com 
Sent: Tuesday, August 01, 2006 9:37 AM
Subject: [flexcoders] Announcing SeeFusion 4!

Hey 
everyone,

I'll keep the plug 
short  sweet. We've released SeeFusion 4. The #1 improvement is the new 
Flex 2 interface, so go have a look.

http://www.seefusion.com/

For those that don't 
know what SeeFusion does, it basically allows you to monitor what's going on 
inyour ColdFusion Server (or any J2EE server, for that matter)in 
real-time. Very handy for performance tuning and troubleshooting. It does so 
much more, but I'll let y'all just go to the site if you're 
interested.

Shan 
--No virus found in this outgoing message.Checked by AVG 
Free Edition.Version: 7.1.394 / Virus Database: 268.10.5/404 - Release Date: 
7/31/2006
__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] More embedded font fun...

2006-08-01 Thread JesterXL





Are you sure the font is 8 point? What 
happens if you don't set the font size? What happens if you set it to 
7/9/10/11/12/14?

- Original Message - 
From: Shannon Hicks 
To: flexcoders@yahoogroups.com 
Sent: Tuesday, August 01, 2006 12:55 PM
Subject: [flexcoders] More embedded font fun...


I'm trying to 
usepixel fonts with flex 2, but keep 
getting strange results... See this URL:

http://flex.work.iotashan.com/flexmousery/flexMousery.html

Log in, click on the 
Pedigree tab. It's obvious which fonts are supposed tobe the embedded ones.

You can 
right-click to view source, and tell me what I'm doing wrong. The file in question would be 
/flexComponents/pedigreeCellSmall.mxml

Shan 
--No virus found in this outgoing message.Checked by AVG 
Free Edition.Version: 7.1.394 / Virus Database: 268.10.5/404 - Release Date: 
7/31/2006
__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] I need a ColorPicker dataGrid Renderer

2006-08-01 Thread JesterXL




http://kss.korax.ru/flex/cp/index.html

- Original Message - 
From: John Buhl 
To: flexcoders@yahoogroups.com 
Sent: Tuesday, August 01, 2006 12:02 PM
Subject: [flexcoders] I need a ColorPicker dataGrid 
Renderer

Hello,
I'm looking for a colorPicker renderer for a dataGrid. Has anyone 
successfully built one of these you could share?
THanks
John 
__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] Embedded Fonts Cause Issue with DataGrid Headers

2006-07-31 Thread JesterXL





Of course; Arial and/or Verdana can be measured 
reasonably so at a specific size. If I were in a hurry to get some 
technical data thing to work, the last thing I'd worry about is supporting 
Papyrus at 36 point size

There are already significant challenges measuring 
fonts to includ them in sizing, and to do so efficiently, ecspecially with 
something as text intensive as the DataGrid.

That said, you first.

- Original Message - 
From: Brendan Meutzner 

To: flexcoders@yahoogroups.com 
Sent: Monday, July 31, 2006 1:22 PM
Subject: Re: [flexcoders] Embedded Fonts Cause Issue with DataGrid 
Headers
Hey Jesse,I'll try to build up my stamina to have a look 
tonight again... however, does the fact that it only affects a particular font 
size make any sense? Then again, I guess the issue doesn't make sense from 
the start... Brendan
On 7/30/06, JesterXL 
[EMAIL PROTECTED] 
wrote:

  
  
  
  
  
  
  Betcha' the measure function is having issues 
  measure the embedded font. Are you using FlashType or just the regular 
  way?
  
  If you're feeling brave, go look in DataGrid.as, 
  and tell us if anything looks like its measuring text.
  
  
  - 
  Original Message - 
  From: 
  Brendan Meutzner 
  To: flexcoders@yahoogroups.com 
  Sent: Monday, July 31, 2006 1:29 AM
  Subject: [flexcoders] Embedded Fonts Cause Issue with DataGrid 
  Headers
  Just wanted to see if the Adobe 
  folks were aware of the issue with Embedded fonts and DataGrids... there was 
  an earlier post on this as well, but nobody clarified if this was a known 
  bug:http://groups.yahoo.com/group/flexcoders/message/44067;_ylc=X3oDMTM3Y3BlaHMwBF9TAzk3MzU5NzE0BGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTYwMDAwNzIwNwRtc2dJZAM0NDA2NwRzZWMDZnRyBHNsawN2dHBjBHN0aW1lAzExNTM0MTA3MTUEdHBjSWQDNDQwNjc-Sure 
  enough, changing the font size to anything but 12pt solved the issue, and I 
  also found that setting the headerStyleName seperate from the row styles in 
  the DataGrid (we're using itemRenderers, and setting the Label font styleName 
  inside) worked to fix the problem as well... it seems to only affect the 
  datagrid if nesting the DataGrid instance inside another component which has 
  the style applied. Thoughts?Brendan
  
   
__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] Image Loading causes Flash slowness and high cpu utilization

2006-07-31 Thread JesterXL
How are you loading it?  Got some example code?

- Original Message - 
From: Eric Raymond [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, July 31, 2006 7:02 PM
Subject: [flexcoders] Image Loading causes Flash slowness and high cpu 
utilization


We have a Flex application which loads many copies of an image on the
fly.  In some situations the image loading seems to cause Flash to
slow down (and use more CPU).

The slowdown stays with Flash beyond the loading of the image.  We can
wait  a hour and the load is still high.  And each time this happens
the player gets a little bit slower and never improves until the
browser is restarted.  This does not appear to be a memory utilization
issue.

One hypothesis is that there is some type of background element (a
layer on the timeline) which is responsible for loading the image, and
somehow this gets hung up and doesn't get cleaned up.  Get enough of
these and the load goes up.

Does this ring a bell with anyone.  Is this a known problem?

It may be related to other events happening at the same time (e.g.,
moving the image before it is loaded, or loading a new image before
the old one is loaded).  The longer it takes to load the image (e.g.,
local web server versus remote), the more likely the problem.

This is with Flex 1.5.  This affects all versions of flash on all
platforms we have tested.








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







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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Re: Simple way to do Please wait... type window

2006-07-31 Thread JesterXL
One way I did it was making a Singleton class that popups up a small 
TitleWindow.  This TitleWindow has a ProgressBar in it.  The ProgressBar's 
indeterminate is bound to the visibility (you don't want it playing while 
the window is invisible; takes up resources).  You can then do:

WaitWindow.showProgress(Loading...);

Inside, it'll create a popup if none exists, and put the text in there. 
It's modal by default.  You can then later go:

WaitWindow.remove();

And if one exists, it'll remove it.  Subsequent calls to showProgress merely 
update the text.  You can use this for changed commands.




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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Is it possible to do this in Flex? (quick help needed, please!!!)

2006-07-31 Thread JesterXL
Anything is possible at Zombo.com.

Yes, I actually did this in the past and ran into some serious security 
sandbox issues.  Flex can load other Flex apps into it.  The Flash Player 
has the capability to load multiple SWF's into their own security sandbox 
domains; some are open, others are restricted.

If I were to do it again, I'd get something ELSE to get my SWF, like an EXE 
to open an HTTP connection, download the latest SWF, then load it up, maybe 
in it's own EXE shell.  Apollo, Adobe's endeavor to make occasionally 
connected applications work offline, would help this.  For now, I'd highly 
suggest NOT using the Loader unless you can confirm your prototype 
application works fine when it's being loaded into another Flex app.  Zinc 
2.5 is currently the only 3rd party projector maker I know of capable 
providing extra help in this area.


- Original Message - 
From: Larry Liang [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, July 31, 2006 10:00 PM
Subject: [flexcoders] Is it possible to do this in Flex? (quick help needed, 
please!!!)


Hi All,

My company is currently evaluating the possibility of using flex as a
very large project development tool. I've got a question from my
boss. Please help me.

Can we develop an application that runs on desktop(can be inside the
standalong flash player). When the app first starts, it downloads all
the sub components/movies needed onto local hard disk and then runs
from there. After the first time, every time the app starts, it will
automatically check the latest version of the components/movies on
the server, and if there is a newer version, it downloads the newer
one and replace the old one on local machine.

I think what I need basically is somthing like what Goowy desktop
version does.

If it's possible, could you please give me some idea on how to do it.

Thanks,

Larry








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







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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Re: Simple way to do Please wait... type window

2006-07-31 Thread JesterXL
Depends.  The spinning watch is what we use 100% of the time; that's the 
default cursor that still allows you to click around.  However, for some 
interfaces where you DON'T want the user to click anything and need to force 
them to wait, modality works great; it's why they gave us modality, for 
those use cases.

Besides, it's 1 line of code:

WaitWindow.showProgress(Loading..., false);

Both Flex 1.5  Flex 2 have their PopUpManager's createPopUp method default 
to false for modality.  Flex 1.5 actually came with a cursor you could use 
that was the cursor + hourglass.  I always wished they made that the default 
cursor because the majority of the time, most of the HTTPService / 
RemoteObject calls were quick one shots that still allowed the user to click 
around, and this a cursor was an appropriate thing to show.



- Original Message - 
From: Paul Andrews [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, July 31, 2006 11:06 PM
Subject: Re: [flexcoders] Re: Simple way to do Please wait... type window


- Original Message - 
From: JesterXL [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, August 01, 2006 2:26 AM
Subject: Re: [flexcoders] Re: Simple way to do Please wait... type window


 One way I did it was making a Singleton class that popups up a small
 TitleWindow.  This TitleWindow has a ProgressBar in it.  The ProgressBar's
 indeterminate is bound to the visibility (you don't want it playing while
 the window is invisible; takes up resources).  You can then do:

 WaitWindow.showProgress(Loading...);

 Inside, it'll create a popup if none exists, and put the text in there.
 It's modal by default.  You can then later go:

 WaitWindow.remove();

 And if one exists, it'll remove it.  Subsequent calls to showProgress
 merely
 update the text.  You can use this for changed commands.

Are modal windows really a good way to go with this? It seems to me to be a
step backward when you are stopping the user from doing anything whilst data
is loading. What happens if the load is particularly slow, fails, or was
accidentally initiated and the user changes their mind?

Seems to me that modal progress windows just go completely against the idea
of an asynchronous event driven architecture.

Paul

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












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








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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] PopUp from within a class

2006-07-31 Thread JesterXL





import mx.managers.PopUpManager;

PopUpManager.createPopUp(this, MyWindow, 
false);

???

- Original Message - 
From: Doug Arthur 

To: flexcoders@yahoogroups.com 
Sent: Monday, July 31, 2006 11:21 PM
Subject: [flexcoders] PopUp from within a class

Does anyone know how to create a popup from within a class? I can't seem to 
reference anything of typeDisplayObject such as .parent and so on... I've 
even tried instantiating SystemManager.getSWFRoot(this), and other things with 
SystemManager... Nothing is working. 

Any ideas? Thanks! 
__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] Re: php and flex

2006-07-30 Thread JesterXL
You'll need XMLSocket.  PHP can do it.
http://www.enobrev.com/chat_tutorial.php

- Original Message - 
From: arnold_charming [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Sunday, July 30, 2006 5:00 AM
Subject: [flexcoders] Re: php and flex


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

 --- In flexcoders@yahoogroups.com, arnold_charming
 arnold_charming@ wrote:
  
  Can I also push data? Because till now I was justing using pull
 mechanism.
 
 AMFPHP works in both directions. Please take a look at the AMFPHP
 documentation for details:
 
 http://www.amfphp.org/docs/
 
 
 Stefan



I've looked and looked but can't seem to find anything about data
push. I'm going to use data push in application because time to time
my application will send some messages to all current users of
application.






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



 



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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Cairngorm: Managing Popup Windows

2006-07-30 Thread JesterXL





I stand corrected. A purist would argue that 
you should figure out why the row heights aren't working, but I'm with you; if 
it works, and gets done quickly, who cares?

- Original Message - 
From: Douglas 
Knudsen 
To: flexcoders@yahoogroups.com 
Sent: Sunday, July 30, 2006 4:38 PM
Subject: Re: [flexcoders] Cairngorm: Managing Popup 
Windows
intersting to read this. we are working on a datagrid that 
has complex data, two text fields, in one column. We used a custom 
itemEditor with a RTE in it. Nice, right? nope, sucked. Can't quite 
seem to get the row height to expand contract as needed. So, we went with 
a modal popup. DK 
On 7/27/06, JesterXL 
[EMAIL PROTECTED] 
wrote:
Popups 
  were really valuble in Flex 1.5.Most didn't know about the depth 
  scoping capabilites in Flash Player, nor needed to 
  care.Popups workedgreat for putting stuff "above everything" 
  and making it modal. Nowadays, with states and the DisplayList, the 
  only valid reason I can seeis modality.Thus, I'd avoid 'em like 
  the plague unless you can answer yes to thefollowing question: "Does the 
  form need to be modal?". - Original Message -From: 
  "Stefan Schmalhaus" [EMAIL PROTECTED]To: 
  flexcoders@yahoogroups.com 
  Sent: Thursday, July 27, 2006 5:37 AMSubject: [flexcoders] 
  Cairngorm: Managing Popup WindowsI've done some research on this 
  list but haven't found any validinformation on what's considered best 
  pratice in dealing with popup windows. The few Cairngorm sample apps that 
  are around don't seem touse the TitleWindow component at all.Let's 
  say I have a simple DataGrid populated with some user data. If Iclick on a 
  row in the DataGrid a popup window opens with a form for editing the user 
  information. The popup window also has two buttonsfor deleting or saving 
  (updating) the user account.I have done stuff like this several times 
  in Flash/AS2 but I've neverused a framework approach so far. Now, if I 
  look at this rather simple task from a Cairngorm perspective it doesn't 
  seem to be that simpleany more. (But I guess that's because I'm not yet 
  too familiar withCairngorm.) I know how to establish databinding between 
  the dataprovider and { model.users} and all this basic Cairngorm 
  stuff.But what happens when a row is clicked? I'm not even sure if 
  I'msupposed to treat this event as a single event ("selectUser" 
  or"openPopup"?) or as a chain of two events ("selectUser" - 
  "openPopup"). Since my user information is organized as an array 
  ofvalue objects it's easy to assign the selected user VO 
  tomodel.selectedUser:model.selectedUser = 
  UserVO(userList.selectedItem );But am I "allowed" to directly access 
  the ModelLocator from my viewcomponent? Or am I supposed to route this 
  simple action through theCairngorm "command chain" (Cairngorm Event - 
  Front Controller - Command Class - ModelLocator)?Next 
  question, what about the popup itself? Can I simply 
  usePopUpManager.createPopUp( this, UserFormView , true)? Or am I 
  supposedto treat this as a Cairngorm Event, too? I feel in "safe 
  Cairngorm terrain" again with the "updateUser" and"deleteUser" actions on 
  the buttons. But what about closing the popupwindow? Is this even worth a 
  Cairngorm event? I guess these questions sound rather stupid to those 
  of you who aremore experienced with frameworks. But at the moment these 
  questionsare obstacles on my way to master Cairngorm (which I will 
  hopefully doone day). I apologize for my verbose post and my bad English, 
  but Ihope that someone can shed some light on these 
  issues.Stefan--Flexcoders 
  Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
  Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
  Groups Links--Flexcoders Mailing 
  ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
  Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
  Groups Links * To visit your group on the web, go 
  to:http://groups.yahoo.com/group/flexcoders/* 
  To unsubscribe from this group, send an email to: 
  [EMAIL PROTECTED]* 
  Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/ 
  -- Douglas 
Knudsenhttp://www.cubicleman.comthis is my 
signature, like it?  
__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  
  

Re: [flexcoders] Cairngorm: Managing Popup Windows

2006-07-30 Thread JesterXL





...hey, wait a minute, I still win! You're 
RTE DOES need to be modal. *whew*

http://youbeat2trees.ytmnd.com/


- Original Message - 
From: JesterXL 
To: flexcoders@yahoogroups.com 
Sent: Sunday, July 30, 2006 4:49 PM
Subject: Re: [flexcoders] Cairngorm: Managing Popup 
Windows

I stand corrected. A purist would argue that 
you should figure out why the row heights aren't working, but I'm with you; if 
it works, and gets done quickly, who cares?

- Original Message - 
From: Douglas 
Knudsen 
To: flexcoders@yahoogroups.com 
Sent: Sunday, July 30, 2006 4:38 PM
Subject: Re: [flexcoders] Cairngorm: Managing Popup 
Windows
intersting to read this. we are working on a datagrid that 
has complex data, two text fields, in one column. We used a custom 
itemEditor with a RTE in it. Nice, right? nope, sucked. Can't quite 
seem to get the row height to expand contract as needed. So, we went with 
a modal popup. DK 
On 7/27/06, JesterXL 
[EMAIL PROTECTED] 
wrote: 
Popups 
  were really valuble in Flex 1.5.Most didn't know about the depth 
  scoping capabilites in Flash Player, nor needed to 
  care.Popups workedgreat for putting stuff "above everything" 
  and making it modal. Nowadays, with states and the DisplayList, the 
  only valid reason I can seeis modality.Thus, I'd avoid 'em like 
  the plague unless you can answer yes to thefollowing question: "Does the 
  form need to be modal?". - Original Message -From: 
  "Stefan Schmalhaus" [EMAIL PROTECTED]To: 
  flexcoders@yahoogroups.com 
  Sent: Thursday, July 27, 2006 5:37 AMSubject: [flexcoders] 
  Cairngorm: Managing Popup WindowsI've done some research on this 
  list but haven't found any validinformation on what's considered best 
  pratice in dealing with popup windows. The few Cairngorm sample apps that 
  are around don't seem touse the TitleWindow component at all.Let's 
  say I have a simple DataGrid populated with some user data. If Iclick on a 
  row in the DataGrid a popup window opens with a form for editing the user 
  information. The popup window also has two buttonsfor deleting or saving 
  (updating) the user account.I have done stuff like this several times 
  in Flash/AS2 but I've neverused a framework approach so far. Now, if I 
  look at this rather simple task from a Cairngorm perspective it doesn't 
  seem to be that simpleany more. (But I guess that's because I'm not yet 
  too familiar withCairngorm.) I know how to establish databinding between 
  the dataprovider and { model.users} and all this basic Cairngorm 
  stuff.But what happens when a row is clicked? I'm not even sure if 
  I'msupposed to treat this event as a single event ("selectUser" 
  or"openPopup"?) or as a chain of two events ("selectUser" - 
  "openPopup"). Since my user information is organized as an array 
  ofvalue objects it's easy to assign the selected user VO 
  tomodel.selectedUser:model.selectedUser = 
  UserVO(userList.selectedItem );But am I "allowed" to directly access 
  the ModelLocator from my viewcomponent? Or am I supposed to route this 
  simple action through theCairngorm "command chain" (Cairngorm Event - 
  Front Controller - Command Class - ModelLocator)?Next 
  question, what about the popup itself? Can I simply 
  usePopUpManager.createPopUp( this, UserFormView , true)? Or am I 
  supposedto treat this as a Cairngorm Event, too? I feel in "safe 
  Cairngorm terrain" again with the "updateUser" and"deleteUser" actions on 
  the buttons. But what about closing the popupwindow? Is this even worth a 
  Cairngorm event? I guess these questions sound rather stupid to those 
  of you who aremore experienced with frameworks. But at the moment these 
  questionsare obstacles on my way to master Cairngorm (which I will 
  hopefully doone day). I apologize for my verbose post and my bad English, 
  but Ihope that someone can shed some light on these 
  issues.Stefan--Flexcoders 
  Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
  Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
  Groups Links--Flexcoders Mailing 
  ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
  Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
  Groups Links * To visit your group on the web, go 
  to:http://groups.yahoo.com/group/flexcoders/* 
  To unsubscribe from this group, send an email to: 
  [EMAIL PROTECTED]* 
  Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/ 
  -- Douglas 
Knudsenhttp://www.cubicleman.comthis is my 
signature, like it?  
__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
   

Re: [flexcoders] mysql amfphp array parsing

2006-07-30 Thread JesterXL
Maybe labelName for the ComboBox set to teamname?

- Original Message - 
From: Impudent1 [EMAIL PROTECTED]
To: flexcoders flexcoders@yahoogroups.com
Sent: Sunday, July 30, 2006 11:36 PM
Subject: [flexcoders] mysql amfphp array parsing


ok I seem to be having a total mindlock on this...

I have amfphp running some functions to connect to a mysql database. I 
have the login logic all working and was starting to link the interface 
up. Firstly being a combobox populate.

So with my function returning an array of: 0- id  2
   teamname blah
   teamlead bla
   teamstatus active
   0- id  13
   teamname sda
   teamlead dsadfs
   teamstatus active

I have setup the functions in my app for it as:

[Bindable]
public var teams:ArrayCollection;

public function getTeamlist() : void{
gateway = new RemotingConnection(gatewayURL);
gateway.call(MySQL_Login.team_pulldown, new 
Responder(onResultGetTeamlist, onFault));
}

public function onResultGetTeamlist( result:Array ) : void{
teams = new ArrayCollection( result );
}

public function onFault ( fault:String ) : void{
trace( fault );
}

then set my new states canvas to :
mx:Canvas label=Users width=100% height=100% 
initialize=getTeamlist()


now, if I hardcode the combobox to be:

mx:ComboBox x=91 y=70 id=userTeamDropdown 
dataProvider={teams.getItemAt(2).teamname}/mx:ComboBox

it will load up the page on proper login and populate the combo box with 
the single teamname.

This is where I am getting stuck. Is there a simple way for me to just 
get the arraycollection to just pull the teamnames from the amfphp 
result and populate the combo box??

I know I am missing something both simple and obvious here so tia for 
any ideas :)

Impudent1
LeapFrog Productions



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



 



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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Embedded Fonts Cause Issue with DataGrid Headers

2006-07-30 Thread JesterXL





Betcha' the measure function is having issues 
measure the embedded font. Are you using FlashType or just the regular 
way?

If you're feeling brave, go look in DataGrid.as, 
and tell us if anything looks like its measuring text.

- Original Message - 
From: Brendan Meutzner 

To: flexcoders@yahoogroups.com 
Sent: Monday, July 31, 2006 1:29 AM
Subject: [flexcoders] Embedded Fonts Cause Issue with DataGrid 
Headers
Just wanted to see if the Adobe 
folks were aware of the issue with Embedded fonts and DataGrids... there was an 
earlier post on this as well, but nobody clarified if this was a known 
bug:http://groups.yahoo.com/group/flexcoders/message/44067;_ylc=X3oDMTM3Y3BlaHMwBF9TAzk3MzU5NzE0BGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTYwMDAwNzIwNwRtc2dJZAM0NDA2NwRzZWMDZnRyBHNsawN2dHBjBHN0aW1lAzExNTM0MTA3MTUEdHBjSWQDNDQwNjc-Sure 
enough, changing the font size to anything but 12pt solved the issue, and I also 
found that setting the headerStyleName seperate from the row styles in the 
DataGrid (we're using itemRenderers, and setting the Label font styleName 
inside) worked to fix the problem as well... it seems to only affect the 
datagrid if nesting the DataGrid instance inside another component which has the 
style applied. Thoughts?Brendan 
__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] Are the contents of a WSDL document accessible?

2006-07-29 Thread JesterXL
Assuming the WSDL is on the same domain so that your SWF has permission (or 
you're using a proxy), hell yeah, she's fair game bro.

You can use the old skool XML or E4X via a URLLoader.

- Original Message - 
From: ben.clinkinbeard [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Sunday, July 30, 2006 12:36 AM
Subject: [flexcoders] Are the contents of a WSDL document accessible?


Title pretty much sums it up. Is there any way to access and work with
the actual XML contained in the WSDL document?

Thanks,
Ben
http://www.returnundefined.com/






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








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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Re: TileList Bug Flex Final... pretty serious.

2006-07-28 Thread JesterXL





Hah! Guru... yeah right...

He's right, though, sufibaba, if could post your 
itemRenderer, that might help us identify what TileList's problem is with 
it.

- Original Message - 
From: Douglas 
Knudsen 
To: flexcoders@yahoogroups.com 
Sent: Friday, July 28, 2006 12:47 PM
Subject: Re: [flexcoders] Re: TileList Bug Flex Final... pretty 
serious.
You may need to override the setters and getters in your 
renderer. At least I have had to in teh past for this sort of thing. 
I'd post some code so some guru, or heavy coffee and red bull drinker, can 
maybe suggest something, eh? DK
On 7/28/06, sufibaba 
[EMAIL PROTECTED] wrote:
Yes, 
  I am using a custom renderer.-thanks--- In flexcoders@yahoogroups.com, 
  "Douglas Knudsen"[EMAIL PROTECTED] wrote: you 
  using a custom item renderer? DK On 7/25/06, 
  sufibaba [EMAIL PROTECTED] wrote:   Hi ya, 
I found what seems to be a bug with the TileList Control. 
  When the   TileList is resized, not all of the images that are in 
  the TileList  are displayed.It seems that when 
  TileList is made smaller, in width  and height, the vertical 
  scrollbar will only display some of the images.   
  Has anyone seen this problem.Is there a work around for this 
  bug?   Any light cast on this is Greatly 
  appreciated.   - Tim   

   --  Flexcoders Mailing List  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt 
   Search Archives:http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links   
   
   -- Douglas Knudsen http://www.cubicleman.com this is 
  my signature, like it?--Flexcoders 
  Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
  Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
  Groups Links * To visit your group on the web, go 
  to:http://groups.yahoo.com/group/flexcoders/* 
  To unsubscribe from this group, send an email to: 
  [EMAIL PROTECTED]* 
  Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/ 
  -- Douglas 
Knudsenhttp://www.cubicleman.comthis is my 
signature, like it?  
__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] Command classes that use multiple delegates

2006-07-28 Thread JesterXL
Pass in a RelayResponder / Responder instead of the Command.  Like, 
flash.net.Responder, or your own custom class that implements Cairngorm's 
Responder.  Then, have that responder call specified onResult / onFault 
functions you've defined in your Command.

- Original Message - 
From: jrjazzman23 [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, July 28, 2006 12:49 PM
Subject: [flexcoders] Command classes that use multiple delegates


Hi,

In the case of a Command that uses multiple business delegates, what's
best practice for an onResult() knowing which remote call it's handling?

thanks






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








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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Re: Cairngorm Events

2006-07-27 Thread JesterXL
Typically, in my Application, I'll put the Controller.  The Application can 
only capture deeply nested events if they bubble, and unless you utilize 
classpaths as your event names, you run the danger of name collisions for 
bubbling events in bigger apps.  The Controller can only get events from the 
CairngormEventDispatcher; he no longer supports the built-in EventDispatcher 
through the normal display list.  So, although he does extend UIComponent, 
he ignores regular events dispatched up to Application.  Could you make it 
work?  Sure, but then that's not the latest way Cairngorm works.  I don't 
mind modding Cairngorm, to be sure, just pointing it out.


- Original Message - 
From: Tom Chiverton [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, July 27, 2006 4:26 AM
Subject: Re: [flexcoders] Re: Cairngorm Events


On Wednesday 26 July 2006 16:56, JesterXL wrote:
 Not anymore, no, as he's usually embedded at the top of the tree.

I'm not sure what you mean.

 could utilize ViewLocator I guess, but that is bleh.

Indeed. We tend to pass the view into the event instead.

-- 
Tom Chiverton



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 
St James's Court Brown Street Manchester M2 2JF.  A list of members is 
available for inspection at the registered office. Any reference to a 
partner in relation to Halliwells LLP means a member of Halliwells LLP. 
Regulated by the Law Society.

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

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



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







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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Repositioning pop up window

2006-07-27 Thread JesterXL
popup = PopUpManager.createPopUp(this, YourComp, true);
popup.move( 100, 200);

- Original Message - 
From: Robs [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, July 27, 2006 5:56 AM
Subject: [flexcoders] Repositioning pop up window


Hi all,
   Can a popup window created with the createpopup method be 
repositioned to a desired x,y location. If yes, how?

Thanks in advance,
Robi.





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



 




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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Backend/Frontend Application Development (Cairngorm)

2006-07-27 Thread JesterXL
Put 'em in seperate projects, or sub-projects.  Like:

com.company.project.admin.*
com.company.project.client.

Or:

com.company.projectadmin.*
com.company.projectclient.*

You should take advantage of the fact you may be using similiar code; both 
of the above in the same Flex project allows you to easily do that.

- Original Message - 
From: Stefan Schmalhaus [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, July 27, 2006 4:38 AM
Subject: [flexcoders] Backend/Frontend Application Development (Cairngorm)


I'm going to develop a Flex (Cairngorm-based) intranet application for
training resources. There will be a backend part for user and content
administration, and there will be a frontend for the end user.

Both parts, backend and fronted, will presumably share a lot of the
underlying data structure, value objects, views, etc. They will
definitely use the same AMFPHP services. What's the best way to tackle
this? Should I treat them as two different Flex projects? Or can I
develop them within one Flex project but with two different MXML
application files?

Your ideas and thoughts are very much appreciated.

Stefan





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








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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Cairngorm: Managing Popup Windows

2006-07-27 Thread JesterXL
Popups were really valuble in Flex 1.5.  Most didn't know about the depth  
scoping capabilites in Flash Player, nor needed to care.  Popups worked 
great for putting stuff above everything and making it modal.

Nowadays, with states and the DisplayList, the only valid reason I can see 
is modality.

Thus, I'd avoid 'em like the plague unless you can answer yes to the 
following question: Does the form need to be modal?.


- Original Message - 
From: Stefan Schmalhaus [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, July 27, 2006 5:37 AM
Subject: [flexcoders] Cairngorm: Managing Popup Windows


I've done some research on this list but haven't found any valid
information on what's considered best pratice in dealing with popup
windows. The few Cairngorm sample apps that are around don't seem to
use the TitleWindow component at all.

Let's say I have a simple DataGrid populated with some user data. If I
click on a row in the DataGrid a popup window opens with a form for
editing the user information. The popup window also has two buttons
for deleting or saving (updating) the user account.

I have done stuff like this several times in Flash/AS2 but I've never
used a framework approach so far. Now, if I look at this rather simple
task from a Cairngorm perspective it doesn't seem to be that simple
any more. (But I guess that's because I'm not yet too familiar with
Cairngorm.) I know how to establish databinding between the data
provider and {model.users} and all this basic Cairngorm stuff.

But what happens when a row is clicked? I'm not even sure if I'm
supposed to treat this event as a single event (selectUser or
openPopup?) or as a chain of two events (selectUser -
openPopup). Since my user information is organized as an array of
value objects it's easy to assign the selected user VO to
model.selectedUser:

model.selectedUser = UserVO(userList.selectedItem);

But am I allowed to directly access the ModelLocator from my view
component? Or am I supposed to route this simple action through the
Cairngorm command chain (Cairngorm Event - Front Controller -
Command Class - ModelLocator)?

Next question, what about the popup itself? Can I simply use
PopUpManager.createPopUp( this, UserFormView , true)? Or am I supposed
to treat this as a Cairngorm Event, too?

I feel in safe Cairngorm terrain again with the updateUser and
deleteUser actions on the buttons. But what about closing the popup
window? Is this even worth a Cairngorm event?

I guess these questions sound rather stupid to those of you who are
more experienced with frameworks. But at the moment these questions
are obstacles on my way to master Cairngorm (which I will hopefully do
one day). I apologize for my verbose post and my bad English, but I
hope that someone can shed some light on these issues.

Stefan





















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








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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Re: Local Connection

2006-07-27 Thread JesterXL
Geez, definately sounds like the GC then, that's harsh.  Um... uh... well, 
the only thing I can think of beyond doing it dynamically like you said is 
to ensure when you remove them that you kill all listeners, delete what you 
can, disconnect what you can, etc. BEFORE destroying the SWFLoader.

Good luck.

- Original Message - 
From: flexnewbie06 [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, July 27, 2006 8:03 AM
Subject: [flexcoders] Re: Local Connection


Jester, I read the articles and fully understand what you meant...

I load one swf and then try to load a second and even though I've
sent the first swf packing it's still in memory and listening to the
menu.swf's local connection calls because GC hasn't come along and
cleaned it up.

Maybe if I get rid of the SWFLoader completely then try to create a
new one dynamically when the next swf is loaded that would work??
I'll try it.

Yes, the menu.swf is able to control the two main swf's outside of
Flex. If they are all running at the same time, the menu.swf will
control which ever main.swf was started first. Then if i close that
main.swf the other will just start working.  That little experiment
just provides more evidence (and helps me get it)...that the first
swf is still there in Flex...

Anyway, Thanks again...if you have any more suggestions...as always
appreciated. I'll keep working at it...
Jenn



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

 Oh it's deeper than emptying a source reference.  Welcome to the
dark side
 of ActionScript 3..

 http://www.gskinner.com/blog/archives/2006/06/as3_resource_ma.html

 http://www.gskinner.com/blog/archives/2006/07/as3_resource_ma_1.html

 BTW, do your SWF's talk to eachother locally without Flex?

 - Original Message - 
 From: flexnewbie06 [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Wednesday, July 26, 2006 3:13 PM
 Subject: [flexcoders] Re: Local Connection


 okay, thanks...that works for loading a swf at runtime if the
 SWFLoader has no assigned source.  However, if the SWFLoader has an
 assigned source and you try to change it during runtime, then LC
 doesn't work anymore.

 That comes back to your last comment about garbage collection and
the
 original swf not being cleaned up before the new one is loaded, i
 tried to research what you meant but as far i could tell all I could
 do in flex was to set the SWFLoader source to = before loading the
 next swf.  I could not find any unload methods.

 Thanks again for helping.


 --- In flexcoders@yahoogroups.com, JesterXL jesterxl@ wrote:
 
  Try again, but put an underscore in front of the name for both
 SWF's.
 
  _swfConnect instead of swfConnect.
 
 
  - Original Message - 
  From: flexnewbie06 flexnewbie06@
  To: flexcoders@yahoogroups.com
  Sent: Wednesday, July 26, 2006 1:59 PM
  Subject: [flexcoders] Re: Local Connection
 
 
  Jester,
  I have tried putting the local connection code in the main flex
app
  and calling to the embedded SWF and this is the attempt at
creating
 a
  second embedded swf (menu) to make the calls to the main
 SWF...either
  way if the swf is loaded at runtime...local connection is a no go.
 
  Thanks
 
  *This is my menu.swf local connection code...
 
  #include mc_tween2.as
  stop();
  var lcsend:LocalConnection = new LocalConnection();
  play_btn.onRelease = function(){
  lcsend.send (swfConnect, playFile);
  }
  stop_btn.onRelease = function () {
  lcsend.send (swfConnect, stopandrestart);
  }
  pause_btn.onRelease = function () {
  lcsend.send (swfConnect , pauseFile);
  }
 
  *And this is the Main.swf local connection code
 
  var lc:LocalConnection = new LocalConnection();
  lc.pauseFile = function() {
  stop();
  }
  lc.resumeFile = function() {
  play();
  }
  lc.stopandrestart = function() {
  gotoAndStop(1);
  }
  lc.playFile = function () {
  gotoAndPlay(1);
  }
  lc.getframeNum = function () {
 
  }
  lc.connect(swfConnect);
 
  ***
 
 
 
 
  --- In flexcoders@yahoogroups.com, JesterXL jesterxl@ wrote:
  
   Can you paste a snippet of your LocalConnection code in the
Flash
  SWF?
  
   - Original Message - 
   From: flexnewbie06 flexnewbie06@
   To: flexcoders@yahoogroups.com
   Sent: Wednesday, July 26, 2006 1:02 PM
   Subject: [flexcoders] Local Connection
  
  
   I think I am going to go crazy over this.  I have tried this a
 few
   different ways and always ending with the same result...not
 working.
  
   I have 2 swf's loaded in my app with SWFLoader. They use local
   connection to talk to each other.  If i run app with swfloader
 with
   no source and then dynamically set the swf source when something
   happens in the app, local connection doesn't work.  If i load
the
  swf
   in design the local connection works fine. For example Code 1
  doesn't
   work, Code 2 does...If you can lend a hand I would REALLY
  appreciate
   it.
  
   Jenn
  
   Code 1*
   ?xml version=1.0

Re: [flexcoders] Backend/Frontend Application Development (Cairngorm)

2006-07-27 Thread JesterXL





// Assuming your in your Client Application for 
example
import 
com.company.project.admin.events.SomeEvent;
import 
com.company.project.client.events.ClientEvent;

var e:SomeEvent = new 
SomeEvent(SomeEvent.EVENT_NAME, false, true);
CairngormEventDispatcher.getInstance().dispatchEvent(e);

You could do the reverse in the admin. As a 
GUI guy, I probably would care more about sharing commonly used View's and 
utility classes vs. events and commands that were probably created for their 
specific projects, but it could be done.

- Original Message - 
From: Douglas 
Knudsen 
To: flexcoders@yahoogroups.com 
Sent: Thursday, July 27, 2006 9:25 AM
Subject: Re: [flexcoders] Backend/Frontend Application Development 
(Cairngorm)
curious how to share resources with this, say using 
Cairngorm. How to share a command that returns data to a 
modellocator? How to return th edata to the current model locator for a 
sub app?DK
On 7/27/06, JesterXL 
[EMAIL PROTECTED] 
wrote:
Put 
  'em in seperate projects, or 
  sub-projects.Like:com.company.project.admin.*com.company.project.client.Or:com.company.projectadmin.*com.company.projectclient.*You 
  should take advantage of the fact you may be using similiar code; both of 
  the above in the same Flex project allows you to easily do that.- 
  Original Message -From: "Stefan Schmalhaus" [EMAIL PROTECTED]To: 
  flexcoders@yahoogroups.comSent: 
  Thursday, July 27, 2006 4:38 AMSubject: [flexcoders] Backend/Frontend 
  Application Development (Cairngorm)I'm going to develop a Flex 
  (Cairngorm-based) intranet application for training resources. There will 
  be a backend part for user and contentadministration, and there will be a 
  frontend for the end user.Both parts, backend and fronted, will 
  presumably share a lot of theunderlying data structure, value objects, 
  views, etc. They will definitely use the same AMFPHP services. What's the 
  best way to tacklethis? Should I treat them as two different Flex 
  projects? Or can Idevelop them within one Flex project but with two 
  different MXMLapplication files? Your ideas and thoughts are very 
  much appreciated.Stefan--Flexcoders 
  Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt 
  Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
  Groups Links--Flexcoders Mailing List 
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
  Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
  Groups Links* To visit your group on the web, go 
  to:http://groups.yahoo.com/group/flexcoders/ 
  * To unsubscribe from this group, send an email 
  to:[EMAIL PROTECTED]* 
  Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/-- Douglas Knudsenhttp://www.cubicleman.com this is my 
signature, like it?  
__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] Backend/Frontend Application Development (Cairngorm)

2006-07-27 Thread JesterXL





If you use the same ModelLocator, yes. I'd 
assume, however, each would have their own ModelLocator. Additionally 
there is no reason you couldn't share the same one. Still, depends on the 
project, and I usually only have borrewed views between proejcts, not command 
 model stuff.
- Original Message - 
From: Douglas 
Knudsen 
To: flexcoders@yahoogroups.com 
Sent: Thursday, July 27, 2006 9:53 AM
Subject: Re: [flexcoders] Backend/Frontend Application Development 
(Cairngorm)
righto on that. Say I have a command GetUserCommand() that 
returns a userVO for the current user in session. This is returned to the 
apps modellocator, has stuff like name, etc, in it.so we havecom.company.project.admin.model.AModLoccom.company.project.client.model.CModLocHow 
does GetUserCommand() stick the userVO result into the proper model? 
Typically the model is hardcoded in the Command, eh? What I've done so far 
is used a generic model so to speak in com.company.project.model.GModLoc 
say. Then the client app and admin app can access it as well as their 
respective model. DK
On 7/27/06, JesterXL 
[EMAIL PROTECTED] 
wrote:

  
  
  // Assuming your in your Client Application for 
  example
  import 
  com.company.project.admin.events.SomeEvent;
  import 
  com.company.project.client.events.ClientEvent;
  
  var e:SomeEvent = new 
  SomeEvent(SomeEvent.EVENT_NAME, false, true);
  CairngormEventDispatcher.getInstance().dispatchEvent(e);
  
  You could do the reverse in the admin. As a 
  GUI guy, I probably would care more about sharing commonly used View's and 
  utility classes vs. events and commands that were probably created for their 
  specific projects, but it could be done.
  
  
  - Original Message - 
  From: 
  Douglas Knudsen 

  To: flexcoders@yahoogroups.com 
  
  Sent: Thursday, July 27, 2006 9:25 AM
  Subject: Re: [flexcoders] Backend/Frontend Application Development 
  (Cairngorm)
  
  
  curious how to share resources with this, say using 
  Cairngorm. How to share a command that returns data to a 
  modellocator? How to return th edata to the current model locator for a 
  sub app?DK
  On 7/27/06, JesterXL [EMAIL PROTECTED] wrote: 
  Put 
'em in seperate projects, or 
sub-projects.Like:com.company.project.admin.*com.company.project.client.Or:com.company.projectadmin.*com.company.projectclient.*You 
should take advantage of the fact you may be using similiar code; both 
of the above in the same Flex project allows you to easily do 
that.- Original Message -From: "Stefan Schmalhaus" 
[EMAIL PROTECTED]To: flexcoders@yahoogroups.comSent: Thursday, July 27, 
2006 4:38 AMSubject: [flexcoders] Backend/Frontend Application 
Development (Cairngorm)I'm going to develop a Flex 
(Cairngorm-based) intranet application for training resources. There 
will be a backend part for user and contentadministration, and there 
will be a frontend for the end user.Both parts, backend and fronted, 
will presumably share a lot of theunderlying data structure, value 
objects, views, etc. They will definitely use the same AMFPHP services. 
What's the best way to tacklethis? Should I treat them as two different 
Flex projects? Or can Idevelop them within one Flex project but with two 
different MXMLapplication files? Your ideas and thoughts are 
very much appreciated.Stefan--Flexcoders 
Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt 
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups 
Links--Flexcoders Mailing List 
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt 
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links* To visit your group on the web, go 
to:http://groups.yahoo.com/group/flexcoders/ 
* To unsubscribe from this group, send an email 
to:[EMAIL PROTECTED]* 
Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/-- Douglas Knudsenhttp://www.cubicleman.com 
  
  this is my signature, like it? -- 
Douglas Knudsenhttp://www.cubicleman.comthis is my 
signature, like it?  
__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this 

Re: [flexcoders] Re: Local Connection - RESOLVED!

2006-07-27 Thread JesterXL
Delete the ho!

after close:

lc = null;
delete lc;

- Original Message - 
From: flexnewbie06 [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, July 27, 2006 10:11 AM
Subject: [flexcoders] Re: Local Connection - RESOLVED!


Thanks again jesterXL...

Added just a few lines...can't believe i didn't think of this 
earlier...it was definitly a light bulb moment...cleans up local 
connection...so it can be used by next loaded swf.  Had to make 
changes to swf's and just wasn't thinking about them.

added - to main flex app every time swfLoader changes it's source...
lc.send (_swfConnect, killAll);

added - to the main.swf's called functions
lc.killAll = function () {
lc.close()
}

okay...what's next...;o)

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

 Geez, definately sounds like the GC then, that's harsh.  Um... 
uh... well, 
 the only thing I can think of beyond doing it dynamically like you 
said is 
 to ensure when you remove them that you kill all listeners, delete 
what you 
 can, disconnect what you can, etc. BEFORE destroying the SWFLoader.
 
 Good luck.
 
 - Original Message - 
 From: flexnewbie06 [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Thursday, July 27, 2006 8:03 AM
 Subject: [flexcoders] Re: Local Connection
 
 
 Jester, I read the articles and fully understand what you meant...
 
 I load one swf and then try to load a second and even though I've
 sent the first swf packing it's still in memory and listening to the
 menu.swf's local connection calls because GC hasn't come along and
 cleaned it up.
 
 Maybe if I get rid of the SWFLoader completely then try to create a
 new one dynamically when the next swf is loaded that would work??
 I'll try it.
 
 Yes, the menu.swf is able to control the two main swf's outside of
 Flex. If they are all running at the same time, the menu.swf will
 control which ever main.swf was started first. Then if i close that
 main.swf the other will just start working.  That little experiment
 just provides more evidence (and helps me get it)...that the first
 swf is still there in Flex...
 
 Anyway, Thanks again...if you have any more suggestions...as always
 appreciated. I'll keep working at it...
 Jenn
 
 
 
 --- In flexcoders@yahoogroups.com, JesterXL jesterxl@ wrote:
 
  Oh it's deeper than emptying a source reference.  Welcome to the
 dark side
  of ActionScript 3..
 
  http://www.gskinner.com/blog/archives/2006/06/as3_resource_ma.html
 
  
http://www.gskinner.com/blog/archives/2006/07/as3_resource_ma_1.html
 
  BTW, do your SWF's talk to eachother locally without Flex?
 
  - Original Message - 
  From: flexnewbie06 flexnewbie06@
  To: flexcoders@yahoogroups.com
  Sent: Wednesday, July 26, 2006 3:13 PM
  Subject: [flexcoders] Re: Local Connection
 
 
  okay, thanks...that works for loading a swf at runtime if the
  SWFLoader has no assigned source.  However, if the SWFLoader has 
an
  assigned source and you try to change it during runtime, then LC
  doesn't work anymore.
 
  That comes back to your last comment about garbage collection and
 the
  original swf not being cleaned up before the new one is loaded, i
  tried to research what you meant but as far i could tell all I 
could
  do in flex was to set the SWFLoader source to = before loading 
the
  next swf.  I could not find any unload methods.
 
  Thanks again for helping.
 
 
  --- In flexcoders@yahoogroups.com, JesterXL jesterxl@ wrote:
  
   Try again, but put an underscore in front of the name for both
  SWF's.
  
   _swfConnect instead of swfConnect.
  
  
   - Original Message - 
   From: flexnewbie06 flexnewbie06@
   To: flexcoders@yahoogroups.com
   Sent: Wednesday, July 26, 2006 1:59 PM
   Subject: [flexcoders] Re: Local Connection
  
  
   Jester,
   I have tried putting the local connection code in the main flex
 app
   and calling to the embedded SWF and this is the attempt at
 creating
  a
   second embedded swf (menu) to make the calls to the main
  SWF...either
   way if the swf is loaded at runtime...local connection is a no 
go.
  
   Thanks
  
   *This is my menu.swf local connection code...
  
   #include mc_tween2.as
   stop();
   var lcsend:LocalConnection = new LocalConnection();
   play_btn.onRelease = function(){
   lcsend.send (swfConnect, playFile);
   }
   stop_btn.onRelease = function () {
   lcsend.send (swfConnect, stopandrestart);
   }
   pause_btn.onRelease = function () {
   lcsend.send (swfConnect , pauseFile);
   }
  
   *And this is the Main.swf local connection code
  
   var lc:LocalConnection = new LocalConnection();
   lc.pauseFile = function() {
   stop();
   }
   lc.resumeFile = function() {
   play();
   }
   lc.stopandrestart = function() {
   gotoAndStop(1);
   }
   lc.playFile = function () {
   gotoAndPlay(1);
   }
   lc.getframeNum = function () {
  
   }
   lc.connect(swfConnect);
  
   ***
  
  
  
  
   --- In flexcoders@yahoogroups.com, JesterXL jesterxl

Re: [flexcoders] TextLineMetrics anyone?

2006-07-27 Thread JesterXL
Out of curiosity, turn on autoSize = left;
- Original Message - 
From: jeff tapper [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, July 27, 2006 10:14 AM
Subject: [flexcoders] TextLineMetrics anyone?


Has anyone successfully used TextLineMetrics with multiline text 
fields?  All my experiments are showing that it always computes 
assuming a single, not wrapping line of text.  I'm not sure if im 
using it wrong (the most likely scenario), if its a documentation 
error, or a bug.  According to the docs, the TextLineMetrics width 
property should be the width of the text within a text field, 
however, I'm finding if I have a Text control with a width of 300, 
and a few lines of text within it, the width property shows the 
width as if it were on one line of text, and the height is 
indicating the height of a single line of text.  

Here is an example:
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
layout=vertical
mx:Style
.bigRed{
font-family:Arial;
font-size:40;
color:#33;
}
/mx:Style
mx:HBox
mx:Button label=Measure click=measureTheText()/
mx:Button label=Style click=doStyle()/
mx:Button label=Clear Style click=clearTheStyle()/
/mx:HBox
mx:TextInput id=enteredText/
mx:Text id=output text={enteredText.text} width=300 /
mx:Script
![CDATA[
import mx.controls.Alert;
private function measureTheText():void{
var tlm:TextLineMetrics = output.measureText
(enteredText.text);
var h:int = tlm.height;
var w:int = tlm.width;
Alert.show(text is  + w.toString() +x+h.toString
());
}
private function doStyle():void{
output.setStyle(styleName,bigRed)
}
private function clearTheStyle():void{
output.clearStyle(styleName);
}
]]
/mx:Script
/mx:Application






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



 



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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] cairngorm Events and data payloads

2006-07-27 Thread JesterXL





close. Do this, but extend CairngormEvent 
like you are doing:
http://www.darronschall.com/weblog/archives/000191.cfm


- Original Message - 
From: Douglas 
Knudsen 
To: flexcoders@yahoogroups.com 
Sent: Thursday, July 27, 2006 10:01 AM
Subject: [flexcoders] cairngorm Events and data payloads
can someone point me to a example of how to pass data in a 
cairngorm type event? I'm trying the below withpackage 
com.mycompany.events{ import 
com.adobe.cairngorm.control.CairngormEvent; 
 public class LoadScorecardEvent extends CairngormEvent 
 {  
 public static var EVENT_LOAD_SCORECARD: String = 
'LoadScorecardEvent';  public var 
scorecardId:Number;  
/**  * The constructor, 
  */ 
 public function LoadScorecardEvent( )  
 {   
super( EVENT_LOAD_SCORECARD );  
   
}   
} }then in a view dispatching like sovar 
devent : LoadScorecardEvent = new LoadScorecardEvent( 
);   
 devent.scorecardId = 5;  

CairngormEventDispatcher.getInstance().dispatchEvent( devent ); and in 
the command I havepublic function execute( eventHere : CairngormEvent ) 
: void  { 
 var del : MainDelegate = new MainDelegate( this 
);  del.getScorecard( 
eventHere.scorecardId );   
  }But this bombs out with a error 
about scorecardId not in eventHere.DK-- 
Douglas Knudsenhttp://www.cubicleman.com this is my 
signature, like it?  
__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] Re: Local Connection - RESOLVED!

2006-07-27 Thread JesterXL
w00t!  GC got PWND!!!.

- Original Message - 
From: flexnewbie06 [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, July 27, 2006 10:48 AM
Subject: [flexcoders] Re: Local Connection - RESOLVED!


..works perfect.


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

 Delete the ho!
 
 after close:
 
 lc = null;
 delete lc;
 
 - Original Message - 
 From: flexnewbie06 [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Thursday, July 27, 2006 10:11 AM
 Subject: [flexcoders] Re: Local Connection - RESOLVED!
 
 
 Thanks again jesterXL...
 
 Added just a few lines...can't believe i didn't think of this 
 earlier...it was definitly a light bulb moment...cleans up local 
 connection...so it can be used by next loaded swf.  Had to make 
 changes to swf's and just wasn't thinking about them.
 
 added - to main flex app every time swfLoader changes it's source...
 lc.send (_swfConnect, killAll);
 
 added - to the main.swf's called functions
 lc.killAll = function () {
 lc.close()
 }
 
 okay...what's next...;o)
 
 --- In flexcoders@yahoogroups.com, JesterXL jesterxl@ wrote:
 
  Geez, definately sounds like the GC then, that's harsh.  Um... 
 uh... well, 
  the only thing I can think of beyond doing it dynamically like 
you 
 said is 
  to ensure when you remove them that you kill all listeners, 
delete 
 what you 
  can, disconnect what you can, etc. BEFORE destroying the 
SWFLoader.
  
  Good luck.
  
  - Original Message - 
  From: flexnewbie06 flexnewbie06@
  To: flexcoders@yahoogroups.com
  Sent: Thursday, July 27, 2006 8:03 AM
  Subject: [flexcoders] Re: Local Connection
  
  
  Jester, I read the articles and fully understand what you meant...
  
  I load one swf and then try to load a second and even though I've
  sent the first swf packing it's still in memory and listening to 
the
  menu.swf's local connection calls because GC hasn't come along and
  cleaned it up.
  
  Maybe if I get rid of the SWFLoader completely then try to create 
a
  new one dynamically when the next swf is loaded that would work??
  I'll try it.
  
  Yes, the menu.swf is able to control the two main swf's outside of
  Flex. If they are all running at the same time, the menu.swf will
  control which ever main.swf was started first. Then if i close 
that
  main.swf the other will just start working.  That little 
experiment
  just provides more evidence (and helps me get it)...that the first
  swf is still there in Flex...
  
  Anyway, Thanks again...if you have any more suggestions...as 
always
  appreciated. I'll keep working at it...
  Jenn
  
  
  
  --- In flexcoders@yahoogroups.com, JesterXL jesterxl@ wrote:
  
   Oh it's deeper than emptying a source reference.  Welcome to the
  dark side
   of ActionScript 3..
  
   
http://www.gskinner.com/blog/archives/2006/06/as3_resource_ma.html
  
   
 http://www.gskinner.com/blog/archives/2006/07/as3_resource_ma_1.html
  
   BTW, do your SWF's talk to eachother locally without Flex?
  
   - Original Message - 
   From: flexnewbie06 flexnewbie06@
   To: flexcoders@yahoogroups.com
   Sent: Wednesday, July 26, 2006 3:13 PM
   Subject: [flexcoders] Re: Local Connection
  
  
   okay, thanks...that works for loading a swf at runtime if the
   SWFLoader has no assigned source.  However, if the SWFLoader 
has 
 an
   assigned source and you try to change it during runtime, then LC
   doesn't work anymore.
  
   That comes back to your last comment about garbage collection 
and
  the
   original swf not being cleaned up before the new one is loaded, 
i
   tried to research what you meant but as far i could tell all I 
 could
   do in flex was to set the SWFLoader source to = before 
loading 
 the
   next swf.  I could not find any unload methods.
  
   Thanks again for helping.
  
  
   --- In flexcoders@yahoogroups.com, JesterXL jesterxl@ wrote:
   
Try again, but put an underscore in front of the name for both
   SWF's.
   
_swfConnect instead of swfConnect.
   
   
- Original Message - 
From: flexnewbie06 flexnewbie06@
To: flexcoders@yahoogroups.com
Sent: Wednesday, July 26, 2006 1:59 PM
Subject: [flexcoders] Re: Local Connection
   
   
Jester,
I have tried putting the local connection code in the main 
flex
  app
and calling to the embedded SWF and this is the attempt at
  creating
   a
second embedded swf (menu) to make the calls to the main
   SWF...either
way if the swf is loaded at runtime...local connection is a 
no 
 go.
   
Thanks
   
*This is my menu.swf local connection code...
   
#include mc_tween2.as
stop();
var lcsend:LocalConnection = new LocalConnection();
play_btn.onRelease = function(){
lcsend.send (swfConnect, playFile);
}
stop_btn.onRelease = function () {
lcsend.send (swfConnect, stopandrestart);
}
pause_btn.onRelease = function () {
lcsend.send (swfConnect , pauseFile

Re: [flexcoders] Re: TextLineMetrics anyone?

2006-07-27 Thread JesterXL
Son of a... the Text does the same thing as TextArea; he uses a TextField 
via composition vs. inheriting from it.  Ugh..

Not sure bro, without extending it.  The autoSize property, at least in my 
meager tests, allows accurate measure (give or take 4 pixels) vs. 
non-autozied textfields.

- Original Message - 
From: jeff tapper [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, July 27, 2006 11:16 AM
Subject: [flexcoders] Re: TextLineMetrics anyone?


Jesse -

not sure I'm following you.  An mx:Text / control doesnt seem to
have an autosize property.  They inherently automatically size
themselves to fit the contained text.  Am i misunderstanding you?

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

 Out of curiosity, turn on autoSize = left;
 - Original Message - 
 From: jeff tapper [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Thursday, July 27, 2006 10:14 AM
 Subject: [flexcoders] TextLineMetrics anyone?


 Has anyone successfully used TextLineMetrics with multiline text
 fields?  All my experiments are showing that it always computes
 assuming a single, not wrapping line of text.  I'm not sure if im
 using it wrong (the most likely scenario), if its a documentation
 error, or a bug.  According to the docs, the TextLineMetrics width
 property should be the width of the text within a text field,
 however, I'm finding if I have a Text control with a width of 300,
 and a few lines of text within it, the width property shows the
 width as if it were on one line of text, and the height is
 indicating the height of a single line of text.

 Here is an example:
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=vertical
 mx:Style
 .bigRed{
 font-family:Arial;
 font-size:40;
 color:#33;
 }
 /mx:Style
 mx:HBox
 mx:Button label=Measure click=measureTheText()/
 mx:Button label=Style click=doStyle()/
 mx:Button label=Clear Style click=clearTheStyle()/
 /mx:HBox
 mx:TextInput id=enteredText/
 mx:Text id=output text={enteredText.text} width=300 /
 mx:Script
 ![CDATA[
 import mx.controls.Alert;
 private function measureTheText():void{
 var tlm:TextLineMetrics = output.measureText
 (enteredText.text);
 var h:int = tlm.height;
 var w:int = tlm.width;
 Alert.show(text is  + w.toString()
+x+h.toString
 ());
 }
 private function doStyle():void{
 output.setStyle(styleName,bigRed)
 }
 private function clearTheStyle():void{
 output.clearStyle(styleName);
 }
 ]]
 /mx:Script
 /mx:Application






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








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








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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Manuals/tutorials on subclassing, custom components? (1.5)

2006-07-27 Thread JesterXL
Some of the component preso's here help.  I know they aren't verbose as you 
like, but some of the comments and exmaples helped me immednsely.
http://www.onflex.org/ted/2006/07/adobe-component-developer-summit.php
- Original Message - 
From: G [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, July 27, 2006 11:21 AM
Subject: [flexcoders] Manuals/tutorials on subclassing, custom components? 
(1.5)


Does anyone know of the best, canonical documentation
explaining how properly to subclass a custom
component?  The interactions between init,
constructObject2, commitProperties, bindings, and so
on are very complicated, and I really need some
guidance for best practices.

I found one document,
http://download.macromedia.com/pub/documentation/en/flex/15/createcomponents.pdf
that is good.  Something like that, but four times
more detailed would be perfect.

Thanks,


Greg


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


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







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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Cast or create local var - which is best \ performant

2006-07-27 Thread JesterXL
Depends.

Local variables are faster in some casese because it uses optimized 
registers.  Promotion is also something to watch out for regarding ints in 
loops.

If you're really interested, go ask the FLASM guys to update their tool for 
Flash Player 9, and you can inspect the bytecode to see how much is added by 
certain casting operations.  For something more concerete, look here:

http://www.flex.org/ACDS/AS3TuningInsideAVM2JIT.pdf

http://www.flex.org/ACDS/GC.swf

http://www.flex.org/ACDS/Interpreter.swf

http://www.flex.org/ACDS/JITMovie.swf

- Original Message - 
From: bobpardoe1959 [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, July 27, 2006 12:29 PM
Subject: [flexcoders] Cast or create local var - which is best \ performant


We are haveing a debate here at work regarding the the most performant
\ efficient \ best way of dealing with the casting of objects from one
form to another.

a) One person thinks that casting the object to the correct type each
time it is used is better because casting has a compile time penalty,
but at runtime does not incurr a cost.

b) The other person would have us believe that the creation of a
variable of the correct type and casting the object to it and then
using the local variable (thereby eliminating many casts)is better.

I side with a) on the basis that the creation of the variable and the
garbage collection of it costs more than the casting might.

Bearing in mind that either of these methods might be performed in
hundreds of places in the application.

Is there a difference ? Will any one notice. Is one better ?.

Are we being a little to retentive ?

thanks

BOb






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








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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Re: cairngorm Events and data payloads

2006-07-27 Thread JesterXL





I'm with you. I've been determing type of 
event based on the event.type in the Command's execute method to get my 
strong-typing back.

- Original Message - 
From: Ralf 
Bokelberg 
To: flexcoders@yahoogroups.com 
Sent: Thursday, July 27, 2006 12:58 PM
Subject: Re: [flexcoders] Re: cairngorm Events and data 
payloads
Its really a pity, that we loose all the nice type information 
while going all the way through Cairngorm. Cheers,Ralf. 
On 7/27/06, Douglas 
Knudsen [EMAIL PROTECTED] 
wrote:

  
  ah, righto. thanks d00ds. I had this hacked up too much...no 
  worky good. If only I can get that damn RO to calm down now and do 
  what its told! but that's another thread.
  DK
  
  On 7/27/06, thunderstumpgesatwork  
  [EMAIL PROTECTED] wrote:
  Hi,The 
delegate function thinks you just have a CairngormEvent. I thinkyou just 
need to check to make sure the event you received is yourcustom event 
type and then cast it.so:if (eventHere is 
LoadScorecardEvent) {del.getScorecard( 
LoadScorecardEvent(eventHere).scorecardId 
);}else{// do nothing, or raise 
error, or log warning, or whatever.}best of 
luck,Thunder--- In flexcoders@yahoogroups.com, "Douglas 
Knudsen"[EMAIL PROTECTED] wrote: can someone 
point me to a example of how to pass data in a cairngormtype 
event?I'm trying the below with  package 
com.mycompany.events { import 
com.adobe.cairngorm.control.CairngormEvent; 
public class LoadScorecardEvent extends 
CairngormEvent 
{ public static var 
EVENT_LOAD_SCORECARD: String =  
'LoadScorecardEvent';public 
var 
scorecardId:Number; 
/*** The 
constructor,*/ 
public function LoadScorecardEvent( 
) { 
 
super( EVENT_LOAD_SCORECARD 
); 
} } 
} then in a view dispatching like so var devent : 
LoadScorecardEvent = new LoadScorecardEvent(); 
 
devent.scorecardId = 
5;CairngormEventDispatcher.getInstance().dispatchEvent( 
devent ); and in the command I have public 
function execute( eventHere : CairngormEvent ) : void 
{ 
var del : MainDelegate = new MainDelegate( this 
); 
del.getScorecard( eventHere.scorecardId 
);} 
But this bombs out with a error about scorecardId not in eventHere. 
 DK -- Douglas 
Knudsen http://www.cubicleman.com this is my signature, 
like it?--Flexcoders Mailing 
ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links* To visit your group on the web, go 
to: 
http://groups.yahoo.com/group/flexcoders/ * To 
unsubscribe from this group, send an email to: 
[EMAIL PROTECTED]* Your use of 
Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/-- Douglas Knudsenhttp://www.cubicleman.com 
  this is my signature, like it? -- 
Ralf Bokelberg [EMAIL PROTECTED]Flex 
 Flash Consultant based in Cologne/Germany  
__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [Junk E-Mail - MED] Re: [flexcoders] Flex Builder 2 plugin woes...

2006-07-27 Thread JesterXL





Did you add Flex nature 
to your closed project? Did you set a default application? :: random 
guesses ::

- Original Message - 
From: Shannon Hicks 
To: flexcoders@yahoogroups.com 
Sent: Thursday, July 27, 2006 2:00 PM
Subject: RE: [Junk E-Mail - MED] Re: [flexcoders] Flex Builder 2 
plugin woes...

But therein lies the problem... Build All and Build Project 
are both inactive... it's like Eclipse and FB don't know what a flex project 
is.

Shan


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Simeon 
BatemanSent: Thursday, July 27, 2006 12:46 PMTo: flexcoders@yahoogroups.comSubject: 
[Junk E-Mail - MED] Re: [flexcoders] Flex Builder 2 plugin 
woes...


I feel like this might be a shot in the dark, but in Flex builder there is a 
menu at the top. Check the "Project" menu and make sure "Build 
Automatically" is checked. This is the piece that makes it compile when 
you save. If its not checked, you may need to tell it to build 
manually before the swf will get written.HTHsim
On 7/27/06, Dan Rossi 
[EMAIL PROTECTED]org 
wrote: 

  
  
  
  
  
  I did notice my standalone stopped compiling when saved, and i had to 
  keeping launching to compile / build and get any errors in the problems window 
  :\
  
  
  
  On 28/07/2006, at 2:47 AM, Shannon Hicks wrote:
  
So, I installed Eclipse 3.1.2, and then 
installed the FB2 plugin... I imported an existing project, and everything 
was going smoothly. I then hit control-F11, and nothing 
happened.

I now realize that the project is not 
getting built, and there are no Run or Debug options. 

I went back to FB2 standalone, and now IT 
doesn't have Run or Debug options.

How might I fix this, other than 
uninstalling  reinstalling everything?

Shan
--No virus found in this outgoing message.Checked by 
AVG Free Edition. Version: 7.1.394 / Virus Database: 268.10.4/401 - 
Release Date: 
  7/26/2006
  
  

--No virus found in this incoming message.Checked by AVG 
Free Edition.Version: 7.1.394 / Virus Database: 268.10.4/401 - Release Date: 
7/26/2006 
--No virus found in this outgoing message.Checked by AVG 
Free Edition.Version: 7.1.394 / Virus Database: 268.10.4/401 - Release Date: 
7/26/2006
__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] constructObject2() vs. init()? (Flex 1.5)

2006-07-27 Thread JesterXL
Don't know about constructObject2, but init is called for you by UIObject 
when she's done setting stuff up.  You CAN override it in ActionScript, but 
not MXML.

However, you're better off just have your initialize event call a function 
in your MXML and do non-GUI related stuff there.

- Original Message - 
From: G [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, July 27, 2006 3:25 PM
Subject: [flexcoders] constructObject2() vs. init()? (Flex 1.5)


Quick question:  What is the relationship between
constructObject2 and init?  The document I found on
creating components does not mention constructObject2,
but the flex compiler seems not to allow overriding of
init() (in an mxml file).

But init() does not take parameters.  Does one call
the other?  Are they analogous for different
situations?

Thanks,

Greg

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


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








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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: initialize vs. construct/init...Re: [flexcoders] constructObject2() vs. init()? (Flex 1.5)

2006-07-27 Thread JesterXL
Of course I'm not sure.  What are you initializing, and who is expecting 
them to be initialized?

- Original Message - 
From: G [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, July 27, 2006 3:51 PM
Subject: initialize vs. construct/init...Re: [flexcoders] constructObject2() 
vs. init()? (Flex 1.5)


 However, you're better off just have your initialize
 event call a function
 in your MXML and do non-GUI related stuff there.

Are you sure about that?  That seems to be exactly the
source of our problems.  If we initialize values in
the initialize handler, it seems they are being
initialized too late, and values end up not being
properly set.




 - Original Message - 
 From: G [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Thursday, July 27, 2006 3:25 PM
 Subject: [flexcoders] constructObject2() vs. init()?
 (Flex 1.5)


 Quick question:  What is the relationship between
 constructObject2 and init?  The document I found on
 creating components does not mention
 constructObject2,
 but the flex compiler seems not to allow overriding
 of
 init() (in an mxml file).

 But init() does not take parameters.  Does one call
 the other?  Are they analogous for different
 situations?

 Thanks,

 Greg

 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam
 protection around
 http://mail.yahoo.com


 --
 Flexcoders Mailing List
 FAQ:

http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:

http://www.mail-archive.com/flexcoders%40yahoogroups.com
 Yahoo! Groups Links









__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


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







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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Re: cairngorm Events and data payloads

2006-07-27 Thread JesterXL





Well, my events extend CairngormEvent, so I can 
technically upcast 'em when they get in the Command's execute method. I 
know Steven didn't really dig this idea, but if you case the type, you can 
compare to the Event's constant like:

public static const EVENT_DOSOMETHING:String = 
"doSomething";

function execute(event:CairngormEvent)
{
 switch(event.type)
 {
  case 
MyEvent.EVENT_DOSOMETHING:
  
 someMethod ( MyEvent(event).someTypeSafeProp);
  
 break;
 }
}


- Original Message - 
From: Ralf 
Bokelberg 
To: flexcoders@yahoogroups.com 
Sent: Thursday, July 27, 2006 4:20 PM
Subject: Re: [flexcoders] Re: cairngorm Events and data 
payloads
The only typesafe solution i can think of, is to abandon 
CairngormEvents and replace them by methods of the FrontController. Most of the 
apps i've seen so far don't make use of the runtime changeability anyways. What 
do we loose if we do it like that? Cheers,Ralf. 
On 7/27/06, JesterXL 
[EMAIL PROTECTED] 
wrote:

  
  
  I'm with you. I've been determing type of event based on the event.type in the Command's execute method to get my 
  strong-typing back.
  
  
  - Original Message - 
  From: 
  Ralf Bokelberg 
  To: flexcoders@yahoogroups.com 
  
  Sent: Thursday, July 27, 2006 12:58 PM
  Subject: Re: [flexcoders] Re: cairngorm Events and data 
  payloads
  
  
  Its really a pity, that we loose all the nice type information 
  while going all the way through Cairngorm. Cheers,Ralf. 
  On 7/27/06, Douglas 
  Knudsen [EMAIL PROTECTED] wrote: 
  

ah, righto. thanks d00ds. I had this hacked up too 
much...no worky good. If only I can get that damn RO to calm 
down now and do what its told! but that's another thread.
DK

On 7/27/06, thunderstumpgesatwork  
[EMAIL PROTECTED] wrote: 
Hi,The 
  delegate function thinks you just have a CairngormEvent. I thinkyou 
  just need to check to make sure the event you received is yourcustom 
  event type and then cast it.so:if (eventHere is 
  LoadScorecardEvent) {del.getScorecard( 
  LoadScorecardEvent(eventHere).scorecardId 
  );}else{// do nothing, or raise 
  error, or log warning, or whatever.}best of 
  luck,Thunder--- In flexcoders@yahoogroups.com, "Douglas 
  Knudsen"[EMAIL PROTECTED] wrote: can someone 
  point me to a example of how to pass data in a cairngormtype 
  event?I'm trying the below with  package 
  com.mycompany.events { import 
  com.adobe.cairngorm.control.CairngormEvent; 
  public class LoadScorecardEvent extends 
  CairngormEvent 
  { public static 
  var EVENT_LOAD_SCORECARD: String =  
  'LoadScorecardEvent';public 
  var 
  scorecardId:Number; 
  /*** 
  The 
  constructor,*/ 
  public function LoadScorecardEvent( 
  ) { 
   
  super( EVENT_LOAD_SCORECARD 
  ); 
  } } 
  } then in a view dispatching like so var devent : 
  LoadScorecardEvent = new LoadScorecardEvent(); 
   
  devent.scorecardId = 
  5;CairngormEventDispatcher.getInstance().dispatchEvent( 
  devent ); and in the command I have public 
  function execute( eventHere : CairngormEvent ) : void 
  { 
  var del : MainDelegate = new MainDelegate( this 
  ); 
  del.getScorecard( eventHere.scorecardId 
  );} 
  But this bombs out with a error about scorecardId not in eventHere. 
   DK -- Douglas 
  Knudsen http://www.cubicleman.com this is my signature, 
  like it?--Flexcoders Mailing 
  ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
  Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
  Groups Links* To visit your group on the web, go 
  to: 
  http://groups.yahoo.com/group/flexcoders/ * To 
  unsubscribe from this group, send an email 
  to: 
  [EMAIL PROTECTED]* Your use of 
  Yahoo! Groups is subject to:  
  http://docs.yahoo.com/info/terms/-- Douglas Knudsenhttp://www.cubicleman.com 
this is my signature, like it? 
  -- Ralf Bokelberg [EMAIL PROTECTED]
  Flex  Flash Consultant based in Cologne/Germany 
  -- Ralf Bokelberg 
[EMAIL PROTECTED]Flex 
 Flash Consultant based in Cologne/Germany  
__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit yo

Re: initialize vs. construct/init...Re: [flexcoders] constructObject2() vs. init()? (Flex 1.5)

2006-07-27 Thread JesterXL
2 things to do to ensure you're not nuts.

1. Add recompile=true to the end of the URL string.  Slows compiling, but 
it's worth the piece of mind.

2. Delete generated everytime you want to be sure your changes are in fact 
taking.  Mine's here for Flex 1.5:
C:\JRun4\servers\starExhibits\cfusion-ear\cfusion-war\WEB-INF\flex\generated

LOL Royal... AWESOME.  Whew, that made my Thursday.  Mmmm, tasty 
burger

First off, bindings are supposed to free you from initialization worries. 
Here's how it was in Flash:
- capture data in member var
- create asset
- wait a frame
- set data
- delete member var
- repeat process in convulted way

In Flex?  Bind value in View and it'll work when she's created.  Pimp!

I'm sorry to hear it's not working that way for you.  Here's the rundown.

- init
- createChildren
- initial drawing
* initialize is before everything is done drawing
- createChildren is the last event fired when everyone and their mom is 
ready

There is a good rundown of this on Adobe's DevNet site.  If you want the 
link, I can go find; it's a pretty good explanation.






- Original Message - 
From: G [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, July 27, 2006 5:22 PM
Subject: Re: initialize vs. construct/init...Re: [flexcoders] 
constructObject2() vs. init()? (Flex 1.5)


The code is too complicated to summarize--there are so
many interconnections it would take you days to
untangle (it has me!).  For a long time we've
encountered what we thought was a compiler bug where
the order of compilation would change the behavior of
the application.  That is, if we deleted everything
and compiled from scratch, some binding would not
execute, and some component would not display.  Then
if we simply touched the code of the disappearing
component, it would show up!  Apparently the only
difference is the order that things are
compiled/linked.

I have come to believe in the last few days that it's
not a compiler bug, but a simple
order-of-initialization problem.  One needs to
understand very well the order of initialization,
invalidation, and so on, and to this point we've been
blissfully unaware of it.

Anyway, that's why I'm investigating constructObject2
and init now--trying to get a handle on it.  But as
with so many things in the documentation, things in AS
and Flex are done slightly differently, but with no
acknowledgement of the differences.  They got the same
shit over there we got over here, it's just there it's
a little different.  I'm trying to order a Royal with
Cheese, reading from the American menu.


Greg

--- JesterXL [EMAIL PROTECTED] wrote:

 Of course I'm not sure.  What are you initializing,
 and who is expecting
 them to be initialized?

 - Original Message - 
 From: G [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Thursday, July 27, 2006 3:51 PM
 Subject: initialize vs. construct/init...Re:
 [flexcoders] constructObject2()
 vs. init()? (Flex 1.5)


  However, you're better off just have your
 initialize
  event call a function
  in your MXML and do non-GUI related stuff there.

 Are you sure about that?  That seems to be exactly
 the
 source of our problems.  If we initialize values in
 the initialize handler, it seems they are being
 initialized too late, and values end up not being
 properly set.



 
  - Original Message - 
  From: G [EMAIL PROTECTED]
  To: flexcoders@yahoogroups.com
  Sent: Thursday, July 27, 2006 3:25 PM
  Subject: [flexcoders] constructObject2() vs.
 init()?
  (Flex 1.5)
 
 
  Quick question:  What is the relationship between
  constructObject2 and init?  The document I found
 on
  creating components does not mention
  constructObject2,
  but the flex compiler seems not to allow
 overriding
  of
  init() (in an mxml file).
 
  But init() does not take parameters.  Does one
 call
  the other?  Are they analogous for different
  situations?
 
  Thanks,
 
  Greg
 
  __
  Do You Yahoo!?
  Tired of spam?  Yahoo! Mail has the best spam
  protection around
  http://mail.yahoo.com
 
 
  --
  Flexcoders Mailing List
  FAQ:
 

http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
 

http://www.mail-archive.com/flexcoders%40yahoogroups.com
  Yahoo! Groups Links
 
 
 
 
 
 
 


 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam
 protection around
 http://mail.yahoo.com


 --
 Flexcoders Mailing List
 FAQ:

http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:

http://www.mail-archive.com/flexcoders%40yahoogroups.com
 Yahoo! Groups Links








__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders

Re: [flexcoders] Play video files in Flex

2006-07-27 Thread JesterXL





You can also utilize ffmpeg to convert server-side 
(or client too I guess). It's what Google  YouTube do.

http://ffmpeg.mplayerhq.hu/


- Original Message - 
From: Kelly @ Dekayd Media 
Inc. 
To: flexcoders@yahoogroups.com 
Sent: Thursday, July 27, 2006 7:04 PM
Subject: RE: [flexcoders] Play video files in Flex


If I remember correctly 
Flex video player components only play .flv files.

In order to play other 
types you will need to either pre-convert them or use Flash Media Server which 
(I think) converts them on the fly.



--Kelly







From: 
flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com] 
On Behalf Of User ABCSent: Thursday, July 27, 2006 11:50 
AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Play video files in 
Flex





Do you know how to play .wmv, .avi, ... (don't 
count.flv) video files in Flex? I use VideoDisplay control in Flex 
to play .flv, but not able to play any other video file 
format.



Thank you




 




See the all-new, redesigned Yahoo.com. Check it 
out.  

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] Re: cairngorm Events and data payloads

2006-07-27 Thread JesterXL
My initial frustration was I'd create this event class, which allowed 
strong-typing, like so:

package
{
import com.adobe.control.CairngormEvent;

public class MyEvent extends CairngormEvent
{
public static const ACTION:String = action;

public var someID:int;

public function MyEvent(p_type:String, p_someID:int)
{
super(p_type);
someID = p_someID;
}
}
}

So, my event now has context.  If I need to have my Command get a person 
record from the DB for example, this event will contain the payload it 
needs; the person ID I'm looking for.  However, by the time it gets to the 
Command, it's a base class, the CairngormEvent.

package
{
public class MyCommand implements AllTheInterfacesEct
{
public function execute ( event:CairngormEvent )
{
trace(event.someID); // faith based programming
}
}
}

Now, for some, their Events are directly linked to Commands, like so:

LoginEvent will fire LoginCommand which calls LoginDelegate
GetPersonEvent will fire GetPersonCommand which calls GetPersonDelegate

At a simple level, yes, this'll do.  So, you can acutally make some 
assumptions in the above; if you play by the default Cairngorm rules, you 
KNOW by convention that your MyCommand class will get a MyEvent, so you 
could risk up-casting, like so:

someDelegateMethod ( MyEvent ( event ) . someID );

...that's faith, though.  You'll get an exception if for some reason that's 
not the real event.  It'd be better if the compiler caught that vs. the 
runtime, before it's a problem.  For me, I use multiple events inside 
Commands, so it's exacerbated.  The Controller keeps all of this under tabs, 
but again, it'd be nice if MyCommand for example GOT MyEvent in the execute. 
I supposed you could make that assumption; not sure if it'd compile. 
Anyway, convention over strict-typing is ok since a lot of conventions teams 
follow can do the above, for example, and assume you'll get what you need.


- Original Message - 
From: ben.clinkinbeard [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, July 27, 2006 10:22 PM
Subject: [flexcoders] Re: cairngorm Events and data payloads


Forgive the dense noob here, but how is the type info lost? I thought
that by subclassing CairngormEvent you get basic checking and then you
can just do a cast or 'event as MyCutomEvent' inside the execute
method. I guess I am just not clear on what the issue is and where the
problem lies. Can someone edumacate me?

Thanks,
Ben
http://www.returnundefined.com/

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

 Well, my events extend CairngormEvent, so I can technically upcast
'em when they get in the Command's execute method.  I know Steven
didn't really dig this idea, but if you case the type, you can compare
to the Event's constant like:

 public static const EVENT_DOSOMETHING:String = doSomething;

 function execute(event:CairngormEvent)
 {
 switch(event.type)
 {
 case MyEvent.EVENT_DOSOMETHING:
 someMethod ( MyEvent(event).someTypeSafeProp);
 break;
 }
 }


 - Original Message - 
 From: Ralf Bokelberg
 To: flexcoders@yahoogroups.com
 Sent: Thursday, July 27, 2006 4:20 PM
 Subject: Re: [flexcoders] Re: cairngorm Events and data payloads


 The only typesafe solution i can think of, is to abandon
CairngormEvents and replace them by methods of the FrontController.
Most of the apps i've seen so far don't make use of the runtime
changeability anyways. What do we loose if we do it like that?

 Cheers,
 Ralf.


 On 7/27/06, JesterXL [EMAIL PROTECTED] wrote:
   I'm with you.  I've been determing type of event based on the
event.type in the Command's execute method to get my strong-typing back.

   - Original Message - 
   From: Ralf Bokelberg
   To: flexcoders@yahoogroups.com
   Sent: Thursday, July 27, 2006 12:58 PM
   Subject: Re: [flexcoders] Re: cairngorm Events and data payloads


   Its really a pity, that we loose all the nice type information
while going all the way through Cairngorm.

   Cheers,
   Ralf.


   On 7/27/06, Douglas Knudsen [EMAIL PROTECTED] wrote:
 ah, righto.  thanks d00ds.  I had this hacked up too much...no
worky good.   If only I can get that damn RO to calm down now and do
what its told!  but that's another thread.


 DK



 On 7/27/06, thunderstumpgesatwork  [EMAIL PROTECTED] wrote:
   Hi,

   The delegate function thinks you just have a CairngormEvent. I
think
   you just need to check to make sure the event you received is your
   custom event type and then cast it.

   so:

   if (eventHere is LoadScorecardEvent)
   {
   del.getScorecard( LoadScorecardEvent(eventHere).scorecardId );
   }
   else
   {
   // do nothing, or raise error, or log warning, or whatever.
   }


   best of luck,
   Thunder

   --- In flexcoders

Re: [flexcoders] Re: cairngorm Events and data payloads

2006-07-27 Thread JesterXL
5 coffee's and 3 RedBull's later, I'm running on fumes, so don't really have 
intelligent answers for you, just guesses.

Don't know, I guess you're right.

Find some way to either A) follow the convention a Command will get the 
event class of a similiar name, and thus feel safe in casting it or B ) find 
some way to strongly type that parameter.  You can't up-cast function 
arguments, though, so it's kind of stuck as CairngormEvent... I think.

For the multiple events, yes, you are correct.  I've definately taken for 
granted all my other stuff has worked for that very fact.  Oops.

Actually, at this point, no clue... wtf were you talking about anyway, 
Bokel?

- Original Message - 
From: ben.clinkinbeard [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, July 27, 2006 10:50 PM
Subject: [flexcoders] Re: cairngorm Events and data payloads


Doesn't execute() accept a CairngromEvent for the sake of polymorphism
though? How could you do things any differently and still preserve
that aspect? Additionally, if you want your Commands to support
multiple types of events isn't it essential that execute() accept a
superclass or common interface? Are you just wishing AS supported
method overloading or is there something I am still not getting?

Thanks,
Ben
http://www.returnundefined.com/

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

 My initial frustration was I'd create this event class, which allowed
 strong-typing, like so:

 package
 {
 import com.adobe.control.CairngormEvent;

 public class MyEvent extends CairngormEvent
 {
 public static const ACTION:String = action;

 public var someID:int;

 public function MyEvent(p_type:String, p_someID:int)
 {
 super(p_type);
 someID = p_someID;
 }
 }
 }

 So, my event now has context.  If I need to have my Command get a
person
 record from the DB for example, this event will contain the payload it
 needs; the person ID I'm looking for.  However, by the time it gets
to the
 Command, it's a base class, the CairngormEvent.

 package
 {
 public class MyCommand implements AllTheInterfacesEct
 {
 public function execute ( event:CairngormEvent )
 {
 trace(event.someID); // faith based programming
 }
 }
 }

 Now, for some, their Events are directly linked to Commands, like so:

 LoginEvent will fire LoginCommand which calls LoginDelegate
 GetPersonEvent will fire GetPersonCommand which calls GetPersonDelegate

 At a simple level, yes, this'll do.  So, you can acutally make some
 assumptions in the above; if you play by the default Cairngorm
rules, you
 KNOW by convention that your MyCommand class will get a MyEvent, so you
 could risk up-casting, like so:

 someDelegateMethod ( MyEvent ( event ) . someID );

 ...that's faith, though.  You'll get an exception if for some reason
that's
 not the real event.  It'd be better if the compiler caught that vs. the
 runtime, before it's a problem.  For me, I use multiple events inside
 Commands, so it's exacerbated.  The Controller keeps all of this
under tabs,
 but again, it'd be nice if MyCommand for example GOT MyEvent in the
execute.
 I supposed you could make that assumption; not sure if it'd compile.
 Anyway, convention over strict-typing is ok since a lot of
conventions teams
 follow can do the above, for example, and assume you'll get what you
need.


 - Original Message - 
 From: ben.clinkinbeard [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Thursday, July 27, 2006 10:22 PM
 Subject: [flexcoders] Re: cairngorm Events and data payloads


 Forgive the dense noob here, but how is the type info lost? I thought
 that by subclassing CairngormEvent you get basic checking and then you
 can just do a cast or 'event as MyCutomEvent' inside the execute
 method. I guess I am just not clear on what the issue is and where the
 problem lies. Can someone edumacate me?

 Thanks,
 Ben
 http://www.returnundefined.com/

 --- In flexcoders@yahoogroups.com, JesterXL jesterxl@ wrote:
 
  Well, my events extend CairngormEvent, so I can technically upcast
 'em when they get in the Command's execute method.  I know Steven
 didn't really dig this idea, but if you case the type, you can compare
 to the Event's constant like:
 
  public static const EVENT_DOSOMETHING:String = doSomething;
 
  function execute(event:CairngormEvent)
  {
  switch(event.type)
  {
  case MyEvent.EVENT_DOSOMETHING:
  someMethod ( MyEvent(event).someTypeSafeProp);
  break;
  }
  }
 
 
  - Original Message - 
  From: Ralf Bokelberg
  To: flexcoders@yahoogroups.com
  Sent: Thursday, July 27, 2006 4:20 PM
  Subject: Re: [flexcoders] Re: cairngorm Events and data payloads
 
 
  The only typesafe solution i can think of, is to abandon
 CairngormEvents and replace them by methods of the FrontController.
 Most of the apps i've seen so far don't

Re: [flexcoders] addChild to Loader component

2006-07-26 Thread JesterXL





If you want to show something in Flex, it must 
implement IUIComponent. Easiest way?

var a:UIComponent = new UIComponent();
a.addChild(yourLoader);
addChild(a);

- Original Message - 
From: Gadi Srebnik 
To: flexcoders@yahoogroups.com 
Sent: Wednesday, July 26, 2006 4:57 AM
Subject: [flexcoders] addChild to Loader component

I tried to load a 
binary image data lo loader object, which worked 
great.
but when I tried to 
add this loader object - addChild(loader) I got this 
message:

TypeError: Error 
#1034: Type Coercion failed: cannot convert flash.display::[EMAIL PROTECTED] to 
mx.core.IUIComponent.

the thing is that in 
all Adobe'shelp pageson Loader components, they use this method to 
display the image.
am I doing something 
wrong?

Best regards, 

gadi 
__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] Using filters on text removes antialiasing

2006-07-26 Thread JesterXL
I have the same problem, but don't know of a fix.

- Original Message - 
From: m88e24 [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, July 26, 2006 6:34 AM
Subject: [flexcoders] Using filters on text removes antialiasing


Flex 2 final
Player r15

When using a filter like a GlowEffect on a Text element, antialiasing
seems to be cancelled. When the filter is not defined then the font
looks smooth with antialiasing as normal. I use embedded fonts!

mx:Text text=SNS 1 
   fontWeight=bold color=white 
   fontAntiAliasType=advanced 
   mx:filters
  filters:GlowFilter quality={BitmapFilterQuality.HIGH}
color=#00/
   /mx:filters
/mx:Text 

Does anyone now if there is any other property I must set to keep the
font smooth when using a filter?
The Flex documentation is pretty silent on this matter.












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



 




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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Re: Image Pan - Step 1

2006-07-26 Thread JesterXL
1. You could use the old skool Object (hash / associative array) approach, 
or the new Dictionary class.

2. set the scrollRect to 200x400, and then just move the sprite.  So:

myContainer = new Sprite();
myContainer.addChild(myMap);
myContainer.scrollRect = new Rect(0, 0, 200, 400);
addChild(myContainer);
myMap.x += 100;

Don't know 3.

- Original Message - 
From: richmcgillicuddy [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, July 26, 2006 9:13 AM
Subject: [flexcoders] Re: Image Pan - Step 1


Last night, I was able to find a demo called SpriteArranger that
showed addng different types of objects as children to a DisplayCanvas
 . This really helped in understanding the AddChild. I think I'll go
with the displayobjects initially since we have a PC version written
that uses the same approach. I still am having issues with panning an
image left, right... Then the next things I need to figure out are:

1. Making an internal searchable list of children. I saw the AddChild
function, but the displayobject does not have a Children Property. I
need to research the different types of arrays and find one that I can
have a key associated with the object so as data comes in, I can
update sprite 47. Is there a HashArray or something similar. These
maybe simple questions but I am brand new to this stuff. There seems
to be tons of docs but few examples.

2. On the panning issue, lets say I have a map background that is
1000x1000. My viewport is 200X400, I need to understand how to control
the viewport and panning.

3. Memory Management. As you mentioned, tons of objects will have
issues, I need to get a feel for how many is too many, if the user
switches maps, how to delete the children...


Thanks for your help,


Rich

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

 Base class is like DisplayObjectContainer, but that's an abstract
class;
 both Sprite and MovieClip extend that.  However, if you are using Flex,
 there is no point to utilize MovieClip since you don't have frames;
Sprite's
 good.  Also, the last line should be addChild(container), at least
in an AS3
 project.

 ...however, you have 2 choices here.

 DisplayObjects are nice because you can put all of your map data in one
 DisplayObject, and then move just that 1 Sprite, scale that 1
sprite, ect.
 It makes your code really concise, and flexible because you can put
anything
 you want in it.  Think how Yahoo Maps and Google Maps have like
textures,
 directions, lines, markers, etc. all in theirs.

 ...but tons of obects, while better in Flash Player 9, are still
slower than
 1 bitmap.  If you aren't planning of going all charting-style, you
outta
 give thought to a blitting solution if you want her to scale
hardcore.  You
 basically draw everything to an offscreen bitmap, and then use a
Rect to
 copyPixels into an on-screen bitmap.  That way, you could add
thousands of
 objects, and you're map would run really well.  Harder to code and less
 flexible, though.  Sprites and the DisplayObject really nice, so.

 - Original Message - 
 From: richmcgillicuddy [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Tuesday, July 25, 2006 8:29 PM
 Subject: [flexcoders] Re: Image Pan - Step 1


 OK, just needed the right terms to search on. Found this in the help:


 import flash.display.Sprite;
 import flash.events.MouseEvent;

 var container:Sprite = new Sprite();
 container.name = container;

 var circle:Sprite = new Sprite();
 circle.name = circle;
 circle.graphics.beginFill(0xFFCC00);
 circle.graphics.drawCircle(40, 40, 40);

 container.addChild(circle);

 container.mouseChildren = false;

 container.addEventListener(MouseEvent.CLICK, clicked);

 function clicked(event:MouseEvent):void {
 trace(event.target.name); // container
 }


 Then, it states to add the container to the DisplayObject. This is
 where I get confused. What is the base container class for the
 DisplayList and how do I attach it? I don't think I need a movie clip
 becuase it says it basically is a sprite with a timeline.


 Rich


 --- In flexcoders@yahoogroups.com, JesterXL jesterxl@ wrote:
 
  2. If they are children, they too will scale.  Add them to the
Sprite's
  displaylist.
 
  3. We've done this successfully in Flex 1.5.  In Flex 2, you can set
 the
  toolTipClass on the ToolTipManager class to utilize your own class.
 
  4. To combine multiple effects at the same time, utilize the
 mx:Parrellel
  tag; it'll make all effects inside it happen at the same time
(exluding
  their own startDelay attributes).
 
  Have you tried replacing x  y with scrollRect?
 
  - Original Message - 
  From: richmcgillicuddy rich@
  To: flexcoders@yahoogroups.com
  Sent: Tuesday, July 25, 2006 3:02 PM
  Subject: [flexcoders] Image Pan - Step 1
 
 
  Hello,
 
 
  I am new to the group and to Flex/Flash. We have a mapping tool that
  we had created about a year back that uses flash 8. We want to move up
  to Flex 2 for a number

Re: [flexcoders] Create variables dynamic in Flex 2

2006-07-26 Thread JesterXL
Make the class dynamic or use an object.

var o:Object = {};
for (var i:uint=0; i == 10; i++)
{
var myVar_i:String = new String();
o[myVar_ + i] = new String();
}

Or:

package
{
dynamic public class Flexible
{
publid function Flexible()
{
}
}
}

var a:Flexible = new Flexible();
a[cow + i] = new String();


- Original Message - 
From: Artur Kordowski [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, July 26, 2006 10:24 AM
Subject: RE: [flexcoders] Create variables dynamic in Flex 2


But i dont want to use an array. I would like to create those vars on the
fly.

Artur

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Paul Andrews
Sent: Wednesday, July 26, 2006 4:07 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Create variables dynamic in Flex 2


- Original Message -
From: Paul Andrews [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, July 26, 2006 3:04 PM
Subject: Re: [flexcoders] Create variables dynamic in Flex 2


 - Original Message - 
 From: Artur Kordowski [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Wednesday, July 26, 2006 2:58 PM
 Subject: [flexcoders] Create variables dynamic in Flex 2


 How can I create in a loop variables dynamicly?
 Like this:

 for (var i:uint=0; i == 10; i++)
 {
 var myVar_i:String = new String();
 }

 Any idea?

 var myVar:Array = new Array();
 for (var i:uint=0; i == 10; i++)
 {
 myVar[i]  = new String();
 }






 Artur



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









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













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









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








 Yahoo! Groups Sponsor ~-- 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/TktRrD/gOaOAA/yQLSAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Re: Image Pan - Step 1

2006-07-26 Thread JesterXL
Actually, the code should port quite easily.

the image.onEnterFrame for example should be changed to addEventListener.

The _x should be changed to just x.

A lot of those are minor.  Flash 8 didn't have Sprite; all we had was 
MovieClip so you could still use MovieClip in Flash Player 9, but there 
isn't a point, and Sprite  MovieClip have most of the same required 
properties  methods you need.

- Original Message - 
From: richmcgillicuddy [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, July 26, 2006 10:55 AM
Subject: [flexcoders] Re: Image Pan - Step 1


Thanks for the tips. I have a few days of work to get done (Both flex
and non flex) with this stuff and I'll follow up and let you know how
it goes.

On the pan, I was able to find something that uses movie clips but and
flash7/8 (so it won't work) but it is exactly what I was looking for.
You can find it here
(http://sephiroth.it/tutorials/flashPHP/scrollRect/). What would I
need to do in order to convert this to the container/child image code
in Flex 2?


Rich

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



 1. You could use the old skool Object (hash / associative array)
approach,
 or the new Dictionary class.

 2. set the scrollRect to 200x400, and then just move the sprite.  So:

 myContainer = new Sprite();
 myContainer.addChild(myMap);
 myContainer.scrollRect = new Rect(0, 0, 200, 400);
 addChild(myContainer);
 myMap.x += 100;

 Don't know 3.

 - Original Message - 
 From: richmcgillicuddy [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Wednesday, July 26, 2006 9:13 AM
 Subject: [flexcoders] Re: Image Pan - Step 1


 Last night, I was able to find a demo called SpriteArranger that
 showed addng different types of objects as children to a DisplayCanvas
  . This really helped in understanding the AddChild. I think I'll go
 with the displayobjects initially since we have a PC version written
 that uses the same approach. I still am having issues with panning an
 image left, right... Then the next things I need to figure out are:

 1. Making an internal searchable list of children. I saw the AddChild
 function, but the displayobject does not have a Children Property. I
 need to research the different types of arrays and find one that I can
 have a key associated with the object so as data comes in, I can
 update sprite 47. Is there a HashArray or something similar. These
 maybe simple questions but I am brand new to this stuff. There seems
 to be tons of docs but few examples.

 2. On the panning issue, lets say I have a map background that is
 1000x1000. My viewport is 200X400, I need to understand how to control
 the viewport and panning.

 3. Memory Management. As you mentioned, tons of objects will have
 issues, I need to get a feel for how many is too many, if the user
 switches maps, how to delete the children...


 Thanks for your help,


 Rich

 --- In flexcoders@yahoogroups.com, JesterXL jesterxl@ wrote:
 
  Base class is like DisplayObjectContainer, but that's an abstract
 class;
  both Sprite and MovieClip extend that.  However, if you are using
Flex,
  there is no point to utilize MovieClip since you don't have frames;
 Sprite's
  good.  Also, the last line should be addChild(container), at least
 in an AS3
  project.
 
  ...however, you have 2 choices here.
 
  DisplayObjects are nice because you can put all of your map data
in one
  DisplayObject, and then move just that 1 Sprite, scale that 1
 sprite, ect.
  It makes your code really concise, and flexible because you can put
 anything
  you want in it.  Think how Yahoo Maps and Google Maps have like
 textures,
  directions, lines, markers, etc. all in theirs.
 
  ...but tons of obects, while better in Flash Player 9, are still
 slower than
  1 bitmap.  If you aren't planning of going all charting-style, you
 outta
  give thought to a blitting solution if you want her to scale
 hardcore.  You
  basically draw everything to an offscreen bitmap, and then use a
 Rect to
  copyPixels into an on-screen bitmap.  That way, you could add
 thousands of
  objects, and you're map would run really well.  Harder to code and
less
  flexible, though.  Sprites and the DisplayObject really nice, so.
 
  - Original Message - 
  From: richmcgillicuddy rich@
  To: flexcoders@yahoogroups.com
  Sent: Tuesday, July 25, 2006 8:29 PM
  Subject: [flexcoders] Re: Image Pan - Step 1
 
 
  OK, just needed the right terms to search on. Found this in the help:
 
 
  import flash.display.Sprite;
  import flash.events.MouseEvent;
 
  var container:Sprite = new Sprite();
  container.name = container;
 
  var circle:Sprite = new Sprite();
  circle.name = circle;
  circle.graphics.beginFill(0xFFCC00);
  circle.graphics.drawCircle(40, 40, 40);
 
  container.addChild(circle);
 
  container.mouseChildren = false;
 
  container.addEventListener(MouseEvent.CLICK, clicked);
 
  function clicked(event:MouseEvent):void {
  trace

Re: [flexcoders] Re: Cairngorm Events

2006-07-26 Thread JesterXL





If you use dispatchEvent, yes. If you use 
CairngormEventDispatcher, no.

- Original Message - 
From: Ryan Stewart 

To: flexcoders@yahoogroups.com 
Sent: Wednesday, July 26, 2006 11:27 AM
Subject: Re: [flexcoders] Re: Cairngorm Events

Thanks guys, I 
know the usual method for Cairngorm events, and I'm using that as well, but in 
this case I'm doing some random voodo magic with dynamically generated 
components and I was hoping I could set an event listener for each of those 
components to capture an associated CairngormEvent. It doesn't sound like I can 
do that.

Thanks 
again,

Ryan


-Original 
Message-
From: 
[EMAIL PROTECTED]
Sent: Wednesday, 
July 26, 2006 9:22 AM -07:00
To: 
flexcoders@yahoogroups.com
Subject: 
[flexcoders] Re: Cairngorm Events

As Tom says, usually a 
Carirngorm event is dispatched to the 
FrontController, 
which in turn executes an instance of a command. 
And ultimatly, the 
ModelLocator gets updated and the view reacts via 
binding. 


Presently however, 
there isn't a mechanism to listen, for the result 
of the dispatched 
Cairngorm event, from the view.

Hoping to change 
that. Your question is valid and appropriate.

-TH

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

 On Wednesday 
26 July 2006 07:07, Ryan Stewart wrote:
  I'm 
still not entirely clear on the event model in Flex 2, so 
hopefully
  this is 
an easy question. I want to add an event listener in 
one of 
my
  flex 
view components that will listen ! for a CairngormEvent to be 
dispatched
  and then 
run a function within that component.
 
 Cairngorm 
would normally say that if you want something to happen 
when an 

 Event is 
dispatched, you put that code in the Controller 
associated with the 
 
Event.
 
 -- 

 Tom 
Chiverton
 
 

 
 This emai! l 
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 St James's Court Brown Street Manchester M2 
2JF. A list of 
members is available for inspection at the 
registered! 
office. Any reference to a partner in relation to 
Halliwells LLP 
means a member of Halliwells LLP. Regulated by the 
Law 
Society.
 
 
CONFIDENTIALITY
 
 This email is 
intended only for the use of the addressee named 
above and may be 
confidential or legally privileged. I! f 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 8008.
! 
 For more information about 
Halliwells LLP visit www.halliwells.com.




 
__._,_.___





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








   



  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] Question ANSWERED! Re: Embed images in one MovieClip, use in another?

2006-07-26 Thread JesterXL
Great!

Not sure if this'll offer anymore helpful advice:
http://www.adobe.com/devnet/flex/articles/rsl.html

- Original Message - 
From: G [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com; [EMAIL PROTECTED]
Sent: Wednesday, July 26, 2006 11:36 AM
Subject: [flexcoders] Question ANSWERED! Re: Embed images in one MovieClip, 
use in another?


Wow, I'm impressed!  Not with the documentation, but
that you were able to find it!  The answer could not
have been on a more circuitous, esoteric, and
non-obvious path.

These RSLs still don't _quite_ solve what we want to
do, which is to specify different libraries of images
at runtime.  From the documentation it looks like the
name of the rsl has to be hard-coded into the mx:App
tag.  But it's close enough!  If all else fails, we
can do something like this: mx:Application
rsl=lib1.sws; lib2.sws; lib3.sws; ... etc. .  Since
each one is only loaded as needed, it will be flexible
enough!  There's no reason not to list a hundred
different rsls in the app tag, if we need to.

And it may barely be possible to change the rsl
property at runtime.  (I find that highly unlikely,
but possible.)

Anyway, thank you, Jester!  It was exactly what I
needed!


Greg

--- JesterXL [EMAIL PROTECTED] wrote:

 Hah!  I don't care what anyone says, the Flex 1.5
 docs are good.


http://livedocs.macromedia.com/flex/15/flex_docs_en/1157.htm

 - Original Message - 
 From: G [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Tuesday, July 25, 2006 2:00 PM
 Subject: Re: [flexcoders] Anyone know the answer?
 Embed images in one
 MovieClip, use in another?


  Yahoo yuked on itself last night, so not sure if
 you
  ever got your remote
  shared libraries to work?

 No, I was waiting to hear more from you about how to
 do it.  Based on your previous emails and those
 links
 I now understand how attachMovie works (in
 conjunction
 with Object.registerClass) and I can manipulate
 those
 well (it's a pain because there's no error message
 if
 you get the linkage name wrong!).  But I'm not sure
 what to do to explore remote shared libraries.

 It's nice to hear Flash 9 fixes this problem, but
 that's not something we will be allowed to take
 advantage of for a long time, until we can be
 confident most of our users have switched.

 Thanks,


 Greg



 
  - Original Message - 
  From: G [EMAIL PROTECTED]
  To: flexcoders@yahoogroups.com
  Sent: Tuesday, July 25, 2006 11:25 AM
  Subject: Re: [flexcoders] Anyone know the answer?
  Embed images in one
  MovieClip, use in another?
 
 
  Thanks.  I believe duplicateMovie doesn't work.
  From
  the documentation of duplicateMovie:
 
  If you have loaded a movie clip using
  MovieClip.loadMovie() or the MovieClipLoader
 class,
  the contents of the SWF file are not duplicated.
  This
  means that you cannot save bandwidth by loading a
  JPEG
  or SWF file and then duplicating the movie clip.
 
  It baffles me why this is not allowed.  Does
 anyone
  know?  My guess is the developers ran into some
  issues
  and decided the easiest way around it was to
 pretend
  it was intended.
 
  The further problem, as you say here, is I have to
  move the clip around by hand, which eliminates the
  entire reason to use Flex, to try to organize our
  apps in a slightly object-oriented way.
 
  I believe Jester said this a day or two as well,
  that
  assets cannot be shared.  I'm starting to feel
 this
  is
  impossible with a capital I, but it still feels
 like
  there may be some very low-level way to do
  it--Remote
  Shared Libraries?
 
  The other option is to quit and get a job at
  In-and-Out Burgers.  I think I'm going to do that.
 
  Greg
 
 
  --- Shade Gmail [EMAIL PROTECTED] wrote:
 
   Hi,
  
  In the past I've worked through this kind of
   thing by loading external
   .SWFs dynamically and duplicateMovieClip()ing
 (or
   moving them) what I needed
   to the appropriate positions. That was Flash 7.
 It
   was ugly, but it worked
   as long as you didn't need any fancy depth work.
  
   Recently I've done similar stuff in Flash 8
 using
   BitmapData, which works
   great (and pretty easily too) if you're working
  with
   simple bitmap images.
   Actually, it should work well with generic
   movieclips as well (see the ...
   draw() method, I believe. Something like that).
  
   I'm not aware of a Flex way to do what you
 want.
  I
   do hope there is one,
   it is certainly lacking.
  
   Cheers and good luck,
  
  Pedro.
  
  
   On 7/24/06, G [EMAIL PROTECTED] wrote:
   
   Hi Jester--
   
Your example here is exactly what we don't
 want
  to
   do.
We don't want to embed all the images we need
  into
the swf--it makes the file size too big.
   
However, we don't want to load the images
   dynamically
each time we need them--that's too slow.
   
Our application is a game that uses pictures.
   Players
play the game for a while with one set of
  images,
   then
they change

Re: [flexcoders] Re: Cairngorm Events

2006-07-26 Thread JesterXL
Not anymore, no, as he's usually embedded at the top of the tree.   You 
could utilize ViewLocator I guess, but that is bleh.

- Original Message - 
From: Tom Chiverton [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, July 26, 2006 11:46 AM
Subject: Re: [flexcoders] Re: Cairngorm Events


On Wednesday 26 July 2006 16:35, JesterXL wrote:
 If you use dispatchEvent, yes.  If you use CairngormEventDispatcher, no.
 For more information about Halliwells LLP visit www.halliwells.com.

Though couldn't the Controller dispatchEvent() for the components to listen
too ?

-- 
Tom Chiverton



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 
St James's Court Brown Street Manchester M2 2JF.  A list of members is 
available for inspection at the registered office. Any reference to a 
partner in relation to Halliwells LLP means a member of Halliwells LLP. 
Regulated by the Law Society.

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

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




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







 Yahoo! Groups Sponsor ~-- 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/WktRrD/lOaOAA/yQLSAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Easy way to publish flex app as standalone EXE?

2006-07-26 Thread JesterXL
This didn't work in the beta, but apparently works now.

I went here:
C:\Program Files\Adobe\Flex Builder 2 Plug-in\Player\debug

and opened the SAFlashPlayer.exe.

Then I opened a compiled Flex 2 SWF using that.  You then go to File  
Create Projector.  This appears to create an exe like old.

However, this is a debug player, and I think that might create a debug SWF 
which will throw exception windows, and generally run slower than non-debug. 
There may be a way to get a Flash Player 9.exe normal player and do the same 
thing... :: looks ::

Yep!
C:\Program Files\Adobe\Flash 9 Public Alpha\Players

However, in testing, the SWF doesn't work..  maybe a different FLash 
player.

- Original Message - 
From: tddclare [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, July 26, 2006 11:56 AM
Subject: [flexcoders] Easy way to publish flex app as standalone EXE?


Hey,

In Flash you used to be able to publish a Projector (exe) file for
Windows.

I know there are a bunch of SWF to EXE apps out there (Zinc, etc), but
I don't need any of the filesystem APIs, etc, I just need to put my
app on a workstation with no internet access and no flash player
install possible (gotta love the government)...

Is there any Projector capability in Flex or any easy/cheap way to
make it work?

-- TC






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







 Yahoo! Groups Sponsor ~-- 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/WktRrD/lOaOAA/yQLSAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] TitleWindow - Positioning and Background Blurring

2006-07-26 Thread JesterXL
1. Application has a global style, modalTransparencyBlur, that you can set 
to 0.

2. PopUpManager.centerPopUp ( YourPopUpHere );

- Original Message - 
From: Stefan Schmalhaus [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, July 26, 2006 12:53 PM
Subject: [flexcoders] TitleWindow - Positioning and Background Blurring


1. Can I adjust the amount of blurring that is applied to the
background when I open a TitleWindow? Is it possible to completely
switch off the blurring?

2. How do I center a TitleWindow automatically?


Thanks in advance.

Stefan







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








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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Local Connection

2006-07-26 Thread JesterXL
Can you paste a snippet of your LocalConnection code in the Flash SWF?

- Original Message - 
From: flexnewbie06 [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, July 26, 2006 1:02 PM
Subject: [flexcoders] Local Connection


I think I am going to go crazy over this.  I have tried this a few 
different ways and always ending with the same result...not working.

I have 2 swf's loaded in my app with SWFLoader. They use local 
connection to talk to each other.  If i run app with swfloader with 
no source and then dynamically set the swf source when something 
happens in the app, local connection doesn't work.  If i load the swf 
in design the local connection works fine. For example Code 1 doesn't 
work, Code 2 does...If you can lend a hand I would REALLY appreciate 
it.

Jenn

Code 1*
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
layout=absolute
mx:Script
![CDATA[ 
public function load():void {
mainswf.source = file.swf;
}
]]
/mx:Script
mx:Panel x=25 y=10 width=528 height=383 layout=absolute
mx:SWFLoader id=mainswf x=10 y=10 width=467 height=271/
mx:ApplicationControlBar x=10 y=0 width=539 height=60
mx:SWFLoader id=menu source=menu.swf width=499 height=58/
/mx:ApplicationControlBar
/mx:Panel
mx:Button click=load() id=loader x=25 y=445 label=Button/
/mx:Application


**Code 2***

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
layout=absolute
mx:Panel x=25 y=10 width=528 height=383 layout=absolute
mx:SWFLoader id=mainswf source=file.swf x=10 y=10 
width=467 height=271/
mx:ApplicationControlBar x=10 y=0 width=539 height=60
mx:SWFLoader id=menu source=menu.swf width=499 height=58/
/mx:ApplicationControlBar
/mx:Panel
mx:Button click=load() id=loader x=25 y=445 label=Button/
/mx:Application






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



 




 Yahoo! Groups Sponsor ~-- 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/TktRrD/gOaOAA/yQLSAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Re: Local Connection

2006-07-26 Thread JesterXL
Try again, but put an underscore in front of the name for both SWF's.

_swfConnect instead of swfConnect.


- Original Message - 
From: flexnewbie06 [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, July 26, 2006 1:59 PM
Subject: [flexcoders] Re: Local Connection


Jester, 
I have tried putting the local connection code in the main flex app 
and calling to the embedded SWF and this is the attempt at creating a 
second embedded swf (menu) to make the calls to the main SWF...either 
way if the swf is loaded at runtime...local connection is a no go.

Thanks 

*This is my menu.swf local connection code...

#include mc_tween2.as
stop();
var lcsend:LocalConnection = new LocalConnection();
play_btn.onRelease = function(){
lcsend.send (swfConnect, playFile);
}
stop_btn.onRelease = function () {
lcsend.send (swfConnect, stopandrestart);
}
pause_btn.onRelease = function () {
lcsend.send (swfConnect , pauseFile); 
}

*And this is the Main.swf local connection code

var lc:LocalConnection = new LocalConnection();
lc.pauseFile = function() {
stop();
}
lc.resumeFile = function() {
play();
}
lc.stopandrestart = function() {
gotoAndStop(1);
}
lc.playFile = function () {
gotoAndPlay(1);
}
lc.getframeNum = function () {

}
lc.connect(swfConnect);

***




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

 Can you paste a snippet of your LocalConnection code in the Flash 
SWF?
 
 - Original Message - 
 From: flexnewbie06 [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Wednesday, July 26, 2006 1:02 PM
 Subject: [flexcoders] Local Connection
 
 
 I think I am going to go crazy over this.  I have tried this a few 
 different ways and always ending with the same result...not working.
 
 I have 2 swf's loaded in my app with SWFLoader. They use local 
 connection to talk to each other.  If i run app with swfloader with 
 no source and then dynamically set the swf source when something 
 happens in the app, local connection doesn't work.  If i load the 
swf 
 in design the local connection works fine. For example Code 1 
doesn't 
 work, Code 2 does...If you can lend a hand I would REALLY 
appreciate 
 it.
 
 Jenn
 
 Code 1*
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
 layout=absolute
 mx:Script
 ![CDATA[ 
 public function load():void {
 mainswf.source = file.swf;
 }
 ]]
 /mx:Script
 mx:Panel x=25 y=10 width=528 height=383 layout=absolute
 mx:SWFLoader id=mainswf x=10 y=10 width=467 height=271/
 mx:ApplicationControlBar x=10 y=0 width=539 height=60
 mx:SWFLoader id=menu source=menu.swf width=499 height=58/
 /mx:ApplicationControlBar
 /mx:Panel
 mx:Button click=load() id=loader x=25 y=445 
label=Button/
 /mx:Application
 
 
 **Code 2***
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
 layout=absolute
 mx:Panel x=25 y=10 width=528 height=383 layout=absolute
 mx:SWFLoader id=mainswf source=file.swf x=10 y=10 
 width=467 height=271/
 mx:ApplicationControlBar x=10 y=0 width=539 height=60
 mx:SWFLoader id=menu source=menu.swf width=499 height=58/
 /mx:ApplicationControlBar
 /mx:Panel
 mx:Button click=load() id=loader x=25 y=445 
label=Button/
 /mx:Application
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: http://www.mail-archive.com/flexcoders%
40yahoogroups.com 
 Yahoo! Groups Links









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



 



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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Re: Local Connection

2006-07-26 Thread JesterXL
Oh it's deeper than emptying a source reference.  Welcome to the dark side 
of ActionScript 3..

http://www.gskinner.com/blog/archives/2006/06/as3_resource_ma.html

http://www.gskinner.com/blog/archives/2006/07/as3_resource_ma_1.html

BTW, do your SWF's talk to eachother locally without Flex?

- Original Message - 
From: flexnewbie06 [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, July 26, 2006 3:13 PM
Subject: [flexcoders] Re: Local Connection


okay, thanks...that works for loading a swf at runtime if the
SWFLoader has no assigned source.  However, if the SWFLoader has an
assigned source and you try to change it during runtime, then LC
doesn't work anymore.

That comes back to your last comment about garbage collection and the
original swf not being cleaned up before the new one is loaded, i
tried to research what you meant but as far i could tell all I could
do in flex was to set the SWFLoader source to = before loading the
next swf.  I could not find any unload methods.

Thanks again for helping.


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

 Try again, but put an underscore in front of the name for both
SWF's.

 _swfConnect instead of swfConnect.


 - Original Message - 
 From: flexnewbie06 [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Wednesday, July 26, 2006 1:59 PM
 Subject: [flexcoders] Re: Local Connection


 Jester,
 I have tried putting the local connection code in the main flex app
 and calling to the embedded SWF and this is the attempt at creating
a
 second embedded swf (menu) to make the calls to the main
SWF...either
 way if the swf is loaded at runtime...local connection is a no go.

 Thanks

 *This is my menu.swf local connection code...

 #include mc_tween2.as
 stop();
 var lcsend:LocalConnection = new LocalConnection();
 play_btn.onRelease = function(){
 lcsend.send (swfConnect, playFile);
 }
 stop_btn.onRelease = function () {
 lcsend.send (swfConnect, stopandrestart);
 }
 pause_btn.onRelease = function () {
 lcsend.send (swfConnect , pauseFile);
 }

 *And this is the Main.swf local connection code

 var lc:LocalConnection = new LocalConnection();
 lc.pauseFile = function() {
 stop();
 }
 lc.resumeFile = function() {
 play();
 }
 lc.stopandrestart = function() {
 gotoAndStop(1);
 }
 lc.playFile = function () {
 gotoAndPlay(1);
 }
 lc.getframeNum = function () {

 }
 lc.connect(swfConnect);

 ***




 --- In flexcoders@yahoogroups.com, JesterXL jesterxl@ wrote:
 
  Can you paste a snippet of your LocalConnection code in the Flash
 SWF?
 
  - Original Message - 
  From: flexnewbie06 flexnewbie06@
  To: flexcoders@yahoogroups.com
  Sent: Wednesday, July 26, 2006 1:02 PM
  Subject: [flexcoders] Local Connection
 
 
  I think I am going to go crazy over this.  I have tried this a
few
  different ways and always ending with the same result...not
working.
 
  I have 2 swf's loaded in my app with SWFLoader. They use local
  connection to talk to each other.  If i run app with swfloader
with
  no source and then dynamically set the swf source when something
  happens in the app, local connection doesn't work.  If i load the
 swf
  in design the local connection works fine. For example Code 1
 doesn't
  work, Code 2 does...If you can lend a hand I would REALLY
 appreciate
  it.
 
  Jenn
 
  Code 1*
  ?xml version=1.0 encoding=utf-8?
  mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
  layout=absolute
  mx:Script
  ![CDATA[
  public function load():void {
  mainswf.source = file.swf;
  }
  ]]
  /mx:Script
  mx:Panel x=25 y=10 width=528 height=383
layout=absolute
  mx:SWFLoader id=mainswf x=10 y=10 width=467
height=271/
  mx:ApplicationControlBar x=10 y=0 width=539 height=60
  mx:SWFLoader id=menu source=menu.swf width=499
height=58/
  /mx:ApplicationControlBar
  /mx:Panel
  mx:Button click=load() id=loader x=25 y=445
 label=Button/
  /mx:Application
 
 
  **Code 2***
 
  ?xml version=1.0 encoding=utf-8?
  mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
  layout=absolute
  mx:Panel x=25 y=10 width=528 height=383
layout=absolute
  mx:SWFLoader id=mainswf source=file.swf x=10 y=10
  width=467 height=271/
  mx:ApplicationControlBar x=10 y=0 width=539 height=60
  mx:SWFLoader id=menu source=menu.swf width=499
height=58/
  /mx:ApplicationControlBar
  /mx:Panel
  mx:Button click=load() id=loader x=25 y=445
 label=Button/
  /mx:Application
 
 
 
 
 
 
  --
  Flexcoders Mailing List
  FAQ:
 http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives: http://www.mail-archive.com/flexcoders%
 40yahoogroups.com
  Yahoo! Groups Links
 








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








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files

Re: [flexcoders] Cairngorm 2 - Sample Application?

2006-07-26 Thread JesterXL
Here's one, source at bottom:
http://www.jessewarden.com/archives/2006/07/flex_2_webservice.html

- Original Message - 
From: jakana1566 [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, July 26, 2006 3:25 PM
Subject: [flexcoders] Cairngorm 2 - Sample Application?


I'm new to cairngorm and have been reading and studying the various 
documentation and sample apps on Adobe's web site.  I downloaded the 
Cairngorm 0.99 code / sample apps, and also the new Cairngorm 2 code 
(which doesn't have any sample apps).

I've been trying to create a simple application based on Cairngorm 2, 
but the only sample application I have available for reference is the 
store application that uses Cairngorm 0.99.  I've noticed several 
differences, especially related to event handling and the model 
locator.

Has anyone created a sample application that uses Cairngorm 2 yet (or 
updated the sample store application)?  If so, where can I get the 
source code as a reference for learning Cairngorm?

Thanks!







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



 



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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Alert + background blurring

2006-07-26 Thread JesterXL
Try this in your CSS:

Application
{
modalTransparencyBlur: 3; // default
modalTransparencyColor: #99; // default is #FF I think
}


- Original Message - 
From: Chris [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, July 26, 2006 6:59 PM
Subject: [flexcoders] Alert + background blurring


I was wondering how you can control the alert boxes default ability to
lighten and blur the canvas when it pops up to darken and blur instead.

I looked through the API reference but don't see a way to do it.

Anyone?

thanks!
Chris






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



 




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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Best practices for organizing base code library and project specific code

2006-07-25 Thread JesterXL
The only reason I don't keep com.jxl.utils.* as an SWC Library project in 
FlexBuilder to allow 50 billion projects to use it is because those classes 
get tweaked every single project... so, rather than tweak something, and 
break a ton of other projects that have dependencies on it, I just put a 
custom build for each project in the namespace like you said.

One of these days, maybe I'll stop tweaking.  Till then, there is SVN.

- Original Message - 
From: ben.clinkinbeard [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, July 25, 2006 10:25 AM
Subject: [flexcoders] Best practices for organizing base code library and 
project specific code


Just wondering how people out there approach this. Obviously, I have
my project neautral, reusable code stored in a structure like
com.mydomain.utils, etc. This is off in a general location. Currently,
I have a structure like com.mydomain.projects.MyCurrentProject inside
the actual Flex project folder, and I link the reusable code's folder
into the project.

Using the com.mydomain.etc structure in my project folders means I
could later integrate all of the code into one location without
editing the packages, so I am wondering if I should just do that to
begin with. If I kept everything in a central place I could just link
my library to each project but I would not have any code held with the
actual Flex files. I think I prefer my current approach but would like
to get some feedback from others and see what other methods people are
using.

Thanks,
Ben
http://www.returnundefined.com/







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








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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Anyone know the answer? Embed images in one MovieClip, use in another?

2006-07-25 Thread JesterXL
The assets can be shared in Flash Player 9, just not 8 and below. 
Unfortunately, you're in the same boat as me and using Flex 1.5, and having 
to deal with Flash + Flex; I know, it's rough.

Yahoo yuked on itself last night, so not sure if you ever got your remote 
shared libraries to work?

- Original Message - 
From: G [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, July 25, 2006 11:25 AM
Subject: Re: [flexcoders] Anyone know the answer? Embed images in one 
MovieClip, use in another?


Thanks.  I believe duplicateMovie doesn't work.  From
the documentation of duplicateMovie:

If you have loaded a movie clip using
MovieClip.loadMovie() or the MovieClipLoader class,
the contents of the SWF file are not duplicated. This
means that you cannot save bandwidth by loading a JPEG
or SWF file and then duplicating the movie clip.

It baffles me why this is not allowed.  Does anyone
know?  My guess is the developers ran into some issues
and decided the easiest way around it was to pretend
it was intended.

The further problem, as you say here, is I have to
move the clip around by hand, which eliminates the
entire reason to use Flex, to try to organize our
apps in a slightly object-oriented way.

I believe Jester said this a day or two as well, that
assets cannot be shared.  I'm starting to feel this is
impossible with a capital I, but it still feels like
there may be some very low-level way to do it--Remote
Shared Libraries?

The other option is to quit and get a job at
In-and-Out Burgers.  I think I'm going to do that.

Greg


--- Shade Gmail [EMAIL PROTECTED] wrote:

 Hi,

In the past I've worked through this kind of
 thing by loading external
 .SWFs dynamically and duplicateMovieClip()ing (or
 moving them) what I needed
 to the appropriate positions. That was Flash 7. It
 was ugly, but it worked
 as long as you didn't need any fancy depth work.

 Recently I've done similar stuff in Flash 8 using
 BitmapData, which works
 great (and pretty easily too) if you're working with
 simple bitmap images.
 Actually, it should work well with generic
 movieclips as well (see the ...
 draw() method, I believe. Something like that).

 I'm not aware of a Flex way to do what you want. I
 do hope there is one,
 it is certainly lacking.

 Cheers and good luck,

Pedro.


 On 7/24/06, G [EMAIL PROTECTED] wrote:
 
 Hi Jester--
 
  Your example here is exactly what we don't want to
 do.
  We don't want to embed all the images we need into
  the swf--it makes the file size too big.
 
  However, we don't want to load the images
 dynamically
  each time we need them--that's too slow.
 
  Our application is a game that uses pictures.
 Players
  play the game for a while with one set of images,
 then
  they change to a new set of images.
 
  What we want is to have something like sets of
  images that we can load one time then use
 repeatedly.
  So when the player first starts the game, they
 will
  get the images from Set1.swf (for example). Then
 when
  it's time to change images, we will load a new
 set,
  Set2.swf, etc.
 
  We only want to load the new images one time,
 because
  we have to change the source property of Image
 tags
  repeatedly, and this is costly.
 
  If you know another way to do this from what I am
  asking about, please tell me! But what we are
  wondering is if it's possible to load a swf
 containing
  embedded images, then use those images in the
 loading
  (host) swf?
 
  Thank you!
 
 
  Greg
 
  --- JesterXL [EMAIL PROTECTED]
 jesterxl%40jessewarden.com
  wrote:
 
   Don't use SWF's. Flex 1.5  2 have ways to embed
   them.
  
   [Embed(my1.jpg)]
   var my1_img:Class;
  
   [Embed(my1.jpg)]
   var my2_img:Class;
  
   [Embed(my1.jpg)]
   var my3_img:Class;
  
   mx:Image id=img source={my1_img} /
  
   Then, have some function swap:
  
   function swapImage(val)
   {
   img.source = val;
   }
  
   swapImage(my1_img);
   swapImage(my2_img);
   swapImage(my3_img);
  
   You could use setInterval, setTimeout, or Timer
 to
   loop through those...
  
   ...or use a Flash generated SWF; whatever your
   fancy.
  
   - Original Message -
   From: G [EMAIL PROTECTED]
 greg556%40yahoo.com
   To: flexcoders@yahoogroups.com
 flexcoders%40yahoogroups.com
   Sent: Saturday, July 22, 2006 11:59 AM
   Subject: Re: [flexcoders] Anyone know the
 answer?
   Embed images in one
   MovieClip, use in another?
  
  
   This line:
  
   mx:Loader id=container source=Container.swf
 /
  
   does not load a swf file containing the embedded
   image
   into my application? That is news to me.
  
   The reason I want to do it is irrelevant to my
   question, but here it is: We have an animation
 that
   loads many images at once (external images).
 Even
   with the images in the browser's cache it is
   drastically slowing down the application.
  
   That embedded images are not loaded is exactly
 the
   point. We want to load a swf with several images
   embedded in it, then use those

Re: [flexcoders] Re: has anyone ever disabled selectability for a textArea??

2006-07-25 Thread JesterXL
It does, but TextArea extends Sprite, not TextField.  It uses the 
UITextField via composition.  Unfortunately (or fortunately?) the textField 
variable is protected.  Additionally, the textField is selectable by 
default.  You could do:

package
{
import mx.controls.TextArea;

class MyTextArea extends TextArea
{
protected override function createChildren():void
{
super.createChildren();
textField.selectable = false;
}
}
}

And then use view:MyTextArea / instead.

- Original Message - 
From: jpc14_99 [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, July 25, 2006 2:03 PM
Subject: [flexcoders] Re: has anyone ever disabled selectability for a 
textArea??


Thanks.  That does make the textArea unselectable but unfortunately
it also wipes out my background color and text color.  For the life
of me I don't understand why Flex doesn't have a simple selectable
attribute included with textArea.


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

 Try this:

 mx:TextArea enabled=false disabledColor=0x33
 text=Some text /


 --- In flexcoders@yahoogroups.com, JClouz jclouser@ wrote:
 
  I'm sorry to be a bother but this seems like it should be so easy
 but its driving me nuts.
 
  I want to get rid of selectability/i-beam mouseover cursor on a
 textArea field.
 
  With a Text component, you just set. myText.selectability = false.
 
  How do I do it for a textArea field?  Can it be done?  I want to
 use textArea instead of text because I need a background.
 
  Please help!!!
 
  Thanks so much.
 
  Jamie
  MKCNSC, inc.
 







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







 Yahoo! Groups Sponsor ~-- 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/WktRrD/lOaOAA/yQLSAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Anyone know the answer? Embed images in one MovieClip, use in another?

2006-07-25 Thread JesterXL
Hah!  I don't care what anyone says, the Flex 1.5 docs are good.

http://livedocs.macromedia.com/flex/15/flex_docs_en/1157.htm

- Original Message - 
From: G [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, July 25, 2006 2:00 PM
Subject: Re: [flexcoders] Anyone know the answer? Embed images in one 
MovieClip, use in another?


 Yahoo yuked on itself last night, so not sure if you
 ever got your remote
 shared libraries to work?

No, I was waiting to hear more from you about how to
do it.  Based on your previous emails and those links
I now understand how attachMovie works (in conjunction
with Object.registerClass) and I can manipulate those
well (it's a pain because there's no error message if
you get the linkage name wrong!).  But I'm not sure
what to do to explore remote shared libraries.

It's nice to hear Flash 9 fixes this problem, but
that's not something we will be allowed to take
advantage of for a long time, until we can be
confident most of our users have switched.

Thanks,


Greg




 - Original Message - 
 From: G [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Tuesday, July 25, 2006 11:25 AM
 Subject: Re: [flexcoders] Anyone know the answer?
 Embed images in one
 MovieClip, use in another?


 Thanks.  I believe duplicateMovie doesn't work.
 From
 the documentation of duplicateMovie:

 If you have loaded a movie clip using
 MovieClip.loadMovie() or the MovieClipLoader class,
 the contents of the SWF file are not duplicated.
 This
 means that you cannot save bandwidth by loading a
 JPEG
 or SWF file and then duplicating the movie clip.

 It baffles me why this is not allowed.  Does anyone
 know?  My guess is the developers ran into some
 issues
 and decided the easiest way around it was to pretend
 it was intended.

 The further problem, as you say here, is I have to
 move the clip around by hand, which eliminates the
 entire reason to use Flex, to try to organize our
 apps in a slightly object-oriented way.

 I believe Jester said this a day or two as well,
 that
 assets cannot be shared.  I'm starting to feel this
 is
 impossible with a capital I, but it still feels like
 there may be some very low-level way to do
 it--Remote
 Shared Libraries?

 The other option is to quit and get a job at
 In-and-Out Burgers.  I think I'm going to do that.

 Greg


 --- Shade Gmail [EMAIL PROTECTED] wrote:

  Hi,
 
 In the past I've worked through this kind of
  thing by loading external
  .SWFs dynamically and duplicateMovieClip()ing (or
  moving them) what I needed
  to the appropriate positions. That was Flash 7. It
  was ugly, but it worked
  as long as you didn't need any fancy depth work.
 
  Recently I've done similar stuff in Flash 8 using
  BitmapData, which works
  great (and pretty easily too) if you're working
 with
  simple bitmap images.
  Actually, it should work well with generic
  movieclips as well (see the ...
  draw() method, I believe. Something like that).
 
  I'm not aware of a Flex way to do what you want.
 I
  do hope there is one,
  it is certainly lacking.
 
  Cheers and good luck,
 
 Pedro.
 
 
  On 7/24/06, G [EMAIL PROTECTED] wrote:
  
  Hi Jester--
  
   Your example here is exactly what we don't want
 to
  do.
   We don't want to embed all the images we need
 into
   the swf--it makes the file size too big.
  
   However, we don't want to load the images
  dynamically
   each time we need them--that's too slow.
  
   Our application is a game that uses pictures.
  Players
   play the game for a while with one set of
 images,
  then
   they change to a new set of images.
  
   What we want is to have something like sets of
   images that we can load one time then use
  repeatedly.
   So when the player first starts the game, they
  will
   get the images from Set1.swf (for example). Then
  when
   it's time to change images, we will load a new
  set,
   Set2.swf, etc.
  
   We only want to load the new images one time,
  because
   we have to change the source property of Image
  tags
   repeatedly, and this is costly.
  
   If you know another way to do this from what I
 am
   asking about, please tell me! But what we are
   wondering is if it's possible to load a swf
  containing
   embedded images, then use those images in the
  loading
   (host) swf?
  
   Thank you!
  
  
   Greg
  
   --- JesterXL [EMAIL PROTECTED]
  jesterxl%40jessewarden.com
   wrote:
  
Don't use SWF's. Flex 1.5  2 have ways to
 embed
them.
   
[Embed(my1.jpg)]
var my1_img:Class;
   
[Embed(my1.jpg)]
var my2_img:Class;
   
[Embed(my1.jpg)]
var my3_img:Class;
   
mx:Image id=img source={my1_img} /
   
Then, have some function swap:
   
function swapImage(val)
{
img.source = val;
}
   
swapImage(my1_img);
swapImage(my2_img);
swapImage(my3_img);
   
You could use setInterval, setTimeout, or
 Timer
  to
loop through those...
   
...or use a Flash generated SWF; whatever

Re: [flexcoders] Re: Pointing to Dynamic variables

2006-07-25 Thread JesterXL
Try:

this[ label + i ].text = xmlOut.zalozbe.zalozba[i];


- Original Message - 
From: arnold_charming [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, July 25, 2006 2:47 PM
Subject: [flexcoders] Re: Pointing to Dynamic variables


Anyone?

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

 Hi!
 
 I have 3 labels with three different IDs:
 mx:Label id=label1
 mx:Label id=label2
 mx:Label id=label3
 
 Now I want to use a for...loop statement to dynamicly get access to
 these labels and change their .text property. Something like this:
 
 for(var i:int = 0; i  xmlOut.zalozbe.children().length(); i++) 
 {
 txtZalozba[i].text = xmlOut.zalozbe.zalozba[i];
 }
 
 How can this be done?








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



 



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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Flex2 Event Calendar

2006-07-25 Thread JesterXL
You could maybe snag this.

http://weblogs.macromedia.com/khoyt/archives/2005/03/custom_calendar.cfm


- Original Message - 
From: David Brown [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, July 25, 2006 2:31 PM
Subject: [flexcoders] Flex2 Event Calendar


I would like to write a event calendar app in flex 2.  But I am not 
sure where to start.  Does anyone have some examples or could you 
point me to the object to use.  I was thinking a grid and then using 
it like a table in html, but not sure.  

David







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



 



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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Re: dispatching TextEvent on image click

2006-07-25 Thread JesterXL
- import the event
- create it
- dispatch it

Don't know the classpath, but something like:

mx.events.TextEvent;

var te:TextEvent = new TextEvent ( TextEvent.TEXT, false, true );
dispatchEvent(te);

Then at the top of your class, do:

[Event(name=TextSomething, type=mx.events.TextEvent)]

Make sense?

- Original Message - 
From: arnold_charming [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, July 25, 2006 2:53 PM
Subject: [flexcoders] Re: dispatching TextEvent on image click


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

 Hi!
 
 How to dispatch a TextEvent when a user clicks on an image? Thank you.


Can this be done? Tnx.







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



 




 Yahoo! Groups Sponsor ~-- 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/3EuRwD/bOaOAA/yQLSAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] TextSnapshot not working in Flex 2

2006-07-25 Thread JesterXL





You don't... unless you use Flash.

As far as x  y, no clue, I suck at text. 
Maybe this?
http://www.quasimondo.com/archives/000620.php

- Original Message - 
From: Jignesh 
Satra 
To: flexcoders@yahoogroups.com 
Sent: Monday, July 24, 2006 12:51 AM
Subject: Re: [flexcoders] TextSnapshot not working in Flex 
2

Thats OK but then how do I have static text in Flex?

Also, is there any other way to find X and Y co ordinates for a specific 
character in TextArea?

Thanx in advance,
Jignesh SatraJesterXL [EMAIL PROTECTED] 
wrote:

  
  TextSnapshot is only for static text, not dynamic or input.- 
  Original Message - From: "satrajignesh" satrajignesh@yahoo.comTo: 
  [EMAIL PROTECTED]ups.comSent: 
  Friday, July 21, 2006 1:23 AMSubject: [flexcoders] TextSnapshot not 
  working in Flex 2Hi there,I have a TextArea which gets 
  dynamically populated with text received from Server. At the client on 
  some specific event I need to retrieve X and Y co ordinates of some text. 
  There is property in TextArea called textSnapshot, but whenever I try to 
  get it the character count is always Zero and hence doesn't help me. 
  Anybody, has any ideas on this? or Have ever tried using text 
  snapshot? or tried getting X,Y co ordinates of specific text in 
  TextArea?Thanx in advance,Jignesh 
  Satra--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
  Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
  Yahoo! Groups 
Links


How low will we go? Check out Yahoo! Messenger’s low PC-to-Phone 
call rates.  
__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] Image Pan - Step 1

2006-07-25 Thread JesterXL
2. If they are children, they too will scale.  Add them to the Sprite's 
displaylist.

3. We've done this successfully in Flex 1.5.  In Flex 2, you can set the 
toolTipClass on the ToolTipManager class to utilize your own class.

4. To combine multiple effects at the same time, utilize the mx:Parrellel 
tag; it'll make all effects inside it happen at the same time (exluding 
their own startDelay attributes).

Have you tried replacing x  y with scrollRect?

- Original Message - 
From: richmcgillicuddy [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, July 25, 2006 3:02 PM
Subject: [flexcoders] Image Pan - Step 1


Hello,


I am new to the group and to Flex/Flash. We have a mapping tool that
we had created about a year back that uses flash 8. We want to move up
to Flex 2 for a number of reasons. I am trying to create the mapping
hello world application. We use a standard png image as the background
for the map. I am trying to create a simple image in a panel that has
a series of buttons to the left where I can zoom in/out and pan in all
directions. The zoom in/out is working fine (although I have questions
regarding that) but the pan is not working. My code is attached to the
bottom of this email message. Logically the steps I need to go through
to get this to work are:

1. Simple map - Image management Pan Zoom Possibly overview window
similar to Google or Yahoo.
2. Create an object that is a member of that map. This object needs to
be able to display itself as a number of different types (Images,
dots, characters). After reading through tutorials, I can create my
own object that descends from a sprite. My questions here are will the
dot zoom and coordinate based on the zoom, pan of the background map?
How can I make that happen?
3. More complex tooltips than the standard tooltips. I want a tooltip
that displays about 5-10 lines of information and possibly links to
other areas of the web site. Would you just create a separate window
to act as a tooltip window and place whatever information in the
window you need?
4. Incorporating effects to the movements of these objects. I've seen
the component explorer, I want the movement of these items on the map
to slide from one spot to the other. The demo app in the explorer
works well. How would you combine multiple effects to happen at the
same time?

Any help would be greatly appreciated.


Step 1 Source Code


?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=horizontal
   mx:Script
![CDATA[

private function panUp():void {
   myMap.scrollRect.top -= 10;
   trace(myMap.scrollRect);
   if (myMap.scrollRect.top  0) {
myMap.scrollRect.top = 0;
   }
}

private function panDown():void {
   myMap.scrollRect.top += 10;
   trace(myMap.scrollRect);
   if (myMap.scrollRect.top  0) {
myMap.scrollRect.top = 0;
   }
}

private function panRight():void {
   myMap.scrollRect.left += 10;
   trace(myMap.scrollRect);
   if (myMap.scrollRect.left  0) {
myMap.scrollRect.left = 0;
   }
}

private function panLeft():void {
   myMap.scrollRect.left -= 10;
   trace(myMap.scrollRect);
   if (myMap.scrollRect.left  0) {
myMap.scrollRect.left = 0;
   }
}

private function zoomIn():void {
   myMap.scaleX += 0.1;
   myMap.scaleY += 0.1;
}

private function zoomOut():void {
   myMap.scaleX -= 0.1;
   myMap.scaleY -= 0.1;
}
  ]]
 /mx:Script
mx:VBox height=100%
mx:Button label=Left id=btnLeft click=panLeft()/
mx:Button label=Right id=btnRight click=panRight()/
mx:Button label=Up id=btnUp click=panUp()/
mx:Button label=Down id=btnDown click=panDown()/
mx:Spacer/
mx:Button label=Zoom In id=btnZoomIn click=zoomIn()/
mx:Button label=Zoom Out id=btnZoomOut click=zoomOut()/
/mx:VBox
mx:Panel width=100% height=100% layout=absolute
cornerRadius=33 backgroundColor=#c0c0c0 id=myPanel title=Map
Basics 101 fontFamily=Georgia fontSize=16
mx:Image horizontalCenter=20 verticalCenter=20 width=504
height=601 source=SB memorial map.png scaleContent=false
id=myMap/
/mx:Panel

/mx:Application









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







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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe 

Re: [flexcoders] Re: has anyone ever disabled selectability for a textArea??

2006-07-25 Thread JesterXL
Namespace the ho!  Think of namespaces like imports.

import mx.controls.TextArea;

That allows you to do:

var a:TextArea = new TextArea();

So do like:

view:MyClass xmlns:view=your.package.path.* /

Or, if you are going to use MyClass multiple times, but the xmlns:view stuff 
in your root tag so you only have to write it once.


- Original Message - 
From: jpc14_99 [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, July 25, 2006 5:47 PM
Subject: [flexcoders] Re: has anyone ever disabled selectability for a 
textArea??



 package
 {
 import mx.controls.TextArea;

 class MyTextArea extends TextArea
 {
 protected override function createChildren():void
 {
 super.createChildren();
 textField.selectable = false;
 }
 }
 }

 And then use view:MyTextArea / instead.


Thanks.  I think I have this setup properly but now I'm getting a

The prefix view for element view:myTextArea is not bound
compiler error.

Is there something I'm missing so Flex can recognize my new class?
The class is packaged in with all of my other .as custom classes.  I
can include it and recognize it in the Actionscript, but this view
command doesn't seem to be working in the mxml.






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







 Yahoo! Groups Sponsor ~-- 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/7EuRwD/fOaOAA/yQLSAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] What is the difference between an Array and an ArrayCollection?

2006-07-25 Thread JesterXL





A drawer from Disney's "Beauty and the Beast" that 
goes, "Dude, you just put something in me!".

It does this by emitting an event, 
collectionChanged, when this happens. Controls can listen for this event 
and knowwhen the array is updatedin order to redraw themselves, like 
theDataGrid, List, etc.

An Array is like a drawer in the real world. 
You can put something in it, but it doesn't talk to you.

- Original Message - 
From: Bill 
Brown 
To: flexcoders@yahoogroups.com 
Sent: Tuesday, July 25, 2006 5:59 PM
Subject: [flexcoders] What is the difference between an Array and an 
ArrayCollection?
This is a pretty newbie programming question, but coming from an 
AS1/AS2 background I'm not familiar with the difference between an Array and an 
ArrayCollection.Could someone please explain the difference, or suggest a 
URL that explains the difference? When I learned about arrays through 
Phillip Kerman's Actionscript book, he suggested that a "variable" was like a 
drawer that could hold data and an "array" was like a chest of drawers where you 
could reference each drawer with an index. What would an "arrayCollection" be in 
this analogy? Thanks,BB 
__._,_.___





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








   



  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] What is the difference between an Array and an ArrayCollection?

2006-07-25 Thread JesterXL





It also has some nice methods to help you put 
things in certain spots. You can add things via addItem just like 
Array.push, but it has cool methods like replaceItemAt, contains, and removeAll 
among others. All trigger this "collectionChanged" event. Finally, 
it implements some commonly used Interfaces which allows other controls to 
support ArrayCollection, making it just as flexible.

http://livedocs.macromedia.com/flex/2/langref/mx/collections/ArrayCollection.html

- Original Message ----- 
From: JesterXL 
To: flexcoders@yahoogroups.com 
Sent: Tuesday, July 25, 2006 6:06 PM
Subject: Re: [flexcoders] What is the difference between an Array 
and an ArrayCollection?

A drawer from Disney's "Beauty and the Beast" that 
goes, "Dude, you just put something in me!".

It does this by emitting an event, 
collectionChanged, when this happens. Controls can listen for this event 
and knowwhen the array is updatedin order to redraw themselves, like 
theDataGrid, List, etc.

An Array is like a drawer in the real world. 
You can put something in it, but it doesn't talk to you.

- Original Message - 
From: Bill 
Brown 
To: flexcoders@yahoogroups.com 
Sent: Tuesday, July 25, 2006 5:59 PM
Subject: [flexcoders] What is the difference between an Array and an 
ArrayCollection?
This is a pretty newbie programming question, but coming from an 
AS1/AS2 background I'm not familiar with the difference between an Array and an 
ArrayCollection.Could someone please explain the difference, or suggest a 
URL that explains the difference? When I learned about arrays through 
Phillip Kerman's Actionscript book, he suggested that a "variable" was like a 
drawer that could hold data and an "array" was like a chest of drawers where you 
could reference each drawer with an index. What would an "arrayCollection" be in 
this analogy? Thanks,BB 
__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] Caringorm - Visual Flowchart Poster!

2006-07-25 Thread JesterXL
Only change homey is:

- Command creates Delegate, and calls method on it, passing itself (usually) 
in as a responder
- Delegate gets service from ServiceLocator, and then calls server
- upon response, either massages it (via Factory) or just simply gives it 
back as is to the Command

All in all, your diagram is pretty effective in showing the seperation as 
well as the circular nature.

I agree with Mike; make that mofo bigger!

- Original Message - 
From: Evan Gifford [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, July 25, 2006 6:33 PM
Subject: [flexcoders] Caringorm - Visual Flowchart Poster!


My fellow Flexcoders!

After reading Steven's excellent article covering the Cairngorm architecture
( Start the 6-part series here -
  http://www.adobe.com/devnet/flex/articles/cairngorm_pt1.html )

I've started creating a flowchart tracing a Cairngorm Event from the Event 
Broadcaster with a data payload through the cairngorm process:

Work in progress - you'll get the idea at least - 
http://www.undustrial.com/cairngorm.jpg

This starts with the Front Controller, then to a Command Class, to the 
Service Locater and to the server . then back to the Command Class to 
the Model Locater and finally back to the view through data binding . 
hmm, I think that's right?

Anyway, it occurs to me that someone may have already done this?

  If so, will you please post so I can make it into a poster (for re-post!)?
  If not, would someone be willing to collaborate with me (I'm totally new
  cairngorm)?

Being half-designer-half-programmer, I'd love to create a downloadable PDF 
for us Flexcoders to use!

Thanks!
Evan








-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.10.4/396 - Release Date: 7/24/2006



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








 Yahoo! Groups Sponsor ~-- 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/7EuRwD/fOaOAA/yQLSAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Re: has anyone ever disabled selectability for a textArea??

2006-07-25 Thread JesterXL
TextArea just got owned.
http://www.jessewarden.com/archives/2006/07/nonselectable_t.html


- Original Message - 
From: jpc14_99 [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, July 25, 2006 7:37 PM
Subject: [flexcoders] Re: has anyone ever disabled selectability for a 
textArea??


Thanks for all the help.  I have it recognizing my class just fine
now.  Unfortunately I'm getting this error:

Attempted access of inaccessible property textField through a
reference with static type...


So the class I'm using (below) isn't quite cutting it.  Any ideas for
changes?

--

package
{
import mx.controls.TextArea;

public class myTextArea extends TextArea
{
protected override function createChildren():void {
textField.selectable = false;
super.createChildren();
}
}
}






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







 Yahoo! Groups Sponsor ~-- 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/WktRrD/lOaOAA/yQLSAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Re: Image Pan - Step 1

2006-07-25 Thread JesterXL
Base class is like DisplayObjectContainer, but that's an abstract class; 
both Sprite and MovieClip extend that.  However, if you are using Flex, 
there is no point to utilize MovieClip since you don't have frames; Sprite's 
good.  Also, the last line should be addChild(container), at least in an AS3 
project.

...however, you have 2 choices here.

DisplayObjects are nice because you can put all of your map data in one 
DisplayObject, and then move just that 1 Sprite, scale that 1 sprite, ect. 
It makes your code really concise, and flexible because you can put anything 
you want in it.  Think how Yahoo Maps and Google Maps have like textures, 
directions, lines, markers, etc. all in theirs.

...but tons of obects, while better in Flash Player 9, are still slower than 
1 bitmap.  If you aren't planning of going all charting-style, you outta 
give thought to a blitting solution if you want her to scale hardcore.  You 
basically draw everything to an offscreen bitmap, and then use a Rect to 
copyPixels into an on-screen bitmap.  That way, you could add thousands of 
objects, and you're map would run really well.  Harder to code and less 
flexible, though.  Sprites and the DisplayObject really nice, so.

- Original Message - 
From: richmcgillicuddy [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, July 25, 2006 8:29 PM
Subject: [flexcoders] Re: Image Pan - Step 1


OK, just needed the right terms to search on. Found this in the help:


import flash.display.Sprite;
import flash.events.MouseEvent;

var container:Sprite = new Sprite();
container.name = container;

var circle:Sprite = new Sprite();
circle.name = circle;
circle.graphics.beginFill(0xFFCC00);
circle.graphics.drawCircle(40, 40, 40);

container.addChild(circle);

container.mouseChildren = false;

container.addEventListener(MouseEvent.CLICK, clicked);

function clicked(event:MouseEvent):void {
trace(event.target.name); // container
}


Then, it states to add the container to the DisplayObject. This is
where I get confused. What is the base container class for the
DisplayList and how do I attach it? I don't think I need a movie clip
becuase it says it basically is a sprite with a timeline.


Rich


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

 2. If they are children, they too will scale.  Add them to the Sprite's
 displaylist.

 3. We've done this successfully in Flex 1.5.  In Flex 2, you can set
the
 toolTipClass on the ToolTipManager class to utilize your own class.

 4. To combine multiple effects at the same time, utilize the
mx:Parrellel
 tag; it'll make all effects inside it happen at the same time (exluding
 their own startDelay attributes).

 Have you tried replacing x  y with scrollRect?

 - Original Message - 
 From: richmcgillicuddy [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Tuesday, July 25, 2006 3:02 PM
 Subject: [flexcoders] Image Pan - Step 1


 Hello,


 I am new to the group and to Flex/Flash. We have a mapping tool that
 we had created about a year back that uses flash 8. We want to move up
 to Flex 2 for a number of reasons. I am trying to create the mapping
 hello world application. We use a standard png image as the background
 for the map. I am trying to create a simple image in a panel that has
 a series of buttons to the left where I can zoom in/out and pan in all
 directions. The zoom in/out is working fine (although I have questions
 regarding that) but the pan is not working. My code is attached to the
 bottom of this email message. Logically the steps I need to go through
 to get this to work are:

 1. Simple map - Image management Pan Zoom Possibly overview window
 similar to Google or Yahoo.
 2. Create an object that is a member of that map. This object needs to
 be able to display itself as a number of different types (Images,
 dots, characters). After reading through tutorials, I can create my
 own object that descends from a sprite. My questions here are will the
 dot zoom and coordinate based on the zoom, pan of the background map?
 How can I make that happen?
 3. More complex tooltips than the standard tooltips. I want a tooltip
 that displays about 5-10 lines of information and possibly links to
 other areas of the web site. Would you just create a separate window
 to act as a tooltip window and place whatever information in the
 window you need?
 4. Incorporating effects to the movements of these objects. I've seen
 the component explorer, I want the movement of these items on the map
 to slide from one spot to the other. The demo app in the explorer
 works well. How would you combine multiple effects to happen at the
 same time?

 Any help would be greatly appreciated.


 Step 1 Source Code


 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=horizontal
mx:Script
 ![CDATA[

 private function panUp():void {
myMap.scrollRect.top -= 10

Re: [flexcoders] Flex arrows?

2006-07-24 Thread JesterXL





My guess is that was done for filesize 
reasons. The resulting SWF is smaller since ActionScript bytecode is a lot 
smaller via lzw compression than a PNG/GIF via the same. While the drawing 
is more CPU intensive, you cut corners for filesize where you can, and I 
understand their justification.


- Original Message - 
From: Douglas 
Knudsen 
To: flexcoders@yahoogroups.com 
Sent: Monday, July 24, 2006 11:27 AM
Subject: Re: [flexcoders] Flex arrows?
update...had some pressing issues. looking at 
\frameworks\source\mx\skins\halo\DateChooserMonthArrowSkin.aslooks like this 
thing does not even use a graphic at all. Code in there actually draws the 
arrows! I suppose this way screen scaling is a non-issue. 
DK
On 7/20/06, Douglas 
Knudsen [EMAIL PROTECTED] 
wrote:

  right, but I really don't want to creat a new skin, I want ot use the 
  existing skin so that it inherits all the Halo goodness, eh? I 
  still have not got this working yet. Looking deeper into the source for 
  the DateChooser and the DateChoser skin 
  I have found that the code actually draws the arrow. The DateChooser code adds styles like prevMonthOverSkin and 
  nextMonthOverSkin with default values. These styles names are expected 
  in teh programmatic skin and do not exist in the Button class. So 
  Jester, me got brave...not so brave as Mel Gibson mind you, I like me 
  entrails! This is a excerpt:fwdMonthButton = new 
  Button(); 
  fwdMonthButton.styleName = 
  this; 
  fwdMonthButton.autoRepeat = 
  true; 
  fwdMonthButton.focusEnabled = 
  false; 
  fwdMonthButton.upSkinName = 
  "nextMonthUpSkin"; 
  fwdMonthButton.overSkinName = 
  "nextMonthOverSkin"; 
  fwdMonthButton.downSkinName = 
  "nextMonthDownSkin"; 
  fwdMonthButton.disabledSkinName = "nextMonthDisabledSkin";ugh 
  where does Button.upSkinName come from? Its not in th edocs that i can 
  see.
  DK
  
  On 7/20/06, juan 
  sanchez [EMAIL PROTECTED] wrote:
  

download the default skin here.

http://www.adobe.com/devnet/flex/articles/flex_skins.html



On Jul 20, 2006, at 7:56 AM, Douglas Knudsen wrote:

  
  
  
  no 
  workiehope jester's bag of tricks is deep! I looked 
  around the Flex SDK source and see no arrow pngs at all, many other pngs 
  though. My guess is the arrows are compiled in a swc somewheres, 
  which means they should be 'grabable' eh? Be nice to use any 
  graphics in the SDK in custom components to maintain the 'Flexiness', eh? 
  What I'm 
  trying to do is create a next/previous month browser. We have 
  reports that users run on a month end basis, the datechoser is really not 
  the right tool for this. I'm just using mxml to do this 
  currently...suppose I will have to go off and lear the way of the force 
  for building components soon. DK 
  
  On 
  7/19/06, JesterXL 
   [EMAIL PROTECTED] 
  wrote: 
  


Hrm... 
try:

mx:Button 
click="onPrev()" upSkin="mx.skins.halo.DateChooserMonthArrowSkin" 
/

If that 
doesn't work, I have more ideas.

The skin 
is already imported in the defaults.css , so she IS in 
there.
 


- 
Original Message -
From: 
Douglas 
Knudsen
To: 
flexcoders@yahoogroups.com

Sent: 
Wednesday, July 19, 2006 4:00 PM
Subject: Re: 
[flexcoders] Flex arrows?


hmm, 
ok, I'm lost when it comes to fancy UI stuff :) How do you 
make use of this? mx:Button 
click="onPrev()"  
 upSkin="DateChooserMonthArrowSkin" /throws 
a def not found error. Do I import the sckin somehow? DK
On 
7/19/06, JesterXL 
 
[EMAIL PROTECTED] 
wrote:

  
  
  Found 
  these digging in DateChooser.as. I'm assuming these skins are 
  compiled into the base framework. Try using like 
  DateChooserMonthArrowSkin as one of your upSkins and see what 
  happens.
  
  * 
  nextMonthDisabledSkin="DateChooserMonthArrowSkin"* 
  nextMonthDownSkin="DateChooserMonthArrowSkin" * 
  nextMonthOverSkin="DateChooserMonthArrowSkin"* 
  nextMonthUpSkin="DateChooserMonthArrowSkin"* 
  nextYearDisabledSkin="DateChooserYearArrowSkin"* 
  nextYearDownSkin="DateChooserYearArrowSkin" * 
  nextYearOverSkin="DateChooserYearArrowSkin"* 
  nextYearUpSkin="DateChooserYearArrowSkin"* 
  prevMonthDisabledSkin="DateChooserMonthArrowSkin"* 
  prevMonthDownSkin="

Re: [flexcoders] Flex arrows?

2006-07-24 Thread JesterXL





I can't remember what email, but I showed the 
CSS. Can't you just use the same DateChooser CSS?

NextButton
{
 upSkin: 
ClassReference("mx.skins.halo.DateChooserMonthArrowSkin");
 downSkin: etc.
}

Then, just make a MXML file that extends 
Button.

???

- Original Message - 
From: Douglas 
Knudsen 
To: flexcoders@yahoogroups.com 
Sent: Monday, July 24, 2006 12:01 PM
Subject: Re: [flexcoders] Flex arrows?
gotcha! Now the question, I want to create a custom 
component called NextButton that acts the same as the one in the DateChooser and 
inherits the skin the same as the one in the DateChoser thus seemlessly 
interacting with the Flex framework. Adobe has let loose the source code 
for DateChooser. Does Adobe envision some of us copying some of their code 
in order to fulfill such a community benefiting component? DK
On 7/24/06, JesterXL 
[EMAIL PROTECTED] 
wrote:

  
  
  My guess is that was done for filesize 
  reasons. The resulting SWF is smaller since ActionScript bytecode is a 
  lot smaller via lzw compression than a PNG/GIF via the same. While the 
  drawing is more CPU intensive, you cut corners for filesize where you can, and 
  I understand their justification.
  
  
  
  - Original Message - 
  From: 
  Douglas Knudsen 

  To: flexcoders@yahoogroups.com 
  
  Sent: Monday, July 24, 2006 11:27 AM
  Subject: Re: [flexcoders] Flex arrows?
  
  
  update...had some pressing issues. looking at 
  \frameworks\source\mx\skins\halo\DateChooserMonthArrowSkin.aslooks like 
  this thing does not even use a graphic at all. Code in there actually 
  draws the arrows! I suppose this way screen scaling is a 
  non-issue. DK
  On 7/20/06, Douglas 
  Knudsen [EMAIL PROTECTED] wrote: 
  
right, but I really don't want to creat a new skin, I want ot use the 
existing skin so that it inherits all the Halo goodness, eh? I 
still have not got this working yet. Looking deeper into the source 
for the DateChooser and the DateChoser skin I have 
found that the code actually draws the arrow. The DateChooser code adds styles like prevMonthOverSkin and 
nextMonthOverSkin with default values. These styles names are expected 
in teh programmatic skin and do not exist in the Button class. So 
Jester, me got brave...not so brave as Mel Gibson mind you, I like me 
entrails! This is a excerpt:fwdMonthButton = new 
Button(); 
fwdMonthButton.styleName = 
this; 
fwdMonthButton.autoRepeat = 
true; 
fwdMonthButton.focusEnabled = 
false; 
fwdMonthButton.upSkinName = 
"nextMonthUpSkin"; 
fwdMonthButton.overSkinName = 
"nextMonthOverSkin"; 
fwdMonthButton.downSkinName = 
"nextMonthDownSkin"; 
fwdMonthButton.disabledSkinName = "nextMonthDisabledSkin";ugh 
where does Button.upSkinName come from? Its not in th edocs that i can 
see.
DK

On 7/20/06, juan 
sanchez [EMAIL PROTECTED] wrote: 

  
  download the default skin here. 
  
  http://www.adobe.com/devnet/flex/articles/flex_skins.html 
  
  
  
  
  On Jul 20, 2006, at 7:56 AM, Douglas Knudsen wrote:
  



no 
workiehope jester's bag of tricks is deep! I 
looked around the Flex SDK source and see no arrow pngs at all, many 
other pngs though. My guess is the arrows are compiled in a swc 
somewheres, which means they should be 'grabable' eh? Be nice to 
use any graphics in the SDK in custom components to maintain the 
'Flexiness', eh? What 
I'm trying to do is create a next/previous month browser. We have 
reports that users run on a month end basis, the datechoser is really 
not the right tool for this. I'm just using mxml to do this 
currently...suppose I will have to go off and lear the way of the force 
for building components soon. DK 

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

  
  
  Hrm... 
  try:
  
  mx:Button 
  click="onPrev()" upSkin="mx.skins.halo.DateChooserMonthArrowSkin" 
  /
  
  If that 
  doesn't work, I have more ideas.
  
  The 
  skin is already imported in the defaults.css , so she IS in 
  there.
   
  
  
  - 
  Original Message - 
  From: 
  Douglas 
  Knudsen
  To: 
  flexcoders@yahoogroups.com
  
  Sent: 
  Wednesday, July 19, 2006 4:00 PM
  Subject: Re: 
  [flexcoders] Flex arrows?
  
  
  hmm, 
  ok, I'm lost when it comes to fancy UI stuff :) How do you 
  make use of this? mx:Button 
  click="onPrev()"  
   upSkin=&

Re: [flexcoders] Still Fuzzy about Flex 2.0 and CFCs

2006-07-24 Thread JesterXL
Flex 2 can utilize AMF0 or AMF3; you just set the ObjectEncoding.

CF 7.0.2 can use AMF3; anything before only AMF0.

Flex 2 can talk to both old CF and new CF.  Talking to the old sucks from a 
client-side perspective.

- Original Message - 
From: Battershall, Jeff [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, July 24, 2006 12:08 PM
Subject: RE: [flexcoders] Still Fuzzy about Flex 2.0 and CFCs


OK, gotcha, but I suppose the other issue is what version of AMF is
availble server-side.  I'm getting the impression that AMF3 is necessary
both on the client and server in Flex 2.0 - am I right about that?

Jeff

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Chiverton
Sent: Monday, July 24, 2006 11:20 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Still Fuzzy about Flex 2.0 and CFCs


On Monday 24 July 2006 15:02, Battershall, Jeff wrote:
 Obviously, FDS would be a preferred way of integrating with CF if
 available,

Dunno about that.
There is a difference betwen granular record editing, and service
invocation -
FDS is better* for the former, remoting for the later.

-- 
Tom Chiverton



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 St James's Court Brown Street Manchester M2 2JF.  A list
of members is available for inspection at the registered office. Any
reference to a partner in relation to Halliwells LLP means a member of
Halliwells LLP. Regulated by the Law Society.

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

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




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







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








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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Flex arrows?

2006-07-24 Thread JesterXL





No, you're not missing anything obvious, it's just 
hard to keep track of past email discussions on this topic, sorry.

You have a choice; either go dig in the Button 
class to see how they are rotating the arrow, wait for me to do it this evening, 
or go take 2 minutes to create the arrows yourself, and use bitmap 
skins.

I'd vote for the later: Quick, no dependencies, and 
it'll get you a solution that works sooner than later. You're not using 
the framework, but it's a frikin' arrow, whoop-dee-doo, know what I'm 
sayin'?

Just go into your image editing program (Fireworks 
/ Photoshop):
- create arrow, both left and right
- save as PNG with transparency
- embed as the upSkin for NextButton next arrow, 
and left arrow for the PrevButton

If you set those in the CSS, you'll be able to 
do:

view:PrevButton /
view:NextButton /

And they'll automatically use the skin. This 
reduces the amount of code you'll need to write and makes it easy to modify the 
arrow application wide later. The DateChooser's arrow shouldn't be that 
hard to duplicate.

- Original Message - 
From: Douglas 
Knudsen 
To: flexcoders@yahoogroups.com 
Sent: Monday, July 24, 2006 12:25 PM
Subject: Re: [flexcoders] Flex arrows?
did that?xml version="1.0" 
encoding="utf-8"?mx:Button xmlns:mx="http://www.adobe.com/2006/mxml" 
upSkin="mx.skins.halo.DateChooserMonthArrowSkin " 
 
downSkin="mx.skins.halo.DateChooserMonthArrowSkin" 
 
overSkin="mx.skins.halo.DateChooserMonthArrowSkin" 
 disabledSkin="mx.skins.halo.DateChooserMonthArrowSkin" 
  
styleName="DateChooser"  
autoRepeat="true" focusEnabled="false"  
  
/mx:Buttonall it does is display a arrow. Can't tell 
it to use left or right arrow and no button skin. Am I missing something 
really obvious? DK
On 7/24/06, JesterXL 
[EMAIL PROTECTED] 
wrote:

  
  
  I can't remember what email, but I showed the 
  CSS. Can't you just use the same DateChooser CSS?
  
  NextButton
  {
   upSkin: 
  ClassReference("mx.skins.halo.DateChooserMonthArrowSkin");
   downSkin: 
etc.
  }
  
  Then, just make a MXML file that extends 
  Button.
  
  ???
  
  
  - Original Message - 
  From: 
  Douglas Knudsen 

  To: flexcoders@yahoogroups.com 
  
  Sent: Monday, July 24, 2006 12:01 PM
  Subject: Re: [flexcoders] Flex arrows?
  
  
  gotcha! Now the question, I want to create a 
  custom component called NextButton that acts the same as the one in the 
  DateChooser and inherits the skin the same as the one in the DateChoser thus 
  seemlessly interacting with the Flex framework. Adobe has let loose the 
  source code for DateChooser. Does Adobe envision some of us copying some 
  of their code in order to fulfill such a community benefiting component? 
  DK
  On 7/24/06, JesterXL [EMAIL PROTECTED] wrote: 
  


My guess is that was done for filesize 
reasons. The resulting SWF is smaller since ActionScript bytecode is a 
lot smaller via lzw compression than a PNG/GIF via the same. While the 
drawing is more CPU intensive, you cut corners for filesize where you can, 
and I understand their justification.



- Original Message - 
From: 
Douglas Knudsen 

To: flexcoders@yahoogroups.com 

Sent: Monday, July 24, 2006 11:27 AM
Subject: Re: [flexcoders] Flex arrows?


update...had some pressing issues. looking at 
\frameworks\source\mx\skins\halo\DateChooserMonthArrowSkin.aslooks like 
this thing does not even use a graphic at all. Code in there actually 
draws the arrows! I suppose this way screen scaling is a 
non-issue. DK
On 7/20/06, Douglas 
Knudsen [EMAIL PROTECTED] wrote: 

  right, but I really don't want to creat a new skin, I want ot use the 
  existing skin so that it inherits all the Halo goodness, eh? 
  I still have not got this working yet. Looking deeper into 
  the source for the DateChooser and the DateChoser 
  skin I have found that the code actually draws the arrow. The DateChooser code adds styles like prevMonthOverSkin and 
  nextMonthOverSkin with default values. These styles names are 
  expected in teh programmatic skin and do not exist in the Button 
  class. So Jester, me got brave...not so brave as Mel Gibson mind 
  you, I like me entrails! This is a excerpt:fwdMonthButton 
  = new 
  Button(); 
  fwdMonthButton.styleName = 
  this; 
  fwdMonthButton.autoRepeat = 
  true; 
  fwdMonthButton.focusEnabled = 
  false; 
  fwdMonthButton.upSkinName = 
  "nextMonthUpSkin"; 
  fwdMonthButton.overSkinName = 
  "nextMonthOverSkin"; 
  fwdMonthButton.downSkinName = 
  "nextMonthDownSkin"; 
  fwdMonthButton.disabledSkinName = "nextMonthDisabledSkin";ugh 
  where does Button.upSkinName come from? Its n

Re: [flexcoders] Still Fuzzy about Flex 2.0 and CFCs

2006-07-24 Thread JesterXL
Ability to pass custom objects.  I've written over 800 lines of code for 
Factories to convert CFC structs to ValueObjects in the past 6 months.  It 
sucks, is a pain in the ass, and it sucks... did I mention I hate debugging 
data-type conversions?  I'm sure with AMF3's 30-50% reducation in filesize 
over the wire vs. AMF0, performance would be better too.

ColdFusion 7.0.2, 4 teh w1n!!!

- Original Message - 
From: Battershall, Jeff [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, July 24, 2006 12:40 PM
Subject: RE: [flexcoders] Still Fuzzy about Flex 2.0 and CFCs


Jessie,

When you say, talking to the old sucks from a client-side perspective
are we talking performance or the ability to pass custom objects or
what?

Jeff

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of JesterXL
Sent: Monday, July 24, 2006 12:20 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Still Fuzzy about Flex 2.0 and CFCs


Flex 2 can utilize AMF0 or AMF3; you just set the ObjectEncoding.

CF 7.0.2 can use AMF3; anything before only AMF0.

Flex 2 can talk to both old CF and new CF.  Talking to the old sucks
from a
client-side perspective.

- Original Message - 
From: Battershall, Jeff [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, July 24, 2006 12:08 PM
Subject: RE: [flexcoders] Still Fuzzy about Flex 2.0 and CFCs


OK, gotcha, but I suppose the other issue is what version of AMF is
availble server-side.  I'm getting the impression that AMF3 is necessary
both on the client and server in Flex 2.0 - am I right about that?

Jeff

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Chiverton
Sent: Monday, July 24, 2006 11:20 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Still Fuzzy about Flex 2.0 and CFCs


On Monday 24 July 2006 15:02, Battershall, Jeff wrote:
 Obviously, FDS would be a preferred way of integrating with CF if
 available,

Dunno about that.
There is a difference betwen granular record editing, and service
invocation - FDS is better* for the former, remoting for the later.

-- 
Tom Chiverton



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 St James's Court Brown Street Manchester M2 2JF.  A list
of members is available for inspection at the registered office. Any
reference to a partner in relation to Halliwells LLP means a member of
Halliwells LLP. Regulated by the Law Society.

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

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




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







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








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






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







 Yahoo! Groups Sponsor ~-- 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





  1   2   3   4   5   6   7   8   9   10   >