Good morning in PDT, and thanks for being here.
Me: new to AS Flex, building a Linux-based dashboard, using
Flexbuilder alpha for Linux in Eclipse
( this does not have all features compared to Windows and OSX I believe,
and may be buggy)
*Problem:* I've been given an XML schema for incoming data
Hey I see what you are doing, including a call I didn't know about...
thanks
will try this afternoon, and probably have Qs. Have to write some
release notes first.
I knew I was having a forest and trees problem, but sometimes you just
get stuck.
John
Amy wrote:
You might find this useful
For total spanking newbies reading this:
See Amy's code and also this simplified version
http://livedocs.adobe.com/flex/3/html/help.html?content=charts_intro_7.html
stuff I didn't get that tripped me up-
1) You don't have to use the mx:ColumnChart at all - you can do
everything in AS instead.
well it may be easier... but I liked the obvious page layout of the mx
tags, separated from the AS code. No doubt I can still have what I want.
My comment on the documentation is that as long as you are using very
simple data, everything goes together smoothly, but as soon as I
introduced real
I see String.replace using a regex, but is there a more straightforward
way to do this (very) common adjustment?
(perl: chop and chomp delete the last character from a string in
slightly different ways)
thanks,
John
thanks Guy
and of course you're right if they irritate my sense of code style, I
can just wrap them up.
Just thought I'd ask in case I missed something.
John
Guy Morton wrote:
I don't think so...I've never seen one, but what's hard about using
String.replace? Aren't the following functionally
I am stuck on some basic AS syntax.
Here is some Adobe sample code:
[Bindable]
public var dpac:ArrayCollection = new ArrayCollection([
{A:2000},{A:3000}, {A:6000} ]);
public function addDataItem():void {
var o:Object = {A:2000};
Thanks Paul.
Paul Andrews wrote:
The curly bracket syntax is for compile time declaration only where the
compiler knows all of the values at the time of compilation. In your example
variables are involved so the compiler gives you an error.
AHA he said.
Generally speaking the variable
I am working on a similar problem...
I don't use PostGres, but there may be some sort of export to XML
function. *If* that can fire on changes ( or you set up the
inserts/updates that way), then you have something that an httpservice
can acquire directly. But somebody still has to ask the file if
@mark: thanks will check it out
@anuj:
this is just exactly what the adobe sample code does, except not
directly to the database.
anuj sharma wrote:
... Can I use the Timer class to create a timer instance
which will periodically call HTTP a
.
Thanks
Anuj
On Wed, Oct 22, 2008 at 10:13 AM, john fisher [EMAIL PROTECTED] wrote:
@mark: thanks will check it out
@anuj:
this is just exactly what the adobe sample code does, except not
directly to the database.
anuj sharma wrote:
... Can I use the Timer class to create
I must be doing something simple wrong here.
What I am doing:
creating a column chart entirely in AS, and controlling the colors, and
series, and legend in AS. The legend will be in a grid, instead of
automatic in the chart.
once the XML data is acquired, the makeserviceschart assembles the
good idea, I should trace that way...
This code ( in the adobe example) works:
var star:* = myChart.series[z].getStyle(fill);
[object SolidColor]
This code FAILS:
series1 = new ColumnSeries(); // snipped other property settings
var star:* = series1.getStyle(fill);
undefined
and yet
This
Just in case anybody cares, it is also possible to use Flex Builder on
Linux.
Since I don't normally use any non-free software, and I do a lot of
Linux sys admin, thats good for me.
There are a few apps I can't duplicate, like Illustrator and Google
Sketchup and Rhino, but mostly I don't miss
yeah, thanks, have that. Its much better than a couple of years ago.
Probably plenty good enough for a bushwhacker like me if I just took
some time with it.
J
Guy Morton wrote:
Inkscape is a reasonable Illustrator-replacement, and it's free.
Mark:
Amy set me on to this post, which I found very helpful:
http://dispatchevent.org/roger/as3-e4x-rundown/
This assumes you are using format as e4x
just my also-a-newbie suggestion:
using children() and child() methods made it possible for me to drill
down into quite a bit more nested XML
Me too: I am trying to move an app based on an AS class ( using the
Flare classes ) into an MXML app, and I'd appreciate any tutorial on this.
John
ivo wrote:
Ive found that I can import many classes under the packages below, but not
all. The whole trial and error method of finding which
1) is all this running on one machine?
2) which OS?
3) what does your hosts file say?
I had same problem, localhost vs name.com
I am running Apache 2.x not Tomcat on Linux, Flex3
my crossdomain
?xml version=1.0?
!-- http://john.znyx.com/crossdomain.xml --
cross-domain-policy
allow-access-from
aha!
the hosts file ( see Fotis for location I believe he has it right for WinXP)
lists ip addresses with domain names so your PC knows that
me.mydomain.com equates to 200.111.86.76
The key here is that the OS reads the hosts file first and then asks
DNS, so whatever you put in will override what
is using http://localhost:8080
and localhost works without manually adding it in the hosts file (usually ?)
On Wed, Nov 5, 2008 at 9:24 PM, john fisher [EMAIL PROTECTED] wrote:
context: an mxml app, with classes written by me ( Zdemos) and Flare
classes. myCanvas is the id of a canvas in the flex part of the file
and it works.
I don't understand---
this compiles:
public var myDemoClass:Zdemos ;
public var myDataFilePath:String =
I read a thread from a few weeks ago, and Amy was using Alert to debug
in the browser.
So am I, and its moderately successful, but I wonder if there is a
better way?
I: linux, eclipse, flex builder
For instance I'd like to step through on classes that aren't invoked
until the user clicks. Is
I am calling addChild inside the mx script section of a mxml file. If it
has to be called inside a method, then I need some instruction.
JF
Fotis Chatzinikos wrote:
public var myDemoClass:Zdemos ;
public var myDataFilePath:String = http://.realdata2.xml; ;
myDemoClass = new
oh %^$ thats what I get for typing anything instead of cutpaste!
sorrybut
The *actual* error has the capital P so unfortunately its not this
simple pilot error, though I am not ruling out some other dumb pilot
error
any other idea?
Paul Andrews wrote:
-
You'll notice that in the
ah, I did not grok that trace() would work with all classes, d'oh, I'll
have to get trace working. I used my own before, but of course it
doesn't work outside the main mxml code.
thanks
Amy wrote:
-
I use trace() when it _is_ in the browser,
look
into X-Ray.
-Josh
On Tue, Nov 11, 2008 at 11:30 AM, john fisher [EMAIL PROTECTED] wrote:
No you nailed it. I didn't understand about having to use a function.
I'm sure I moved my eyes over the very document, but it just didn't stick.
Thanks.
John
Paul Andrews wrote:
I have a feeling this error may not be to do with these particular snippets.
Paul
I am using an httpservice to xml files on other servers. The display
changes when the file changes, mostly. All you have to do is bind the
dataprovider.
Maybe your problem is different? Theres lots of documentation for what I
am doing
John
I have been trying to find an answer for this with
well then I *really* don't understand what you are up to, and haven't
tried the BlazeDS...
so any further discussion with me will probably result in me learning
from you instead of helping.
it *sounds* like your set-up is over-complex, but no doubt you have
requirements to follow.
to me theres a
The problem:
I have multiple data sources and multiple visualizations planned.
I am using the Flare libraries for some ( and I have also asked this on
their forum)
I find that I cannot load data (XML) using URLLoader or HTTPService from
a subclass or MXML component. HTTPService works fine in my
OOps
I am NOT able to get two HTTPServices working in one MXML app.
Is there a way around this?
john fisher wrote:
The problem:
I have multiple data sources and multiple visualizations planned.
I am using the Flare libraries for some ( and I have also asked this on
their forum)
I find that I
great. good news = I am doing something wrong
never mind Flare - the data is never getting there...
here's what I have:
an xml source and a graphml source. Each will drive a visualization.
Maybe more sources to come...
here's what I want to do:
make a class or component for each type of
More info:
I am following this
http://livedocs.adobe.com/flex/3/html/data_access_2.html#195243
http://livedocs.adobe.com/flex/3/html/data_access_2.html#195243
( see below)
http://livedocs.adobe.com/flex/3/html/data_access_2.html#195243
and I have left out two things I see-
destination and
Tracy Spratt wrote:
Have you debugged to see if httpResult is being called?
thats it exactly, it never gets called
I added the e4x and no difference.
When debugging it just jumps from service.send() to the next function in
the init file.
I think I should make a dummy mxml app and see if
Tracy Spratt wrote:
..it just jumps from service.send()to the next function in the init
file ..., that is normal, because of the async nature of RPC calls.
The code does NOT wait until the call returns. How are you debugging?
You need a breakpoint or trace or alert in the handler.
I have
, to see if it is getting the call
I assume service is an instance variable in the component?
Tracy
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of john fisher
Sent: Friday, November 21, 2008 5:49 PM
To: flexcoders
Nate, along with the other two plugin suggestions I can tell you that
with various WP plugins you can get. *anything* to display inside your WP.
I have an (internal) demo running now that allows raw html, swf files,
php code to run in WP pages or posts. Beware of security issues with the
php
I am feeding data to a chart from an arraycollection. When I test it by
using a literal to create the data object the chart works fine, but when
I assemble the data piece by piece, the chart fails. A correction of my
syntax would be great, and explanation even better!
I have tried creating an
Can I define this better? Anybody got an idea?
john fisher wrote:
## This does not work:
simpleData = new ArrayCollection([]);
var st:String = new String();
#left out the loops here for clarity
Thanks Maciek... I actually started that way, but it failed. I'll try
again and post if I can't get it to work.
Maciek Sakrejda wrote:
It looks like you're creating a String that looks like the code for the
object (i.e., { foo: 'bar' }), and then casting that to Object. That
won't do what you
Bless you! this is the syntax I didn't get-
and behold, it works!
excellent.
Maciek Sakrejda wrote:
then inside that loop, for each property you want to graph:
currItem[element.name()] = element.valueOf();
from: http://livedocs.adobe.com/flex/3/html/Capturing_User_Input_4.html
here is some Adobe code to create random colors:
function changeColor(event:ContextMenuEvent):void
{
square.transform.colorTransform = getRandomColor();
}
function getRandomColor():ColorTransform
{
return new
-This was discussed as recent;y as late last month, but I have tried all
the solutions and they are not working.-
-problem:
I want to get control of the contextMenu, and I need to remove the
built-in items.
I am able to add menuitems
-I tried advice from these sources:
well since nobody had time to answer yet, I kept digging.
here's one bug: if you add Settings as part of the string which forms
your custom menuitem label, not just the whole String which could
collide with the Settings menu, but part of a custom string, it won't
show at all in the menu, and no
(google stuff
about javascript flash context menu, I think Dan of polygeek.com was doing
some tests trying to figure it out).
Doug
On Tue, Jan 13, 2009 at 4:51 PM, john fisher j...@jpfisher.net wrote:
I have a Flex 3.0 app which can connect to a remote socket server, and
send it XML, but nothing happens ( no event fires, no error in debugger)
in Flex when the server returns data. The remote server is appending a
nullbyte to the xml message, and thinks its sending the data.
Ideas?
yikes, please ignore extraneous asterisks in snippet.
this is corrected:
-
the server code ( perl) snippet:
my $NULLBYTE = pack( 'c', 0 );
if ( $1 eq new ) {
print STDOUT request is: $1 sending xml data\n;
Thanks - but I added this code and no change. The events don't fire.
socket = new XMLSocket();
configureListeners(socket);
private function configureListeners(dispatcher:IEventDispatcher):void {
dispatcher.addEventListener(Event.CLOSE, closeHandler);
More debugging:
If I send
connect, request data (a short XML text which the server is looking
for), then connect again,
The data comes through.
Note: I am watching in a packet sniffer and I never see the policy file
come across any port, though I am able to connect.
Note2: if I remove
hmmm. I could easily append some bytes and see what happens, but not
'til Monday when I go back to work.
Thanks!
Maciek Sakrejda wrote:
Interesting. We ran into this issue with URLStream:
http://bugs.adobe.com/jira/browse/FP-748 -- maybe your problem is related?
Actually, searching Adobe
If Adobe drops Linux support for Flex, then I will probably drop Flex.
I won't maintain a Windows or Mac box at home, and my company really
doesn't want to invest in any more Windows apps. I don't want to invest
myself in technology I can't run independently of whoever I happen to be
working for
Guy I could use the bare SDK of course. I hadn't really tried it before
because the Flex Builder Eclipse plugin seemed like a good idea. And
there is *some* support for it in the community, I don't know how much.
You're right I should try that before I give up.
blame Adobe is not quite right,
well thanks for that Matt, I'll wait for announcements.
John
Matt Chotin wrote:
I'm going to continue to stay out of the fray, but just to be clear, that
conversation is about Flex Builder, not the SDK. We will always support
developers on Linux, it's a question of what we tools beyond the
Well most or all decisions are based on emotion, despite what we
rationalists think, but I take your point.
I'd like to write something here thats actually useful and might
contribute a tiny item to the knowledge pile at Adobe, without boring
everybody with personal details-
1) windows + Adobe
Paul Andrews wrote:
A really difficullt viewpoint to understand.
FB != Flex - there's always the SDK - most people don't use the design view
that much - do they?
won't I lose the debugger too? as noted I have to try it... Linux
doesn't have the Design View.
but you do
seem happy
Howard, once something gets traction, then licenses and boxes can be
bought. In spite of our stripped to the bone status, money somehow
appears for projects that have to get done.
Howard Fore wrote:
How were you going to buy Flex Builder even if it was going to be
available
on Linux?
I was thinking the same...
thomas parquier wrote:
As eclipse is java based, how does fb happen to be incompletely ported to
linux ?
What about opening source of fb ? There must be some java developers who
will be able to work on fb.
57 matches
Mail list logo