If you export flex project it will create a zip archive anyway. But I see no
harm in doing that manually if required.
You may also want to look into version control tools such as Subversion, GIT
or Mercurial. It usually helps in situations of this kind.
A quick answer:
You can use itemRendererFunction to create item renderers (in which case you
will not be able to use virtual layout), but if you do the pool on your own,
that might not be the worst approach.
You can also let the renderers register themselves upon creation in some
sort of array in t
If stuffit doesn't work, you can try RAR, it's not entirely a freeware, but
you can run the evaluation version for as long as you want.
Also, I think that
unzip file.zip -d ~/another/folder
(You run this in terminal - the CMD in PC terms)
will work just fine on any mac OS you may have...
Best.
var dp: ListCollectionView = dg.dataProvider as ListCollectionView;
if (dp) dp.addAllAt(figure.getListDataAtt(), dp.length - 1);
else dg.dataProvider = figure.getListDataAtt();
* sorry, typo
Your data provider will be some sort of collection view, but I don't know
what kind of collection view you are using.
What you want to do is to add items to the data provider... Your code above
should give you an error, I believe, because addAllAt() returns void (that
is undefined / nothing), it mo
Like this:
http://livedocs.adobe.com/flex/3/langref/mx/collections/ListCollectionView.html#addAllAt()
?
dg.dataProvider will be some kind of a collection already, why won't you
concatenate to it and if it is a collection view, call refresh() on it for
example?
Use non-breaking space?
You could really make some use of documentation. First thing probably you'd
find would be that it is the AS3 language you are programming in, and not
Java. :) Another probably discouraging discovery would be that List class
you are referring to is maybe just some UI component from Flex framework,
a
Hi, yes, just as Aron said. I was simply judging from my previous experience
- usually the old classes would contradict to the other classes in one way
or another. So the ASDoc would find the contradiction and spit it at you :)
If somehow the PMD wont do that, you can always compile with -link-repo
Not a real answer: document them with ASDocs - it will try to document
everything -> will certainly find errors in unused classes -> will argue
with you about those classes -> you will know what to delete -> bonus, you
will get documentation for the project :)
I'd think it is normal, since encoding and decoding data would take some
time, I don't know the numbers, but it would be only reasonable that it
would take longer...
Best.
Oleg
You have already found a tool to decompile it, try finding an tool that will
code that for you too ;)
Speaking of optimization, SOAP is a shot in your own foot :) However, if
given no choice, I'd go with something similar to decorators.
That is, I'd have an AS3 webservice extending class that would allow to set
/ reset the functional part of it.
Example:
class DecoratedService extends WebService {
With Loader you'd need to call (content as MovieClip).stop(), unload() or
unloadAndStop() - depends on player version. Be aware that images that
originate from other application domains are subject to security
restrictions.
Well, if the objective is to not write the components yourself, then I'd
look into:
ASDocs for available styling for the existing components
Tweener / TweenLight / TweenMax and similar. I think they have the effects
you are talking about out of the box.
I'd really go for a custom layout than.
Maybe you can take ListBase for a superclass, or just base it on
UIComponent, or Group.
Best.
Oleg.
Hi.
A. You can always create your own layout.
B. Thinking of ready-made components, it could be HorizontalList,
TabNavigator, ApplicationControlBar etc, whichever is more relevant.
Best.
Oleg
Why would you want to use XML for that? XML imposes quite a lot of
restrictions on the content, such as for example, it may not contain certain
bytes or byte sequences, whilst these restrictions may not necessarily apply
to the files you want to transfer. Generally there are three ways of sending
f
With this all said stigmas do exist, and it is hard to convince not
technically savvy people that what ensures security is the SSL encryption
and not the client technology. Many people simply won't enter their payment
details anywhere else but the HTML page. We were forced to put an additional
HTML
Hi, yes, I remember this error mentioned few times, I think it was related
to use of manifest files, where some classes would get referenced twice.
Does you project deal with that? Or, maybe somehow else imports the same
classes twice?
Hi, I'm posting this to drive your attention to this bug:
http://bugs.adobe.com/jira/browse/FP-3513
It may not sound as very critical, but the consequences are really not nice.
Me and a friend of mine where trying to find any possible way to work around
that while using Mochiads AS2 API. And there
userItem.username is either null, or contains characters not allowed in the
stream name, it's best to restrict it to alphanums, the stricter the better
:)
You can use SWC in three different ways:
- external library (none of the SWC contents are included into the resulting
SWF), this is if you want to have RSLs (runtime shared libraries). Example,
you are developing an app that uses Cairngorm and has several modules. You
would than link the Cairngorm
Generally, SWC should be more efficient in terms of compilation time since
you will be using already compiled code vs the code the compiler still needs
to analyse or resources to encode.
However, I haven't benchmarked that. So, could be there's something which
escaped my attention.
Best.
Oleg
Hi.
crossdomain.xml should be deployed like so:
MUST HAVE: root site folder of the destination server.
possible: additional policy files in subfolders (if the top-level policy
file allows that).
If your server can accept HTTP uploads it can also host policy file, else,
it's not really an HTTP serv
Hi.
CMYK color separation is a science all by itself, you'd need to learn and
understand hardware color profiles, printing techniques and all that
involves rasterizing images before they get printed. I'm afraid there is
nothing built in in the framework for that purpose as it is a quite
particular
Hi.
This is what it looks like:
${FLEX_HOME}/frameworks/libs/textLayout.swc
http://.../art-for-sale/textLayout_4.0.0.8287.swz
http://.../crossdomain.xml
http://.../art-for-sale/textLayout_4.0.0.10485.swz
${FLEX_HOME}/frameworks/libs/framework.swc
http://.../art-for-sale/framework_4.0.0.
Hi, Mark.
Look into these:
http://help.adobe.com/en_US/AS3LCR/Flash_10.0/flash/display/LoaderInfo.html#height
http://help.adobe.com/en_US/AS3LCR/Flash_10.0/flash/display/LoaderInfo.html#width
Best.
Oleg
Windows XP SP2 dualcore 2x2.13
Player plugin debugger (Chrome, Opera, FireFox, Safari) - 38-41 fps.
Player ActiveX debugger - 38-47 fps.
Standalone debugger - 36-37 fps.
Player version 10.0.32 for all kinds.
Best.
Oleg
Hi, I think it's a known bug, however, cannot find it in JIRA atm. I
couldn't make antTask understand this option no matter what, so, I resumed
to making an additional configuration XML and
.
But it is also possible I haven't tried enough :)
Best.
Oleg
Hi.
http://www.flashdevelop.org/community/viewtopic.php?f=13&t=4555&p=21134&hilit=asdocs#p21134
This may be of some help, but, maybe also not enough info... Besides, I'd
try looking at this plugin:
http://www.flashdevelop.org/community/viewtopic.php?f=4&t=4641 AFAIK elyon
has made some include /
AFAIK alias is just a string, maybe there are some restrictions on syntax
(like only alphanums + .:$_), but that's about it.
If you look at how ArrayCollection is aliased, you'll see it's alias is
different from that class' full name.
I'd rather go for registerClassAlias then [RemoteClass] meta - t
Ah, sorry, I see now. Well, bugs are expected in beta software... but why
would you think it has anything to do with AIR <-> FP interaction? If you
have different runtime versions there may be conflicts, especially, if one
of the runtimes is still in beta...:S
Best.
Oleg
Try dispatching "update" collection event from the collection assigned? I
don't think it is a good workaround, because dispatching events from outside
the dispatcher is a bad practice, but just for the experiment, I'd try.
Best.
Oleg
Hi.
You must be seeing RSL conflicts (the classes built into FlashPlayer won't
behave in that way, since they aren't actually loaded from SWF), and if
that's the RSL conflict, like you've loaded a newer version of RSLs into
oldish application, then, well, that's the developer's problem, he should'v
Yeah, here you go:
http://help.adobe.com/en_US/AS3LCR/Flash_10.0/flash/filesystem/File.html#browseForDirectory()
Best.
Oleg
Ah. You welcome, James. Then look into this discussion:
http://forums.adobe.com/thread/287536
It explains it on JavaScript AIR example, but the AS3 API shouldn't be
different.
Best.
Oleg
Hi, If we are not talking about AIR, then this isn't possible, however, I
think, that the default folder is picked from the opening windows history,
that is the browser or OS would remember the last opened folder and then
open it on the next file open dialog. At least this is how it works on
Window
You probably want to mention the kind of errors you saw. I'm not implying
anything, but, in most cases that I can think, the runtime errors are the
developer's fault and not the runtime fault...
Best.
Oleg
Why make your own collection and not data descriptor:
Well, this is questionable, and the question is exactly how much time are
you going to spend on that and how critical this place is for you. If you
can spend much time, or, as much time as you want, I'd say - make a tree
control yourself, and do
The text node is the node's value:
var foo:String = [bar][0]; // bar
// This is just a quick way to show how XML value is interpreted, but,
normally, you'd use toString()
For XMLList, you'd use text() - this would return the collection of all
nodes for which the nodeKind is "text"
trace(.nodeKin
You're welcome ;)
Best.
Oleg
I'm afraid, that it is not possible to know that at compile time, unless you
define some compiler variable for that. However, at runtime you can always
check the player version in Capabilities.version.
If you want to exclude the code targeting FP10 at compile time, I'd do it
like this:
mxmlc -defi
The best way would be to implement your own ICollectionView, however, this
would be a complex task.
For your example, I'd do it like so:
private var ac:ArrayCollection = new ArrayCollection([
{ "Animals": ["dog", "cat"],
{ "Fruits": ["orange", "apple"] }
]);
B
*Language Version: *ActionScript 3.0*Runtime Versions: *Flash Player 10, AIR
1.5
Are you sure you are compiling for FP10?
Best.
Oleg
Hi.
It seems like what you want is what in other languages would be called a
delegate or closure (function signature). This is not entirely possible in
AS3, end even what is possible requires to much work to be really useful.
So, please vote:
http://bugs.adobe.com/jira/browse/ASL-32
:)
However, ma
Just adding to what Alex said: parameters' names don't exist in compiled
SWF, they are referenced by indices (when the function starts, the
parameters are pushed to the stack and just follow the stack logic). So, no,
reflection can only tell you the number of parameters used (you can get it
from my
Hi.
This won't be an easy reading, since it's been obfuscated by google
translator :), but, anyway, you may find it interesting:
Part 1:
http://translate.google.com/translate?hl=en&sl=ru&u=http://www.flasher.ru/forum/blog.php%3Fb%3D78%26goto%3Dprev&ei=fe65S_GDOtKiOPbUxKEL&sa=X&oi=translate&ct=resu
Hi. I was trying to compile a project that compiles fine on Win on Linux. I
believe I'm using the same SDK distro on both platforms. The flexTask is
even exactly the same file, but I'm getting this error:
[compc] Error: org/w3c/css/sac/Condition
[compc]
[compc] java.lang.NoClassDefFoundErr
hgnowhg:
Hey, you're mistaking something... the SDK is downloadable and build-able
back to the version 2.X (well, at least last time I tried I could download
and build 3.X versions, and I saw the 2.X tags there too). The SDK (and it's
bugs) have very little to do with Flash (Flex) Builder. I'm not
Samuel,
It was actually not me, who asked the question :)
Besides, from what I understood from the question - the font doesn't have
bold face, so, you cannot embed bold characters from that font, because they
had never been designed by the font's author :)
If this isn't the case, then probably my
You can try using TextRenderer to mimic bold, but, unfortunately, the
settings applied through TextRenderer are application-wide... Anyway, see if
this may help:
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/text/TextRenderer.html#setAdvancedAntiAliasingTable()
Best
Oleg
Either one of these:
Required file cannot be found.
Required file was found but contained errors. Try Charles HTTP proxy - it'll
display what the response contained. It'll have some PHP generated error /
warning text in the message - easier to diagnose the problem.
Best.
Oleg
Stack overflow would mean that you have some recursion going on for ever.
That would often happen if you conditionally create an instance of a class
in that class constructor, or, you have used singletons in business logic
and by loading a module you've made that a multitone. It also looks like
tha
Hi David.
Is there any reason you need multiple crossdomains on that site? This is the
purpose of permitted-cross-domain-policies="by-content-type" attribute in
the crossdomain master file. This will not allow you to load anything from
the root site folder for example, unless it is another crossdo
Consider adding the parameters to URL instead of pushing them into POST
request body. That is form the URL of the URLRequest however you want, so it
will look like:
domain/uploading-script?param=value&anotherParam=value
You don't have to specify Security.allowDomain() for what you are doing,
unless
http://test.salesforce.com/crossdomain.xml must permit your domain to
connect and get the data. If it doesn't, you'll have to either ask the
owners of that domain to add your domain to the list or proxy the requests
to their domain through your own proxy.
Best.
Oleg
Hi.
The problem is that SWF format doesn't contain a field that specifies the
version it was compiled for. There is FileAttributes tag in SWF, but it only
contains information on VM version and there are the "magic letters" in the
file header that provide you the file version. More info here:
http
That's sort of misconception about ArrayCollection. It is not a collection,
it misses "View" part in the name, but if you'll look at inheritance chain,
then you'll see it is a view - it's basically the same as
ListCollectionView.
Another thing about ArrayCollection or ListCollectionView is that it
Besides, you should really turn warnings on, if not already, install debug
player and pay attention to errors and warnings you are getting - would
spare you much time waiting for replies.
SPADES is class, addChild() accepts DisplayObject as an argument... why
would it work?
Hi, the easiest way is to make custom serialization routine.
Vectors aren't fully serializable anyway - regardless of the type parameter
they are serialized to Vector. - so, it's absolutely in no way
different from Array :(
Besides, there aren't generics in PHP anyway, so, I think you'd be OK if yo
Warren,
This depends on whether you have a sound card or not, and how do you have
that set up. Some mother boards have that on-board, so, they can play
waveforms. But, some systems will have audio disabled, Maybe, OP is talking
about some embedded system, like teller machine or something of that ki
Ah, so if you want normal just a collection - check HaXe
http://www.haxe.org, or, here's some stuff I've written:
AS3:
http://code.google.com/p/e4xu/source/browse/trunk/#trunk/src/org/wvxvws/data
There's doubly linked list, data set, and typed dictionary, RBTree is worked
on...
I've also made seve
Sorry, typo...
switch ((orgStructureADG.selectedItem as Object).constructor)
{
case VendorCompcodeData:
{
trace( "VendorCompcodeData" );
}
break;
case VendorPurchorgData:
{
trace( "VendorPurchorgData" );
}
break;
In AS3 switch construction uses break - otherwise it'll fall through (all
cases will be executed after the first case that matches the condition).
Besides, you can leave the condition blank and put any statement in the case
block, however, you have to be careful that the cases are unique. Example:
Hi Mark.
You have to add framework.swc to the source path. I assume you are trying to
do this in Flex / FlashBuilder - it by default doesn't put framework
libraries on the path.
But why would you want to use this class anyway? There's zero benefits of
using it outside framework...
Best.
Oleg
OK :)
Embed assets like this:
package com.foo.bar {
[Embed('../assets/symbols.swf', symbol='hearts')]
public class FooBar extends Sprite {
public function FooBar() { super(); }
}
}
Then in your MXML:
This approach is better because it doesn't create dummy variables. You don't
use mx.core.Sp
I *think* that you can do it in AIR 2 - it has something called native
process, which should be able to launch another application - sorry, I
really don't know the details.
Maybe Zinc or SWFStudio can do this... I think that Zinc can launch native
application as a process and have some means of con
Yup. Convert those classes the designer needs to use to "compiled clip" -
look at how fl.* components are designed, especially, the ComponentShim clip
(in the _private folder).
Best.
Oleg
1. You cannot embed on constants.
2. It is always better to embed on a class then on a variable (you won't be
using mx.core.WhateverAsset for the asset factory, but a normal flash.*
class.
Best.
Oleg
What's the point of recompiling the SWC in this way? Why not just extract
the SWF from it?
Best.
Oleg
Detach the NetStream from the video, draw it, attach the stream again - this
bug exists ever since there was this security limitation, my forecast it's
not going to be fixed in the upcoming year, so, you ought to be safe using
that :D
Best.
Oleg
If you know there are Cairngorm and Mate, you can be sure, you can write one
of your own. And if you used either one of those even briefly, you can write
a better one. This said, my choice would be "none". I'm writing that myself,
and, you just cannot imagine my happiness - two days ago I finally r
Tracy,
You are wrong on that remark, if you do valueOf()@attributename, then you
are safe. This is because E4X-specific opcodes act like with() construction,
i.e. they just push the current XML node context in front of every other
context in the context lookup chain. While XML class is dynamic,
Not unless the user has your AIR app installed, and that app will channel
that image through LocalConnection.
Or you may ask them to Base64 encode the image and paste it as text :D
*sorry*
Best.
Oleg
default xml namespace = "
http://docs.oasis-open.org/wsbpel/2.0/process/executable";;
var xml:XML =
http://enterprise.netbeans.org/bpel/SimulationEmprunt1/beInAssInAcEn";
xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:sxt="
http
There are no source for Array.splice() - it is not publicly available - what
did you want to see there?
Eclipse has it in templates - ${time} and ${date}, but I've not seen an
option to insert date at cursor or something like that, same for author.
There are some kind of templates in FB4, but they are still to primitive and
missing lots of features...
var tf:TextField = new TextField();
tf.multiline = true;
tf.type = TextFieldType.INPUT;
tf.addEventListener(MouseEvent.MOUSE_DOWN, this.mouseDownHandler);
tf.addEventListener(MouseEvent.MOUSE_UP, this.mouseUpHandler);
var begin:int;
var end:int;
function mouseDownHandler(event:Event):void
{
tf.set
Tom.
Well, I'm not implying it may be used. However, Flex framework validator may
not be used as well, but it is never mentioned in any comments ;) Most
notably it will not allow local network e-mail addresses (that is the
addresses, where there is only one domain level - postmas...@localhost for
e
Hey, np, we all tried that at some point :D
If you dispatch an event in constructor, there may not possibly be any
handler added to the dispatcher. You have to dispatch an event *after *the
object is created and thus the reference to the object may be made. That is
in your example you should call myDispatchFunction() from init() *after *you
Opps, sorry, wrong link: http://tools.ietf.org/html/rfc822
BadVersion usually means there's junk in the response, this would be caused
by warnings or error messages being output into the same stream as the
response body. The literal meaning of this message is that the Flash AMF
parser could not understand what's been sent to it.
Check for any code that may
var a:String = "1/2/3/4";
trace(a.substr(a.lastIndexOf("/") + 1));
Simplest possible reply - you are asked to do exactly this - embed the
images, not load them at runtime. :)
Best.
Oleg
In the same stack frame? If so, then just call the handler directly.
Otherwise it's not possible. Besides other things Timer isn't precise enough
for such short intervals, it will depend very much on rendering and the code
in the same frame. At 10 ms you can get +- 50% precision error.
Best.
Oleg
Validating e-mail address is quite a task... See this for what the
requirements are: http://tools.ietf.org/html/rfc3696#section-4.3
There is the EmailValidator in the validators library provided with SDK, but
it is doing it wrong - don't use it. Best way is to write your own, so far
this is what I
This depends on the OS and / or the programming / scripting language you
know to operate it. I had written a tiny C# program to browse a given folder
for the files of a given type and generate an AS file with embeds, but, I'm
sure you can do the same with any language that can access to the file
sy
FTP stands for File Transfer Protocol. The idea is that it sets some rules
on how to transfers arbitrary file formats from one computer to another.
Flex3 website is a very broad definition, but, it's client would normally
consist of HTML + SWF + some JS files. There should be no problem using
those
201 - 292 of 292 matches
Mail list logo