[Flashcoders] RE: Using MVC for a site framework

2010-01-20 Thread Jeff Fox
Cor,
I found two really good starter tutorials on MVC and posted on my blog. My
FoxR library also provides an MVC structure based on PureMVC and an example
of how to implement it.

http://foxr.aeoliandigital.com/archives/134

I also think Cairngorm, while similar to PureMVC, is not as intuitive and
best suited to Flex. Mate, while simpler, is written for Flex. no experience
yet with RobotLegs myself.

Hope that helps,
-Jeff
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Compiling API Docs with Flex 3 SDK

2009-07-30 Thread Jeff Fox
I've tried a few times to compile my API docs for a framework I am working
on with the asdoc tool that comes in the FLEX 3 SDK, but I always run into a
number of strange compile errors that don't come up with the regular Flex
compiler. I've tried using both FlashDevlop's integrated ASDoc Tool as well
as the command line version. Anyone have any tips or suggestions?

Regards,
-JFox
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] FLV and Sound issue

2008-12-11 Thread Jeff Fox
I am having an issue stopping sound playback using the Video player (Library
-> New Video) and Sound object in a AS2/Player 8 movie. Here is the code I
am using to play the video and attach sound:

BEGIN CODE-

var videoPlayer:Video;
var vSound:MovieClip;
var so:Sound;

nc = new NetConnection();
nc.connect(null);
ns = new NetStream(nc);
ns.setBufferTime(2);
var myStatus = ns.onStatus = function(info) {
if(info.code == "NetStream.Play.Stop") {
ns.seek(0);
}
}
videoPlayer.attachVideo(ns);
ns.play(_flvpath);

vSound = createEmptyMovieClip("vSound", getNextHighestDepth());
vSound.attachAudio(ns);
so = new Sound(vSound);
so.setVolume(100);


END CODE-

The issue is that when I try to manipulate the level of the sound via the so
Sound object while the movie is playing, the volume does not change, even
though so.getVolume value traces with a correct value. Any thoughts or ideas
on how to debug this problem?

-Jeff
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Combining AS3 and Flex Classes in Flash CS3/Eclipse

2007-08-03 Thread Jeff Fox
I was wondering if it is possible to import native Flex classes into an
ActionScript project in Eclipse using the Flex 3 plugin (or Flash CS3) and
get access to the same control and class functionality as if I were building
a Flex project using MXML. My reasoning behind this is we have built a
library of custom ActionScript classes and we'd like to incorporate Flex
components into this structure. Is it better to try and import Flex into
ActionScript or vice versa and utilize our custom library within a Flex
project. Any advantages/disadvantages? Thanks in advance.

-Regards,
-Jeff

-- 
Jeff Fox
[EMAIL PROTECTED]
___
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
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Dynamic Class Instantiation

2007-06-28 Thread Jeff Fox

In my application framework, we are trying to update a dynamic class
instantiation method created using backward compatible AS1 conventions and
implemented in ActionScript 2. Our architecture is being upgraded to
ActionScript3 and we'd like to keep this custom method if we can. We
originally used the prototype convention and __proto__ system to handle
this. This is what the original code looks like:

this.__proto__ = UIObject.prototype;

private var _availDepth:Number = 0;

public function attachUIObject(n:String, c:Function, p:Object):UIObject {
   var s:String = (c != undefined) ? c.symbolName : UIObject.symbolName
;
   var u = this.attachMovie(s, n, _availDepth++);
   return u;
   }

n is the instance name of the object, c is the Class name (defined as a
function) and p is an array of custom properties (like x,y,height, width,
etc). This works very well in that we can just drop a number of these in a
class and get objects created and pass properties to them simply and
elegantly.

Now, in ActionScript 3, the prototype convention is deprecated and not
implemented the same way and the __proto__ keyword is gone. I've looked at
making a wrapper for the addChild() method of DisplayObjectContainer as a
way to accomplish this, but so far I'm seeing a way to define a symbol name
for my objects when instantiating. Since attachMovie isn't an option
anymore, I'm trying to see a way to make this happen. I don't see any easy
way to dynamically name an instance and pass it as a child nor access Anyone
run into a similar problem and have a potential solution?

-Jeff


--
Jeff Fox
[EMAIL PROTECTED]
___
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
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Collision detection NOT using hitTest()

2007-02-23 Thread Jeff Fox

Hey gang,
I have a map movie that needs to test whether two near objects will overlap
one another BEFORE I actually instantiate and draw the movie clip, so I need
a good object collision test that does not use hitTest(). I have a set of x
and y and size properties for each object that I use to place them when
they're created, but what I want to do is if the objects will overlap at any
point, merge them into a single object.

Here's an example of what I need to catch:

Point A Los Angeles (x: 150, y: 99, size: 8 pixels)
Point B: San Diego (x: 153, y: 103, size: 8 pixels)

When drawn, the LA dot and San Diego dot will overlap a little and therefore
cause a problem rendering pop-up content, so I want to merge them. What I
need is a reliable check to see if that happens. Right now I'm using:

var uLeftX:Number = cityA._x - 2;
var lRightX:Number = (cityA._x + _size) +2;
var uLefttY:Number = cityA._y - 2;
var lRightY:Number = (cityA._y + _size) +2;

if (mapObjects.length > 1) {
   for (var mo:Number = 0; mo < mapObjects.length; mo++) {
   // GET VISIBLE AREA OF CURRENT MAP OBJECT
   var tmpULeftX:Number = parseInt(mapObjects[mo]._x) - 2;
   var tmplRightX:Number = (parseInt(mapObjects[mo]._x) + _dotSize) +2;

   var tmpuLeftY:Number = parseInt(mapObjects[mo]._y) - 2;
   var tmplRightY:Number = (parseInt(mapObjects[mo]._y) + _dotSize) +2;
   if ((uLeftX > tmpULeftX && uLeftX < tmplRightX) && (uLefttY >
tmpuLeftY && uLefttY < tmplRightY)) {
   trace("Dot collision occures between " + cityA.cityName + " and
" + mapObjects[mo].cityName);
   }
   } // END for
} // END if

The above script DOES detect collisions, but not between the LA and San
Deigo properties listed above. Can anyone see a flaw in the line that tests
the overlap?

-Jeff
--
Jeff Fox
[EMAIL PROTECTED]

--
Jeff Fox
[EMAIL PROTECTED]
___
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
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Test if using ActionScript 2.0

2006-11-09 Thread Jeff Fox

I want to create a test to see if a loaded SWF is compiled in ActionScript 1
or 2. I'm assuming I can use an old Flash detection trick and call a method
that's only supported in ActionScript 2, just not sure which one to call
exactly. Will that work? Anyone have any ideas or examples?

-Jeff

--
Jeff Fox
[EMAIL PROTECTED]
___
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
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Flash Player 9 Detection in IE using SWFObject

2006-11-03 Thread Jeff Fox

I'm using SWFobject to embed Flash in my sites and recently discovered that
it does not detect Flash PLayer 9 in IE on XP. I was wondering if anyone
else has come across this bug as has a possible workaround/solution. I've
seen that this is a shortcoming in the Flash ActiveX control and not
necessarily SWFObject, but this could be a big issue regardless.

-Jeff

--
Jeff Fox
[EMAIL PROTECTED]
___
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
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] OOP Cascading Menu Script

2006-06-12 Thread Jeff Fox

I'm looking at writing a cascading menu script in AS 2.0 using Object
Oritened architecture and was wondeing if anyone knew of a good open source
example to work from. All the examples I've seen are Flash 5 or MX (AS. 1.0).
A menu that uses xml to define the menu structure is preferable. Thanks

-Jeff

--
Jeff Fox
[EMAIL PROTECTED]
___
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
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] OOP Cascading Menu Script

2006-06-08 Thread Jeff Fox

I'm looking at writing a cascading menu script in as 2.0 using oop and was
wondeing if anyone knew of a good open source example to work fron. One that
uses xml to define the menu structure is preferable.

-jeff
___
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
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Issue with Masks in externally loaded SWFs?

2006-03-17 Thread Jeff Fox
Is there any known issue with loading external SWFs that have animations
that require masks? We just tried loading an external SWF that has it's main
area blocked out by a mask, but when the movie loads and plays, there is no
mask apparent and all the pieces of images that animate are clearly visible.
Is there any known issue with this?

-Jeff

--
Jeff Fox
[EMAIL PROTECTED]
___
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
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Re: Flashcoders Digest, Vol 12, Issue 49

2006-01-17 Thread Jeff Fox
Thanks PR.

It actually now seems that it is an environment issue on our servers, as the
XML load works when a server is hit directly by IP, but not when resolving
through the domain name. Weirdest bug I've ever seen! Only happens in IE on
the PC too. Is IE sensitive to data being brought it when mixing application
and Web content environments?

-Jeff

Date: Tue, 17 Jan 2006 18:57:20 +0100
> From: PR Durand <[EMAIL PROTECTED]>
> Subject: Re: [Flashcoders] XML Data Limit in IE?
> To: Flashcoders mailing list 
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Hi Jeff
> I sometimes had to use very long XML files, but never encountered any
> problem in IE with any XML flash had problems before IE.
> But I thought one time that there were one because I had a format error
> at the line about 30.000 , so very too far to think about an error...
> but finally the accent error was repaired and the full XML was nearly
> 50.000 lines long, and the only problem was to parse it with flash.
> PR
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] XML Data Limit in IE?

2006-01-17 Thread Jeff Fox
Thinking about my previous post regarding XML data not loading in IE, I was
wondering if anyone had encountered a data limit with XML in IE, similar to
the 255 byte limit of getURL in IE6. This is just a wild theory, but since
there is an odd bug for one, maybe there is for the other here as well.
ANyone run into something that would support this? If so, how do we solve
it?

-Jeff
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Problem with XML in IE6

2006-01-13 Thread Jeff Fox
Ok, once again, I'm having a serious issue with loading external data in IE6
and I wanted to see anyone else has come across this.

I'm simply loading an XML file from a dynamic JSP page on our server. The
page outputs straight XML, which is loaded by the XML object, parsed, and
them displayed as a list. Works fine in all browsers, Mac and PC, EXCEPT IE
6 on the PC!

The weirder part is that we are already loading 2 other XML files into the
movie on a different "page", so we have no clue why this particualr one
would be dying. Any thoughts or past related expereince, please let me know.

-Jeff
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] getURL character limit in IE workarounds

2005-12-19 Thread Jeff Fox
Does anyone have any out of the box workaround for the character limit bug
in IE issue? I've seen a solution that uses the Flash Integration Toolkit,
but implementing that within our site may be difficult due to some
proprietary Flash code to display the Object and Embed tags. Was wondering
if anyone had a quick trick or fix to get around the issue? Thanks in
advance.

-Jeff
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders