Re: [Flashcoders] importing large string into Flash
In as3 there's some gunzip function http://blog.xsive.co.nz/archives/140 On 1/10/07, Mick G <[EMAIL PROTECTED]> wrote: I have external texts file that I'm loading into Flash containing strings like this &content=1243,24,2423423,4235436,64564,64,45,6767867,8768,76... etc. Many of these text files I'm importing are over 100K. Can anyone things of a way to import this data into Flash to improve download times (ie, some type of compression that decompresses in Flash, etc.). I originally had this data in a database and called this data via AMFPHP and the data transfer was fast but for various hosting reasons I have to keep this data as text files. any ideas? - Mick ___ 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 -- /* Bored, sometimes. */ ___ 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] Resrict number of lines input textfield
You can check textfield.maxscroll On 12/20/06, Danny Kodicek <[EMAIL PROTECTED]> wrote: > Hi all, > I need to restrict user input to a certain number of lines in > a textfield. > Flash 8, AS2. > After an extensive search something like this showed up: > > //txtFld is obviously the TextField, n is the max number of > lines shrinkString = function (txtFld, n:Number):Void { > var l = txtFld.text.length; > for (var i = 0; i txtFld.scroll = txtFld.maxscroll; > if (txtFld.bottomScroll>n) { > txtFld.text = txtFld.text.slice(0, -1); > } else { > break; > } > } > }; > myTextField.onChanged = function() { > shrinkString(this, 10); > }; > > This is close to what I need but it has a major drawback; it > simply cuts off the text at the end. So when a user inserts a > 'return' an entire line of text disappears. How about something like this? obj = new Object() obj.maxHeight = 100 obj.currText = txtField.text obj.onKeyDown = function () { this.currText = txtField.text } obj.onChanged = function() { if (txtField.textHeight>100) { txtField.text = this.currText } } txtField.addListener(obj) Key.addListener(obj) 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 -- /* Bored, sometimes. */ ___ 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] MX transitions: Website that shows examples?
I love mc_tween! http://hosted.zeh.com.br/mctween/ -- /* Bored, sometimes. */ ___ 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] FLV video and How did they do it?
Myth bustered! There's no special effect or complicated streaming from FMS. I downloaded it's flv file and put in my flash. If you scale the video 50%, or anything less than 100%, you will get the aliased effect (are u sure it's an effect?), if you scale it back to 100%, the thing shows normal. Wouldn't be hard to figure out what code they are using. on(release){ if(_xscale==100){ _xscale=_yscale=50; }else{ _xscale=_yscale=100; } } On 12/8/06, Michael Stuhr <[EMAIL PROTECTED]> wrote: Berkay Unal schrieb: > The things is that i ahve tested their FLV player with a local flv i have > created but it does not work. > > Can it be smthing with the encoding of the FLV . A special program used ? > > > > what isit you want to achieve ? micha ___ 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 -- /* Bored, sometimes. */ ___ 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] passing parameters to function on context menu
var cm:ContextMenu=new ContextMenu(cmHandler); function cmHandler(){ trace("menu open"); } var item1=new ContextMenuItem("item 1", itemHandler); item1.value=1; cm.customItems.push(item1); function itemHandler(obj, item){ trace("item value: "+item.value); } this.menu=cm; On 12/8/06, Marc Hoffman <[EMAIL PROTECTED]> wrote: Not sure why you'd need to pass parameters, since the context menu is established by your code and doesn't allow sub-menus (from what I've read). Whatever parameter you need to pass, I assume it's a result of something else happening in the movie, so why not store it in a variable in the movie and then access it as part of the function _test? If the parameter varies depending where the user right-clicks, you'd need a new context menu for that area of the stage, or you could evaluate where the mouse cursor is and use that to generate the parameter. If you need variations on the function from a single context menu, just create more custom items (up to 15 are allowed). Or am I missing something? Marc Hoffman At 12:38 PM 12/7/2006, you wrote: >Hi! >I have this code: >var cm:ContextMenu = new ContextMenu(); >cm.hideBuiltInItems(); >cm.customItems.push(new ContextMenuItem("My menu", _test)); >my_dg["menu"] = cm;//my_dg is an data grid component > >How i can pass parameters to function _test ___ 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 -- /* Bored, sometimes. */ ___ 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] Extracting file details
http://www.phpclasses.org/browse/package/1653.html On 12/6/06, Helmut Granda <[EMAIL PROTECTED]> wrote: Maybe this is not the right list but I thought I would give it a shot. Is there anyway to get file details like FPS, BG Color and such from a SWF? with flash or with PHP? TIA for any ideas... helmut ___ 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 -- /* Bored, sometimes. */ ___ 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] Random between, with sticklers
yup, you are correct. No point of setting two ranges, plus 1 or minus 1 is good enough. Thanks. On 12/5/06, Danny Kodicek <[EMAIL PROTECTED]> wrote: > I thought of something. > > function randomRange( min, max, currNum):Number { >if(Math.random()>0.5){ > max=currNum; >}else{ > min=currNum; >} >return Math.round(Math.random()*(max-min))+min; > }; > That's going to skew your function something chronic. No, what you need is this: function randomRange(min, max, curr) { var nNum = Math.round(Math.random() * (max-min-2) ) + min if (nNum>=curr) {nNum+=2} return nNum } 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 -- /* Bored, sometimes. */ ___ 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] Random between, with sticklers
I thought of something. function randomRange( min, max, currNum):Number { if(Math.random()>0.5){ max=currNum; }else{ min=currNum; } return Math.round(Math.random()*(max-min))+min; }; On 12/5/06, eric dolecki <[EMAIL PROTECTED]> wrote: I'd like to get a random number between 2 values, with a stickler that it can't be a current value, and it can't be the current value +1 var nCurrentValue:Number = 1; function randomRange( min, max):Number { var nNum = Math.round(Math.random() * max) + min; return nNum; // Would like to add conditional: if nNum == nCurrentValue || nNum == nCurrentValue+1, get another random number until we get one thats okay... }; What is the best way of handling that? Using a while statement or something? I could use an interval, but that seems messy to me. - e. ___ 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 -- /* Bored, sometimes. */ ___ 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: Keyboard accessibility and sliders
I think you can use onKillFocus and onSetFocus. When onSetFocus. Your key listners always update the current focus scrollbar (e.g. set a reference as currScrollbar) when onSetFocus, currScrollbar=this On 12/5/06, Dave Wood <[EMAIL PROTECTED]> wrote: Hi Dan Thanks for your comments. The use of arrow keys has been requested by the client. I may have to try and talk them out of it. But it makes sense visually - the sliders are arrows pointing left and right, and it's important that the user can slide them as little or as much as they like (constrained only by their extreme left and right limits). My plan was to use left and right arrow keys and a setInterval so they can be moved smoothly and easily. If the choice is to either follow the rules and make it cumbersome, or break the rules make it easy, my choice would be to make it easy for non-mouse users. Just looking for the best way. Thanks David > Standard keyboard accessibility states that the tab and enter key > are the 2 > keys that can be used. ie. These map to switch users keys as > standard. So > what you can do is tab to the slider and then on an enter press the > slider > can increment an amount and so on, until the next tab to the next > acccessible item. You can even mark the increments on the slider if > you > want. > > Your slider will then be accessible to all user including 1 switch > users. > > It is standard that you tab between items and and enter hit does > the item > action. > > Dan M ___ 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 -- /* Bored, sometimes. */ ___ 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] Screensavers...
I use screentime. It's not free but quite some features and it supports mac too. On 12/4/06, John Hattan <[EMAIL PROTECTED]> wrote: I've done screensavers with Screenweaver and had good luck. The one thing that puts it ahead of Zinc for screensavers is that you can set up an SWF file to appear as the setup-dialog if somebody presses the "settings" button on the Windows display preferences. That way you can add settings for your screensaver. And it's free :) I haven't tried the other projector-tools, so I can't comment on them. Jason Ross wrote: > Hi ... > > Any advice on what we should / could use to deploy Flash based screen > savers. The screen savers may be pretty AS heavy. > > Thanks, > > Jason. > > Legal Disclaimer: > This email message (including any attachments) is strictly confidential and is intended only for the person(s) or organisation(s) named above. The unauthorised use, disclosure, distribution and/or copying of the email message, or any information it contains (including any attachments), is strictly prohibited and could in certain circumstances constitute a legal offence. If you are not an intended recipient, please contact the sender immediately by return email and delete the email from your system. > > Internet email communications are not always secure and may be susceptible to data corruption, interception and unauthorised amendment, and therefore "View" does not accept legal responsibility for the contents of this message for any such corruption, interception or amendment or the consequences thereof nor any delay in its receipt. > > Although this email message and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free. No responsibility is accepted by "View" for any loss or damage in any way arising from its use. > > Any views expressed by the sender of this message are not necessarily those of "View". > _ > This message from View has been checked for all known viruses by the > MessageLabs Virus Control Centre. > ___ > 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 -- /* Bored, sometimes. */ ___ 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] perspective texture mapping
Not sure whether you've seen this. http://www.flashsandy.org/ On 11/30/06, Boon Chew <[EMAIL PROTECTED]> wrote: I am investigating the different ways one can implement or simulate perspective texture mapping both using Flash 8 API (e.g. with bitmapdata) and without using Flash 8 API (without bitmapdata, how?). Anyone with experience in this or knows of any resources exploring this topic? - Check out the all-new Yahoo! Mail beta - Fire up a more powerful email and get things done faster. ___ 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 -- /* bored */ ___ 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] TextInput receive focus with flashing cursor?
I checked the javascript method before. Only works in IE and there's no work around found for Firefox. You have to play some trick to the user. Ask them to click at it first. On 11/24/06, Miguel Angel Sánchez <[EMAIL PROTECTED]> wrote: Flash movie has to have the focus to display the flashing cursor in a TextField. In order to do that the user has to click on Stage or some other object. I'm not sure but I think you can use javascript to give focus to the flash movie when the page loads. {reduxdj} escribió: > How do I make the cursor flash inside a textbox and receive input. > Selection.setFocus is a scam. > > Anybody? > > Happy thanxgivin' to and yours! > > Thanks, > Patrick > > ___ > 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 -- /* bored */ ___ 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] connecting excel spread sheet to Flash
I have just done something like that. I used excel save as xml method. One thing you need to notice is that, this line gives some problem. use this code to solve it, http://www.daniweb.com/techtalkforums/thread37915.html Hope this helps. On 11/22/06, nik crosina <[EMAIL PROTECTED]> wrote: Hi guys, For a flexible sales presenter we need to connect a spread sheet (excel) to Flash and selectively display the content of various cells of it. The spreadsheets themselves will be designed to be printable versions of the corresponding screens in Flash. Is this possible, or are we barking up the wrong ttree so to speak? Thanks for your help!! -- Nik C ___ 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 -- /* bored */ ___ 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] I have a flash question for you.
In Flash API, it has these 3 lines for fscommand: None of the commands described in the table are available in web players. All of the commands are available in stand-alone applications, such as projectors. Only allowscale and exec are available in test-movie players. I guess the catchallkeys won't work. I found some javascript code from http://forum.java.sun.com/thread.jspa?threadID=416158&messageID=1843761 I've tried it and it works. Start from there and send the event to flash. Cheers, Shang On 11/22/06, Alfonso Elenes <[EMAIL PROTECTED]> wrote: I have a flash question for you. I am working on some software simulations in flash. One of the keys the user needs to use in the simulation is the F6 key. This works fine when just playing the swf outside of the browser. However, in Internet Explorer the IE F6 control overrides the flash action. Do you know any way around this, or do you have any suggestions? _ View Athlete's Collections with Live Search http://sportmaps.live.com/index.html?source=hmemailtaglinenov06&FORM=MGAC01 ___ 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