[Flashcoders] CS3: unexpected type
Hi list, The following puzzles me: //code in frame 1 1 var xmlData:xml; 2 trace(typeof(xmlData)); //'object' not xml?? //mijnXml.getHetXmlObject() is a method of a custom class that is supposed to return an xml-object //code that loads the xml is ommitted 3 trace(typeof(mijnXml.getHetXmlObject())); //'object' not xml?? 4 xmlData = mijnXml.getHetXmlObject(); //called from a button I have the following: 6 trace(typeof(mijnXml.getHetXmlObject())); //'xml' 7 trace(typeof(xmlData)); //'object' ??? My questions: Why does flash see 'xmlData' as an object in line 2 although I specifically type it as 'xml' in line 1? I understand that in line 3 somehow flash has not yet determined the type of the variable (not yet fully loaded?). Only after a while it 'sees' the correct type (line 6). Is that correct? From Moock's EAS3 (p30) I understand that, as the type of the original variable (returned by mijnXml.getHetXmlObject()) is an object (line 3), xmlData holds only a _reference_ to the original variable. Thus, when the original variable changed to type 'xml', xmlData should also become type 'xml'. But according to line 7 it is still an object. Why?? Thanks, Willem van den Goorbergh =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= Geografiek is a Dutch, Utrecht-based map and chart design company. Willem van den Goorbergh can be contacted by telephone: (+31) 30-2719512 or cell phone: (+31)6-26372378 or by fax: (+31)302719687 snail mail: Hooghiemstraplein 89 3514 AX UTRECHT Visit our website at: http://www.geografiek.nl =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= ___ 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
Re: [Flashcoders] CS3: unexpected type
and if you do: var xmlData:XML; ?? Cedric var xmlData:xml; ___ 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
RE: [Flashcoders] save swf
Bassam, You could use an approach similar to the one Alan first suggested, and record all the user's choices into a properties object, save it with a server side script, and then use a generic movie clip that re-loads all these properties and recreates the original design in that way. This gives you the flexibility to make any changes later on. Karina -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of bassam mohaisen Sent: 22 August 2007 12:42 To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] save swf Thank you All I did some research and I find out how to take snapshot using BitmapData = new BitmapData() ; http://www.flash-db.com/Tutorials/snapshot/ but this will not help since I need to save the movie clip and load it latter for any changes anyway thank you all for your help bassam - Original Message From: Muzak [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Tuesday, August 21, 2007 7:02:13 PM Subject: Re: [Flashcoders] save swf There are JPEG en PNG encoder classes for AS3 http://code.google.com/p/as3corelib/ http://as3corelib.googlecode.com/svn/trunk/src/com/adobe/images/ regards, Muzak - Original Message - From: Jer Brand [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Tuesday, August 21, 2007 10:49 PM Subject: Re: [Flashcoders] save swf Uncompressed, yeah, that'd be ugly. But how does something like the following (guesswork code) perform? foo:BitmapData = new BitmapData() ; /* put your image data in there, with whatever method */ bar:ByteArray = foo.getPixels(myImageRect) ; var.compress() ; Again, mostly asking because I don't know enough about AS3/FP9. It's supposed to be using zlib compression on the ByteArray but for all I know it's still doesn't compress enough or quickly enough to be useful. I'm totally leaving out the question of conversion after post or Socket or whatever used server side to get the job done, but I have to assume it wouldn't be difficult using GD or ImageMagic. Anyone used this? ___ 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 __ __ Pinpoint customers who are looking for what you sell. http://searchmarketing.yahoo.com/ ___ 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@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
Re: [Flashcoders] CS3: unexpected type
Sorry, typo The fla says 'var xmlData:XML'. Any other suggestions? Thanks, Willem Op 23-aug-2007, om 10:16 heeft Cedric Muller het volgende geschreven: and if you do: var xmlData:XML; ?? Cedric var xmlData:xml; =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= Geografiek is a Dutch, Utrecht-based map and chart design company. Willem van den Goorbergh can be contacted by telephone: (+31) 30-2719512 or cell phone: (+31)6-26372378 or by fax: (+31)302719687 snail mail: Hooghiemstraplein 89 3514 AX UTRECHT Visit our website at: http://www.geografiek.nl =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= ___ 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
Re: [Flashcoders] CS3: unexpected type
look, maybe, here ... // just declaring the dataType won't be enough var xmlData:XML; trace(xmlData instanceof XML); // - outputs: false // declaring the dataType and assigning an instance of XML var xmlData:XML = new XML(); trace(xmlData instanceof XML); // - outputs: true typeof doesn't and will never return XML as a result. Look up the table in the help panel for 'typeof': String:string Movie clip:movieclip Button:object Text field:object Number:number Boolean:boolean Object:object Function:function hth, Cedric Sorry, typo The fla says 'var xmlData:XML'. Any other suggestions? Thanks, Willem Op 23-aug-2007, om 10:16 heeft Cedric Muller het volgende geschreven: and if you do: var xmlData:XML; ?? Cedric var xmlData:xml; =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= Geografiek is a Dutch, Utrecht-based map and chart design company. Willem van den Goorbergh can be contacted by telephone: (+31) 30-2719512 or cell phone: (+31)6-26372378 or by fax: (+31)302719687 snail mail: Hooghiemstraplein 89 3514 AX UTRECHT Visit our website at: http://www.geografiek.nl =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= ___ 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@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
Re: [Flashcoders] CS3: unexpected type
Hi, the differences in type checking between i am a string and new String (i am a string) and xml and other objects is fairly annoying. ie: trace (typeof(string)); //traces string trace (typeof(new String(string))); //traces object Same goes for other objects such as xml etc its all fairly inconsistent. Im using this wrapper class, makes my life hell of a lot easier. trace (TypeChecker.isType (foo, String)); //true trace (TypeChecker.isType (new String(foo), String)); //true trace (TypeChecker.isType (myXML, XML)); //true Give it a spin. In addition, I see you are mixing languages in your code, this happens to us sometimes but only when the clients business model contains dutch terms that are hard to translate or communicate after translation. In all other cases, mixing languages is very confusing and errorprone in my experience and as such bad practice. Feel free to ignore this statement:) greetz JC /** * Checks types in a consistent way no matter whether the passed object is a wrapper object or a primitive object. * * TypeChecker prevents having to know about flash weirdness: * * 'test' instanceof String == false * typeof('test') == 'string' == true * TypeChecker.checkType ('test', String) == true * * new String() instanceof String == true * typeof(new String()) == 'string' == false * TypeChecker.checkType (new String(), String) == true * * Works for instances and instances of subclasses. * * The cast type check ie 'if (String(pParam) == null)' is not reliable since it works differently under MTASC and * Flash. Array() is a cast in MTASC but a array creation in Flash. * * $Id: TypeChecker.as 148 2007-08-10 09:47:11Z hansw $ * * @author J.C. Wichman, TriMM Interactive Media (www.trimm.nl / [EMAIL PROTECTED]), *ObjectPainters.com (blog.objectpainters.com / [EMAIL PROTECTED]) */ class nl.trimm.util.TypeChecker { /** * Checks the given object for its type. * * @param pObject the object to type check * @param pType the type to validate given as a class ie String or MovieClip * @return true if pObject is of type pType */ public static function isType (pObject:Object, pType:Object):Boolean { var lResult:Boolean = pObject instanceof pType; if (lResult == true) return true; switch (pType) { case Boolean: return typeof(pObject)==boolean; case String: return typeof(pObject)==string; case Number: return typeof(pObject)==number; } return false; } /** * Of type number and not NaN */ public static function isNaturalNumber (pObject:Object):Boolean { return isType (pObject, Number) ( Number(pObject) != Number.NaN Number(pObject) != Number.NEGATIVE_INFINITY Number(pObject) != Number.POSITIVE_INFINITY ); } /** * Checks if all elements in the given array match the given type. * * @param pArray the array to check * @param pType the allowed type * @return true if all elements match the given type */ public static function isArrayOfType (pArray:Array, pType:Object):Boolean { var lResult:Boolean = true; //walk through array, as soon as the result doesnt match the given type break for (var i:Number = 0; i pArray.length; i++) { lResult = isType (pArray[i], pType); if (!lResult) break; } return lResult; } /** * Checks if all elements in the array match at least one of the given types * * @param pArray array of elements to check * @param pTypes each element has to match with at least one of the types in this array * @return true if each element matches at least one of the types in the type array */ public static function isArrayOfTypes (pArray:Array, pTypes:Array):Boolean { var lResult:Boolean = null; //walk through array, as soon as the result doesnt match the given type break for (var i:Number = 0; i pArray.length; i++) { lResult = false; //walk through type array as soon as one matches break for (var lTypeIndex:Number = 0; lTypeIndex pTypes.length; lTypeIndex++) { lResult = lResult || isType (pArray[i], pTypes[lTypeIndex]); if (lResult) break; } if (!lResult) break; } return lResult; } public static function arrayContainsType (pArray:Array, pType:Object):Boolean { var lResult:Boolean = false; //walk through array, as soon as the result doesnt match the given type break for (var i:Number = 0; i pArray.length; i++) { lResult = isType (pArray[i], pType); if (lResult) break; } return lResult; } /** * Returns value if it is of the given type, null otherwise. * * @param pObject the object to type check * @param pType the type to validate given as a class ie String or MovieClip * @return pObject is of type pType, null otherwise */ public static function ensureType (pObject:Object, pType:Object):Object { return isType (pObject, pType)?pObject:null; } } On 8/23/07, Cedric Muller [EMAIL PROTECTED] wrote: look, maybe, here ... // just declaring the dataType won't be enough var xmlData:XML;
[Flashcoders] Take movieclips from one mc and attach to another
Hello! I've found a nice code (pasted at the bottom of this mail) to display a rotating set of movieclips. One problem with it is though that it assumes a hardcoded set of 7 movieclips in the library, called 0, 1, ... 6 and attaches them to the stage by calling attachMovie(i, mc+i, i); I'd like to change that to a MovieClip-based class which would take an arbitary array of MovieClips and attach them to itself: class Ellipse extends MovieClip { private var mcs:Array = []; ... public function setMovieClips(mcs:Array) { this.mcs = mcs; for (var i:Number = 0; i mcs.length; i++) { var mc:MovieClip = mcs[i]; // XXX this.attachMovie(i, mc+i, i); And here comes the problem - how do I attach MovieClips (referred by mc above) to the Ellipse? There are only 2 methods - attachMovie() and duplicateMovieClip() - and they both need a linkage name as the argument. I.e. my general question is: how do I remove a child-MovieClip from one parent-MovieClip and assign it to another parent-MovieClip? Regards Alex PS: Here is the original code var N:Number = 7; var A:Number = 150; var B:Number = 50; var X:Number = 200; var Y:Number = 150; var GR:Number = Math.PI / 180; for (var i:Number = 0; i N; i++) { attachMovie(i, mc+i, i); this[mc+i].alpha = 0+i*(360/N); this[mc+i].onEnterFrame = function() { this.alpha += (_root._xmouse - X) / 100; this._x = X + A * Math.cos(this.alpha * GR); this._y = this._xscale = this._yscale = Y + B * Math.sin(this.alpha * GR); this.swapDepths(this._y); }; } ___ 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
Re: [Flashcoders] Take movieclips from one mc and attach to another
You can't re-parent MovieClips in AS2. You could make your class control arbitrary MovieClips as if they were reparented with a lot of math and localToGlobal() calls, though. Probably not a great idea, though. On 8/23/07, Alexander Farber [EMAIL PROTECTED] wrote: Hello! I've found a nice code (pasted at the bottom of this mail) to display a rotating set of movieclips. One problem with it is though that it assumes a hardcoded set of 7 movieclips in the library, called 0, 1, ... 6 and attaches them to the stage by calling attachMovie(i, mc+i, i); I'd like to change that to a MovieClip-based class which would take an arbitary array of MovieClips and attach them to itself: class Ellipse extends MovieClip { private var mcs:Array = []; ... public function setMovieClips(mcs:Array) { this.mcs = mcs; for (var i:Number = 0; i mcs.length; i++) { var mc:MovieClip = mcs[i]; // XXX this.attachMovie(i, mc+i, i); And here comes the problem - how do I attach MovieClips (referred by mc above) to the Ellipse? There are only 2 methods - attachMovie() and duplicateMovieClip() - and they both need a linkage name as the argument. I.e. my general question is: how do I remove a child-MovieClip from one parent-MovieClip and assign it to another parent-MovieClip? Regards Alex PS: Here is the original code var N:Number = 7; var A:Number = 150; var B:Number = 50; var X:Number = 200; var Y:Number = 150; var GR:Number = Math.PI / 180; for (var i:Number = 0; i N; i++) { attachMovie(i, mc+i, i); this[mc+i].alpha = 0+i*(360/N); this[mc+i].onEnterFrame = function() { this.alpha += (_root._xmouse - X) / 100; this._x = X + A * Math.cos(this.alpha * GR); this._y = this._xscale = this._yscale = Y + B * Math.sin(this.alpha * GR); this.swapDepths(this._y); }; } ___ 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@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
Re: [Flashcoders] Take movieclips from one mc and attach to another
Thanks, but can't I this.duplicateMovieClip() the MovieClips passed to my class as arguments to its method and then removeMovieClip the original? Or createEmptyMovieClip() and the loadMovie() into it? Regards Alex On 8/23/07, Mark Hawley [EMAIL PROTECTED] wrote: You can't re-parent MovieClips in AS2. You could make your class control arbitrary MovieClips as if they were reparented with a lot of math and localToGlobal() calls, though. Probably not a great idea, though. On 8/23/07, Alexander Farber [EMAIL PROTECTED] wrote: MovieClip-based class which would take an arbitary array of MovieClips and attach them to itself: class Ellipse extends MovieClip { private var mcs:Array = []; ... public function setMovieClips(mcs:Array) { this.mcs = mcs; for (var i:Number = 0; i mcs.length; i++) { var mc:MovieClip = mcs[i]; // XXX this.attachMovie(i, mc+i, i); And here comes the problem - how do I attach MovieClips (referred by mc above) to the Ellipse? ___ 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
RE: [Flashcoders] Scroll to maximum vPosition?
Thanks Nicolas. It works fine. I just think it's funny that maxVPosition isn't listed under the ScrollPane component's help documentation (at least in 8). - MM ___ 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
Re: [Flashcoders] Take movieclips from one mc and attach to another
I don't think having the class extend MovieClip is the right way to do this. I'd just create a class and pass it an array of linkage names in which to attach. Try this: class Ellipse { function Ellipse(attachTo:MovieClip, linkageArray:Array) { var N:Number = linkageArray.length; var A:Number = 150; var B:Number = 50; var X:Number = 200; var Y:Number = 150; var GR:Number = Math.PI / 180; var ref:MovieClip; for (var i:Number = 0; i N; i++) { ref = attachTo.attachMovie(linkageArray[i], linkageArray[i], i); ref.alpha = 0+i*(360/N); ref.onEnterFrame = function() { this.alpha += (_root._xmouse - X) / 100; this._x = X + A * Math.cos(this.alpha * GR); this._y = this._xscale = this._yscale = Y + B * Math.sin(this.alpha * GR); this.swapDepths(this._y); }; } } } Then in Flash pass the constructor an attach to clip, and an array with linkage names. var e:Ellipse = new Ellipse(this, [sym_1,sym_2,sym_3,sym_4,sym_5,sym_6,sym_7]); PS - this way you can use a variable number of clips also - you don't need to use seven. HTH Dave - Head Developer http://www.blurredistinction.com Adobe Community Expert http://www.adobe.com/communities/experts/ ___ 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] Big size Image and Thumbnail
Hello. I'm developing a sort application in Flash 8 / AS2 for manage big size images and scale/navigate thru them. I always have to load a big image into a MovieClip, and i have to make a similar-tool to photoshop navigation panel, so i have now to duplicate current scaled image in a small thumbnail into navigation panel. To avoid loading twice times the image (first in 100% and second in thumbnail navigation image) ... how could i copy content of first movieclip to second one with fixed size? thanks in advance ___ 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
Re: [Flashcoders] Big size Image and Thumbnail
To avoid loading twice times the image (first in 100% and second in thumbnail navigation image) ... how could i copy content of first movieclip to second one with fixed size? You can't really, but since the image is cached once it's downloaded the first time, loading it again into the thumbnail will be nearly instant. Dave - Head Developer http://www.blurredistinction.com Adobe Community Expert http://www.adobe.com/communities/experts/ ___ 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
Re: [Flashcoders] Big size Image and Thumbnail
julian atienza wrote: To avoid loading twice times the image (first in 100% and second in thumbnail navigation image) ... how could i copy content of first movieclip to second one with fixed size I did something similar to this while trying to implement my own Bitmap-based magnifying glass (following this example by Grant Skinner: http://www.gskinner.com/blog/archives/2005/09/flash_8_bluepri.html). You can use a single MovieClip as the source for as many individual bitmaps as you want, limited only by your CPU power. Look up the basics of attaching bitmaps and using BitmapData.draw -- that's all readily available in the manuals and tutorials. Then just create two bitmaps attached to two movieclips, and do this: // assume that source is the MovieClip containing the original image var matrix:Matrix; var normalScale:Number = 1.0; var thumbScale:Number = 0.25; // draw to the bitmap at the normal scale matrix = source.transform.matrix; matrix.scale(normalScale, normalScale); normalBitmap.draw(source, matrix); // draw to the bitmap at the thumbnail scale matrix = source.transform.matrix; matrix.scale(thumbScale, thumbScale); thumbBitmap.draw(source, matrix); Now the normalBitmap (a BitmapData object) has your image at full size, and thumbBitmap has the image at 1/4 size. ___ 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
Re: [Flashcoders] Big size Image and Thumbnail
Dave Mennenoh wrote: To avoid loading twice times the image (first in 100% and second in thumbnail navigation image) ... how could i copy content of first movieclip to second one with fixed size? You can't really, but since the image is cached once it's downloaded the first time, loading it again into the thumbnail will be nearly instant. Hah... I posted an overly-fancy BitmapData copying solution -- it hasn't gone through yet -- but Dave's answer is a lot better. If both versions of the image are static, just loadMovie them both. I originally did that BitmapData thing to display a magnified area of a complex clip generated from user input, but it's overkill for static images. ___ 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] difference between coding in classes and in root directly
Hi, My goal is to play an FLV and use the setInterval method without problems at the same time. This works fine when my code is placed on the timeline. When the EXACT same code is placed in an external class however the FLV gets interrupped soon as the setInterval is invoked. Also an onEnterFrame interferes with the flv when using an external class. How is this possible? Kind regards, Tom class Test { static var root_p:MovieClip = _root; function Test() { display(); setInterMezzo() } function display() { var videoHolder_p:MovieClip = _root.attachMovie(videoHolder, videoHolder_mc, 0); //setup netstream var connection_nc:NetConnection = new NetConnection(); connection_nc.connect(null); var stream_ns:NetStream = new NetStream(connection_nc); //movies var videoHolder_p:MovieClip = _root.attachMovie(videoHolder, videoHolder_mc, 0); videoHolder_p.video.attachVideo(stream_ns); root_p.stream_ns.play(bokk1.flv); } function setInterMezzo() { setInterval(this, checkOnMove, 2000); } function checkOnMove() { trace(ok) } } ___ 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: difference between coding in classes and in root directly
Apologies, underneath the exact code I'm using. class Test { static var root_p:MovieClip = _root; function Test() { display(); setInterMezzo() } function display() { var videoHolder_p:MovieClip = _root.attachMovie(videoHolder, videoHolder_mc, 0); //setup netstream var connection_nc:NetConnection = new NetConnection(); connection_nc.connect(null); var stream_ns:NetStream = new NetStream(connection_nc); //movies var videoHolder_p:MovieClip = _root.attachMovie(videoHolder, videoHolder_mc, 0); videoHolder_p.video.attachVideo(stream_ns); stream_ns.play(bokk1.flv); } function setInterMezzo() { setInterval(this, checkOnMove, 2000); } function checkOnMove() { trace(ok) } } On 8/23/07, Tom Huynen [EMAIL PROTECTED] wrote: Hi, My goal is to play an FLV and use the setInterval method without problems at the same time. This works fine when my code is placed on the timeline. When the EXACT same code is placed in an external class however the FLV gets interrupped soon as the setInterval is invoked. Also an onEnterFrame interferes with the flv when using an external class. How is this possible? Kind regards, Tom class Test { static var root_p:MovieClip = _root; function Test() { display(); setInterMezzo() } function display() { var videoHolder_p:MovieClip = _root.attachMovie(videoHolder, videoHolder_mc, 0); //setup netstream var connection_nc:NetConnection = new NetConnection(); connection_nc.connect(null); var stream_ns:NetStream = new NetStream(connection_nc); //movies var videoHolder_p:MovieClip = _root.attachMovie(videoHolder, videoHolder_mc, 0); videoHolder_p.video.attachVideo(stream_ns); root_p.stream_ns.play(bokk1.flv); } function setInterMezzo() { setInterval(this, checkOnMove, 2000); } function checkOnMove() { trace(ok) } } ___ 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
Re: [Flashcoders] CS3: unexpected type
Hi Cedric, Thanks. var xmlData:XML = new XML(); did the trick. About typeof doesn't and will never return XML as a result. Look up the table in the help panel for 'typeof': I've got a different help :-) which promises that typeof returns: Array object Boolean boolean Functionfunction int number Number number Object object String string uintnumber XML xml XMLList xml Willem van den Goorbergh Op 23-aug-2007, om 11:30 heeft Cedric Muller het volgende geschreven: look, maybe, here ... // just declaring the dataType won't be enough var xmlData:XML; trace(xmlData instanceof XML); // - outputs: false // declaring the dataType and assigning an instance of XML var xmlData:XML = new XML(); trace(xmlData instanceof XML); // - outputs: true typeof doesn't and will never return XML as a result. Look up the table in the help panel for 'typeof': String:string Movie clip:movieclip Button:object Text field:object Number:number Boolean:boolean Object:object Function:function hth, Cedric =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= Geografiek is a Dutch, Utrecht-based map and chart design company. Willem van den Goorbergh can be contacted by telephone: (+31) 30-2719512 or cell phone: (+31)6-26372378 or by fax: (+31)302719687 snail mail: Hooghiemstraplein 89 3514 AX UTRECHT Visit our website at: http://www.geografiek.nl =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= ___ 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
Re: [Flashcoders] Big size Image and Thumbnail
If you are using Flash 8+ you could use the Bitmapdata datatype to copy it to a new movieclip and scale it to thumbnail size I think. On 8/23/07, Alan MacDougall [EMAIL PROTECTED] wrote: julian atienza wrote: To avoid loading twice times the image (first in 100% and second in thumbnail navigation image) ... how could i copy content of first movieclip to second one with fixed size I did something similar to this while trying to implement my own Bitmap-based magnifying glass (following this example by Grant Skinner: http://www.gskinner.com/blog/archives/2005/09/flash_8_bluepri.html). You can use a single MovieClip as the source for as many individual bitmaps as you want, limited only by your CPU power. Look up the basics of attaching bitmaps and using BitmapData.draw -- that's all readily available in the manuals and tutorials. Then just create two bitmaps attached to two movieclips, and do this: // assume that source is the MovieClip containing the original image var matrix:Matrix; var normalScale:Number = 1.0; var thumbScale:Number = 0.25; // draw to the bitmap at the normal scale matrix = source.transform.matrix; matrix.scale(normalScale, normalScale); normalBitmap.draw(source, matrix); // draw to the bitmap at the thumbnail scale matrix = source.transform.matrix; matrix.scale(thumbScale, thumbScale); thumbBitmap.draw(source, matrix); Now the normalBitmap (a BitmapData object) has your image at full size, and thumbBitmap has the image at 1/4 size. ___ 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@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
Re: [Flashcoders] Big size Image and Thumbnail
I think he wants to load the big image and then load it again but resize it. If that's what you want, just load image with loadMovie or MovieClipLoader and once it has been cached, load it again (the same url) to a redimensioned MovieClip. On 8/23/07, Alan MacDougall [EMAIL PROTECTED] wrote: Dave Mennenoh wrote: To avoid loading twice times the image (first in 100% and second in thumbnail navigation image) ... how could i copy content of first movieclip to second one with fixed size? You can't really, but since the image is cached once it's downloaded the first time, loading it again into the thumbnail will be nearly instant. Hah... I posted an overly-fancy BitmapData copying solution -- it hasn't gone through yet -- but Dave's answer is a lot better. If both versions of the image are static, just loadMovie them both. I originally did that BitmapData thing to display a magnified area of a complex clip generated from user input, but it's overkill for static images. ___ 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@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
Re: [Flashcoders] difference between coding in classes and in root directly
You didn't mention where you are initializing this class in the FLA. Are you just creating an instance of it in the first keyframe ? On 8/23/07, Tom Huynen [EMAIL PROTECTED] wrote: Hi, My goal is to play an FLV and use the setInterval method without problems at the same time. This works fine when my code is placed on the timeline. When the EXACT same code is placed in an external class however the FLV gets interrupped soon as the setInterval is invoked. Also an onEnterFrame interferes with the flv when using an external class. How is this possible? Kind regards, Tom class Test { static var root_p:MovieClip = _root; function Test() { display(); setInterMezzo() } function display() { var videoHolder_p:MovieClip = _root.attachMovie(videoHolder, videoHolder_mc, 0); //setup netstream var connection_nc:NetConnection = new NetConnection(); connection_nc.connect(null); var stream_ns:NetStream = new NetStream(connection_nc); //movies var videoHolder_p:MovieClip = _root.attachMovie(videoHolder, videoHolder_mc, 0); videoHolder_p.video.attachVideo(stream_ns); root_p.stream_ns.play(bokk1.flv); } function setInterMezzo() { setInterval(this, checkOnMove, 2000); } function checkOnMove() { trace(ok) } } ___ 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@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
Re: [Flashcoders] Re: difference between coding in classes and in root directly
This is the same code you sent in your first message. You can't have a class in a keyframe's code if you're using AS2, so, what I would like to know is where in your FLA you are creating this class' instance. You might be creating it in the first keyframe, like this: Keyframe1: var teste = new Test(); So, how are you doing it ? On 8/23/07, Tom Huynen [EMAIL PROTECTED] wrote: Apologies, underneath the exact code I'm using. class Test { static var root_p:MovieClip = _root; function Test() { display(); setInterMezzo() } function display() { var videoHolder_p:MovieClip = _root.attachMovie(videoHolder, videoHolder_mc, 0); //setup netstream var connection_nc:NetConnection = new NetConnection(); connection_nc.connect(null); var stream_ns:NetStream = new NetStream(connection_nc); //movies var videoHolder_p:MovieClip = _root.attachMovie(videoHolder, videoHolder_mc, 0); videoHolder_p.video.attachVideo(stream_ns); stream_ns.play(bokk1.flv); } function setInterMezzo() { setInterval(this, checkOnMove, 2000); } function checkOnMove() { trace(ok) } } On 8/23/07, Tom Huynen [EMAIL PROTECTED] wrote: Hi, My goal is to play an FLV and use the setInterval method without problems at the same time. This works fine when my code is placed on the timeline. When the EXACT same code is placed in an external class however the FLV gets interrupped soon as the setInterval is invoked. Also an onEnterFrame interferes with the flv when using an external class. How is this possible? Kind regards, Tom class Test { static var root_p:MovieClip = _root; function Test() { display(); setInterMezzo() } function display() { var videoHolder_p:MovieClip = _root.attachMovie(videoHolder, videoHolder_mc, 0); //setup netstream var connection_nc:NetConnection = new NetConnection(); connection_nc.connect(null); var stream_ns:NetStream = new NetStream(connection_nc); //movies var videoHolder_p:MovieClip = _root.attachMovie(videoHolder, videoHolder_mc, 0); videoHolder_p.video.attachVideo(stream_ns); root_p.stream_ns.play(bokk1.flv); } function setInterMezzo() { setInterval(this, checkOnMove, 2000); } function checkOnMove() { trace(ok) } } ___ 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@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] [OT]Server-side knowledge to complement Flash Front end
Hi I've reached a point in my career where I think its important to broaden my skill-set beyond just Fash/AS3. Unfortutantely there are only so many hours in the day. Is anyone else facing the same dilemma ? Should I pursue .Net knowledge or ??? If .Net, what books online resources and/or goals should I set for myself? Thanks for your feedback [e] jbach at bitstream.ca [c] 416.668.0034 [w] www.bitstream.ca ...all improvisation is life in search of a style. - Bruce Mau,'LifeStyle' ___ 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
Re: [Flashcoders] CS3: unexpected type
I've got a different help :-) which promises that typeof returns: Array object Boolean boolean Functionfunction int number Number number Object object String string uintnumber XML xml XMLList xml oops, you're right, my mistake. checked the AS2 help panel :S Cedric ___ 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
Re: [Flashcoders] Real Player 11 messing up Flash application UI
Just ran into another issue, and this one is actively breaking things, not just causing UI annoyances. RP11 seems to be doing something to prevent LocalConnections from being cleaned up. Our application uses a couple SWFs for the UI, using LocalConnections to communicate between them. One of these SWFs gets reloaded sometimes (the frame it's in can be navigated away from at times). Normally everything works fine because the unloading of the SWF when the page changes cleans up the LocalConnections. However, with RP11 installed the cleanup doesn't seem to happen. The first time the SWF loads it works fine, but every time after that it fails to open the LocalConnection, completely breaking the application. I submitted this issue using their feedback form, but I don't know if anything will come of it. -Andy On 8/20/07, Troy Rollins [EMAIL PROTECTED] wrote: On Aug 20, 2007, at 2:58 PM, Andy Herrman wrote: I haven't been able to find any documentation about how they're detecting it. Anyone played around with this yet? Are there any known methods to prevent that toolbar from appearing? This is hideously bad news. Adobe should fire up the legal department and chase Real off the planet. I'm sure they could come up with some kind of grounds. Or maybe we could start a class action suit for breaking our content. -- Troy RPSystems, Ltd. http://www.rpsystems.net ___ 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@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
RE: [Flashcoders] [OT]Server-side knowledge to complement Flash F ront end
Should I pursue .Net knowledge or ??? You should pursue whatever you think would be most useful for you. .NET, Java, PHP, ColdFusion - they're basically all the same. They all let you do the same sorts of things; the differences are largely matters of syntax and popularity. ColdFusion is arguably the best fit for Flash development, since it provides Flash Remoting and LiveCycle Data Services (formerly Flex Data Services), but is not as widely used as the other three I mentioned. On the other hand, .NET, Java and even ColdFusion are more popular in enterprise environments than PHP is, for what that's worth. Fortunately, if you learn one of these, again, they all work the same way, so it's easy to go from one to the other - my knowledge of CF helped me learn what I needed for .NET and Java, for example. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ___ 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
Re: [Flashcoders] Real Player 11 messing up Flash application UI
I created a new page on the osflash wiki for documenting RP11 issues. If anyone finds any new ones please add them there. Hopefully having a central place to document the problems we find will increase the chances of Real doing something about them. http://osflash.org/flashcoders/realplayer_bugs -Andy On 8/23/07, Andy Herrman [EMAIL PROTECTED] wrote: Just ran into another issue, and this one is actively breaking things, not just causing UI annoyances. RP11 seems to be doing something to prevent LocalConnections from being cleaned up. Our application uses a couple SWFs for the UI, using LocalConnections to communicate between them. One of these SWFs gets reloaded sometimes (the frame it's in can be navigated away from at times). Normally everything works fine because the unloading of the SWF when the page changes cleans up the LocalConnections. However, with RP11 installed the cleanup doesn't seem to happen. The first time the SWF loads it works fine, but every time after that it fails to open the LocalConnection, completely breaking the application. I submitted this issue using their feedback form, but I don't know if anything will come of it. -Andy On 8/20/07, Troy Rollins [EMAIL PROTECTED] wrote: On Aug 20, 2007, at 2:58 PM, Andy Herrman wrote: I haven't been able to find any documentation about how they're detecting it. Anyone played around with this yet? Are there any known methods to prevent that toolbar from appearing? This is hideously bad news. Adobe should fire up the legal department and chase Real off the planet. I'm sure they could come up with some kind of grounds. Or maybe we could start a class action suit for breaking our content. -- Troy RPSystems, Ltd. http://www.rpsystems.net ___ 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@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
Re: [Flashcoders] Re: difference between coding in classes and in root directly
Hi Marcelo, var test:Test = new Test(); on the first keyframe indeed. When I'm executing the code from the timeline I leave out the class definition and so. the make things a bit more clear: --- situation one (first keyframe): //setup netstream var connection_nc:NetConnection = new NetConnection(); connection_nc.connect(null); var stream_ns:NetStream = new NetStream(connection_nc); //movies var videoHolder_p:MovieClip = _root.attachMovie(videoHolder, videoHolder_mc, 0); videoHolder_p.video.attachVideo(stream_ns); stream_ns.play(bokk1.flv); --- situation two (first keyframe): var test:Test = new Test(); in combination with an externat class Test: class Test { var connection_nc:NetConnection = new NetConnection(); connection_nc.connect(null); var stream_ns:NetStream = new NetStream(connection_nc); //movies var videoHolder_p:MovieClip = _root.attachMovie(videoHolder, videoHolder_mc, 0); videoHolder_p.video.attachVideo(stream_ns); stream_ns.play(bokk1.flv); } The second gives problems when using an onEnterFrame of setInterval function. I discovered a work around when using an external class by doing the following class Test { var connection_nc:NetConnection = new NetConnection(); _root.connection_nc = connection_nc _root.connection_nc.connect(null); var stream_ns:NetStream = new NetStream(_root.connection_nc); _root.stream_ns = stream_ns //movies var videoHolder_p:MovieClip = _root.attachMovie(videoHolder, videoHolder_mc, 0); videoHolder_p.video.attachVideo(_root.stream_ns); _root.stream_ns.play(bokk1.flv); } Now it works. So by defining everything in the root no problems arise. The weird thing is that when not defining everything in the root works as well but soon as an onEnterFrame or seInterval is invoked the FLV stops playing. Any idea why this happens? Tom On 8/23/07, Marcelo de Moraes Serpa [EMAIL PROTECTED] wrote: This is the same code you sent in your first message. You can't have a class in a keyframe's code if you're using AS2, so, what I would like to know is where in your FLA you are creating this class' instance. You might be creating it in the first keyframe, like this: Keyframe1: var teste = new Test(); So, how are you doing it ? On 8/23/07, Tom Huynen [EMAIL PROTECTED] wrote: Apologies, underneath the exact code I'm using. class Test { static var root_p:MovieClip = _root; function Test() { display(); setInterMezzo() } function display() { var videoHolder_p:MovieClip = _root.attachMovie(videoHolder, videoHolder_mc, 0); //setup netstream var connection_nc:NetConnection = new NetConnection(); connection_nc.connect(null); var stream_ns:NetStream = new NetStream(connection_nc); //movies var videoHolder_p:MovieClip = _root.attachMovie(videoHolder, videoHolder_mc, 0); videoHolder_p.video.attachVideo(stream_ns); stream_ns.play(bokk1.flv); } function setInterMezzo() { setInterval(this, checkOnMove, 2000); } function checkOnMove() { trace(ok) } } On 8/23/07, Tom Huynen [EMAIL PROTECTED] wrote: Hi, My goal is to play an FLV and use the setInterval method without problems at the same time. This works fine when my code is placed on the timeline. When the EXACT same code is placed in an external class however the FLV gets interrupped soon as the setInterval is invoked. Also an onEnterFrame interferes with the flv when using an external class. How is this possible? Kind regards, Tom class Test { static var root_p:MovieClip = _root; function Test() { display(); setInterMezzo() } function display() { var videoHolder_p:MovieClip = _root.attachMovie(videoHolder, videoHolder_mc, 0); //setup netstream var connection_nc:NetConnection = new NetConnection(); connection_nc.connect(null); var stream_ns:NetStream = new NetStream(connection_nc); //movies var videoHolder_p:MovieClip = _root.attachMovie(videoHolder, videoHolder_mc, 0); videoHolder_p.video.attachVideo(stream_ns); root_p.stream_ns.play(bokk1.flv); } function setInterMezzo() { setInterval(this, checkOnMove, 2000); } function checkOnMove() { trace(ok) } } ___ 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
Re: [Flashcoders] Big size Image and Thumbnail
I fear it is not my solution. Image is 72Mb. The application i was making is a standalone one (not a web solution)... When i try to load the second one , the time is the double :/ 2007/8/23, Marcelo de Moraes Serpa [EMAIL PROTECTED]: I think he wants to load the big image and then load it again but resize it. If that's what you want, just load image with loadMovie or MovieClipLoader and once it has been cached, load it again (the same url) to a redimensioned MovieClip. On 8/23/07, Alan MacDougall [EMAIL PROTECTED] wrote: Dave Mennenoh wrote: To avoid loading twice times the image (first in 100% and second in thumbnail navigation image) ... how could i copy content of first movieclip to second one with fixed size? You can't really, but since the image is cached once it's downloaded the first time, loading it again into the thumbnail will be nearly instant. Hah... I posted an overly-fancy BitmapData copying solution -- it hasn't gone through yet -- but Dave's answer is a lot better. If both versions of the image are static, just loadMovie them both. I originally did that BitmapData thing to display a magnified area of a complex clip generated from user input, but it's overkill for static images. ___ 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@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@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
Re: [Flashcoders] [OT]Server-side knowledge to complement Flash F ront end
I would suggest WebServices as a technology that will be applicable to lots of applications. Axis from Apache has a lot of tools, documentation and links to other documentation. Ron Dave Watts wrote: Should I pursue .Net knowledge or ??? You should pursue whatever you think would be most useful for you. .NET, Java, PHP, ColdFusion - they're basically all the same. They all let you do the same sorts of things; the differences are largely matters of syntax and popularity. ColdFusion is arguably the best fit for Flash development, since it provides Flash Remoting and LiveCycle Data Services (formerly Flex Data Services), but is not as widely used as the other three I mentioned. On the other hand, .NET, Java and even ColdFusion are more popular in enterprise environments than PHP is, for what that's worth. Fortunately, if you learn one of these, again, they all work the same way, so it's easy to go from one to the other - my knowledge of CF helped me learn what I needed for .NET and Java, for example. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ___ 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@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
Re: [Flashcoders] Big size Image and Thumbnail
julian atienza wrote: Image is 72Mb. This is your first problem. I can't think of a single reason you would have to load a 72 MB image into Flash. Could you tell us a little more about your application? ___ 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] *** Security Sandbox Violation ***
Hi list... I keep getting this error while debugging. I'm not clear what's causing it. Any thoughts? - MM *** Security Sandbox Violation *** SecurityDomain 'file:///D|/customized%20proposal/ingredients/customProposalFlashAssets/ customProposalTool.swf' tried to access Player UI context ___ 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
Re: [Flashcoders] Big size Image and Thumbnail
One High-Resolution Graphic explorer. Before 3 seconds, flash load correctly that big size, and i'm trying this inside my class: { (my class has the typical movieclip loader with addListener(this); ) . public function onLoadInit(mcTarget:MovieClip):Void { //Big size image is now loaded at 100% size !!! //i have to copy scaled image to thumbnail for //Navigation purposes like in photoshop //Calculate factor var factorH:Number = _mcThumbnail._height / mcTarget._height; var factorW:Number = _mcThumbnail._width / mcTarget._width; //copy bitmap with matrix transformation _myBitMap = new BitmapData(_mcThumbnail._width,_mcThumbnail._height,false,0x00FF); _myMatrix = mcTarget.transform.matrix; _myMatrix.scale(factorH,factorW); _myBitMap.draw(mcTarget,_myMatrix); //I catch it! - now i have the bitmap _mcThumbnail.attachBitmap(_myBitMap,1); } but i'm not sure if it's going ok... at least now i haven't to make another load but... i think the thumbnail is scaling the portion of big image i see in screen, not the whole image... Excuse my english :( i'm trying to explain it as fine as i can. Thanks 2007/8/23, Alan MacDougall [EMAIL PROTECTED]: julian atienza wrote: Image is 72Mb. This is your first problem. I can't think of a single reason you would have to load a 72 MB image into Flash. Could you tell us a little more about your application? ___ 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@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
Re: [Flashcoders] Scroll to maximum vPosition?
maxVPosition is a property of the ScrollView class, which isn't documented. mx.core.ScrollView regards, Muzak - Original Message - From: Mendelsohn, Michael [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Thursday, August 23, 2007 2:25 PM Subject: RE: [Flashcoders] Scroll to maximum vPosition? Thanks Nicolas. It works fine. I just think it's funny that maxVPosition isn't listed under the ScrollPane component's help documentation (at least in 8). - MM ___ 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
Re: [Flashcoders] long dash
I reference this page: http://www.w3.org/TR/html4/sgml/entities.html try c=a #8212; b hth, Rob On Thu, 23 Aug 2007 14:07:38 -0400, natalia Vikhtinskaya [EMAIL PROTECTED] wrote: Hi I thought it simple but that does not work.I am trying to show long dash c=a mdash; b txt.html=true; txt.htmlText=c; But that does not work. What am I doing wrong? Thanks in advance ___ 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 -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ ___ 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
Re: [Flashcoders] long dash
Maybe anybody know how to show 1/3, 1/7.. with horizontal line. I thought that maybe I can use long dash and three text areas.. But it will not work if I should to show 1/3 of 9 but with horizontal line. I seems no solution? 2007/8/23, Alan MacDougall [EMAIL PROTECTED]: natalia Vikhtinskaya wrote: Hi I thought it simple but that does not work.I am trying to show long dash c=a mdash; b txt.html=true; txt.htmlText=c; But that does not work. What am I doing wrong? Thanks in advance Flash actually only displays a few HTML entities: lt; gt; quot; amp; (I think) and one other that I forget. If you want to use any other special characters, use the code appropriate to your encoding style. In ASCII, for example, it's symbol 151, which you can enter in Windows with alt-0151. In Unicode, I think it's \u8212, but don't quote me. ___ 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@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
RE: [Flashcoders] long dash
Here's my quick list of unicode characters for htmlText... string symbol -- --- \u2122 trademark (TM) symbol \u00A9 copyright (C) symbol \u2018 single opening (left) quote \u2019 single closing (right) quote \u201C double opening (left) quote \u201D double closing (right) quote \u00AE registered trademark (R) symbol \u2013 en dash \u2014 em dash \u2022 bullet Whatever character you need, just make certain it is a glyph in the font you are using and that you specify the unicode hex value of the character using the format \u. ...Rob ___ 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
Re: [Flashcoders] Big size Image and Thumbnail
julian atienza wrote: but i'm not sure if it's going ok... at least now i haven't to make another load but... i think the thumbnail is scaling the portion of big image i see in screen, not the whole image... That might be a limitation of Flash. I'm not sure what happens when MovieClips and BitmapData are larger than the maximum movie size (which I think is 2600 pixels or so)... I would not be surprised if it messes up, though. ___ 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
RE: [Flashcoders] long dash
Will your design allow you to just create a movieclip with a solid fill instead of a line? You could give it some small constant dimension in Y to suit your idea of line thickness, and then you have full control over its length in X. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of natalia Vikhtinskaya Sent: Thursday, August 23, 2007 11:38 AM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] long dash Maybe anybody know how to show 1/3, 1/7.. with horizontal line. I thought that maybe I can use long dash and three text areas.. But it will not work if I should to show 1/3 of 9 but with horizontal line. I seems no solution? 2007/8/23, Alan MacDougall [EMAIL PROTECTED]: natalia Vikhtinskaya wrote: Hi I thought it simple but that does not work.I am trying to show long dash c=a mdash; b txt.html=true; txt.htmlText=c; But that does not work. What am I doing wrong? Thanks in advance Flash actually only displays a few HTML entities: lt; gt; quot; amp; (I think) and one other that I forget. If you want to use any other special characters, use the code appropriate to your encoding style. In ASCII, for example, it's symbol 151, which you can enter in Windows with alt-0151. In Unicode, I think it's \u8212, but don't quote me. ___ 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@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@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
Re: [Flashcoders] long dash
But how that help to show: 1/3 of 9 with horizontal line? 2007/8/23, Hershell Bryant [EMAIL PROTECTED]: Will your design allow you to just create a movieclip with a solid fill instead of a line? You could give it some small constant dimension in Y to suit your idea of line thickness, and then you have full control over its length in X. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of natalia Vikhtinskaya Sent: Thursday, August 23, 2007 11:38 AM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] long dash Maybe anybody know how to show 1/3, 1/7.. with horizontal line. I thought that maybe I can use long dash and three text areas.. But it will not work if I should to show 1/3 of 9 but with horizontal line. I seems no solution? 2007/8/23, Alan MacDougall [EMAIL PROTECTED]: natalia Vikhtinskaya wrote: Hi I thought it simple but that does not work.I am trying to show long dash c=a mdash; b txt.html=true; txt.htmlText=c; But that does not work. What am I doing wrong? Thanks in advance Flash actually only displays a few HTML entities: lt; gt; quot; amp; (I think) and one other that I forget. If you want to use any other special characters, use the code appropriate to your encoding style. In ASCII, for example, it's symbol 151, which you can enter in Windows with alt-0151. In Unicode, I think it's \u8212, but don't quote me. ___ 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@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@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@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
Re: [Flashcoders] long dash
how about just buying a math font and embedding it? http://www.adobe.com/type/browser/P/P_1423.html On Aug 23, 2007, at 1:07 PM, natalia Vikhtinskaya wrote: But how that help to show: 1/3 of 9 with horizontal line? 2007/8/23, Hershell Bryant [EMAIL PROTECTED]: Will your design allow you to just create a movieclip with a solid fill instead of a line? You could give it some small constant dimension in Y to suit your idea of line thickness, and then you have full control over its length in X. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of natalia Vikhtinskaya Sent: Thursday, August 23, 2007 11:38 AM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] long dash Maybe anybody know how to show 1/3, 1/7.. with horizontal line. I thought that maybe I can use long dash and three text areas.. But it will not work if I should to show 1/3 of 9 but with horizontal line. I seems no solution? 2007/8/23, Alan MacDougall [EMAIL PROTECTED]: natalia Vikhtinskaya wrote: Hi I thought it simple but that does not work.I am trying to show long dash c=a mdash; b txt.html=true; txt.htmlText=c; But that does not work. What am I doing wrong? Thanks in advance Flash actually only displays a few HTML entities: lt; gt; quot; amp; (I think) and one other that I forget. If you want to use any other special characters, use the code appropriate to your encoding style. In ASCII, for example, it's symbol 151, which you can enter in Windows with alt-0151. In Unicode, I think it's \u8212, but don't quote me. ___ 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@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@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@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@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
RE: [Flashcoders] long dash
Hi Natalia First check that the font that you are using for the textfield actually have the mdash character, use the character map in windows (the mdash is html entity #8212; or symbol - or Unicode \u2014 ) If the character is there, then use c=a #8212; b; txt.html=true; txt.htmlText=c; or c=a - b; txt.html=true; txt.htmlText=c; or c=a \u2014 b; txt.html=true; txt.htmlText=c; hope it helps, let me know if not thanks Andres -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of natalia Vikhtinskaya Sent: Thursday, August 23, 2007 3:08 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] long dash But how that help to show: 1/3 of 9 with horizontal line? 2007/8/23, Hershell Bryant [EMAIL PROTECTED]: Will your design allow you to just create a movieclip with a solid fill instead of a line? You could give it some small constant dimension in Y to suit your idea of line thickness, and then you have full control over its length in X. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of natalia Vikhtinskaya Sent: Thursday, August 23, 2007 11:38 AM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] long dash Maybe anybody know how to show 1/3, 1/7.. with horizontal line. I thought that maybe I can use long dash and three text areas.. But it will not work if I should to show 1/3 of 9 but with horizontal line. I seems no solution? 2007/8/23, Alan MacDougall [EMAIL PROTECTED]: natalia Vikhtinskaya wrote: Hi I thought it simple but that does not work.I am trying to show long dash c=a mdash; b txt.html=true; txt.htmlText=c; But that does not work. What am I doing wrong? Thanks in advance Flash actually only displays a few HTML entities: lt; gt; quot; amp; (I think) and one other that I forget. If you want to use any other special characters, use the code appropriate to your encoding style. In ASCII, for example, it's symbol 151, which you can enter in Windows with alt-0151. In Unicode, I think it's \u8212, but don't quote me. ___ 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@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@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@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@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
Re: [Flashcoders] long dash
I did not know that there is such fonts. Maybe there is free fonts like this also? 2007/8/24, robert [EMAIL PROTECTED]: how about just buying a math font and embedding it? http://www.adobe.com/type/browser/P/P_1423.html On Aug 23, 2007, at 1:07 PM, natalia Vikhtinskaya wrote: But how that help to show: 1/3 of 9 with horizontal line? 2007/8/23, Hershell Bryant [EMAIL PROTECTED]: Will your design allow you to just create a movieclip with a solid fill instead of a line? You could give it some small constant dimension in Y to suit your idea of line thickness, and then you have full control over its length in X. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of natalia Vikhtinskaya Sent: Thursday, August 23, 2007 11:38 AM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] long dash Maybe anybody know how to show 1/3, 1/7.. with horizontal line. I thought that maybe I can use long dash and three text areas.. But it will not work if I should to show 1/3 of 9 but with horizontal line. I seems no solution? 2007/8/23, Alan MacDougall [EMAIL PROTECTED]: natalia Vikhtinskaya wrote: Hi I thought it simple but that does not work.I am trying to show long dash c=a mdash; b txt.html=true; txt.htmlText=c; But that does not work. What am I doing wrong? Thanks in advance Flash actually only displays a few HTML entities: lt; gt; quot; amp; (I think) and one other that I forget. If you want to use any other special characters, use the code appropriate to your encoding style. In ASCII, for example, it's symbol 151, which you can enter in Windows with alt-0151. In Unicode, I think it's \u8212, but don't quote me. ___ 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@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@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@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@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@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
RE: [Flashcoders] [OT]Server-side knowledge to complement Flash F ront end
I would suggest WebServices as a technology that will be applicable to lots of applications. Axis from Apache has a lot of tools, documentation and links to other documentation. You will need to choose a platform from which to run web services, and your choices are basically the same as they are for web applications - ASP.NET, ColdFusion, Java, etc. In addition, a sound understanding of web application server programming is a prerequisite for web service development. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ___ 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
RE: [Flashcoders] long dash
you could possibly use Draw method if I am gettin this correctly Nikolai A. Stepanenko Design Development SAIC, BP, Houston Office: 713.835.3828 Cell: 832.368.0601 From: [EMAIL PROTECTED] on behalf of natalia Vikhtinskaya Sent: Thu 8/23/2007 3:51 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] long dash I did not know that there is such fonts. Maybe there is free fonts like this also? 2007/8/24, robert [EMAIL PROTECTED]: how about just buying a math font and embedding it? http://www.adobe.com/type/browser/P/P_1423.html On Aug 23, 2007, at 1:07 PM, natalia Vikhtinskaya wrote: But how that help to show: 1/3 of 9 with horizontal line? 2007/8/23, Hershell Bryant [EMAIL PROTECTED]: Will your design allow you to just create a movieclip with a solid fill instead of a line? You could give it some small constant dimension in Y to suit your idea of line thickness, and then you have full control over its length in X. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of natalia Vikhtinskaya Sent: Thursday, August 23, 2007 11:38 AM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] long dash Maybe anybody know how to show 1/3, 1/7.. with horizontal line. I thought that maybe I can use long dash and three text areas.. But it will not work if I should to show 1/3 of 9 but with horizontal line. I seems no solution? 2007/8/23, Alan MacDougall [EMAIL PROTECTED]: natalia Vikhtinskaya wrote: Hi I thought it simple but that does not work.I am trying to show long dash c=a mdash; b txt.html=true; txt.htmlText=c; But that does not work. What am I doing wrong? Thanks in advance Flash actually only displays a few HTML entities: lt; gt; quot; amp; (I think) and one other that I forget. If you want to use any other special characters, use the code appropriate to your encoding style. In ASCII, for example, it's symbol 151, which you can enter in Windows with alt-0151. In Unicode, I think it's \u8212, but don't quote me. ___ 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://www.figleaf.com/ http://training.figleaf.com http://training.figleaf.com/ ___ 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://www.figleaf.com/ http://training.figleaf.com http://training.figleaf.com/ ___ 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://www.figleaf.com/ http://training.figleaf.com http://training.figleaf.com/ ___ 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://www.figleaf.com/ http://training.figleaf.com http://training.figleaf.com/ ___ 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://www.figleaf.com/ http://training.figleaf.com http://training.figleaf.com/ ___ 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://www.figleaf.com/ http://training.figleaf.com http://training.figleaf.com/ ___ 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] Problem with xml.sendAndLoad, IE, https, and ASP
All, I'm working on a project in which a SWF uses xml.sendAndLoad to send a short XML document to an ASP page. The ASP page receives the XML, parses it, pulls out a few pieces of data, runs a query against a database, and returns a longer XML document. Everything works perfectly when I run the app over http. However, when I run the app over https, it doesn't work (I can't tell if it can't call the ASP page, or the ASP page doesn't respond, but it does fail immediately). A few notes: - the SWF and ASP page are in the same subdirectory, so it's not a cross-domain issue - the SWF doesn't include any absolute references, so I haven't hardcoded http anywhere in the actionscript - strangely - the entire process works perfectly in Firefox. It only fails in IE - the entire process also works perfectly if I run the app in the Flash IDE, and call the ASP page over https - if I comment out ALL of the logic/code in the ASP page, so that it just uses Response.write to send back a simple XML document, it still fails. So, it's not a problem with the ASP - it's a problem with the SWF/ASP communication. Does anyone have any thoughts, suggestions, advice on why this is the case, or how to fix it? Cheers, Matt Stuehler ___ 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
Re: [Flashcoders] long dash
I found such font here http://www.sofontes.com.br/en/SansFractionsVertical-Plain/download/21710 Maybe it will be usuful for anybody. Thanks a lot for your help. 2007/8/24, Stepanenko, Nikolai A. [EMAIL PROTECTED]: you could possibly use Draw method if I am gettin this correctly Nikolai A. Stepanenko Design Development SAIC, BP, Houston Office: 713.835.3828 Cell: 832.368.0601 From: [EMAIL PROTECTED] on behalf of natalia Vikhtinskaya Sent: Thu 8/23/2007 3:51 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] long dash I did not know that there is such fonts. Maybe there is free fonts like this also? 2007/8/24, robert [EMAIL PROTECTED]: how about just buying a math font and embedding it? http://www.adobe.com/type/browser/P/P_1423.html On Aug 23, 2007, at 1:07 PM, natalia Vikhtinskaya wrote: But how that help to show: 1/3 of 9 with horizontal line? 2007/8/23, Hershell Bryant [EMAIL PROTECTED]: Will your design allow you to just create a movieclip with a solid fill instead of a line? You could give it some small constant dimension in Y to suit your idea of line thickness, and then you have full control over its length in X. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of natalia Vikhtinskaya Sent: Thursday, August 23, 2007 11:38 AM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] long dash Maybe anybody know how to show 1/3, 1/7.. with horizontal line. I thought that maybe I can use long dash and three text areas.. But it will not work if I should to show 1/3 of 9 but with horizontal line. I seems no solution? 2007/8/23, Alan MacDougall [EMAIL PROTECTED]: natalia Vikhtinskaya wrote: Hi I thought it simple but that does not work.I am trying to show long dash c=a mdash; b txt.html=true; txt.htmlText=c; But that does not work. What am I doing wrong? Thanks in advance Flash actually only displays a few HTML entities: lt; gt; quot; amp; (I think) and one other that I forget. If you want to use any other special characters, use the code appropriate to your encoding style. In ASCII, for example, it's symbol 151, which you can enter in Windows with alt-0151. In Unicode, I think it's \u8212, but don't quote me. ___ 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://www.figleaf.com/ http://training.figleaf.com http://training.figleaf.com/ ___ 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://www.figleaf.com/ http://training.figleaf.com http://training.figleaf.com/ ___ 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://www.figleaf.com/ http://training.figleaf.com http://training.figleaf.com/ ___ 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://www.figleaf.com/ http://training.figleaf.com http://training.figleaf.com/ ___ 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://www.figleaf.com/ http://training.figleaf.com http://training.figleaf.com/ ___ 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://www.figleaf.com/ http://training.figleaf.com http://training.figleaf.com/ ___
Re: [Flashcoders] long dash
http://www.unicode.org/charts/PDF/U2000.pdf page 3, under Dashes regards, Muzak - Original Message - From: Andres Ardila [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Thursday, August 23, 2007 10:44 PM Subject: RE: [Flashcoders] long dash Hi Natalia First check that the font that you are using for the textfield actually have the mdash character, use the character map in windows (the mdash is html entity #8212; or symbol - or Unicode \u2014 ) If the character is there, then use c=a #8212; b; txt.html=true; txt.htmlText=c; or c=a - b; txt.html=true; txt.htmlText=c; or c=a \u2014 b; txt.html=true; txt.htmlText=c; hope it helps, let me know if not thanks Andres ___ 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
Re: [Flashcoders] Should Flash CS3 Pro result in larger SWF and EXE files than Flash 8?
All, I just wanted to thank everyone for these responses. Cheers, Matt On 8/22/07, Martin Jonasson [EMAIL PROTECTED] wrote: Yes, I've also noticed this. The CS3 projector is a bit bigger. But it's really not all that odd since it has both the AS3 and AS2 virtual machines inside. /martin matt stuehler wrote: All, I recently switched from Flash 8 Pro to Flash CS3 Pro. I just noticed today that my published SWFs and EXEs are considerably larger when I publish them with CS3 than they were when published from F8, even though the FLAs are the same. In other words, I took an FLA that was saved as a CS3 file. When published, the SWF was 980kb, and the EXE was 3,423kb. I saved the FLA as a Flash 8 file (since it doesn't us AS3 or any CS3 functions), republished, and the SWF was 879kb and the EXE was only 2,434kb. That's a pretty big difference (~30% for the EXE), for exactly the same functionality. I can live with the Adobe bloat in the CS3 IDE, but I didn't think that it was going to cost me in terms of the resulting SWF filesize. Has anyone else noticed this? Am I making a mistake, or missing a publish option? Many thanks in advance for your advice and insight. Cheers, Matt Stuehler ___ 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@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@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
Re: [Flashcoders] long dash
In Html use tag sup/sup sub/sub Regards. D. Santhosh Babu - Original Message - From: Hairy Dog Digital To: flashcoders@chattyfig.figleaf.com Sent: Friday, August 24, 2007 12:16 AM Subject: RE: [Flashcoders] long dash Here's my quick list of unicode characters for htmlText... string symbol -- --- \u2122 trademark (TM) symbol \u00A9 copyright (C) symbol \u2018 single opening (left) quote \u2019 single closing (right) quote \u201C double opening (left) quote \u201D double closing (right) quote \u00AE registered trademark (R) symbol \u2013 en dash \u2014 em dash \u2022 bullet Whatever character you need, just make certain it is a glyph in the font you are using and that you specify the unicode hex value of the character using the format \u. ...Rob ___ 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@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
RE: [Flashcoders] long dash
Those tags are not properly supported in Flash text fields. (At least they weren't as of Flash 8, haven't put CS3 through its paces yet.) -Original Message- From: Santhosh Babu D [mailto:[EMAIL PROTECTED] Sent: Thursday, August 23, 2007 7:46 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] long dash In Html use tag sup/sup sub/sub Regards. D. Santhosh Babu - Original Message - From: Hairy Dog Digital To: flashcoders@chattyfig.figleaf.com Sent: Friday, August 24, 2007 12:16 AM Subject: RE: [Flashcoders] long dash Here's my quick list of unicode characters for htmlText... string symbol -- --- \u2122 trademark (TM) symbol \u00A9 copyright (C) symbol \u2018 single opening (left) quote \u2019 single closing (right) quote \u201C double opening (left) quote \u201D double closing (right) quote \u00AE registered trademark (R) symbol \u2013 en dash \u2014 em dash \u2022 bullet Whatever character you need, just make certain it is a glyph in the font you are using and that you specify the unicode hex value of the character using the format \u. ...Rob ___ 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@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@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] Recording Webcam - not enough keyframes
Hello: I need to generate keyframes inside an FLV. I'm doing a small web app that records the webcam onto a Red5 server. I need the resulting FLV files on the server to have at least 2 keyframes per second. I'm using *setMode*, *setQuality* and *setKeyFrameInterval* to attempt to control the quality and framerate of the uploaded video When I record within a LAN, everything is fine. I get a lot of keyframes on my FLV files. But when I record on the internet (e.g. 128kbps upstream) I get keyframes every 5 or 6 seconds. I know I can't challenge physics, so I think there's a way to generate additional keyframes on the server side FLV. I don't care if the file size is increased because I'm planning to download the files via HTTP. I just need to be able to jump from any second to any other second, and I belive I need 1 keyframe per second to achieve that. I know Flash Media Server has the enhanced seek feature that forces the server to generate keyframes on demand, so it is possible to seek to any given frame in the video. Anyway i think this feature only works when playing back a video via rtmp. So what I actually need is a way to generate keyframes inside an FLV file that was previously recorded. I can be a process that runs after a video was recorded. Any ideas? Thanks, JulianG ___ 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
Re: [Flashcoders] [OT]Server-side knowledge to complement Flash F ront end
Hi, another option is making sure you have a pool of people who you can count to do work like that for you:). Not that being able to develop the server side is a bad thing, but like you said there are only so much hours in a day. greetz JC On 8/23/07, Dave Watts [EMAIL PROTECTED] wrote: I would suggest WebServices as a technology that will be applicable to lots of applications. Axis from Apache has a lot of tools, documentation and links to other documentation. You will need to choose a platform from which to run web services, and your choices are basically the same as they are for web applications - ASP.NET, ColdFusion, Java, etc. In addition, a sound understanding of web application server programming is a prerequisite for web service development. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ___ 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@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