Re: [Flashcoders] Creating a SWF to dynamically create SWF';s
Hey Johan, actually it seems you can with the undocumented function MMsave For those of us still using the buggy IDE on mac to find the swf you'll probably actually need to this: Regarding my issue I have found a workaround for the mac version. It does work, but the odd path has to be accessed differently. Path: /Applications/Macromedia Flash 8/Configuration/AuthPlayLib.bundle/Contents/ If I option click the FILE [AuthPlayLib.bundle] and Show package content (similar to opening a zip archive) I do actually end up finding the file. The annoying thing is that I do not seem to be able to prefix it with ../../ or something simlar to get outside that annoying step. My guess is that this is due to security settings, but at least I am able to export the file. taken from http://www.actionscript.org/forums/archive/index.php3/t-87875.html On 10/5/06, Johan Karlsson [EMAIL PROTECTED] wrote: Simple put: it can't! It can't create anything outside the running player on its own. It needs a 3rd party projector generator like Zinc or some kind of serverside technology to create new files... /Johan -Ursprungligt meddelande- Från: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] För Peter O'Brien Skickat: den 5 oktober 2006 10:51 Till: Flashcoders mailing list Ämne: Re: [Flashcoders] Creating a SWF to dynamically create SWF';s How can a swf generate a swf? I've been asked about the subject of dynamically creating a bunch of swfs. I guess mtasc, swfmill and perhaps ant tasks - tho i know next to nothing about ant tasks. Another way would be to use jsfl. but how can a swf generate swfs? ___ 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] Creating a SWF to dynamically create SWF';s
How can a swf generate a swf? I've been asked about the subject of dynamically creating a bunch of swfs. I guess mtasc, swfmill and perhaps ant tasks - tho i know next to nothing about ant tasks. Another way would be to use jsfl. but how can a swf generate swfs? ___ 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] jsfl - loop through all textfields?
Hi guys, Could anyone sample a jsfl script that will loop through all textfields that sit on a FLAs stage (many frames). I want to change the font and the anti-alias on all of them. Have tried google but can't find what I'm looking for. I have Extending Flash MX 2004 which is pointing me to textAtts but I'm finding it quite hard getting started. Thanks in advance if anyone can help. Pete ___ 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] jsfl - loop through all textfields?
Danny, thanks very much you have saved me alot of time and frustration, and jsfl has too! Heartfelt thanks to you both! On 9/7/06, Danny Kodicek [EMAIL PROTECTED] wrote: Here's one I used before. It exports the text itself rather than the fields (I was using it to get the text into a spreadsheet), but you should be able to adapt it to your needs. function findAllText(tTimeline, tPath) { var tArray=new Array() var tText= var tRuns=0 var tOpening= var tClosing= var tRun=0 for (var i=0;itTimeline.layers.length;i++) { var tLayer=tTimeline.layers[i]; for (var j=0;jtLayer.frames.length;j++) { var tFrame=tLayer.frames[j]; for (var k=0;ktFrame.elements.length;k++) { var tElement=tFrame.elements[k]; if (tElement.elementType==instance) { if (tElement.instanceType==symbol) { var tLib= tElement.libraryItem; if (tLib.itemType==movie clip||tLib.itemType==component||tLib.itemType==button) { tArray= tArray.concat(findAllText(tLib.timeline,tPath+ +i+ +j+ +k)); } } } else if (tElement.elementType==text) { tText= tRuns=tElement.textRuns for (var r=0;rtRuns.length;r++) { tOpening= tClosing= tRun=tRuns[r] tAttrs=tRun.textAttrs if (tAttrs.bold) { tOpening=tOpening+B tClosing=/B+tClosing } if (tAttrs.italic) { tOpening=tOpening+I tClosing=/I+tClosing } if ( tAttrs.characterPosition==subscript) { tOpening=tOpening+SUB tClosing=/SUB+tClosing } else if ( tAttrs.characterPosition==superscript) { tOpening=tOpening+SUP tClosing=/SUP+tClosing } tText=tText+tOpening+tRun.characters.split(\r).join(BR)+tClosing } tArray.push(new Array(tText,tPath+ +i+ +j+ +k)); } } } } return tArray } Danny ___ 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] MovieClipLoader Reusage
try subbing your code from onLoadComplete to an onLoadInit function, that looks like it should do the trick On 9/7/06, Helmut Granda [EMAIL PROTECTED] wrote: Can the MovieClipLoader class be reused? I have the following code: var myMCL:MovieClipLoader = new MovieClipLoader(); var myListener:Object = new Object(); myListener.onLoadComplete = function(targetMC:MovieClip):Void { trace(loaded + targetMC); myMCL.loadClip(right2.swf, img2);//--This makes the Movie Loop and never load the next item. } myListener.onLoadStart = function(targetMC:MovieClip):Void { //targetMC.stop(); trace(Started); } myListener.onLoadProgress = function(targetMC:MovieClip):Void { trace(In Progress); } this.attachMovie(img, img, 50); this.attachMovie(img, img2, 51); myMCL.addListener(myListener); myMCL.loadClip(right1.swf, img); //-- It is straight forward, creae a Loader as well as an object and it works great for the first load, but once I fire the next load it fails. Basiclly what I want to do is have an array with different movies that will load to the users cache for later use. TIA. ___ 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] PRINTJOB HELL, PRINTJOB NIGHTMARE with several PAGES
Hey guys thanks for the code and input. The route I think I'm taking because it's html text and formatted, is to keep trimming at br's and checking if page is not too high. The page to print symbol I'm using has an aspect ratio for an A4 page (1: 1.414) and one big html text field (with 20px blank padding around it) Here's the code (which works) so far: private function processPagesToPrint():Void { _pagesToPrint=[]; _excessText=entireHtmlFormattedTextContent;// can be a few lines or pages constructPage(); } private function constructPage():Void { var pageToPrint=this.attachMovie ('pageToPrint_justText','p'+(_pagesToPrint.length+1),getNextHighestDepth(),{_x:720}); _pagesToPrint.push(pageToPrint); var tf:TextField=pageToPrint.tf; tf.styleSheet=STYLESHEET; tf.htmlText=_excessText; // if the page is not too high without having to trim we're good to go if(tf.textHeight=tf._height){ trace('pages processed, and number to print ='+_pagesToPrint.length); // display this info to user so they know before they hit print } // otherwise we'll trim and then construct another page else{ _excessText=; trimPage(tf); } } private function trimPage(tf:TextField):Void { // cut the text after the last 'br' var str:String=tf.htmlText; var lastBr=str.lastIndexOf('br'); tf.htmlText=str.substring(0,lastBr); _excessText=str.substring(lastBr,str.length)+_excessText; // if page is trimmed enough if(tf.textHeight=tf._height){ constructPage(); } // otherwise keep trimmin else{ trimPage(tf); } } private function printPages():Void { _printJob=new PrintJob(); if(_printJob.start()){ var len=_pagesToPrint.length; for(var i=0;ilen;i++){ _printJob.addPage(_pagesToPrint[i]); } _printJob.send(); } } On 8/18/06, Danny Kodicek [EMAIL PROTECTED] wrote: How can you efficiently fill a textfield to the point in which you know it is completely full? Here's a revised version using a word array. But as I said, including formatting would be more difficult and significantly slower. I tend to agree with Meinte that in this case you're better off using scrolling (although the function below may be of interest in any case) function fillField(fld:TextField, txt:Array, curr:String) { if (curr == undefined) { curr = ; } var len:Number = txt.length; if (len == 0) { } else if (len == 1) { fld.text = curr + txt[0]; if (fld.textHeight fld._height) { fld.text = curr; } } else { var half:Array = txt.slice(0, len / 2); fld.text = curr + half.join( ); if (fld.textHeight fld._height) { fillField(fld, half, curr); } else { fillField(fld, txt.slice(len / 2), fld.text + ); } } } I tested it with fillField(test, src.text.split( )); Danny ___ 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] PRINTJOB HELL, PRINTJOB NIGHTMARE with several PAGES
I have the same problem as the original poster. I don't suppose anyone can provide more info as a solution than Hans, or Hans if you're there I would love to see some code. What are flash mc dimensions to match an A4 page? Doesn't it vary according to screen resolution? How can you efficiently fill a textfield to the point in which you know it is completely full? Cheers, Pete On 4/24/06, Van De Velde Hans [EMAIL PROTECTED] wrote: You get your text from the textarea and you do this: Dynamically attach a movieclip from the library with a preformatted textfield that exactly fits an A4 page (set movieclip to _visible = false to do it invisibly) and fill the textfield up with the text from your textarea until the textfield is full. Then you add to movieclip to the printjob and push the reference to the movieclip to an array. Cut the remaining text and fill up the next one... Create a loop of this to write out all your text. After all text is written out, you execute the printjob and remove all the movieclips with removeMovieClip by looping the array of movieclips. NOTE : this is easier than it seems. Been there, done that, Regards, Hans. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of julian atienza Sent: maandag 24 april 2006 17:26 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] PRINTJOB HELL, PRINTJOB NIGHTMARE with several PAGES Hi. I wanted to Print contents of a long Scrollable textArea with Flash, but it's a kind of nightmare. I tried to made a class to manage Printing (with a PrintJob object inside) , and one empty swf that Creates Dynamically the TextArea and the Class to ManagePrinting, who feeds textArea with contents and scroll TextArea adding page by page contents. Problems: - The Scrolled area in Screen doesn't appeared to be the same than the printable area (each Page, i see repeated contents... why? i just don't know . IT's like the scroll doesn't scroll propertly). - Of course, sometimes, appeared incomplete text (with a cut at the middle) because i don't know any mechanism to avoid it at the moment. Somebody have any idea - the contents to print will be sometimes of 5 or 6 pages DIN A-4 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 ___ 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] mirror effect using bitmapdata and matrix
Hi coders, I am trying to get a mirror effect to work. The effect has a number of x and y reflections in a set sized mc (this case a 240x180), which is intended to result in a tiled effect (the more reflections the smaller the tile) Senoculars tutorial on the matrix is pretty comprehensive but I can't quite get my creation to work, below is the function i have written so far, if anyone could enlighten me would be great: public function mirror(mc:MovieClip):Void { var mcSnapshot:BitmapData=new BitmapData(240,180,false); mcSnapshot.draw(mc); var mcMirror=mc.createEmptyMovieClip('mcMirror',1); var mirrorBmpd:BitmapData=new BitmapData(240,180,false); var totalReflections=_reflectionsInX*_reflectionsInY; var xUnit=240/_reflectionsInX, yUnit=180/_reflectionsInY; var a=1/_reflectionsInX; var d=1/_reflectionsInY; for(var i=0; itotalReflections; i++){ var xc=i%_reflectionsInX; var yc=Math.floor(i/_reflectionsInY); var xReverse = (xc%2) ? 1 : -1; var yReverse = (yc%2) ? 1 : -1; var m:Matrix=new Matrix(a*xReverse,0,0,d*yReverse,xc*xUnit,yc*yUnit); mirrorBmpd.draw(mcSnapshot,m); } mcMirror.attachBitmap(mirrorBmpd,1); } Best, Pete ___ 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] is extending TextField usable with AS2?
title says it all really, I'd prefer not to use prototype, is there anyway I can make an instance of my AS2 extension of TextField? ___ 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] Single giant bitmap vs Multiple smaller bitmaps - Performance Effects?
Hey lee, thanks for your thoughts, but we'll only be scaling the giant bitmaps (2 of them) up to about 300%. It works ok at the moment with both a 4000px and 6000px (bitmap filled) mc being tweened across the horizon. i just wanted some clarification on whether this is pretty bad for performance, as opposed to chopping them up. I think chopping them up is better, a colleague (or a boss rather, he's on this list) believes its not a problem for performance which if is correct is great news ___ 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] Why a strange character inserted before the £ sign in a textfield?
This is really wierd to me. The following line in an application: tf.text = obj.prop + ' = £' + obj.amt; ... is outputting a wierd character before the pound sign. (On the mac it looks like L rotated 90degrees, on windows it looks like an A with a hyphen above it) It's a dynamically created textfield with stylesheet, not html text, and i don't want to have to reconfigure the app to try html text and change t_fmts for css etc. Can anyone suggest a fix? or a reason why it's happening? I've tried creating new flas, on different platforms, but still it appears. Of course if I try the equivalent in an empty fla, with no application, no sign precedes the £ ___ 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] EventDispatcher being un-initialized
Don't know if this might help but are you initialising EvtDis serpartely in the classes constructor before initializing the class in a separate call like init() for example Manuel Saint-Victor [EMAIL PROTECTED] wrote: I have a Singleton that I am trying to l have dispatch events but for some reason even though I use EventDispatcher.initialize(this); in my constructor it is not dispatching. I am finding that if I reinitialize it within my method call that it is able to dispatch once again but this seems to me like a waste of resources. Has anyone encountered a similar problem? Thanks, Mani ___ 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] EventDispatcher being un-initialized
sorry i was unclear. i suggest not calling init() from the constructor but from where you are creating the class. that way init is called after the instance of the class has been fully created. Manuel Saint-Victor [EMAIL PROTECTED] wrote: Yes - in my constructor I am calling the EventDispatcher.initialize(this); and then the next line is init(); On 3/23/06, Peter O'Brien [EMAIL PROTECTED] wrote: Don't know if this might help but are you initialising EvtDis serpartely in the classes constructor before initializing the class in a separate call like init() for example Manuel Saint-Victor [EMAIL PROTECTED] wrote: I have a Singleton that I am trying to l have dispatch events but for some reason even though I use EventDispatcher.initialize(this); in my constructor it is not dispatching. I am finding that if I reinitialize it within my method call that it is able to dispatch once again but this seems to me like a waste of resources. Has anyone encountered a similar problem? Thanks, Mani ___ 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] SEO for Flash .....
On 16 Mar 2006, at 10:21, Adrian Park wrote: Does anyone have any good links or advice for optimising Flash for search engines. There's alot of stuff out there on this like SEFFS http:// wahlers.com.br/claus/blog/seffs-to-flash-or-not-to-flash/ and this recent post at deconcept is another approach: http:// blog.deconcept.com/2006/03/13/modern-approach-flash-seo/ check the archives, this question has been asked a lot over the last 18 months ___ 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] stop() an empty movieclip still relevant for FP8?
Looking at converting someone elses AS1 code to AS2, and there's a practise of: createEmptyMovieClip('ex',1); ex.stop(); which is noted to save cpu usage. Is this a relevant optimisation for FP8? ___ 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] Robust Drawing Classes?
I can't testify to their quality but Senocular has some pretty interesting looking drawing classes you might want to check out: http://www.senocular.com/flash/actionscript.php?file=ActionScript_2.0/ com/senocular/ProgressiveDrawing.as On 22 Feb 2006, at 11:51, Luca Candela wrote: Hi, does anyone knows if there are nice a well built drawing classes (for free) to use in Flash 8? The drawing api in flash is a pain the ass, too much work to do anything... I would be happy with boxes, cirlces, n-gons... the more, the better! ___ 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] setInterval() and the trouble
perhaps it's liable to change On 30 Oct 2005, at 21:50, Derek Vadneau wrote: Actually, it's not documented. I remember reading about it at some point, but the local docs and livedocs do not have setTimeout, and it does not light-up for syntax highlighting. It works, but why this would not be documented is beyond me. Derek Vadneau -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steve Rankin Sent: Sunday, October 30, 2005 4:37 PM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] setInterval() and the trouble Not sure, but it's in the new ActionScript 2.0 Language Reference for Flash Player 8. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] TextField - how to put caret into textfield?
Selection.setFocus('my_tf'); should be Selection.setFocus(my_tf); On 21 Oct 2005, at 13:38, Oleg Filipchuk wrote: Hi list. maybe this is trivial question but I didn't google the way to do it. I need to create TextField and put the blinking caret into TextField without user clicking on TextField. var my_tf:TextField = this.createTextField ( '_tf', 0, 0, 0, 100, 20); my_tf.border = true; my_tf.type = 'input'; Selection.setFocus('my_tf'); thanx, Oleg ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] MM combo box doesn't drop down in the browser... ?
hi guys and gals, i haven't all the much experience working with components so I might be missing something very obvious (I hope!) my combo box drops down fine in the IDE, but not in the browser (safari firefox tested), it just shows the first item and refuses to drop...? i've tried waiting a frame, but still no joy... can anyone advise? thanks code snippet: cb_mc.onEnterFrame=function(){ var cbDp=[{data:1,label:London},{data:2,label:Essex},{data: 3,label:South West},{data:4,label:Luton}]; var cb=this.createClassObject(mx.controls.ComboBox,'contactWho',1, {_x:150/*,_width:150*/}); cb.dataProvider=cbDp; delete this.onEnterFrame; }; ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Differences between mac and windows flash text fields?
I have been creating a flash which includes alot of text loaded from xml (in CDATA chunks). I have been inserting 'br' between the p's to create some vertical spacing like so public function addBRtoPs(string:String):String { while(string.indexOf('/pp',0)!=-1){ string=string.substring(0,string.indexOf('/pp',0)+4) +br+string.substring(string.indexOf('/pp',0)+4); } return string; } Now this spacing works fine on the mac, so I was all happy in my bubble, until now I suddenly realise on windows there are still no line spacings between paragraphs etc. I'm confused, can anyone advise why this is so? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders