Re: [Flashcoders] weird whitespace issue

2009-07-06 Thread Jason Lutes
There are a couple of things that might cause PHP to send extra characters with your text. Try clearing the Output Buffer before generating any HTTP headers and sending text via PHP. That has worked for me in the past. http://us3.php.net/manual/en/function.ob-clean.php

Re: [Flashcoders] OT: smoothd.com

2008-10-29 Thread Jason Lutes
Still not as good as the technology and ideas from http://www.movenetworks.com/. (Technology and ideas pioneered by MoveNetworks and copied/borrowed/stolen by others, without getting too political about it. Lol!) - Jason Jiri Heitlager wrote: Nice Meinte van't Kruis wrote: has anyone

Re: [Flashcoders] How to check Recursive Function is finished

2008-04-25 Thread Jason Lutes
I occasionally place code at the end of the function to detect when it's not being invoked by itself. function someCallingFunction():Void { this.recursiveFunction(val_1, val_2, val_3); } function recursiveFunction(arg_1, arg_2, arg_3):Void { while (some condition exists) { //

Re: [Flashcoders] Properly embedding flash with html.

2008-02-04 Thread Jason Lutes
There are several problems with the Adobe code/solution, and at least one was already mentioned. My biggest complaint about it was that its JavaScript was so poorly written. (It even generated malformed mark-up at one point.) Another complaint I have with the Adobe code/solution is one I also

Re: [Flashcoders] Properly embedding flash with html.

2008-02-04 Thread Jason Lutes
Since I disrespected SWF Object a little in my last post, I should backtrack a little to say that, since it's becoming de facto (despite what I feel are some typical usability oversights), and if you're already comfortable using it, then you should probably just continue to use it. I'm

[Flashcoders] Flash Over Windows Media Player

2007-04-30 Thread Jason Lutes
Is there a way to display a Flash movie above an embedded Windows Media Player in the browser? I've tried various things with CSS z-index and the Flash object wmode parameter, but can't get it to work. Is there something I'm overlooking or is this just not going to happen? Thanks. - Jason

[Flashcoders] RE: Flash Over Windows Media Player

2007-04-30 Thread Jason Lutes
Scratch that. Setting the wmode to window works just fine. - Jason Is there a way to display a Flash movie above an embedded Windows Media Player in the browser? I've tried various things with CSS z-index and the Flash object wmode parameter, but can't get it to work. Is there something

[Flashcoders] Enumerating properties from outside an instance.

2007-04-05 Thread Jason Lutes
I can't figure this out. I can set up a for...in loop to show me all the (enumerable) properties -- variables and functions -- on the MovieClip instance where I place the loop, but I can't enumerate properties for other (nested) MovieClip instances by simply changing the focus object of that

RE: [Flashcoders] Enumerating properties from outside an instance.

2007-04-05 Thread Jason Lutes
in subObject) { trace(otherProp + : + subObject[otherProp]); } } It should look like that, but not horrible. From: Jason Lutes [EMAIL PROTECTED] Date: 2007/04/05 Thu PM 04:10:48 CDT To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Enumerating properties

RE: [Flashcoders] MovieClip Instance _x and _y

2007-03-13 Thread Jason Lutes
are correctly reported, though. I would like more accuracy than that, if it's possible. - Jason -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rákos Attila Sent: Monday, March 12, 2007 4:24 PM To: Jason Lutes Subject: Re: [Flashcoders] MovieClip

[Flashcoders] MovieClip Instance _x and _y

2007-03-12 Thread Jason Lutes
Is there a way determine clip position that doesn't presume the location of the registration point relative to clip content, or doesn't care where nested clip content is positioned relative to the registration point? For example, if I need to programmatically position a clip along the left edge of

[Flashcoders] Attaching a Symbol From a Loader Movie in a Loaded Movie

2007-02-13 Thread Jason Lutes
Is it possible to attach a symbol (using attachMovie and a valid linkage ID) within a movie, but from the Library of a movie that loads in that movie (using loadMovie)? I did a simple test that didn't seem to work, so maybe I already have my answer. Before I work around it the hard way, has

RE: [Flashcoders] adding nbsp; in html enabled text field

2007-02-08 Thread Jason Lutes
I checked, and this.foo = 'Jason Lutes';, this.foo = 'Jason#160;Lutes';, and this.foo = 'Jason#x00A0;Lutes'; all display the non-breaking space just fine (foo is my TextField variable). Note: I included the non-breaking space with the embedded characters via the Properties panel, as well

RE: [Flashcoders] Q:The case for Functional vs OOP programming

2007-01-22 Thread Jason Lutes
What's a slick way to bypass the restrictions imposed as Flash automatically truncates URLs (to 128 characters) that are used as values of HREF attributes in HTML text or as arguments passed to getURL? One of our clients needs long URLs to open in a browser from the Flash application. Right

[Flashcoders] Long URLs Getting Truncated from Flash

2007-01-22 Thread Jason Lutes
I realized that I forgot to give my e-mail a pertinent subject line after I sent it. Sorry about that. What's a slick way to bypass the restrictions imposed as Flash automatically truncates URLs (to 128 characters) that are used as values of HREF attributes in HTML text or as arguments

RE: [Flashcoders] Q:Simulate HTML anchors in html text

2006-12-28 Thread Jason Lutes
lineCount; } } function showDocumentFragment(anchorName:String):Void { this.someScrollingTextField.scroll = this.scrollingIndex[anchorName]; } this.createScrollingIndex(); this.showDocumentFragment('anchorName03'); - Jason Lutes Allen Communication Learning Services, Inc. Technical Lead

RE: [Flashcoders] Q:Simulate HTML anchors in html text

2006-12-21 Thread Jason Lutes
I made a couple of glossary-type applications that use the same kind of anchor mechanism. The solution to simulating this involves writing text to the field in chunks. You need to capture (into an array, or similar) the number of the last occupied line (using the maxscroll and bottomScroll

RE: [Flashcoders] if logical operator

2006-12-20 Thread Jason Lutes
var someValue:Number = 0; var undesiredValues:Array = [12, 34, 21, 46, 52]; function getUpdatedValue(originalValue:Number):Number { var updatedValue:Number = originalValue++; var isUpdatedValueUndesired:Boolean = false; this.undesiredValues.sort(Array.NUMERIC); for (var index:Number = 0;

RE: [Flashcoders] to apply the property to the all the dynamic textboxes in my file.

2006-12-15 Thread Jason Lutes
Not super efficient, but definitely readable and functionally comprehensive: // Assigns common property values to all dynamic text fields within a specified timeline. function setCommonTextFieldProperties(targetClip:MovieClip):Void { // defaults to targeting the root timeline if

RE: [Flashcoders] flash 8 components from scratch?

2006-12-13 Thread Jason Lutes
I have components that extend MovieClip in which I'm using an onUpdate handler to perform a live preview. Define this handler function/method to perform whatever visual updates you require on the Stage. Presuming you compile the clip to a SWF, this handler gets invoked each time a parameter in

[Flashcoders] Clip Losing Track of Parent Clip

2006-12-05 Thread Jason Lutes
We have a bunch of clips that we are loading via MovieClipLoader that are losing track of their containing clips (_parent). Flash correctly reports the parent clip within the onLoadStart event handler, but absolutely nowhere else. Even after the clip has fully loaded and we ask it to report

RE: [Flashcoders] Clip Losing Track of Parent Clip

2006-12-05 Thread Jason Lutes
Correction: When I said trace statement (below) I actually meant a text field we set up in the movie to report _parent within the various test environments. - Jason -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jason Lutes Sent: Tuesday

RE: [Flashcoders] accessing events within nested clips

2006-10-26 Thread Jason Lutes
Since the onRollOver state of clip A is being fired, it blocks the event of clip B or C's events from ever being fired. How do you get around this? Your solution is to nest two child instances within your outer movie clip (clipA), and define event handlers for them (but not for the outer

RE: [Flashcoders] htmlText and maxscroll

2006-10-19 Thread Jason Lutes
Try using your original handler function even though the text field is now HTML-enabled, because removing the last 'htmlText' character simply pops off a (non-visible) closing tag's (likely /textformat) final angle bracket. If this method destroys HTML formatting on your text, you can always use

[Flashcoders] Disfunctional v2 Components in Player 9

2006-10-17 Thread Jason Lutes
What can I do about a UIScrollbar component that is (now) broken in a project that worked just fine until recently, when the client began using Flash Player 9? The Adobe support information does not give a solution except to say something to the effect of v3 components don't have this problem.

[Flashcoders] Re-parenting movie clips in AS 2.0

2006-07-25 Thread Jason Lutes
Surely there is a work-around, however convoluted, for assigning a movie clip instance to some other parent movie clip in AS 2.0. Does someone know of a trick? It can involve undocumented features, removing/attaching... whatever. Much appreciated. - pixelTwiddler, a.k.a. Jason

[Flashcoders] Event listeners for MovieClip subclass instances.

2006-06-29 Thread Jason Lutes
How can I set up event listeners (for a roll-over event, for example) so that someone else can't later clobber functionality I assign to an instance from within a class by overwriting built-in handler functions (onRollOver, for example)? I need to have both my class-described event handling and a

[Flashcoders] Double-rendered Text

2006-06-14 Thread Jason Lutes
I have a pop-up window that remains always on the Stage, and is simply shown/hidden as needed. The pop-up window has 3 text fields that get populated with HTML-formatted text from an XML document each time it gets shown. My problem is that when the pop-up window gets shown the text fields display

[Flashcoders] Misreporting instanceof operator.

2006-06-07 Thread Jason Lutes
Can anyone suggest why a condition would be false for a test on a movie clip using instanceof MovieClip? I have a function that includes the line: if (graphicClip.highlighting instanceof MovieClip) graphicClip.highlighting._visible = false; If I precede the line with trace(typeof

Re: [Flashcoders] Problems with Tween Class

2006-05-25 Thread Jason Lutes
So how do i completely unload my MC and my Tween so that there are no references hanging around ?? How can i find out how many references there are for a given object (similar to the ref count in lingo objects in Director) ?? And is this only happening because of AS 2.0 It sounds like a

RE: [Flashcoders] XML Parsing

2006-05-25 Thread Jason Lutes
Matt, On a reasonably fast computer, a file of 4600+ XML nodes can be slurped in under one second, required download time aside. Your XML requirements are not that steep, so it seems to me that your issue is likely something else not completely obvious in your code sample. Suggestions: 1. If

Re: [Flashcoders] XML Parsing

2006-05-04 Thread Jason Lutes
I'm experiencing some recursion limit problem with a large XML... How are you currently reading in the XML -- what kind of code structures, etc? What specifically is the recursion limit problem you're having? Are you getting an error message of some kind? Do you think it's a question of the

Re: [Flashcoders] R/GA seeks Flash Developers

2006-04-28 Thread Jason Lutes
/code samples if there is potential. Thanks. - Jason Lutes ___ 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

RE: [Flashcoders] Retrieving Link Text in a Text Field

2006-04-13 Thread Jason Lutes
Consider using XPath, as in this example: http://www.majordan.net/test/flashlinks/ Geez that's a shload of class files in that Zip file! [grin] I'm going to explore XPath a little more when I free up some time. I really appreciate everyone's willingness to help me out. Let me outline

[Flashcoders] OT: Programmer Job in Salt Lake City

2006-03-28 Thread Jason Lutes
The company I work for is looking to hire full-time, on-site (SLC, Utah) Flash programmers. We develop training and courseware for a variety of clients. Candidates don't have to be über programmers, but MUST be very comfortable with Flash and ActionScript coding. Additional Web programming

[Flashcoders] Translating TextField Selection Indexes

2006-02-15 Thread Jason Lutes
How can I convert Selection index values from TextField.text to TextField.htmlText? There doesn't appear to be a built-in way to locate the insertion point (caret) or selection range boundaries within a text field's HTML. I need to allow users to modify (properties of) text at runtime in word

[Flashcoders] Rotating a text field without embedding the font.

2006-02-10 Thread Jason Lutes
Is there absolutely no way to have a dynamic text field display at a 90 degree angle, without embedding the font? What am I overlooking? Thanks. - pixelTwiddler, a.k.a. Jason ___ Flashcoders@chattyfig.figleaf.com To change your subscription options

Re: [Flashcoders] clearInterval question

2006-01-19 Thread Jason Lutes
If I hit clearInterval() while it's waiting, does it hit that function one more time or stop it immediately? I'm having some kind of ghosted thing happening over here... The following is about all you can do. In my experience it works immediately, every time. clearInterval(intervalVariable);

Re: [Flashcoders] MX 2004 and keyboard shortcuts

2006-01-18 Thread Jason Lutes
Well, I always thought shift-/ctrl-ins IS system level under windows. At least it works in any of my programs except macromedia So it more seems like this not-functioning is due to the application, not the system?! I've also run into a few issues with the custom keyboard shortcuts in

[Flashcoders] OT: Saving as MX2004 from v.8

2006-01-18 Thread Jason Lutes
If it's possible, how can I have Flash 8 automatically assume that I want to save a FLA in the older format? In other words, we need to be able to hit CTRL+S and have the document save in MX2004 format. - pixelTwiddler, a.k.a. Jason ___ Flashcoders

[Flashcoders] Stage.height Misreporting

2006-01-05 Thread Jason Lutes
I need some brain help this morning. I want to position a button ten pixels in from the lower right-hand corner of the movie. I decided to use Stage.width and Stage.height, minus the respective width and height of the button, minus ten (each). I can't get this to work though, because Flash reports

[Flashcoders] Embedded Flash Communicating with PowerPoint

2005-11-28 Thread Jason Lutes
Is it possible to communicate between an embedded Flash movie and its PowerPoint host (for navigation purposes)? If possible, how? - pixelTwiddler, a.k.a. Jason ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

[Flashcoders] Embedding a Video Object

2005-11-04 Thread Jason Lutes
What magic secret do I need to know in order to create an embedded video object via ActionScript (not manually, via the Library) in order to perform the requisite NetStream voodoo? In other words, what can I do besides dropping a embedded video asset from the Library onto the Stage? Does the

Re: [Flashcoders] placing an action at the end of a FLV video!

2005-11-04 Thread Jason Lutes
I have a swf that calls a flv on my server. The swf loads into a movieclip on the main swf. I need the loaded swf with the flv to load the default swf..(home.swf) into the mailloader clip when the flv is finished. How are you loading/playing the FLV? If you're doing it via NetStream, just

Re: [Flashcoders] Flash project FLP files are useless

2005-11-02 Thread Jason Lutes
Have anyone found any use of Flash Projects feature/panel? It provides a nifty bird's eye view of the relevant files for me, and is easy to show/hide, since the shortcut key combination is the same for similar panels in other Macromedia products. It also helps me with folder organization for

Re: [Flashcoders] imports available to entire flash file

2005-10-26 Thread Jason Lutes
Is there a way to import certain classes for use throughout the entire flash file? Or do I need to import for each timeline? I sometimes create a globally accessible alias. import myPackageName.MyClassName; _global.myClassAlias = MyClassName; I use the myClassAlias reference instead of

Re: [Flashcoders] 'Generic listeners'

2005-10-26 Thread Jason Lutes
Dunno how to explain this better, but is there a way to have a String broadcast an event when it is changed? You can look into Object.watch(). It lets you execute code anytime a property's value (including strings) is changed. - pixelTwiddler, a.k.a. Jason

Re: [Flashcoders] How to link within HTML textarea?

2005-10-19 Thread Jason Lutes
Shouldn't clicking on CHINESE HAVE BIG EDGE IN CLAMS take reader to a NAME=5684/a? It does work wheb tested in the browser. Does the above mean that it works for you in a Web browser, but not the Flash IDE? Anyway... here's generally how you can accomplish what you need: 1. add the first