Sprite;
However, if you don't use the parenthesis, you can't pass parameters to the
constructor.
Cheers.
Juan Pablo Califano
- Original Message -
From: Helmut Granda [EMAIL PROTECTED]
To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Monday, January 14, 2008 8:26 PM
Subject
, the RegExp could be handy and will save you from doing it manually.
Finally, return the modified string and you're done.
It's not hard, just tedious! (specially, writing the lookup table)
Cheers
Juan Pablo Califano
2008/1/13, Andrew Sinning [EMAIL PROTECTED]:
I'm running CS3 with AS2.
I'm
. Having all that logic encapsulated in
the class that actually does something with the xml, on the other hand,
seems like a good idea to me.
Cheers
Juan Pablo Califano
- Original Message -
From: Hans Wichman [EMAIL PROTECTED]
To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent
extends MovieClip
{
// events
public static const ON_PRESS:String = onPress;
}
}
It compiles without errors and traces onPress.
Cheers
Juan Pablo Califano
2008/2/1, Robin Burrer [EMAIL PROTECTED]:
Hi All,
I want do declare a constant in a class
I'm creating the instance in the timeline of the .fla, with this line:
var c:SomeClass = new SomeClass();
Have you tried that? Just to see if it works from the timeline and check if
you can compile and run the code without errors... (
As I said, the code I pasted compiles fine and it traces the
that funcionality built-in.
Cheers
Juan Pablo Califano
- Original Message -
From: [p e r c e p t i c o n] [EMAIL PROTECTED]
To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Friday, February 01, 2008 3:44 PM
Subject: Re: [Flashcoders] jpeg manipulation
That's a great
, but it's already hard to properly validate the parameterized data in
a pre-build query hardcoded in a php script, let alone validating a whole
user supplied string as a sql query).
Cheers
Juan Pablo Califano
- Original Message -
From: Omar Fouad [EMAIL PROTECTED]
To: Flash Coders List
for the each comma) * 2 (taking the max value of 'ff', 2 chars). Probably
it's a bit less than that since your are compressing it...
Can you describe the flow of your app?
Cheers
Juan Pablo Califano
- Original Message -
From: Dave Mennenoh [EMAIL PROTECTED]
To: Flash Coders List
some of the code I mentioned to give it a try, just let
me know.
Cheers
Juan Pablo Califano
2008/2/4, Dave Mennenoh [EMAIL PROTECTED]:
you're sending a comma separated string to the server?
why not have 2 hey digits for all the data and omit the comma? this
would
bring your data to 2/3
comp[i] = orig[i];
lastEqualIndex = i;
} else {
comp[i] = ;
}
}
return comp;
}
All in all, it's a good and simple solution!
Cheers
Juan Pablo Califano
2008/2/5, Dave Mennenoh [EMAIL PROTECTED]:
Hi Juan - I don't think it's assigning the string that's slow. It's
It's ODBC, not OBDC (I always spell that wrong!!!)
2008/2/7, Juan Pablo Califano [EMAIL PROTECTED]:
Dave, in one or two really old, small and low traffic sites, I've seen
Access used as the DD.BB (along with classic ASP). Yes, it's SQL capable,
you can connect to it through an OBDC driver
Access to
MySql and it wasn't precisely smooth (in part it might just have been that
I didn't / don't know much about MS Access).
Hope that helps.
Cheers
Juan Pablo Califano
2008/2/7, Dave Mennenoh [EMAIL PROTECTED]:
Sorry for that title... I didn't mean to do that.
I have a client who wants
Perhaps if you describe your problem / what you're trying to do with a
little more detail...
2008/2/17, Elia Morling [EMAIL PROTECTED]:
I guess not?
Is it possible to swap 8 bit palettes directly in Flash?
___
Flashcoders mailing list
,0xfc1236,0x001200,0x180055];
var oArrays:Object = createPaletteData(test_arr);
trace(oArrays.r);
trace(oArrays.g);
trace(oArrays.b);
Cheers
Juan Pablo Califano
2008/2/17, Elia Morling [EMAIL PROTECTED]:
Has anyone by any chance made a function to dump an 8 bit palette to the
arrays the paletteMap function
Perhaps you could read just the palette info from the image file instead of
looping through the bitmapdata to gather that data. That could be more or
less challenging depending on the file format of the image.
Cheers
Juan Pablo Califano
2008/2/27, EECOLOR [EMAIL PROTECTED]:
So if I understand
up to be executed as the first actions run in a function's code (I
believe that was called hoisting, but I might be wrong).
Cheers
Juan Pablo Califano
2008/3/27, Steven Sacks [EMAIL PROTECTED]:
function doSomething
{
var i:int;
for(i=0;i++;i10)
{
}
}
Is functionally
Hi, you can use the i flag in the second constructor parameter if you want
a case insensitive regexp.
Check the info about the constructor here for an explanation of that and
other flags:
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/RegExp.html#RegExp
()
Cheers
Juan Pablo Califano
Great link, thanks!
2008/4/22, Glen Pike [EMAIL PROTECTED]:
Check out Grant Skinner's RegExr application - it's perfect for testing
out RegExp's and has helpful hints on different Regex params, etc.
You can use it online here there is a download link on the page too...
find it here: http://artemis.wszib.edu.pl/~mdudek/ )
I don't know much about the mp3 format specifically, but I have worked a bit
with raw files, so if you want to give it a try and need some help, maybe I
can lend you a hand.
Cheers
Juan Pablo Califano
2008/4/21, Steven Sacks [EMAIL PROTECTED
-encoded
file, for instance), so it's probably a good idea to go for the second
frame.
Cheers
Juan Pablo Califano
2008/4/23, Bernard Visscher [EMAIL PROTECTED]:
I would go for the second frame.
I've done some testing with loading MP3's in bytearrays then creating a
SWF
in a bytearray
to php and .NET backends). Feel free
to use it as you see fit if you find it useful.
http://pastebin.be/10837
Cheers
Juan Pablo Califano
2008/4/25, John Eriksson [EMAIL PROTECTED]:
I've been messing around with the ByteArray for some time now, and I wonder
if there isa way to convert
('posterMc',100);
this.posterMc.loadMovie('adv_saleposter.swf');
}
Cheers
Juan Pablo Califano
2008/4/28, Jim McIntyre [EMAIL PROTECTED]:
I'm working in a framework for the first time (Gaia). I'll be including
games on some of the site's pages, and most of the games will need to load
a few
In native classic ASP (without any extra components installed in the
server), I'd say it's almost impossible. Maybe if the swf is uncompressed,
you can give it a shot, reading the file with a FileSystemObject -which is
meant to read text files- and using some single-byte string encoding and
You can also use JSON, a format close to javascript syntax, used for
serializing / deserializing objects. It's rather standard and you can find
libraries for parsing it in most mainstream languages (including, of course,
AS 2.0 AS 3.0, and PHP)
Cheers
Juan Pablo Califano
2008/4/29, SJM
, you need ASP.NET installed on the server (maybe you already
have it if you're deploying to a Windows Server...).
Cheers
Juan Pablo Califano
2008/4/29, Helmut Granda [EMAIL PROTECTED]:
thanks for your insight Juan.
On Mon, Apr 28, 2008 at 8:34 PM, Juan Pablo Califano
[EMAIL PROTECTED] wrote
dropping
frames.
By the way, in most cases setting a FPS above 30 doesn't make much sense
(bear in mind that a NTSC video signal runs at 30 FPS, and a PAL one at 25
FPS). And it will only worsen frame-dropping problem, if you already have
one.
Cheers
Juan Pablo Califano
2008/5/7, Sander Schuurman
Great article, thanks for the link.
2008/5/7, Sidney de Koning [EMAIL PROTECTED]:
Maybe this is what your after?
http://www.craftymind.com/2008/04/18/updated-elastic-racetrack-for-flash-9-and-avm2/
On May 7, 2008, at 2:07 PM, Sander Schuurman wrote:
Hi,
Just came across some
.
Cheers
Juan Pablo Califano
2008/5/7, Steven Sacks [EMAIL PROTECTED]:
Juan Pablo Califano wrote:
By the way, in most cases setting a FPS above 30 doesn't make much sense
(bear in mind that a NTSC video signal runs at 30 FPS, and a PAL one at
25
FPS). And it will only worsen frame-dropping
Yes, but be aware that the _url property returns the url of the swf, not the
url of the HTML that embeds it. You can strip the file name and get just the
directory path, if that's what you're looking for, but that'd work only if
your html and your swf are in the same folder.
Cheers
Juan Pablo
of the SWF file.
Perhaps this means you have to do something like:
private function initHandler($event:Event) () {
var _lm:LoadMe = LoadMe(_ldr.loaderInfo.content);
}
Cheers
Juan Pablo Califano
2008/5/9, Dave Segal [EMAIL PROTECTED]:
I posted about this before and didn't
in or not.
Cheers
Juan Pablo Califano
2008/5/16, ACE Flash [EMAIL PROTECTED]:
Hi guys, I was trying to figure out how to get this done in flash.
for example;
I had 2 pages on .net platform, the first page was regular aspx login page
that allows user to enter user name and password, they could
();
resultTxt.border = true;
addChild(resultTxt);
var inputChar:String = event.text;
if(ageField.text.length 0) {
resultTxt.text = (parseInt(ageField.text) + inputChar).toString();
} else {
resultTxt.text = inputChar;
}
}
Cheers
Juan Pablo Califano
2008/5/17, Steven Sacks [EMAIL PROTECTED]:
Your
to a string anyway before being
concatenated to inputChar.
You should also restrict the input text to accept only numbers or validate
the input by yourself.
Cheers
Juan Pablo Califano
2008/5/17, Juan Pablo Califano [EMAIL PROTECTED]:
It seems like the TEXT_INPUT event is fired before the .text property
The problem seems to be in what Javascript is sending to the swf.
Try url encoding the link with the escape function in JS.
Something like:
'flashvars':escape('link=
http://www.google.com?test=1test2=2test3=3test4=4')
Cheers
Juan Pablo Califano
2008/5/20, ACE Flash [EMAIL PROTECTED]:
Hey
Works for me.
WinXP
FF 2.0.0.14
FP 9.0.124
Have you checked that Javascript is not disabled?
Another thing you could try is bypassing the javascript embedding (using an
embed tag instead of SWFObject), just to check if the problem is related to
JS...
Cheers
Juan Pablo Califano
2008/5/22
that protection, but by adding some encryption, you are
minimizing the chances of being spoofed.
Cheers
Juan Pablo Califano
2008/5/25, [EMAIL PROTECTED] [EMAIL PROTECTED]:
Hi all.
Anyone know a solution for preventing client spoofing for sending data with
flash apps?
Like say with sending
this, if it were Actionscript:
Math.floor(num);
--
num 0 ? int(num) : int(num) - 1;
Cheers
Juan Pablo Califano
2008/5/25, laurent [EMAIL PROTECTED]:
John Grden wrote a post about many Math optimisations in AS3, you can find
the code to test at home here:
http://www.rockonflash.com/blog/?p=63
L
Pablo Califano
2008/5/25, laurent [EMAIL PROTECTED]:
Yes. And you can jump to Haxe ;)
cheers
L
Juan Pablo Califano a écrit :
Thanks for the link.
It seems clear from the tests that Math.floor *is* slower than casting. It
think the implementation posted in the blog has a bug, though
class (so they could compile in strict mode
without errors), and an extra class where we put all the public event
constants. It worked out fine.
Cheers
Juan Pablo Califano
2008/5/27, Helmut Granda [EMAIL PROTECTED]:
I am creating a SWC file that will be given to the client with the basic
API
This probably isn't of much help, but for what it's worth, I've tried to
reproduce this problem using the sample code with no success on both IE 6
and FF 2. I'm using FP 9.0.124, debug version, and am running Windows XP.
Cheers
Juan Pablo Califano
2008/6/12, Ashim D'Silva [EMAIL PROTECTED]:
I
is that it doesn't have much
impact. And, thinking about it, maybe that opcode exists because it's an
optimized way to compile / execute a series of related conditions.
Cheers
Juan Pablo Califano
2008/6/25, eric e. dolecki [EMAIL PROTECTED]:
Switch/case is a bit quicker.
On Wed, Jun 25, 2008 at 10:12 AM
Hi, check this out:
http://livedocs.adobe.com/flex/3/html/help.html?content=10_Lists_of_data_7.html
Cheers
Juan Pablo Califano
2008/6/26, ekameleon [EMAIL PROTECTED]:
Hello :)
In AS3 the apply method don't exist over the constructor.. the constructor
in AS3 isn't a Function but a Class
, the position was reset to 0; just
repeteat to EOF and that's it.
Hope it helps.
Cheers
Juan Pablo Califano
2008/6/30, Stuart Campbell [EMAIL PROTECTED]:
I don't think that Adobe is especially interested in promoting
FlashPaper,
which is essentially a competitor or substitute for PDF.
Pity
, except for some reason you want to roll your own.
Cheers
Juan Pablo Califano
2008/7/2, Allandt Bik-Elliott (Receptacle) [EMAIL PROTECTED]:
hey
i am using regexp to inject commas into my years by searching for 000 and
replacing with ,000 like this
var pattern:RegExp = /000/;
sYear
in this or
future versions of this specification.
http://www.w3.org/TR/REC-xml/#sec-common-syn
So, in this case, I guess avoiding hyphens is actually the path of least
resistance (probably, a wise approach after all!).
Cheers
Juan Pablo Califano
2008/7/2, Steven Sacks [EMAIL PROTECTED]:
You might
with the
substraction operator). Nevertheless, there are many cases out there of
perfectly legal and standard xml files that do use hyphens (crossdomain,xml,
for example).
Cheers
Juan Pablo Califano
2008/7/3, Steven Sacks [EMAIL PROTECTED]:
Just because you CAN do it (as this document is just
Hi,
Check this out:
http://www.wellconsidered.be/blog/2007/10/24/webservice-class-for-as3-in-flash-cs3-update/
Cheers
Juan Pablo Califano
2008/7/13, daniele tassone [EMAIL PROTECTED]:
Hi at all -
I use AS2 and Web Service in all my projects.
I want to use AS3 but i no found any
Pablo Califano
2008/7/15, Adam Jowett [EMAIL PROTECTED]:
Hi all,
A very quick one, I haven't had to over-ride or extend built in classes
since the good old days of prototyping in AS1, specifically this time I
want
to extend the built in trace() statement with some conditions etc. Can
for classes and not code in the timeline (I haven't tried it from the
timeline, so I'm not sure). Perhaps it's worth a try.
Cheers
Juan Pablo Califano
2008/7/15, Adam Jowett [EMAIL PROTECTED]:
Some great suggestions thanks! ... I guess in essence I simply wanted to
extend the inbuilt trace
; if they're
equal, the input should be ok.
Cheers
Juan Pablo Califano
2008/7/16, [EMAIL PROTECTED] [EMAIL PROTECTED]:
Hello Everybody,
Before I try to maybe re-invent the Wheel, and write my own code. I was
wondering whether anyone has a sample Actionscript 3.0 code for
verifying the
input
will
necessarily get more complex and having better tools and following good
pratices will save you time and allow you to even make it possible in the
first place. But if you want to do something simple in the simplest possible
way, why not?
Cheers
Juan Pablo Califano
2008/7/16, Barry Hannah [EMAIL
). I believe the charges about button events, getURL and
loadMovie are a good example of this point.
Cheers
Juan Pablo Califano
2008/7/18, Abe Pazos [EMAIL PROTECTED]:
I think most of the people who would agree
with these charges are not in this mailing list.
Are there more AS3 coders out
Hi,
You could try to do your own bookkeeping, so you know what listeners are
registered to an EventDispatcher object. You can have one class to hold that
info in a list and write a method that loops through that list and remove
all registered listeners. You'd still have to override the
PD:
I forgot to actually remove the eventListenerData from the list in the
unregisterEventListener method of the Bookkeeper class. Looping backwards
and adding _eventsList.splice(i, 1); should do it.
Cheers
Juan Pablo Califano
2008/7/20, Juan Pablo Califano [EMAIL PROTECTED]:
Hi,
You
) {
// _dispatcher.removeEventListener(type, listener, useCapture);
_eventsList.splice(i, 1);
}
i--;
}
}
Cheers
Juan Pablo Califano
2008/7/20, Juan Pablo Califano [EMAIL PROTECTED]:
PD:
I forgot to actually remove the eventListenerData from the list in the
unregisterEventListener method
guess.
Cheers
Juan Pablo Califano
2008/7/21, Fabio Pinatti [EMAIL PROTECTED]:
On Sun, Jul 20, 2008 at 7:40 PM, Juan Pablo Califano
[EMAIL PROTECTED] wrote:
PD2:
this line should be removed from the unregisterEventListener()
_dispatcher.removeEventListener(type, listener, useCapture
);
timer.start();
Cheers
Juan Pablo Califano
2008/7/29, Jesse Graupmann [EMAIL PROTECTED]:
I'm sure this isn't needed by now, just thought I'd take it as a fun
challenge.
var rangeMin:int = 0;
var rangeMax:int = 100;
var rangeSample:int = 10;
// copy
var numbers:Array
28setlocal1
whereas in the while loop, that assignment is executed before constructing
the array:
11pushbyte 0
13setlocal1
Cheers
Juan Pablo Califano
2008/7/29, laurent [EMAIL PROTECTED]:
Hi,
I often asked myself if a[ a.length ] = xxx was faster or slower
/blog/archives/2007/01/as3-decompiler/
Cheers
Juan Pablo Califano
2008/7/30, laurent [EMAIL PROTECTED]:
Hm yes, there's no difference between For and while.
What do you think about a[ a.length ] and a.push(); ?
How did you get the decompiles function ?
Thanks for pushing it.
L
Juan Pablo
If you mean decompiling the push method itself, you can't because it's not
actioscript but a native code, implemented directly in the player.
If you mean how the push method is called, it'd be something like this:
Actionscript:
function test():void {
var i:int = 0;
var arr:Array = new
, and that Adobe plans to get more
stuff JIT compiled, to improve performance.
Cheers
Juan Pablo Califano
2008/7/30, Kerry Thompson [EMAIL PROTECTED]:
Dave Watts wrote:
There is arguably some difference between an interpreter and a VM,
though.
True. We're getting into the nitty-gritty details here
in class initialization
Cheers
Juan Pablo Califano
2008/7/30, Mark Winterhalder [EMAIL PROTECTED]:
You clearly understand what I was saying, Mark, but just a brief
reiteration: compiled ActionScript has to be interpreted by the VM, which
is
_always_ slower than compiling directly
format. The problem of this
approach, I think, is that it'd consume a lot of bandwith (unless you have
really small images). Each pixel takes 4 bytes. In a 400 x 400 image, that's
16 pixels and so 64 bytes or 625 Kb.
Cheers
Juan Pablo Califano
2008/8/14, Omar Fouad [EMAIL PROTECTED
on the swf side, but the download/upload times and server load
would be dramatically cut down.
Check this link, it has a tutorial for doing precisely that.
http://henryjones.us/articles/using-the-as3-jpeg-encoder
Cheers
Juan Pablo Califano
2008/8/14, Omar Fouad [EMAIL PROTECTED]:
You mean
With the newest player, I think, it's possible to save data into the USER's
hard drive without a trip to the server, but you want to store the data on
the server side, you need to send it to the server...
You have to post that data using a URLLoader object, and specifying the
input as binary
what you'll get with $_FILES['varName']['name']. For
the imageMimeType, use the constant in the class for JPG.
Cheers
Juan Pablo Califano
2008/8/15, Omar Fouad [EMAIL PROTECTED]:
I guess I can send the ByteArray to the php that will handle its insertion
to the database. Right?
On Fri, Aug
, it automatically serializes and deserializes
native objects using the amf format.
Cheers
Juan Pablo Califano
2008/8/16, Omar Fouad [EMAIL PROTECTED]:
well I've been trying this amfphp and it does not work. amfphp responds
back
an error saying amfphp_runtime_error.
I have this php file in the services
a
regular html form post.
Cheers
Juan Pablo Califano
2008/8/16, Omar Fouad [EMAIL PROTECTED]:
When I use ba without toString() amfphp says Object of class ByteArray
could not be converted to string.
I think there is something to be done in the php to convert the data back
from string
this!
});
Hope it helps.
Cheers
Juan Pablo Califano
2008/8/16, Helmut Granda [EMAIL PROTECTED]:
I have the following:
code.customApplication.load(mySWF.swf, myClip_mc);
now the custom application does not dispatch any events such as onComplete,
this wasnt built in the original application so what I
Pablo Califano
2008/8/15, dr.ache [EMAIL PROTECTED]:
Hi Sander.
When you add an EventListener you should in 99% set the weak reference flag
like this:
mLoader.contentLoaderInfo.addEventListener( Event.COMPLETE,
pageComplete,false,0,true );
The last parameter - here set to true - makes
Juan Pablo Califano
2008/8/17, Juan Pablo Califano [EMAIL PROTECTED]:
The last parameter - here set to true - makes the reference to your
pageComplete function
weak. Meaning if this reference is the only reference left to your removed
object that object
becomes ready for garbage collection
missing something here...
Cheers
Juan Pablo Califano
2008/8/17, Steven Sacks [EMAIL PROTECTED]:
Wow. That's a crazy amount of code for something so simple.
Here's what I use:
---
import mx.events.EventDispatcher;
class
functions.
Hope it helps.
Cheers
Juan Pablo Califano
2008/8/18, sebastian [EMAIL PROTECTED]:
Question in Flash 7, AS2:
Trying to figure out if there is any solution to how to send data to a JSP
page that is not located on the same server as my SWF file.
Since I don't have access to the server
No worries, I'm glad it worked for you.
Cheers
Juan Pablo Califano
2008/8/18, sebastian [EMAIL PROTECTED]:
Thanks Juan Pablo,
Your recommendation to use a PHP bridge works perfectly; I am much relieved
and still able to deliver today as planned - thanks again!
The PHP code I ended up
inheritance,
but I think is conceptually close.
Cheers
Juan Pablo Califano
2008/8/25, Merrill, Jason [EMAIL PROTECTED]:
Interfaces have nothing to do with inheritance (at least not directly)
as I understand them. Interfaces are special classes that simply define
what other classes must define
bashing of some product just
because it's made by MS. But perhaps you could elaborate a bit more on the
idea...
Cheers
Juan Pablo Califano
2008/8/25, Jon Bradley [EMAIL PROTECTED]:
On Aug 25, 2008, at 6:39 PM, Omar Fouad wrote:
But what the hell is an interface!!! I've read lots
Pablo Califano
PD: Yes, I'm aware that this doesn't happen with MTASC, HAXE and the Flex
SDK, but sometimes the project has been setup already by someone as an IDE
project with no real version control and I just have to use an existing fla
to make some minor code changes (which is precisely what
level of the target host, you don't need to explicitly load the policy file
(the player will look up for it there if you make a crossdomain call and
don't specify a policy file).
Cheers
Juan Pablo Califano
2008/9/9, Robert Leisle [EMAIL PROTECTED]:
Hi Boyd,
Yes, you'll need to do import
) and it
should work without further ado.
(Right now, the problems is that both sub-domains don't match)
Cheers
Juan Pablo Califano
2008/9/10, BOYD SPEER [EMAIL PROTECTED]:
I now am getting the error:
Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox
violation: http://boyd
;
}
test();
It's just a quick and dirty test, but it works (at least in the timeline).
Cheers
Juan Pablo Califano
2008/9/16 Jiri Heitlager [EMAIL PROTECTED]
Does somebody now if it is possible to get the name of a function from the
scope of that function.
function doSomething():void
, not false.
An option is nesting the target clip inside another empty clip and set the
visibility on the parent.
+ root
+ holder_mc
+ targetClip_mc
holder_mc._visible = false;
holder_mc.targetClip_mc.loadMovie(etc); //or use loadClip
Cheers
Juan Pablo Califano
2008/9/16 Ali
something like this.
R1.addEventListener(MouseEvent.CLICK, function(evt:Event):void {
trace(evt.target.Label)
});
Cheers
Juan Pablo Califano
PD: A was about to give you some heads up on using inline functions but I
bet in minutes someone else will do take care of that, anyway ;)
2008/9
the loadBytes method from the Loader class to load the swf from the
bytearray you already have loaded.
I'm pasting the sample code in this email, but you could see it more nicely
formatted here:
http://pastebin.be/14115 (SwfHeader class)
http://pastebin.be/14116 (Mainclass)
Cheers
Juan Pablo Califano
of the data you're posting (1/3 of the unencoded size), but
maybe it turns out to be simpler than grabbing the binary data from php.
Cheers
Juan Pablo Califano
2008/10/2, Benny [EMAIL PROTECTED]:
I am sending a compressed bytearray to PHP:
var XMLOut:ByteArray = new ByteArray
Actionscript 3.0 allows only one public symbol (class, function, variable or
constant) per .as file. I made that class internal so I could put both
classes in just one file for this sample, but apart from that, it's not
neccesary, really.
Cheers
Juan Pablo Califano
2008/10/3, Andrew Sinning
you
need, because if you parse the data as UTF-8 you are most likely going
to get illegal sequences at some point.
I've written a little test and it seems to be working (at least I receive
the expected results back in the flash side).
Cheers
Juan Pablo Califano
AS CODE (in the timeline, mind you
URLLoader();
configureListeners(loader);
loader.load(req);
=
Cheers
Juan Pablo Califano
2008/10/3, Benny [EMAIL PROTECTED]:
We are getting closer ;-)
The code you provided worked for me too.
When I compare my code to yours I notice that I am using the $_POST array
while you
of the page that contains those swfs, someone is able to figure out
why there's a difference between what you see on the screen and the swf's
stage size.
Cheers
Juan Pablo Califano
2008/10/5, Andrew Sinning [EMAIL PROTECTED]:
Hi Juan Pablo,
I just got back to this problem and tested your SwfHeader
No worries!
2008/10/3, Benny [EMAIL PROTECTED]:
There's one problem with using URLVariables: it works on NUL-terminated
Strings
You're right, so URLVariables is now out of the picture ;-)
I think your class would indeed do the job but because I want to keep the
client code as light as
PD:
I think someone at Flash_Tiger just found a way simpler and more straight
forward means to get the stage size:
Try loaderInfo.width and loaderInfo.height.
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/LoaderInfo.html
Cheers
Juan Pablo Califano
2008/10/5, Juan
just to display the value in a more
meaningful/readable way in the trace, but as long as you don't perform
arithmetic on those values, you don't have to (because it's parsed as a bit
pattern, not as numerical value, if that makes sense...).
Cheers
Juan Pablo Califano
2008/10/6, sebastian [EMAIL
(16));// traces cc00ff33
Using rgb as the name of the var that stores the value of the RGB
components, instead of arg.
2008/10/6, Juan Pablo Califano [EMAIL PROTECTED]:
Hi,
If I haven't misread something, this
a = a 1;
makes no sense. Unless you're trying to divide alpha by 2
not an option. I
think the trial limits the extracted sample to 30 secs or something like
that.
http://www.flvsoft.com/flv_converter_sdk/
Cheers
Juan Pablo Califano
2008/10/8, BOYD SPEER [EMAIL PROTECTED]:
Can audio be extracted from .flv (audio only) and converted to .mp3 using
AS3 / php
file and when it returns, you could pass the path of the new mp3 to the
flash app for it to load it.
Cheers
Juan Pablo Califano
2008/10/8, BOYD SPEER [EMAIL PROTECTED]:
Thanks , Juan!
can a php script interact with this converter (or how would you hook into
this from a .swf that is running
an existing API in a
way that deliverately breaks existing content that has been working for
years is a stupid decision and a serious lack of respect to users of the
platform (end users and developers), to say the least.
Cheers
Juan Pablo Califano
2008/10/17, Merrill, Jason [EMAIL PROTECTED
to foresee a pontential problem in the first place. And it's ok,
sometimes you only learn with experience; but keep this non-critical fix as
what it is, an enhancement for new stuff, and don't break a ton of apps that
have been deployed over three years.
Cheers
Juan Pablo Califano
2008/10/17, Zeh
and will
start to fail silently when people begin to upgrade to FP 10.
Sounds like a lot of fun...
Cheers
Juan Pablo Califano
2008/10/17, Juan Pablo Califano [EMAIL PROTECTED]:
I don't think that's how these kind of changes have been handled by
Macromedia in the past (Dave points out good
Juan Pablo Califano
2008/10/17, Juan Pablo Califano [EMAIL PROTECTED]:
PD:
This moronic change affects not only already deployed content that uses
FileReference programatically. It also blocks any multypart-encoded POST
that contains a file. I've just tested it in FP 10.
So, if you're
to be
broken for that version (and I bet the same is true for next versions to
come).
So, I guess we'll just have to put up with it. But it's very frustrating.
Cheers
Juan Pablo Califano
2008/10/17, Dave Segal [EMAIL PROTECTED]:
I'm totally with you Juan. I just discovered this issue yesterday
it.
Cheers
Juan Pablo Califano.
2008/10/17, Zeh Fernando [EMAIL PROTECTED]:
Please read my post again. While I agree this is not the way most updates
were made in the past, this is the way *certain* security updates were done
in the past. Most notably:
http://www.adobe.com/devnet/flash
1 - 100 of 273 matches
Mail list logo