Jorge, here's an example of using ExternalInterface to send stage
dimensions to JavaScript.
http://www.randomusa.com/flash/downloads/externalInterface_screenDimensions.zip
Hope I'm not OT on this one.
Mike
___
Flashcoders@chattyfig.figleaf.com
To
imho it's a distraction from the point of the list, which is coding,
and for this reason it's borderline unethical. Just my opinion.
Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
This is a ridiculous analogy, but to me, a job post here is kind of
like jumping up on stage in the middle of a play with an advertisement
for a nearby coffee shop. You have the target demographic's
attention, but not in context.
Mike
___
I'm surprised people are ok w/ job posts here.
if (!codeRelatedPost)
offTopic = true;
Can a FlashJobPosts list be started? Job posts show us options, sure,
but they aren't about code, they are about jobs.
Mike
___
What does your crossdomain.xml file look like?
Mike
___
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
Try adding a domain=* attribute to cross-domain-policy, and a
allow-access-from domain=* / node to your cross-domain-policy
nodes.
Let me know if this works so I can feel a smug sense of satisfaction.
Mike
___
Flashcoders@chattyfig.figleaf.com
To
Like this:
?xml version=1.0?
cross-domain-policy domain=* /
allow-access-from domain=somedomain secure=false /
allow-access-from domain=anotherdomain secure=false /
allow-access-from domain=* /
/cross-domain-policy
Mike
All I have to say about this is tellTarget and _global
tellTarget was deprecated in Flash 5 and has been removed in AS3. Not
sure what you mean about _global, or why the conversation is over.
If the original poster wants to build scalable and easily maintained
apps, suggesting he use
You could use EventDispatcher in the Model, View and Controller, and
send the XML data to your Model through your Controller. When the
Model changes, make it dispatch an event that updates the view, etc.
Mike
___
Flashcoders@chattyfig.figleaf.com
To
It also has round trip AS2 code generation. Gotta love that.
http://www.5etdemi.com/blog/archives/2005/11/uml-to-as2-generator-for-enterprise-architect/
Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the
I second James' recommendation of Headfirst Design Patterns. I also
recommend downloading an Enterprise Architect trial
http://www.sparxsystems.com/ or Poseidon
http://gentleware.com/index.php and learning some UML. It helps me to
step outside of the code and focus on the logic behind the
$this-test2();
hth,
Mike
___
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
?php
class testClass
{
function testClass() {
$this-methodTable = array(
test1 = array(
description=I return 'hello world',
access=remote,
You need to create a methodTable array in the constructor of every
class you're using with AMFPHP.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
I always put my methodTable in the constructor, not include it. This
could be the source of the problem.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
Are you using remoting? Check out AMFPHP: http://www.amfphp.org/
You don't need to use the XML object to send your POST, just to receive it.
Create your XML object after you get your result back.
var my_xml = new XML();my_xml.onLoad = function(success){if (success){trace(
We definitely can do this, but it may amount to reinventing the wheel.
Do you suggest this in lieu of Cairngorm and ARP? Are there things about
these frameworks that make them undesirable?
Mike
___
Flashcoders@chattyfig.figleaf.com
To change your
To skirt this issue, I use AMFPHP proxy classes on my swf's host
server to talk to other servers or snap up RSS files. Not sure about
filesystem stuff though. It seems like that would be a security issue
on the backend as well as the front!
Feel free to mail me offlist if you want to check out
I would build a wrapper MovieClip class extension for your compiled
SWF, and use LocalConnection to send/receive the values. That is, use
LocalConnection in both the compiled swfs and in the wrapper. The
wrapper is the receiver and the compiled clips are the broadcasters.
A couple questions for you Jeff:
1. What version of Flash player are you targeting?
2. How are you generating the swfs?
Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
I use FutureQuest (http://www.futurequest.net/) and love their service.
I've never had a problem for over four years. They have PHP, MySQL and
Ruby; shared and dedicated hosting; I can't say enough good things about
them quite honestly.
hth,
Mike
___
Bernard is right. Take a look at these resources before you go live with
your application:
http://del.icio.us/search/?all=PHP+security
Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
Hey Julian,
I feel your pain. Take a look at this example:
http://www.randomusa.com/flash/downloads/tojulian.zip
Mike Britton
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http
Perhaps, but you never know: someone on this list may have a better
solution for your problem.
Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
Cuepoints can be used with mp3 as well as flv.
Mike
___
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
Seems like a hack to me, from both the AJAX programming and Flash
programming perspective.
Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
It looks like a lot of onEnterFrame (to position the flower and adjust as it
grows) and setInterval for the spawning of the branches. I think the text
generation uses setInterval, maybe 100 milliseconds to make it seem like
it's being output by a computer. Really beautiful work, I think.
Mike
I'm getting started with the Yahoo! Flash API, and noticed their Maps
mxp doesn't include com.yahoo.maps.widgets.NavigatorWidget. Looks
like Yahoo! needs to update their MXP to include this code since
there's an article on Adobe about how to use it.
Any way you look at it, we're building a searchable repository of both
newb and advanced tips. Flash programmers aren't Nazis, marching
together as some kind of unified front against all newbies. A
community has elements from all skill levels, and if a newbie has a
coding question for the
I recommend avoiding flashvars and loading the XML using XML2
http://www.gskinner.com/blog/archives/2004/02/the_ultimate_as.html.
Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
I recommend going with ExternalInterface. No external files needed:
http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=2200.html
However the kit is good and definitely works!
Mike
___
Not to mention the ability to search through messages (or digests) for
keywords of interest.
Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Aaron, thanks for putting together that example. I made an example of
keeping an element in the center of the Stage using zmc_tween along
with your technique, something I started doing to add a little depth
when the user resizes. Just eye candy. The attachment is your
example with zmc_tween
Could someone please email these .mxps to me so I can do a visual inspection?
;-)
Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought
The sample rate shopuld be 44.1Khz. You may need to resample your audio
before you create the mp3.
I've also had problems using variable bitrate.
hth,
Mike Britton
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search
Red5 requires a jvm (or jre) on the server, if I read correctly. I've been
trying to get my host to install one for shared hosting accounts, and would
use this red5 over localconnection if I were lucky enough to have java.
Mike
___
Good luck Thomas. From a high-level perspective, your server flash
element can create a localconnection to receive, and your client flash
element can do the sending. In the data can be the type of action
required, allowing for a switch statement to route it properly, as well as
the data itself
Someone please correct me if I'm wrong, but it would be possible to make a
connection between servers using LocalConnection. You'd have to ensure your
client swf was assigned an id to authenticate their application to access
the data. There would have to be a security model, in other words.
How many nodes are in the XML file?
Can you post the code that does the parsing?
Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought
;
}
--
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mike
Britton
Sent: Thursday, May 25, 2006 10:18 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] XML Parsing
How many nodes are in the XML file?
Can you post the code that does the parsing?
Mike
Do it!
(Disclaimer: I have no legal training...)
Mike
___
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
be to build an API around the query strings.
_xml.load(http://del.icio.us/api/posts/get?tag=humor);
This technique is a bit sketchy though.
M.
On 5/4/06, Mike Britton [EMAIL PROTECTED] wrote:
Mike, can it be done with AS2?
Mike Britton
On 5/4/06, Troy Rollins [EMAIL PROTECTED] wrote
Mike, can it be done with AS2?
Mike Britton
On 5/4/06, Troy Rollins [EMAIL PROTECTED] wrote:
On May 4, 2006, at 1:01 PM, Mike Chambers wrote:
Also, I am doing this in AS3, not AS2.
You wouldn't happen to be doing this in AS3 on a Mac, would you
Mike? ;-)
(Still waiting for a flex beta
I made a very basic directory scraper class way back. I use this with AMFPHP.
http://www.randomusa.com/flash/downloads/directoryScraper.zip
hth,
Mike
On 5/3/06, Mikael Wirén [EMAIL PROTECTED] wrote:
Hi gang,
I´m slowly finding the pros (can admit there are some =) and cons of Flash
I´m
The API is under development and it requires authentication. I looked
into it and it's pretty simple:
http://del.icio.us/api/posts/get?tag=humor
...returns an XML object like this:
posts dt=2006-05-03 tag=humor user=
post href= description= hash= others=2 tag=humor
time=2006-05-03T15:14:14Z/
This may be a dumb question, but how would HTTP basic authentication
be handled through AS2? Wouldn't it have to go through some kind of
server-side proxy?
Mike Britton
On 5/3/06, Mike Chambers [EMAIL PROTECTED] wrote:
I am in the process of building an ActionScript 3 library to wrap
As a precautionary measure, I never work with people who use the word 'gr8'.
Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you
Although e-learning is interesting, a call for these kinds of
standards is probably more appropriate on a design list or discussion
forum, not flashcoders imho (please correct me if I'm wrong). That
is, unless the question relates to coding or best practices.
Mike
What's going on with MXNA? It looks like the server is down.
http://weblogs.macromedia.com/mxna/index.cfm
Mike
--
http://www.mikebritton.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
I hear ya.
Mike
___
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
Sorry about the crappily-formatted code - I'm writing it in GMail!
FLASH:
import flash.external.ExternalInterface;
class blah
{
var instance:Object = new Object();
// Function alias for JavaScript
var methodName:String = goToCuePoint;
// Function alias for Actionscript
var
class com.ArrayExtension extends Array
{
public function ArrayExtension()
{
super()
var argString = arguments[0].split(,);
for(var i=0; i argString.length; i++)
push(argString[i]);
}
}
Usage:
var arEx = new ArrayExtension(one,two,three);
I've also had problems when there's more than one instance of your
application active. If the name of the LC is the same across applications
it can result in windows stealing LC's from each other.
Mike
___
Flashcoders@chattyfig.figleaf.com
To change
Thanks Dave, that's good to know. You have to love when a company stops
supporting a product and fails to notify us about it.
Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
ARP: http://www.osflash.org/arp
Cairngorn:
http://www.macromedia.com/devnet/flex/articles/cairngorm_pt1_02.html
William Gibson: http://en.wikipedia.org/wiki/William_Gibson_%28novelist%29 -
respect!
Mike
___
Flashcoders@chattyfig.figleaf.com
To change
I suggest switching to the flash.external (ExternalInterface) package.
This seems to be *the way* to do it in AS3. I use it currently in
AS2 and it works really well.
Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or
Knowing AS2 well would also make it easier to learn architectural
frameworks for Flash applications (ARP and Cairngorn). These allow
you to fully experience the benefits of OOP, and you get the added
bonus of a developer community around any given framework to answer
specific questions.
Mike
Here's some code I snipped out of one of my apps that uses the accordion.
I'm sure it can be simplified.
var childWidth:Number = 300;
var childHeight:Number = 200;
main_ac.setSize(300,400);
main_ac.createChild(View,latest,{label: Posts});
main_ac.createChild(View,latestComments,{label: Latest
Eric Dolecki's is the best out there right now.
Mike
___
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
I did one, but I think the most interesting development podcasts
involve more than one person. Conversation between more than one
developer is compelling; the pontifications of one person are weak, at
best. I'm still trying to figure out the medium.
Mike
This one looks nice:
http://www.flashloaded.com/flashcomponents/flashtexteditor/
Pricey though for a component.
hth,
Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
Adobe Labs http://labs.macromedia.com/ is the place to go for demos and
examples.
there isn't a build of flex for osx
It would be consistent with Eclipse's cross-platform standing if one were
eventually made available. Flex Builder 2 should install on any machine
ColdFusion can install on.
All your innovations are belong to us
Mike
___
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
I've never heard of this being possible with dynamic text fields. With
regular text fields you simply adjust the value with the IDE, of course. If
it is possible I'd like to know myself.
Mike
___
Flashcoders@chattyfig.figleaf.com
To change your
Thorough prototyping is so key. I made a prototyping tool for
internal use that allows people to discuss prototype screens. This
allows the designer to follow a discussion between users, creating
elements as they are requested. I got the inspiration from success
with FLiP - style development
Better yet, don't use mailto: at all. Personally I don't like when Outlook
opens from links. It's disruptive.
Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
var universalButtonHandler = new Object();
universalButtonHandler.click = function(eventObject) {
trace(click!);
trace(eventObject.target); // get button name
// Logic here
}
btn00.addEventListener(click, universalButtonHandler);
btn01.addEventListener(click, universalButtonHandler);
I meant distribution / EULA concerns, not the ability to look at the code.
Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by
No - just when you receive it. When you lose focus, onblur is called. The
event handler would look like
var obj00 = document.getElementById (oid);
obj00.onblur = function() {
alert(Embed tag has lost focus);
}
On 2/27/06, Claudia Barnal [EMAIL PROTECTED] wrote:
Thanks Mike,
I would look at onClick as the event handler if a mouse click is the entry
point. Both object and embed tags support it, but don't forget that the
code I showed only works in Mozilla if the embed tag is taken out of the
object tag. I'd have to work more with it to come up with anything more
I use the v2 components because I really don't like reinventing the wheel.
Unless you're creating a component set as a standalone product, I don't see
the value in making your own combobox, data grid, etc. Educational, but a
waste of time.
Another reason I use the v2's: they will be versioned,
Make a ScrollPane width and height equal to Stage.width and
Stage.height of a fullscreen app and load a clip containing your text
field into the ScrollPane.
You could also send the new textfield height to JavaScript and
dynamically resize the object and embed (I think, though I'd probably
never
I think ARP http://osflash.org/arp would work well with this, too. It would
make it easier to reapproach the code later.
Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
Fuse is giving this error:
Error opening URL http://www.mosessupposes.com/2004/sequencer/version.xml;
Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
Apologies to this list -- I solved the problem. Just change the path to the
version xml file to your local path
com\mosesSupposes\util\sequencer\documentation
in Sequencer.as.
Works great!
Mike
___
Flashcoders@chattyfig.figleaf.com
To change your
I found the download here:
http://www.mosessupposes.com/2004/sequencer/index2.html
This ARE the right files, right?
Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
class someObj extends MovieClip
{
public var someProperty:String;
function someObj() {}
}
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
mCom components are an attractive alternative:
http://www.metaliq.com/mCOM/
These were formerly known as 'glic'. Supposedly they are easier to skin, too.
Mike
On 2/1/06, Meinte van't Kruis [EMAIL PROTECTED] wrote:
'something that can play nicely with stuff that other people are likely to
Ghostwire's are fast and simple, but the deprecated AS1 syntax makes
me wonder how good they'll fit with a new project. Are there plans to
update these components?
Mike
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
Much of AS1 isn't deprecated, but that's just how I think of it.
Sorry if it seemed like I was declaring AS1 deprecated because it
isn't (officially). The point I wanted to make was that it makes me
nervous to use AS1 stuff for practical reasons, one being the
*likelihood* AS1 contains much
function1() {
function2();
}
function2() {
function3();
}
You could also use onEnterFrame to conditionally check for flags
indicating the progress of execution:
var f1Fired = false;
var f2Fired = false;
var f3Fired = false;
this.onEnterFrame = function() {
if (f1Fired) {
The more of them you use, the slower the performance.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Yes, don't think in terms of avoiding functions. If something needs
to be repeated, it's a candidate for a function. Performance is
important for a game, but if an app's object-orientated design makes
it a millisecond slower than procedural (inline) code, that's
acceptable if you get the
Nice! It would be great if each element was a link to the docs!
Mike
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
It's the legal issue -- this implies risk where other options don't.
Personally I love AMFPHP and have never observed it blowing up; it's
far faster than ColdFusion remoting in my experience. Legal issues
aside, I'd go with it for enterprise-scale projects.
Mike
On 1/26/06, Simen Brekken
Any would-be lawyers lurking here who could once and for all help us
resolve this issue?
Mike
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Because they have a capable competing language, ColdFusion. It would
be like bringing a product to market and then releasing a free version
of the same thing.
Mike
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
If that is their approach, it inhibits AMFPHP which is itself oppressive.
Mike
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
FruitArray = [apples, pears, watermelons, oranges, peaches];
for (i=0; iFruitArray.length; i++) {
if (FruitArray[i] == oranges) {
trace(i);
}
}
hth,
Mike
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
AMFPHP is really straightforward code -- any PHP programmer worth his
salt could go in and fix if needed. It also keeps the option of
moving to CF or Java open, since your AS2 will be the same.
The project has picked up again and has been out of beta for some time.
Mike
Agreed, well put.
Mike
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
I apologize if this has been covered, but can someone tell me how to
make the Flash IDE preview window launch fullscreen? I have
dynamically-scaling apps I need to test without causing a resize event
to trigger by making the damn window larger. This is killing me!
Thanks in advance,
Mike
Pumping the object and embed tags into a DIV's innerHTML using AJAX is one
possibility. You could also write the object and embed tags with an
external JavaScript. This would prevent the source from being viewed and is
probably an easier option given its all on the client.
It's impossible to
Nothing in particular - just a style of naming vars. I don't do it
because it looks too much like PHP and I get disoriented.
I recall seeing this technique used to distinguish public from private
vars, but I think it went out of favor when AS2 came out.
On 1/12/06, Ryan Luce [EMAIL PROTECTED]
Try using setInterval
Mike
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
I never use wmode transparent -- it's buggy and broken.
Mike
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Looks like you're running into the character limit of URL strings. I second
Jason's recommendation of remoting. Either that or use coldfusion to write
XML files.
Mike
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
In the past I've simulated anchors with a ScrollPane using its
vPosition property and duplicated clips inside the ScrollPane.
However I agree it would be nice if TextArea had the ability to
anchor.
You could use asfunction to control the textArea's vPosition based on
a variable you pass in. The
It scares me too, but so does UI lock, something that's been happening
to me a lot lately.
Mike
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
I'd look into LocalConnection. It sounds like you're trying to figure
out how to avoid dependencies between objects, which (to me) makes
sense. Rather than over-design and make things work in a complicated
way, you can use LocalConnection to init your child clips from your
controller:
1 - 100 of 123 matches
Mail list logo