it actually runs MyApp.swf?debug=true
isnt it supposed to be MyApp-debug.swf ?
In Flex Builder 3, both SWFs have the same name but debug includes
?debug=true.
Troy.
I just ran Software Update, and I am not sure what updates occured,
but I believe Firefox might have.
No, it's whenever iTunes updates. They use Safari + Flash plug-in for
browsing the iTunes Store. Whenever iTunes updates it forcibly updates
the Flash player (bad updater!). Very frustrating.
3) I installed Flash Player 10, and I am getting that error, as well
I've not been able to find a link to a debug Flash Player 10... a blog
I saw suggested that Flash Player 10 is both regular and debug, but I
kinda doubt it (since there's a reference to a debug player for CS4).
I'm guessing we
FB on OSX has a lot of drawbacks - on win, the help gets its own
window (so it doesn't get killed by the debugging), syntax colouring
works better, images actually appear in design mode all the time, it
builds a lot faster (iMac in BC spanks my mac pro in OSX), the text
editor doesn't lag
I've also tried making the components UIComponent based instead of
using Canvas (as I believe it's a little more lightweight) but it
doesn't seem to make a huge difference.
I'd have one UIComponent-derived object (Canvas would be fine) as the
parent, and have your 50-60 dynamic objects be
It would be really nice to have FlexBuilder truly cross-platform.
Eclipse itself seems to do it reasonably well.
You know, if someone ported FlashDevelop to OSX/Linux, it would really
put the pressure on Adobe to improve their game.
Also, I never use FB as a plug-in to Eclipse. But if I did,
Ah, interesting. This seems related, but different. I was just setting
URLRequest.data to a ByteArray directly. In your case, if I understand
application/x-www-form-urlencoded correctly, then zero bytes should just
be replaced with %00. Have you filed a bug? I'd like to add that to my
Adobe
Does the URLLoader or URLStreamLoader be able to extract the image
directly from cache , when images are in cache with expires date in
the future ?
When the Flash Player is running in the browser it uses the browser's
network stack for all HTTP requests. So, it's up to the browser
whether or
The byte array seems to be truncated to the location of that byte. In
general, any ByteArray sent as a data property payload of a URLRequest
seems to be truncated to the location of the first zero byte. I've
confirmed this by checking the Content-Length header of the POST request
(in fact, if
We're also working around this by Base64-encoding, but this is clearly
less than ideal. It definitely seems like a Flash Player bug. We ran
into this when doing AlivePDF REMOTE saves (i.e., bouncing the file off
the server). Do you know when you ran into this, Troy? I tested our
particular
I am just wondering why, in ActionScript, the subject of an event is
called a target? Is it kind of counter intuitive? In Java, it is
called source, which sounds much more understandable to me.
Best I can figure is it came from some events like mouse clicks which
are targets, but that's
I began using Flex Builder under Windows (v2) and found the
context-sensitive help, like in all good IDEs, a lifesaver. Under
FB/Win, if I put the cursor under an API function and hit F2, the help
would take me right to the function. And, the help was launched in its
own app/process. Finally, when
Hi! Im trying to build a jigsaw but Im not very successfull.
What I tried to do was to load a Bitmap and then use BitmapData and
FlexSprite.
Unfortunelly the way I was using (Graphics API), didn't worked, so, I
would like to ask a few sugestions about it.
Thanks in advance
I can't find a
I need to draw a shape with a hole, and need to apply it as a mask to
an image. Im doing this with Flex. The hole in the mask is
dynamically created, thats why Im not using flash to draw a movieclip
as my mask.
I guess the follow-up you posted answers your question, but wanted to
throw in
It works until you apply it as a mask...
It must work as a mask because that's exactly how I use it in my code,
to cut a circle out a box. What results do you get when you use it as
a mask?
Troy.
There's no style for that. You can create your own skin.
And Flexlib includes an EnhancedButtonSkin that does exactly this
(plus tons of other things):
http://code.google.com/p/flexlib/
Troy.
I'm a bit confused by those telling the original poster to go complain
to Eclipse... Flex Builder is not free. If there's a bug in Flex
Builder, even if it relates to something Adobe didn't develop, Adobe
is certainly responsible for the bugs because they took our money for
an application with a
I'm a bit confused by those telling the original poster to go complain
to Eclipse...
It sounds to me like you aren't confused, you just disagree. :-)
Touche...
Troy.
No comment on the wisdom of the default setting.
I agree. I think it's much more appropriate to have your Flex app
scroll with the browser's scroll bars than with a built-in Flex scroll
bar (for full-app scrolling). It's not only a faster/smoother
scrolling experience, it's more in-line with
There is no way to find out the classes in a SWF (not without a lot of
work).
Really? That's very disappointing. The information is there (the
Player finds it, obviously), and is *far* easier for the Player to
grab than whatever hoops I'd have to jump through... kinda feels like
a hole that
I think it will always be more efficient to do the legwork and put
descriptions in the SWFs. Introspection/Reflection APIs generally aren't
fast.
Reflection APIs generally aren't fast because they're written in the
same language (or run in the same machine, virtual or otherwise) as
the code
It may not be an EcmaScript4 implementation, but that's just
semantics. ES4 is becoming Harmony, which is a new project with a
unified working group, but it is the continuation of what we know as
ES4.
So, if it makes you feel better, think of AS3 as an early preview of
Harmony! ;-)
Troy.
To repeat what someone said earlier, this exact issue is already
addressed quite cleanly by the aforementioned Observe tag (and it's
more advanced version ObserveValue).
I think the Observe/ObserveValue tags are easily useful enough that
their inclusion in BindingUtils (or wherever mx:Binding is
This is not true. Much of ES4, things like packages and lots of other stuff
is going away.
Sorry, wasn't aware of that. I guess that makes since, though, since
Crockford's focus seems to be on the script focus of JavaScript and
less on developing it as a large scale language (hence the removal
I don't believe either of them would call a function when the contents of a
collection changes (as opposed to the collection itself). The modification
Dennis offered would.
Sorry, completely missed the point, didn't I? ;-) You're right, what
you're looking for would be useful as well! ;-) I'll
To me #4 the idea that classes work the old way is also a big deal,
though exactly what that means I am not entirely sure. AS3 changed its
class model in what I think was a good way. I'd hate to go back.
I think Harmony is a move in the right direction for moving forward
JavaScript (I agree
I'm fascinated by what makes sense declaratively, and what doesn't. Flex is
a great playground for the two styles.
That's exactly why I (and likely you) found the AS3-based event
handler method distasteful (from your original post): you're forced to
do something best expressed declaratively in
Check out BulkLoader: http://code.google.com/p/bulk-loader/
It's designed for doing exactly this, as well as handling a lot of
other common cases (like loading SWF, images, etc. and automatically
returning the DisplayObject, etc.). It includes accumulated progress
information, etc. Pretty
You need to call collectionData.refresh() when the data property changes for
the itemRenderer. One way to do it would be:
I always wonder what's the best practice for this. I would think that
collections would have this built into them... why would one want to
put a filter function on a
In theory, if you have [Bindable] or [Managed] items in the collection, or
call itemUpdated appropriately, you do not need to call refresh() again when
an item's properties change.
I was wondering about the binding of the ArrayCollection itself, not
the elements it contains (which works as
I'm trying to find information on using singletons in AS3/Flex. I've
got an .AS file set up but I'm having issues calling the data/functions
within that function in other classes. Does anyone have a good resource
on the web for creating and using singletons?
As others have probably pointed
So, is TreeItemRenderer really that much of a black art? Has no one
done any interesting modifications of that component? Maybe a good
indicator that it's a hard to customize component?
Maybe this would be a good opportunity for a solid Adobe tut on the subject...
Troy.
Factories came late to the party and we couldn't retrofit everything. One
of the things we wish we could do-over.
Understood. Anyone done the dirty work of allowing dynamic classes
to be created? Seems like it'd be entirely doable by generating the
bytecode for a class, giving it a unique
To all those suggesting FlashDevelop... yes, if I were using Windows
I'd be using it, no doubt. But I'm on a Mac. I've been using TextMate
and love its editing, but miss code-completion and automatic imports,
etc.
Troy.
On Thu, Jun 12, 2008 at 9:32 PM, Fajar S [EMAIL PROTECTED] wrote:
if you
I'm not sure if it applies in this case, but TileList definitely has
some bugs in its measuring and layout code (or at least did in Flex 2
-- not sure if they fixed it). In particular, when calculating its
preferred width it basically does (itemRenderer.width + horizontalGap)
* numColumns. That's
Flex using HTTPS is as secure (and is equivalent) to an HTML page
using HTTPS. So, if you're basically creating the equivalent of an
HTML FORM in Flex, then it's perfectly suite (and is equivalent as far
as the backend is concerned) to doing the same thing in HTML.
So, for example, if you use
Is there any documentation on how to use [FlashDevelop] with Flex? I couldn't
find
any.
Google flashdevelop flex... there's plenty of unofficial
documentation. Also search the flashdevelop.org website/forum and
you'll find plenty of discussion on it as well.
Troy.
I couldn't find a horizontalGap property on TileList, and trying to
manually add a tag when the code hinting said no just resulted in a
compiler error.
Sorry, strike all my FUD about TileList... I was think of Tile (which
I was using inside of a scrollable container to get a smooth,
fractional
How many Flex developers here are using a Mac for development?
I, too, was a diehard MS guy (not a fanboy, just used many of their
products) up until I got a MBP in June 2006 (first generation with
Intel chips). I used Parallels because many of my tools were Windows
licenses -- actually, it was
It sounds very heroic. I'll keep and eye out for further enlightenment.
Is this forum a philosophical debate or a support list for a
technology? Come on, Paul... bothered by Scott's presence? Come on,
we're writing webapps, not planning federal monetary policy or
surgical regimens. There are no
Overreacting maybe, but not silly. Microsoft has many years of playing
nicely ahead of them before they get benefit of the doubt.
We don't have to give MS the benefit of the doubt... just Scott. And
over the last year or so, I've not seen anything from Scott that would
suggest we should give
Just for a moment I thought this was the flex coders forum rather than an
extension of the MS marketing effort..
Okay, be nice, it's on-topic... the thread had lead to a question of
whether it was possible to develop in Silverlight for free (in the
same way its possible to develop in Flex for
This has been debated *eternally* in game circles since the advent of
networked games, and I've followed these discussions for at least the
last decade. The conclusion is always the same and is not disputable:
in a broad-based, open competition (such as a web-based game for
prizes, e.g. a casino
don't use SWFEncrypt on the scoring SWF until right before you send it
to the user and have SWFEncrypt use a different seed value for its
obfuscation; this ensures that the SWF's checksum (or any other
fingerprinting the user could do on the SWF) can't be used to detect
repeats in the
I believe it has a 'non compete' clause, but we're not looking to use a single
platform solution regardless of cost.
It may, it may not. Doesn't really matter, though. If you made a
product that competes with an MS product then realistically you can
afford to pay $150 to purchase a commercial
XML read/write is much slower than access of other class instances. If
you're going to do lots of reading and writing, I would consider converting
the XML data to object data.
As an aside, is there any reason why Adobe hasn't provided API for
serializing to/from XML and typed-objects? This
Dammit, why didn't I think of strings to one-entry dictionaries? Genius!
Alex, that's why you're the judge, and I'm the law.. talking.. guy :)
Collecting the empty dictionaries would be a pretty simple job to do on a
timer using something similar to your background thread code too.
I think
We have mx.rpc.SimpleXMLDecoder, and some undocumented decoders as well.
But those just convert to/from generic objects, right? I'm talking
about typed objects (for best performance). All the examples I see
with SimpleXMLDecoder go to/from generic objects.
I'd actually be cool with code
Take a screenshot with the score and base-encode it, take a digest
(signature) of the whole of it with the score plus some 'secret sauce' as a
seed value and then send the lot of it to your server and re-run the process
to see if what you received is valid. To add an extra hurdle – you could
We don't recommend putting curly braces around the values of event
attributes like creationComplete... that makes it look like databinding even
though it isn't.
And to finish Gordon's thought: event attributes are already
interpreted by the compiler as AS code, not values, so they're
Just getting back to this, would you recommend upping the framerate on
the application then or just put up with the slow cursors. I'm just
conscious that upping the framerate will up the CPU usage slightly
with Flex but I haven't seen much research into how much difference it
will make.
[Bindable(someEvent)] then you can control what happens inside the setter.
Ah, so if specify the event name, then bindable truly is just
metadata, no code-generation, right? That sounds like the info I was
looking for...
Troy.
Ah, so if specify the event name, then bindable truly is just
metadata, no code-generation, right? That sounds like the info I was
looking for...
Which leads me to think, what exactly is bindable doing for me at that
point? If I'm firing the event (and thus creating it), is the metadata
In that case, the bindable(someEvent') tells the binding code which event
to listen for before updating anything depending on that property.
Gotcha. Good to know about the code generation.
Here's a question for ya:
If you let Flex fill-in all the binding code (if you don't specify an
event
Why is Event.MOUSE_MOVE such a poor performer when trying to get a sprite
follow the mouse?
Can you provide some more details on what poor performance you're
seeing? Is the event not firing often enough? Is it not firing when
you think it should be? How are you trying to get your sprite to
It seems to keep dying, any ideas?
Where does it die? Have you stepped through the code in a debugger?
Does it successfully connect and then fail, or does an exception get
thrown prior to that? Its much easier for you to see the problem on
your end when you step through the debugger.
A few
On that thought I was just wondering if it was possible to use the
ExternalInterface to do this? By maybe setting a classname on the
Flash object via JavaScript... hm
Already tried that (there's another thread where I raise this issue).
The Flash Player dictates it's own cursor and CSS
Is there a reason you can't use capture phase listeners?
I definitely can, and that's the solution I'm going to use. It just
didn't occur to me because:
a) I was working in MXML and was just attaching listeners using attributes.
b) DragEvent inherits from MouseEvent, which to me at least,
Go menu, Run, Run, Other. Select the app you want to work with. Uncheck
UseDefault, and add your parameters to the Debug line. Apply, then debug.
I remembered that dialog right after I posted... and made the changes
exactly as you described. Thanks.
I would like a way to have multiple
Here's a gallery of the default cursors for Windows (IE Firefox) for
the various CSS properties:
Yeah, I've seen that one and various others. But they're screen
captures from actual apps, and I don't know what the legal issues may
be (however minor).
For now, I just grabbed the ones Adobe
I am wondering, though, if I would get this for free if I used
DisplayObject and the built-
in drag events. I am also wondering, if I am saving that much in terms of
memory and
speed, by rolling my own as it were.
If you make each draggable item (each shape) its own DisplayObject
then
I you're talking more generically about the Model of MVC, I do not
agree.
If your URL is an *implementation* detail of your service (which they
are in most cases), then it should be part of your service layer and
*not* part of the model.
If your URL is a user-centric piece of data, i.e. a
I wondered if anyone else had experienced similar issues?
What you're seeing is your app's actual framerate. Nothing is going
slower. Here's why...
If you don't specify any custom cursors, Flash just uses the OS's
cursor and let's the OS do its standard thing of drawing it (which all
modern
I've always viewed the service layer as part of the model. It exposes
model functionality through an API.
I don't know if its right or wrong, but I tend to adhere more to a
MVCS style of architecture, or even Model-Presentation-Service
architecture.
I could certainly see the view that the
Troy - drag events are dispatched to what _you_ attach them to. If you want
the event to spawn from a child - but be handled by the parent... you
should
override addChild in the parent and attach the listener there. Your handler
will be in the parent and each child will announce whatever
So… are you _not_ using the dragSource, dragInitiator or draggedItem
provided by your drag/drop events? I would recommend that first before you
try to get list items to dispatch events…
Uhm, I think you're missing my question. I'm trying to use all of
those things, but I can't because I'm not
- When serializing an object to the SharedObject, is the whole object
hierarchy traversed? For example, if I have a model that stores a
ParentObject which has an array of ChildObjects, and I stick the
ParentObject in the SharedObject, when I retrieve it will I get back
the ParentObject
that's what I was afraid of - anyone know of any other ways around it?
You'll have to create a new DragProxy class to change this behavior.
To do this, you'll need to monkey patch (google it, you'll find it)
the framework's DragProxy class. Once you do that, you can change the
logic it uses for
None of Builder is open source.
So, Adobe folks... can someone tell me specifically what parameters
are being passed to the compiler for a release build? I'm guess
debug=false and optimize=true, anything else?
Troy.
Things done in commitProperties() are generally wrapped in a check to
make sure the underlying data has changed since last time. So in your
myCustomData setter you would set the value of _myCustomData and also
set _myCustomDataChanged = true. Then in commitProperties() you would
do
Why not just have the setter for myCustomData simply set 'label' and other
properties rather than doing this in commitProperties()?
Yeah, I could definitely do that... I was more interested in doing
things the right way, at least in line with convention, and my
impression of the convention
Setting a label repeatedly could cause performance issues as
remeasuring a textbox is said to be fairly expensive.
Sure, but the label property already performs this optimization for
me, hence why I was simply setting the property instead of tracking a
dirty flag.
Troy.
Did you log a bug yet ? What was the number ?
Dmitri did:
https://bugs.adobe.com/jira/browse/FB-12306
Troy.
I think that I know why it is happening - when I do the Export release
build this smart thing also copies ./php directory from bin-debug.
If you look through the bugs related to Export Release Version (the
component your bug is filed under) you'll see one from the beta period
(from an internal
*contents* ?!? Not the files themselves ? That's very weird.
You're telling me. And its not all files, it's only PHP files.
Didn't someone* suggest that you should deploy to a sub-dir (like
webroot/bin/) to prevent this happening again ?
Yeah, but my point is the bug, not whether or not I
While comparing mxml files Flex3 just kills itself - 50% CPU usage,
takes about 30 seconds to compare 700 lines of code.
It didn't happen in Flex2.
I've been experiencing the same thing, when comparing with repository
*or* local history files. All documents less than a 1000 lines and it
This makes me so F*ING MAD! Flex Builder has once again *trashed* my
webroot with its helpful copying about of PHP files. All of my PHP
files are empty now... which, unsurprisingly, completely breaks
everything on my development machine. Sure, I can sync back up with
the test servers, but I've got
I just encountered the issue again, and went through the process of
deleting all the build stuff manually, caches, etc., and nothing
helped. So this time I tried flushing the browser cache (actually,
disabling it with Firefox extension Web Developer). That worked, it
was a browser cache issue.
Are you suggesting I choose a point in time, for instance, when 500
vectors are drawn, then convert them, encode as png file, overlay as
another child image, clear the graphics object and let user continue
scribbling on newly cleared graphics object?.
Reading through this thread reminded
To clarify this a bit... It's the root Sprite (the one at the top of the
DisplayObject hierarchy) that doesn't receive mouse events.
Wait... so, the stage receives mouse events, but the root Sprite
(which is a child of the stage, right?) (your main class in an AS3
project) does not receive
I've encountered a really annoying quirk in FB3 on OSX... often, when
I choose to debug my project FB hangs at 61% for a minute or so before
finally launching the browser (Firefox) and connecting the debugger.
I've narrowed it down to putting my laptop to sleep (hibernate, deep
sleep) causes
I had a similar problem where I had the Ctrl-Space functionality go
wonky on me. It seems I'd just had Flex Builder open too long. When
I closed and reopened it, the problem went away. Now I make sure I
don't keep FB open more than a few hours at a time.
I've experienced the same thing
In debugging, I have the same issue on my Dell Laptop (WinXP), but not as
bad. It normally only take 5 to 10 seconds for the dialog to open on my
machine and this seems to only happen during debugging, which is what I
wrote it off as…
This is on a machine that doesn't have the debug player
stage.focus = null;
However, the FocusManager may fight to put the focus somewhere.
Ah, yes... I remember using that as my original attempt to fix this
last year... I put a stage.focus = null in my enterFrame event handler
and the FocusManager continually grabbed it back from me.
Yeah, I
This is why Rick's suggestion of both a capture and non-capture phase
listener on stage is correct.
Which is what I was doing originally, as per the source code in my first post.
If a display object has the focus, then is removed from the stage,
does it automatically lose the focus (I would
I clean, shut down Flex Builder, manually go and clear all the cache
files from my workspace's '.plugin' folder, rebuild... no good.
Ah, I didn't clear *all* the caches... I left one, the
searchCaches... which I thought was related to searching the help
files or used for quickly jumping
Did you check whether or not:
Menu:
Project ---
build Automatically is checked?
Like I said, I've been developing with Flex for the last 18 months...
I'm very aware of build automatically, clean and all of their
implications. It's definitely a bug in the caches...
Troy.
F*CK! Even though the folder was definitely a linked folder (little
icon and all), even though FB just told me it wasn't going to touch my
file system, it deleted the contents of my document root. Zap.
Instantly. And it didn't move it the trash like a decent human being,
it just nuked it
Wow, it really nuked the file system... I'm running on OSX, and my
htdocs folder (document root that got nuked) had all its permissions
reset to No Access (even though my user account is still the
owner/group). Wow, just wow.
Okay, FB... forgive me for getting upset. I've had a bad day.
Well… now we know not to keep our development and production versions in the
same place. And moving stuff to the trash is a feature of whatever operating
system you're using, Linux or Windows or Mac. Any decent programming
language will actually *delete* stuff you tell it to.
I personally
However, I think there is a reason for FB to change file permissions. I
keep the output-bin folder in source control so it is easier to deploy to
our internal servers. Usually I keep the compiled files checked out but
sometimes forget. If FB did not clear the read-only attribute on the
If you can please file a bug with a test project and detailed steps as to
how to reproduce we can certainly take a look. Write back here with the bug
number and maybe other folks who are seeing similar issues can vote on it to
make sure we're aware of how much impact this is having on folks.
Ah, my bad then. However, I assume you're not using version control
software of any kind then.
I most certainly am using version control with my source code. The web
stuff is developed by an external group and I don't (routinely) access
their source control, so it wasn't a quick, easy option
For Flex, use systemManager instead of stage from what i was told and the
capture. no idea on combo sorry
Doesn't make a difference.
The stage should be as low-level as it gets... shouldn't all keyboard
events pass through the stage in either the capture or bubble phase?
Maybe I'm missing
Keep in mind that something must broadcast the event. a TextInput
will broadcast a keyboard event. A container or Application will not.
Keyboard events are broadcast by the player. I'm looking to grab (or
look at) all of them. It shouldn't be dependent on anyone broadcasting
them.
Troy.
So – in reality… your implementation may determine which is better to use.
But I do have something for you that might help. If you are having problems
with the capture/bubbling/target phases you probably need to add two
listeners as…
You should've read all the way back to my original post...
guess your project isn't built betwen the save of classA and the edits in
classB ?
Autocomplete should still work within the same project. If the classes
are in two different projects, the autocomplete only shows up once the
other project is built.
Troy.
William hit the nail directly on the head by what he said. Simple ,
light applications should be built in Flash, while more complex
applications should be created in Flex.
And to be clear, because people often muddy this, there's Flex the
Framework and there's Flex the Compiler (or mxmlc, or
It states that the Flex 3 SDK has more charting capabilities than the Flex
Builder 3.
I came across with the same impression. AFAIK, the Flex SDK and Flex
Builder 3 Standard have the same capabilities (since Flex Builder 3
Standard uses the SDK!), and I believe Flex Builder 3 Pro has some
Hum... so it does work with the normal HTTPService without using a proxy?
Nope, not at all. If you want the full HTTP verb set you've got to use
a proxy. Flash Player only speaks GET and POST, due to legacy issues
where browsers used to only speak GET and POST (and some still do as
far as I
1 - 100 of 268 matches
Mail list logo