RE: [flexcoders] render Pdf document in a flex app

2005-06-10 Thread Jose Lora










Not ideal, but you could also convert them
to FlashPaper and load them directly into your app.











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Rick Bullotta
Sent: Friday, June 10, 2005 8:32
AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] render
Pdf document in a flex app





Perhaps host the whole thing in a JSP
page and an IFrame (which will dynamically point to your PDF file) and use
_javascript_ to bind the two together









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Valy Sivec
Sent: Friday, June 10, 2005 9:04
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] render Pdf
document in a flex app





Hello flexcoders,

How can I
render a pdf document in a Flex container
(panel)?
I have some library of pdf documents that I
would like
to display them within the app, no pop-ups
or things
like that... I'd like to be able include the
pdfs at
runtime...

Thanks,
Valy














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 the Yahoo! Terms of Service.












RE: [flexcoders] Re: Cairngorm 0.99

2005-05-19 Thread Jose Lora










Is it to avoid typo issues and later error
debugging craziness?











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Paolo Bernardini
Sent: Thursday, May 19, 2005 2:07
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re:
Cairngorm 0.99
Importance: High





Hi Steven

Could you explain the reason this new way of
passing the command 
string in the addCommand in the ShopController:

addCommand( ShopController.EVENT_GET_PRODUCTS, new
GetProductsCommand
() );

public static var EVENT_GET_PRODUCTS =
getProducts;

compare to the old cairngorm 0.95 style:

addCommand( getProducts, new
GetProductsCommand() );














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 the Yahoo! Terms of Service.












RE: [flexcoders] DataGrid.labelFunction

2005-05-17 Thread Jose Lora










Maybe the signature of your function is
not the right one, try using :



private function onMyLabelFunction (item , columnName) : String {













From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL
Sent: Tuesday, May 17, 2005 3:20
PM
To: Flexcoders
Subject: [flexcoders]
DataGrid.labelFunction





I cannot get this to work.

I've tried:

my_datagrid.labelFunction = Delegate.create(this,
onMyLabelFunction);
my_datagrid.labelFunction = onMyLabelFunction;

As well as through the attribute in the datagrid
tag:

mx:DataGrid
labelFunction=onMyLabelFunction

I can trace out that it's actually setting the
value to a valid function 
through the debugger and me tracing out the values
to a TextArea, but that 
same debugging session shows the actual function
itself never getting run.

I've tried setting the dataProviders right after,
1 frame after, and even 2 
frames after via multiple doLaters.

I've tried setting the ViewStack hosting this
component to to auto 
creationLayout instead of all, and used
childrenCreated to defer the actual 
setup.

Nothing works.

:: whips out gak and unloads a few rounds into
monitor ::

--JesterXL 













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 the Yahoo! Terms of Service.












[flexcoders] Microsoft Sharepoint Portal and Flex

2005-04-28 Thread Jose Lora










Hi Team, any experiences on integrating a
Flex application as a Sharepoint Web Part?



Jose Lora

Meredith Corporation











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 the Yahoo! Terms of Service.












RE: [flexcoders] ActionScript Components

2005-04-07 Thread Jose Lora
Title: Message










Not sure about that, Ive have a
hierarchy of custom mxml component where the children inherit behavior from
parents, so I think you can extend mxml components 











From: Erik Westra
[mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 07, 2005
4:43 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders]
ActionScript Components





A good reason to make pure actionscript
components is that they can be subclassed. 



When u create an mxml component, u cant
extends a custom mxml component wich has children.



Greetz Erik









From: Gordon
Smith [mailto:[EMAIL PROTECTED] 
Sent: donderdag 7 april 2005 9:04
To: 'flexcoders@yahoogroups.com'
Subject: RE: [flexcoders] ActionScript
Components



It is essentially a matter of preference.
There are no performance differences that I know of.











I generally recommend
creatingcomponents in MXML because it makes several things easier, such
as creating internal subcomponents, laying them out, and assigning event
handlers to them.For example, if I was creating a LoginPanel, I would
certainly do it in MXML.











Can you explain what is a bit
messy about MXML components?











- Gordon














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 the Yahoo! Terms of Service.












RE: [flexcoders] Control the placement of a combobox drop down list

2005-04-06 Thread Jose Lora










Well, there is probably a way to do this
since the ComboBox will automatically do it if you put it at the bottom of the
application and there is no enough space below the combo box.











From: Manish Jethani
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 06, 2005
10:07 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Control
the placement of a combobox drop down list





On Apr 6, 2005 4:22 PM, greenfishinwater
[EMAIL PROTECTED] wrote:

 Is it possible to change this default so that
it appears above the
 combo box?

I don't think it's possible and worth
trying. It's pretty much coded
to work just that way.

Manish












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 the Yahoo! Terms of Service.












RE: [flexcoders] Creation/Destroy Queries...

2005-04-02 Thread Jose Lora










Sounds like a memory leak to me. Hopefully
the next version of the player will do a better job at it. Some of my users
love their app so much, they dont even close the browser, and after some
days, the app/browser will become unresponsive. 











From: Matt Chotin
[mailto:[EMAIL PROTECTED] 
Sent: Friday, April 01, 2005 1:34
AM
To: 'Scott Barnes '; 'flexcoders@yahoogroups.com '
Subject: RE: [flexcoders]
Creation/Destroy Queries...





My understanding of the Player's garbage collector/memory management is
by
no means perfect (or even maybe accurate). I
believe the deal is:
- it does a real cleanup every minute or so
- memory is allocated and used in chunks, but is
cleaned up in pieces
- the allocator is not super-smart, it does not
re-organize memory within
individual chunks, so you can get fragmented and
continue to grow if the
spaces in the chunks are not big enough for what
needs to be allocated
- at some point the player may have a big enough
chunk free that it can give
it back to the OS; but windows will not take it
back (i may be wrong here,
the player may never offer it back).
therefore player memory will always go
up, it rarely goes back down. however if you
do your own de-allocation the
player should arrive at a steady state, it just is
possible it will end up
looking like a big number in the task manager. 

HTH,
Matt

-Original Message-
From: Scott Barnes
To: flexcoders@yahoogroups.com
Sent: 3/31/2005 11:06 PM
Subject: Re: [flexcoders] Creation/Destroy
Queries...

heh i was wondering what happened with that..but
hello back none the
same ;)

Ok heres what my gameplan is in terms of why I
asked those Questions:

I am going to have a XML situation where i Declare
my Screens like this:

screen name=xyz
template=com.path.to.base.mxml.file
creationPolicy=auto
presenter=com.path.to.screens.presenter/controller.as.file
defaultEvent=mail.default

 events

event-handler name=mail.default

filter name=securityCheck/

filter name=loadProfile/


listener name=mailService method=getAllMail
resultKey=mailModel/

listener name=mailService
method=getMailFromFolder
resultKey=messagesModel

argument name=folderIndex value=0/

/listener


view-pod name=mailTreePOD sector=a/

view-pod name=mailActionsPOD sector=a/


/event-handler
 /events

 events

event-handler name=mail.loadFolder

filter name=securityCheck/

listener name=mailService method=getAllMail
resultKey=mailModel/

listener name=mailService
method=getMailFromFolder
resultKey=messagesModel/

view-pod name=messagesGrid sector=b/

view-pod name=messagesPreview sector=c/


/event-handler
 /events

/screen

Now inside my template, I'll have panels and what
not setup, then
inside those panels i may put in viewStacks or no
children at all,
lots of base foundation stuff. Then inside the presenterClass
it will
know whats inside itself and add various
behaviours and follow a
uniform approach to how it presents stuff on
screen.

Now, when a button is fired an event handler
request is initiated,
resulting in an action. In this case, mail.loadFolder
does like
outlook where if you clicked on a folder it would
show all mail
relating to that folder and what not.

Now inside the base foundation I have sectors
layed out and declared
via presenter, as my presenter maps to each of
these sectors it
records whether or not these are viewstacks or
not, if not it will
destroy/create a view-pod in that sector - if its
a viewStack it will
check to make sure that child exists, if not
instantiate that view-pod
or simply switch to it...

Now lots more can go on here but the point is
this, i'm going to be
doing a lot of runtime create/destroy concepts and
its very important
that i'm allowed to do so without memory
considerations - plus any
performance gains i can conjure up in terms of
asset re-use is even
better.

At the same time as view-pods being
destroyed/created i can ontop of
that kill an entire screen and move onto another
screen...

Hopefully that paints a picture on what my intent
is, and does anyone
here see any negative performance side-effects
from this approach?




On Apr 1, 2005 4:48 PM, Abdul Qabiz
[EMAIL PROTECTED] wrote:
 
 Ignore attachment, my mistake placed there...
 
 
 -Original Message-
 From: Abdul Qabiz
[mailto:[EMAIL PROTECTED]
 Sent: Friday, April 01, 2005 12:14 PM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] Creation/Destroy
Queries...
 
 I take this one :)
 
  - mx:Model/XML if i place that inside a
MXML component, on compile
  time, does FLEX embed that said file
inside the swf or does it
request
  it be download once base assets have
been initialized (I'm a bit
  sketchy on this part). I'm sure its a
RTFM situation but I must be
  missing where that part is stated heh :)
 
 Yes, Flex embeds the file into main SWF file
at compile time. So your
main
 SWF contains all custom component code,
Model/XML data.
 
 -abdul
 
 -Original Message-
 From: JesterXL
[mailto:[EMAIL PROTECTED]
 Sent: Friday, April 

RE: [flexcoders] Large Flex app architecture

2005-04-02 Thread Jose Lora










We also have a quite large internal
application (Campaign Management) and were using a very similar approach
with an event driven Form factory and a main ViewStack. 90% of the code is
based on custom views.



We started with the Cairgorm framework,
but we have to add some additional artifacts and extend their model to allow
things like multiple commands listening to single events (believe me, we need
this), generic data services and generic commands to handle multiple similar
views.



Our factory has also the job of destroying
views (and related models, command instances and helpers). Weve been
very careful trying to destroy every piece of non use memory to avoid issues,
however, after some days of use (if the user doesnt reload the app) the
application will stop responding and well have to kill the browser. That
makes me think that there could be some issues with player garbage collection. 











From: Scott Barnes
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 30, 2005
7:02 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Large
Flex app architecture





I too am in the same boat and have thought / researched on this very
subject. I'm attacking my FLEX archiecture much in
the same way i
would with a traditional web paged system. I've
looked at Screen by
Screen approach where typically you active a
screen for a task.

Example:

TravelAuthorization Request Form (Wizard Format) =
Screen1
TravelAUthorization Admin Form = Screen 2
TravelAuthorization Summary / Report = Screen 3 

etc..

Now each of these screens have their own
sub-screen lifecycle (ie much
like the FlexStore where checkout form replaces
product pod and so
on). Anything that significantly breaks away from
a parent Screen
becomes a screen onto itself.

Once I formulated a pattern for this and broke my
approach into screen
by screen, I am then going to use a destroy /
create approach. I'm
hoping that my theory holds that Flash Garbage
collection will free up
memory every time i destroy a screen, but this is
a Intranet
Application so bandwidth isn't my top priority
here (while i should be
mindful of it) - so I plan to use Run Time Shared
Libraries but will
quite happilly kill an asset and move it to a
download every bite
situation if need be.

I will use view stacks up until a point, and then
i'll have my own
quasi view stack manager to attack the same
problem.

Again, I am not finding much information on how
FLEX Garbage
collection works and what key tricks i need to
make sure are in place,
so the above may not hold water and won't know
until I have it fully
tested and working but surely a destroy/create
approach should work
and if it doesn't by god MM you better make it happen
soon or
i'll...i'lll bah..i got nothing. hehe.

I posted on my blog on how I am attacking this
screen by screen
approach, via this:

http://www.mossyblog.com/archives/434.cfm

Its a framework I am working on and its ripped off
a few concepts from
Mach-II and Apache Cocoon.


On Wed, 30 Mar 2005 09:08:40 -0800 (PST), Valy
Sivec
[EMAIL PROTECTED] wrote:
 
 
 
 I'm designing a quite large application and
plann to use viewstack
 container(s). Because each view will contain
lots of panels and info I'm
 affraid that the browser might hit his limit
in regards with the memory
 consumption and crash... seen couple of
messages with the same problem and I
 would like to avoid it... 
 
 Actually I'm not even sure how the Flash
Player garbage collector works or
 if there is any  I'm very new to this
Flash/Flex world so sorry if
 the question is dumb... 
 
 Is it safe grouping the screens in multiple
viewstacks and include them from
 the jsp pages? or should be enough having
only one viewstack container for
 the whole application? Any suggestion? 
 
 Valy 
 
 
 
 
 Do you Yahoo!?
 Make Yahoo! your home page 
 
 Yahoo! Groups Sponsor 
 
 ADVERTISEMENT
 
 
 
 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 the
Yahoo! Terms of Service. 
 
 


-- 
Regards,
Scott Barnes
http://www.mossyblog.com
http://www.flexcoder.com
(Coming Soon)













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 the Yahoo! Terms of Service.












RE: [flexcoders] form validation

2005-02-24 Thread Jose Lora








To the second part of your question, Iuse
a NumberValidator on the comboBox.selectedIndex property











From: Robert
Brueckmann [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 24,2005
10:10 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] form
validation







Im having a heck of a time
understanding how form validation works. I have a formit contains
text fields, drop down lists, and radio buttons. Its a basic user
information formfirst name, last name, address 1, address 2, etc.
I also have 3 fields: phone, fax, and mobile, but I only have the phone field
as being required (visually, anyways, utilizing the required attribute set to
true of the mx:FormItem component, but set to false for fax and mobile).
I also have phone, fax and mobile being monitored by the
mx:PhoneNumberValidator components. But the problem is the form
wont submit if the user hasnt entered a fax or mobile, even
though theyre not required but because I have validators on them.
Is there any way to ONLY validate them if the user has entered a value in
their fields and not enforce them as being required even though I dont
have them flagged as being required?



Also, how do I validate whether a userhas
selected an option from a drop-down or a radio button group? I am
successfully setting their values to the data model I have set up but do I use
a StringValidator on those values to ensure something has been checked or is
there a better way to do that? I looked at the examples in Stephen and
Alistairs book but some things arent valid in Flex 1.5 anymore
and other things just confuse the heck out of me or dont apply to the
type of form Im trying to build and validate.



Any help on any of these things would be
most amazingly appreciated.



Thanks!



Rob

















This message contains information
fromMerlin Securities, LLC, or from one of its affiliates, that may be
confidential and privileged. If you are not an intended recipient, please
refrain from any disclosure, copying, distribution or use of this information
and note that such actions are prohibited. If you have received this
transmission in error, please notify the sender immediately by telephone orby
replying to this transmission.












Merlin Securities, LLC is a registered
broker-dealer. Services offered throughMerlin Securities, LLC are not
insured by the FDIC or any other Federal Government Agency, are not deposits of
or guaranteed byMerlin Securities, LLCand may lose value. Nothing
in this communication shall constitute a solicitation or recommendation to buy
or sell a particular security.













RE: [flexcoders] Dynamically selecting a Tree node

2005-02-17 Thread Jose Lora








Pretty cool solution Robert, thanks for the
help.











From: Robert
Brueckmann [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 17,2005
11:43 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders]
Dynamically selecting a Tree node







JoseI posted a similar questiona
few weeks back and got a response I was able to work withthe only
drawback to the solution is it expands the entire tree up to the node you want
selected is foundbut its a drawback Im willing to live
with because it does what youre askingIm using this code
in conjunction with a custom HistoryManager method so if a user selects a node
on the tree and then selects a second nodwe and then hits the browsers
back button, I want to go back to the last node they selected in the tree and
the following seems to do the trick when put in a function and your action,
whatever it may be that wants to dynamically select an item in the tree, calls
this function:



function
selectNode(value:String) {

var i:Number=0;

var node = yourTree.getTreeNodeAt(i);



while (node != undefined) {

if (node.getProperty(id) == value) {

 
yourTree.selectedNode = node;

  break;

} else if (yourTree.getIsBranch(node) 
!yourTree.getIsOpen(node)){

 
yourTree.setIsOpen(node, true);

}



i++;

node = yourTree.getNodeDisplayedAt(i);

}

}



The code traverses a tree and comparesthe
node on the trees attribute of id to the one Im passing to the
function, which was the last id the user had selectedif it matches it
sets that node in the tree to the selected node and then stops the tree
traversalif it doesnt match it checks to see if the node is a
branch and if it is, expands the tree and then continues traversal.
Its my understanding you cant really traverse nodes of the tree
in this fashion if the tree isnt expanded because indexes change, length
of the tree changes, etc, which effect the traversal and access to
nodesso this was the only fix I found, thanks to the programmers on the
list, that was able to traverse the entire tree looking for the one elementI
wanted to select in the tree.





Robert L. Brueckmann



Web Developer



Merlin Securities,LLC



595 Madison Avenue



New York, NY
10022



p: 212.822.4821
f: 212.822.4820











From: Jose Lora [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 17,2005
12:22 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Dynamically
selecting a Tree node





Hi Team,



Its been a while since I post a
question and I was wondering if the Tree experts can give me a hand on this.



Id like to use this value to traverse
a Tree component and select the node that fits the criteria.



Is this even possible? 



Any help is appreciated.



Jose Lora



Meredith Corporation 






















This message contains information
fromMerlin Securities, LLC, or from one of its affiliates, that may be
confidential and privileged. If you are not an intended recipient, please
refrain from any disclosure, copying, distribution or use of this information
and note that such actions are prohibited. If you have received this
transmission in error, please notify the sender immediately by telephone orby
replying to this transmission.












Merlin Securities, LLC is a registered
broker-dealer. Services offered throughMerlin Securities, LLC are not
insured by the FDIC or any other Federal Government Agency, are not deposits of
or guaranteed byMerlin Securities, LLCand may lose value. Nothing
in this communication shall constitute a solicitation or recommendation to buy
or sell a particular security.














RE: [flexcoders] DW Builder

2005-02-12 Thread Jose Lora
Title: Message








I used Flex Builder for both with no problem.
What type of issues are you having?











From: John C. Bland II
[mailto:[EMAIL PROTECTED] 
Sent: Friday, February 11, 2005
7:43 PM
To: [EMAIL PROTECTED]
Subject: [flexcoders] DW 
Builder







You guys who use DW (Dreamweaver) for development and now
Builder (Flex Builder) for Flex:











Can you use both of them at the same time? I can't seem to
get it working.





Have you dumped DW to use only Builder or do you use DW for
Flex dev too?











Just curious...



--

JDEV Inc. 
John C. Bland II 
CEO 
[EMAIL PROTECTED] 
fax:
480.718.7958 
IM:
jdevPres 
http://www.jdevinc.com/ 
--


















RE: [flexcoders] DW Builder

2005-02-12 Thread Jose Lora
Title: Message








I guess I learned Flex before, so it looks
natural to me to just use Flex for ColdFusion stuff. Im not sure if
FlexBuilder has all the extensions or capabilities included in WD.



Ive seen the new rich forms in
ColdFusion and they look similar to the Flex components. Is Macromedia planning
to incorporate more of the rich components into ColdFusion?











From: John C. Bland II
[mailto:[EMAIL PROTECTED] 
Sent: Friday, February 11, 2005
8:14 PM
To: [EMAIL PROTECTED]
Subject: RE: [flexcoders] DW
Builder







Just switching between the two. I haven't
purchased Flex Builder but see I can do DW stuff in it now that you broughtit
up so I may just use Builder. What I was trying to do was switch between the
two and use Builder for Flex and DW for everything else I do.











Side ?: Will Builder keep up with DW
updates (ie - new CF 7 components)?





-Original Message-
From: Jose
Lora [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 11, 2005
7:02 PM
To: [EMAIL PROTECTED]
Subject: RE: [flexcoders] DW
Builder

I used Flex Builder for both with no
problem. What type of issues are you having?











From: John C. Bland II
[mailto:[EMAIL PROTECTED] 
Sent: Friday, February 11, 2005
7:43 PM
To: [EMAIL PROTECTED]
Subject: [flexcoders] DW 
Builder







You guys who use DW (Dreamweaver) for development and now
Builder (Flex Builder) for Flex:











Can you use both of them at the same time? I can't seem to
get it working.





Have you dumped DW to use only Builder or do you use DW for
Flex dev too?











Just curious...



--

JDEV Inc. 
John C. Bland II 
CEO 
[EMAIL PROTECTED] 
fax:
480.718.7958 
IM:
jdevPres 
http://www.jdevinc.com/ 
--