Danny,
I'm still not entirely clear on what you're attempting to do. Can you
show more code to give us a bigger picture?
Danny Kodicek wrote:
I'm trying to do something like this:
if (a instanceof Array) {
doMyArrayFunction(a)
}
___
Flashcoder
How about some real time T&A, instead?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adob
> while(i--)a[i].n.t();
You ain't what?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Ad
Oops!
var i:Number = elements.length;
while (i--)
{
elements[i].animation.update();
}
Steven Sacks wrote:
Decrementing is faster than incrementing.
var i:Number = elements.length;
while (--i)
{
elements[i].animation.update
Posting jobs is acceptable, but if you start posting them egregiously,
expect a swift rebuke from the populace and the powers that be.
Also, avoid posting jobs that require 5+ years of AS2 experience. ;)
___
Flashcoders@chattyfig.figleaf.com
To change
Decrementing is faster than incrementing.
var i:Number = elements.length;
while (--i)
{
elements[i].animation.update();
}
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/m
> It's completely wrong to insist that you have to use a delegate in all
> situations.
Delegate is teh bomb dot com. If u don't use it, ur n00b.
;)
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http:/
Hey everyone! Just wanted to announce the latest version of my Gaia
Framework for Adobe Flash.
v1.0.4 brings some cool new features for manipulating sounds, as well as
improved Gaia Scaffolding to support nested folder structures.
http://www.gaiaflashframework.com/
--
Steven Sacks
Flash
Thanks for your understanding. Glad it's working.
Steven Sacks
Flash Maestro
Los Angeles, CA
--
blog: http://www.stevensacks.net
gaia: http://www.gaiaflashframework.com
Tony Trapp wrote:
Hey Steven no biggie test away if need be.
Just testing this new email account for Flashcoders.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier A
Heh. Nothing to do now but get old school and trace out the values you
want to see. I personally never use the Flash Debugger for reasons like
the one you're talking about. I find it a lot faster to just spit out
the variables I want to see and debug that way.
Xray is the bomb dot com. _gl
You might also want to try embedding an mp3 in a swf and loading the swf
instead.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you
Looks right to me.
That is pretty much how it's done. I know it sucks, but it's these
little tricks that you gotta do to get things to work consistently
across browsers.
In the greater scheme of things, this is relatively minor when you take
into account the insanely dumb stuff that XHTML/J
Unfortunately, loading from the cache isn't instantaneous. If it's a
really large file then you will notice a little lag before it starts if
you're playing it as an event. Watch it in Firebug if you want to see
how large cached files take a bit to load from the cache. Have you tried
streamin
Ha! That is the best case of "It's not a bug, it's a feature!" I've
ever seen.
Danny Kodicek wrote:
you might have to go nodeValue.toString() first..
No, nodeValue is already a string. I fixed the problem by reading the file
in Director and passing it to Flash as a string - one case where
setInterval is a handy way to break scope.
Have the AS method called by JS set an interval for let's say 10ms, and
then have the method assigned to the interval take care of business.
Javascript will be free and Flash will keep on going.
-Steven
Seth Green wrote:
I'm not calling a JS functi
Does Google include a search engine?
http://www.google.com/search?q=Flex+SOAP
Cheers,
Steven
Pete Miller wrote:
Does FLEX include a SOAP-based web services component? Does it work
better than the buggy MX component (i.e. huge memory leak)?
We have shied away from Flash Remoting for the time
existing project to the latest version of the Gaia Framework.
Plus, some various optimizations to the internal classes of Gaia thrown
in for good measure.
--
Steven Sacks
Flash Maestro
Los Angeles, CA
--
blog: http://www.stevensacks.net
gaia: http://www.gaiaflashframework.com
me so I
didn't test the installer for CS3 since the rename. However, I just
installed the CS3 trial and verified it is working now. That is the
only difference between the CS3 and Flash 8 versions and the Flash 8
version works perfectly.
--
Steven Sacks
Flash Maestro
Los Angel
There is an issue with JSFL not being able to open an FLA using
fl.openDocument(path)
where path contains a special character, a Swedish vowel. It seems that
the vowel is being removed from the string.
This is how the path is generated:
FLfile.listFolder() is used to target a folder, which
Muzak,
If this is a known issue, is there a known solution?
Thanks,
Steven
Muzak wrote:
I'll put my money on the "Swedish vowel" then ;-)
Muzak
- Original Message -
From: "Måns Asplund" <[EMAIL PROTECTED]>
To:
Sent: Wednesday, June 13, 2007 2:38 PM
Subject: Re: [Flashcoders] Gai
Hey,
I'm not sure, I'll have to get more information. Flashcoders isn't the
place to get support for Gaia, though. Please register an account on
the forum and post your issue on the Support board.
Thanks,
Steven Sacks
blog: http://www.stevensacks.net
gaia: http://www.gaiafla
Tom was nice enough to help me out. Thanks!
Steven Sacks wrote:
I don't own Flash CS3 yet and the download link is broken at Adobe for
the trial and I just need to Save And Compact three tiny flash files
as CS3 that are currently Flash 8. Could anyone help please? Email
me off
Somebody already helped me, but thank you all the same! :)
Måns Asplund wrote:
I can do that for you.
Just e-mail me those files.
Regards Måns
2007/6/13, Steven Sacks <[EMAIL PROTECTED]>:
I don't own Flash CS3 yet and the download link is broken at Adobe for
the trial and I j
I don't own Flash CS3 yet and the download link is broken at Adobe for
the trial and I just need to Save And Compact three tiny flash files as
CS3 that are currently Flash 8. Could anyone help please? Email me
off-list.
Thanks!
--
Steven Sacks
Flash Maestro
Los Angeles, CA
--
blog:
Cool! You might be interested in Jason Grunstra's post regarding SEO
with Flash:
http://labs.blitzagency.com/?p=171
Frederic Caron wrote:
Hey Steven,
Nice job! I was really interested in the fact that you included best
practices like SWFObject and SWFaddress, you should have a look through
http://www.stevensacks.net/
Technology author Steven Sacks today announced the free public release
of his Gaia Flash Framework® (gaiaflashframework.com). Gaia (pronounced
"guy-uh") is an open-source framework that provides powerful solutions
for building Flash websites to des
Everything you want to do is actually pretty easy with JSFL. Get the
API documentation for it on Adobe's site and start digging. You'll be
amazed at everything you can do with it. I've written many tools with
JSFL. Basically, there isn't much you can do in Flash that you can't do
with JSFL.
Flash Remoting has always been a separate download, but I would think
that they would have shipped it with CS3 considering. I assume it's on
their site as a separate download?
Muzak wrote:
That's not the only things *missing*..
No Flash Remoting
No Webservices
- Original Message
And since we're talking best practices, you don't
> have any public instance variables anyhow, hmm? :)
I don't know what "best practice" you're referring to that claims that
you shouldn't have public instance variables.
The Wikipedia says "NEED CITATION".
Which I will promptly ignore as rubb
eturn isActive;
}
Steven Sacks wrote:
I only use underscore for private variables if I have a public getter
and/or setter for that private variable. Otherwise, I don't use
underscore. It's also a easy way to see, at a glance, which private
variables are private and which are pub
I only use underscore for private variables if I have a public getter
and/or setter for that private variable. Otherwise, I don't use
underscore. It's also a easy way to see, at a glance, which private
variables are private and which are public but private.
private var _title:String;
public
Import the mp3 into Flash, set it as an event on the timeline with
loops and export as SWF and that will loop seamlessly.
nik crosina wrote:
Hi Guys,
We are having problems with seamlessly looping audio in Flash - is
there a special way of doing this? We are using mp3 and even thought
eh
I got this message off-list, too.
Conrad, are you harvesting our emails from Flashcoders for your own
commercial purposes?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/ma
Apollo
Gustavo Duenas wrote:
Hi coders , Does anyone know a tutorial about how can I do desktop
applications using flex builder?
Because I googled and I wasn't much successful in my search... Maybe I
don't know where I can find it?
Regards.
Gustavo Duenas
Creative Director
LEFT AND RIGHT
Thank you for your addition to the thread, Mark. It was quite helpful!
:)
Mark Winterhalder wrote:
On 5/26/07, Steven Sacks <[EMAIL PROTECTED]> wrote:
Correct me if I'm wrong, but I thought objects could not delete
themselves, and if you delete an object with a function
Ok I get it now.
By removing all references to the functions of class B, even though
class B is telling class A to delete class B, after the delete fires and
the thread is done, arguments falls out of scope, all references to
class B are gone so the GC will pick it up on the next sweep.
This
.onEnterFrame = undefined; for example)
I'm not sure if the delete operator works on function objects, but by all
means try delete _root.foo.hello instead...
and for more about flash's GC see
http://www.kaourantin.net/2005/09/garbage-collection-in-flash-player-8.html
Jonathan
On 5/25/07
Correct me if I'm wrong, but I thought objects could not delete
themselves, and if you delete an object with a function and store a
reference to that function before you delete it, that function is
orphaned and will never be cleaned up by the GC. Am I wrong?
I have a trivial test to demonstra
Check out Xray
http://osflash.org/xray/
One of its features is it lets you take snapshots of the current
application so you can see where your movieclip is.
Xray is the best thing to happen to Flash Development. Ever.
Rock on John Grden! \m/
Jonathan Berry wrote:
Hello all, I searched th
From my XArray mixin class (all 3 are needed).
/**
* Returns a new array by removing duplicate values in Array.
*/
Array.prototype.uniq = function()
{
var r = [];
var l = this.length;
for (var a = 0; a < l; a++) {
if (!r.has(this[a])) r.push(this[a]);
mProjector
Andrew Sinning wrote:
What are the options for delivering Flash over the web, but outside of
the browser? Has anybody used jFlash (a module that allows you to use
Flash content in stead of Swing within Java)? Our objective is to
deliver an interactive IRC/remote-control which wil
There are tons of sites that come up on google if you search for
download youtube flv, or things of that ilk. There are sites that will
give you the direct path to the FLV and you can use their scripts for
any YouTube movie ID url.
FireBug for Firefox and Fiddler for IE7 are two examples of a
I highly suggest you get FLASC
http://www.osflash.org/flasc
1) Your code will be cleaner. MTASC forces you to write clean code in
order to compile. It is more strict than the Flash IDE compiler.
2) MTASC helps identify bugs before they happen. For instance, I had an
issue I couldn't figur
Hey Jason,
Are you calling this from a panel? If you are, make sure the panel is
docked. There are bugs with certain JSFL commands if a panel isn't
docked when it calls them and setTextString is one of them.
Also, you could also try selecting the text field using the rectangle
selection co
I think he was pointing out how the loop could be optimized even further.
Pre-decrementing is faster than post-decrementing.
However, his greater than comparison slows it down. The right way to do
it is:
while (--i -(-1))
{
}
since subtraction is faster than addition.
This is all academic,
Even more optimized
public static function center():Void
{
var targetClip:MovieClip = MovieClip(arguments.shift());
centerX:Number = targetClip._x + (targetClip._width / 2);
centerY:Number = targetClip._y + (targetClip._height / 2);
var i:Number = arguments.length;
while (i--)
{
public static function center():Void
{
var targetClip:MovieClip = MovieClip(arguments.shift());
var i:Number = arguments.length;
while (i--)
{
arguments[i]._x = targetClip._x + (targetClip._width / 2);
arguments[i]._y = targetClip._y + (targetClip._height / 2);
}
}
:)
I use the following naming conventions for both library and instance.
MC_Foo for movieclips
BTN_Foo for buttons or movieclips that behave as buttons
GR_Foo for Graphic Symbols
FONT_Foo for font symbols and their linkage IDs
VID_Foo for Video symbols, not for instances, though
I use the foll
Nasty bug with Publish Profile XML importing.
I've got a publish profile that has my class path set up.
If I export that publish profile, the resulting XML has the class path
in it. See line 76.
74: 2
75: 1
76: ./classes
77:
When I import this publish profile xml file into the same Flash
Spiderman 3: So bad, I have to post OT on Flashcoders to warn my
colleagues to avoid it at all costs.
Never see Spiderman 3. Ever. Go your whole life without seeing it. It
might be the worst movie ever made. Seriously. It was unbelievable how
bad it was. Of the people who did not walk ou
errors stopped appear.
Maybe it can give you a hint to your problem on the mac.
See details on : http://ericlin2.tripod.com/as2/conflict.html.
Nimrod
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steven Sacks
Sent: Sunday, May 06, 2007 1:40 AM
To: flashc
Hey all. Well, it was an ASO issue. I had to clear the ASO on my
Windows box, then create my MXP, then bring it over to my Mac box, clear
the ASO and then it worked from then on. I'm hoping that people don't
run into this issue if they install my MXP.
Are there any negative effects that ari
Thanks Wagner. Unfortunately, that's not the issue. These files were
built on my Windows box (not on a network drive) and packaged up in an
MXP. Also, this is a brand new install of the trial version of Flash 8
for OSX, so deleting the ASO wouldn't (and didn't) help. :(
Delete .aso files (in Command or Control menu) and recompile.
- Original Message -
From: "Steven Sacks" <[EMAIL PROTECTED]>
To:
Sent: Sunday, May 06, 2007 12:40 AM
Subject: [Flashcoders] Flash 8 OSX - Classpath woes
Calling all OSX Flash users:
Does the clas
ith the name of another class that was loaded,
'net.stevensacks.gaia.core.SiteModel'.
class net.stevensacks.gaia.core.SiteModel
That class declaration is line 28, btw. How can a class conflict with
itself?
--
Steven Sacks
Flash Maestro
Los Angeles, CA
--
blog: h
nd does not even appear in the list of available panels to
Flash and the loaded panel is empty.
If I am going to distribute my panel and people own a copy of gProject,
how am I supposed to deal with this terribly nasty bug?
--
Steven Sacks
Flash Maestro
Los
IIRC, instanceof is faster than typeof.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Ado
XML2AS is the best one I've found. It's also the fastest. I didn't
write it, but I have included it in my package of data tools.
It creates String objects out of nodes and applies attributes and the
names of the child nodes as array properties.
I have written about it on many occasions on F
You might want to consider using composition.
class Sample
{
private var self:MovieClip;
function Sample(clip:MovieClip)
{
self = clip;
}
}
Usage:
mySample = new Sample(this.attachMovie(id, instance, depth));
Composition has many advantages over extending MovieClip. I
I cover this topic on my blog. :)
http://www.stevensacks.net/2007/03/16/force-landscape-printing-with-printjob/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/lis
Nevermind. I had the class path going one level too deep. Isn't that
always the way? You bang your head against something for awhile and as
soon as you ask the list, you figure it out.
___
Flashcoders@chattyfig.figleaf.com
To change your subscriptio
I'm having a weird issue with MTASC that just started up.
It compiles fine in Flash.
C:/Project/src/classes/com/stevensacks/site/data/SiteModel.as:10:
characters 16-25 : type error class not found :
com.stevensacks.site.data.PageModel
Here is line 10:
private static var _pm:PageModel;
It's
Danny,
I think you're missing out by not using Intervals. They're extremely
useful (and efficient) once you get familiar with them.
If you're looking for one that you don't have to keep track of, google
"Kenny Bunch Interval Manager". It takes care of a lot of interval
overhead and puts al
If you like Java so much, why don't you marry it?
If you want to make deferential commentary regarding Actionscript, go to
Java forums and seek validation from your Java friends. Unlike us
Flashcoders, I'm sure they'd be happy to oblige.
It's extremely easy to make a document class in AS2 an
Best practices:
A lot of people use main.swf and main.as. FLASC/MTASC has a feature to
support this very functionality.
Never put classes in the same folder as your movie. Always put them in
a namespace folder chain.
For instance:
class com.clientname.projectname.Main
HTH,
Steven
An interval ID is just a number. If you clear the interval, it doesn't
get rid of the number, it just stops the interval of that ID from running.
delete intervalID;
Helmut Granda wrote:
Is there any specific reason why after calling clearInterval the variable
with the interval returns 1 ins
ood to know.
If you need more info:
I'm calling seek() on a button release and at times the FLV will go back to
the beginning of the FLV instead of seeking to the time passed in the
seek()
call.
Thanks!
On 4/23/07, Steven Sacks <[EMAIL PROTECTED]> wrote:
The FLV component (both 7 an
(this, 'myFunc', 100);
Using setInterval this way specifies the scope object you want to call your
method on. This also goes a long way to ensuring that your interval will
work as you intended it to.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
You link off to PayPal just like you do with an HTML link? PayPal has
their own forms.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought t
hy is that? If he's only calling it once and the interval is
> only defined/set once, why would you call clearInterval?
>
> On 4/20/07, Steven Sacks <[EMAIL PROTECTED]> wrote:
> > You should always call clearInterval before setInterval. ALWAYS.
> >
> >
>
The FLV component (both 7 and 8) are totally messed up when it comes to
calling seek manually on an interval or enterFrame. I mean, it's pretty
ridiculous that such an obvious bug got through QA. Allegedly, there is
an undocumented public method that exposes the true seek method of the
FLVPla
Some of us work in corporate environments (read: Jason Merrill) and
swear words get us (read: him) in trouble. Watch your language.
And I had no trouble unsubcribing recently from Flashcoders. You do
realize you have to confirm the unsubscription right? And to do that,
you need your passwor
You should always call clearInterval before setInterval. ALWAYS.
Michael King wrote:
Hey all,
Some of you may remember my problems with visually mapping streaming data
before. I ended up needing them as separate clips to provide individual
roll-over support with the ability to add links in a
Test message
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
Everyone is my office is getting a Fatal Exception Error when they try
to run Muzak's MXI Creator. XP, Vista, SP1, SP2, machines that never
had it installed before, machines that uninstalled and resintalled.
Same Fatal Error on launch on all of them.
Anyone know if there's a fix for this?
___
You'll have to set a flag.
var a:Number = 10;
var b:Number = 10;
var breakLoop:Boolean = false;
while (a--) {
if (breakLoop) break;
trace("a = " + a);
while (b--) {
if (b < 5) {
breakLoop = true;
break;
Muzak,
Are you on Windows or OSX?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Con
Muzak,
Thanks for your response. Unfortunately, it's not working for me when I
try to test it before I even make it an MXI/MXP.
I created a jsfl folder inside the Configuration folder and put my jsfl
file in there.
uri = MMExecute("fl.configURI") + "jsfl/test.jsfl";
MMExecute("fl.trace(\"" + ur
Ever since the Flashcoders server went down, my posts to Flashcoders are
taking a long time to appear. Is it just me or are other people
experiencing this?
These are from today, for instance:
RE: [Flashcoders] OT: Happy Easter
Sent: Mon 4/9/2007 11:56 AM
Appeared: Mon 4/9/2007 2:55 PM
3 hours t
Hey FC,
I have a Flash panel I created which requires an external JSFL file to
run.
How do I package up the JSFL file into the MXI/MXP and how do I
determine what the file path is to it load said JSFL from inside the
Actionscript of the panel SWF?
Wrapping the JSFL into Actionscript is not an op
KICK THIS GUY OFF THE LIST!
His out of office email is spamming every thread.
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf
> Of Tareq AlJaber
> Sent: Monday, April 09, 2007 12:34 PM
> To: flashcoders@chattyfig.figleaf.com
> Subject: Re: [Flashc
u "get hurt" by god blessings? How could you possibly be hurt by god
blessings if you don't believe in god? That's ridiculous.
Did it feel good to have your temper tantrum? I hope so, but don't
pretend for a moment that temper tantrums are respectful. They'
On behalf of Jews everywhere, may I be the first to say you're welcome!
:)
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Le
Here's a quick and dirty example:
this.createEmptyMovieClip("img", 10);
img.loadMovie("some.jpg");
this.onEnterFrame = function() {
if (img._width > 2) {
this.assignActions();
delete this.onEnterFrame;
}
};
function assignActions()
{
img.onRo
I've never used the Window component. I don't even know what it does.
I don't use MM components unless I'm mocking something up really quick.
The combo box, check box and radio buttons are the only ones I ever use.
IMO, the rest are garbage, especially the scrollpane. Everything else
I'm better o
function loopThrough(mc:MovieClip):Void
{
for (var a:String in mc) {
trace(a + ": " + mc[a]);
if (mc[a] typeof "movieclip") loopThrough(mc[a]);
}
}
You can use recursion and hope that you don't end up with circular
references.
___
Pretend you're a mechanic and somebody calls you up and says the
following: "My car starts when it's in my driveway, but it doesn't
start when I'm at the store. What's wrong with my car?"
Would you be able to help?
Show us your code or we can't help you. :)
-Steven
> -Original Mess
You have to wait for the ready event before you can seek. Read the docs
and it will all come clear.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
netStream.play(flvPath);
netStream.seek(5);
BLITZ | Steven Sacks - 310-551-0200 x209
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of leolea
> Sent: Wednesday, April 04, 2007 12:20 PM
> To: Flashcoders mailing list
> Sub
Did you even google this? There are many tools that convert to FLV
server-side.
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf
> Of Tom Huynen
> Sent: Wednesday, April 04, 2007 6:07 AM
> To: flashcoders@chattyfig.figleaf.com
> Subject: [Flashcoder
Just in case you were unaware, there's a forum on SWFObject site where
you can research these issues (I'm sure somebody had the same issue
you're having at some time) and you can post questions. I think you'll
have better luck there troubleshooting your issues. :)
Maybe I'm confused about what you're trying to do.
Are you concerned with the published (swf) version or the source (fla)
version?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figlea
Are you using a bitmap or vector in the slice 9 clip?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier
The version is located in the XML Publish Settings file. It's been
reported that changing this value using JSFL does not work (a bug).
However, you CAN read it.
Refer to my blog entry regarding the XML Publish settings file to see
how to get the version number out of it.
http://www.stevensacks.n
3 easy steps.
1. Make a black square movieclip.
2. Set it to the size you want.
3. Position the resized FLV video in the center of it.
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf
> Of Dave Lenz
> Sent: Friday, March 30, 2007 2:36 PM
> To:
XML almost always caches. Use a noCache param.
var path:String = "some.xml";
var d:Date = new Date();
var p:String = (path.indexOf("?") > -1) ? "&noCache=" : "?noCache=";
var noCache:String = (_root._url.indexOf("http://";) > -1) ? p +
d.getTime() : "";
var xmlPath:String = path + noCache;
myXML
If you're not using absolute strict typing and everything that AS3 has
(display, addChild, etc.), then you're gaining no benefit because Flash
will just kick down to VM1.
IMO, you should either rebuild it from scratch in AS3 style (using
sprites, display objects, etc.) or leave it as AS2 and save
Proportion
> to width or
> height
>
> That'd do it...except that you need to define var ratio:Number =
> _height/_width.
>
> If var ratio:Number = _width/_height, then _width * ratio = (_width *
> _width)/_heightThat ain't right.
>
>
> -Ori
Simple.
You solve for the ratio:
var ratio:Number = _width / _height;
You resize the _width:
_width = Math.max(newWidth, 500);
You set _height to the _width * ratio:
_height = _width * ratio;
fin.
___
Flashcoders@chattyfig.figleaf.com
To change
401 - 500 of 1127 matches
Mail list logo