Re: [Flashcoders] How to Create Flex Projector
It´s Flex 2. But if I create a projector using flash 8, it will run using AS2. So, when I load the Flex swf, wich is AS3, it will not work. The plugin 9 will not be inside de exe. Am I right? On 8/7/06, Merrill, Jason <[EMAIL PROTECTED]> wrote: If it's Flex 1, I don't think your licensing agreement with Adobe will let you do that. If it's Flex 2, you create .swf files. Load those .swf files into a .fla in Flash 8, and publish an .exe projector. Put the .exe and the .swfs on the CD. Jason Merrill Bank of America Learning & Organization Effectiveness - Technology Solutions >>-Original Message- >>From: [EMAIL PROTECTED] [mailto:flashcoders- >>[EMAIL PROTECTED] On Behalf Of Marcos Neves >>Sent: Monday, August 07, 2006 1:11 PM >>To: Flashcoders mailing list >>Subject: [Flashcoders] How to Create Flex Projector >> >>Hi, >>I need to create a Flex apllication that runs on an exe projector for a CD-ROM. >>How can I do that? >>___ >>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] How to Create Flex Projector
Hi, I need to create a Flex apllication that runs on an exe projector for a CD-ROM. How can I do that? ___ 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] Most efficient way to set a ColorTransform property on a MovieClip
This is a classic object oriented problem. The MovieClip can´t know that the rbg property has changed from his ColorTransform property. There ar 3 solutions: The first is the easier for Macromedia but worst for us programers. The movieClip, update its ColorTransform when you set it, like this mc.colorTransform = new ColorTransform The second solution would be with listeners. When you assign mc.colorTransform = new ColorTransform, the movie clip do colorTransform.addEventListener(COLOR_CHANGE, The third would be the color transform has a reference to the movieClip and do the same done on the first situation, so when you assign colorTransform.rbg = 0xFF the color transform do: parentMovieClip.colorTransform = this (where this is the colorTransform) Those solutions are fine if you want to change only one property, but if you change 6 properties, the movieClip would be updated 6 times on the last two solutions. Unless the movieClip waits to update only at some internal refresh frame event (but this is with macromedia). My suggestion is create a helper class that would do the follow? new HelperColorTransform(movieClip).rgb = 0xFF; and inside you would do what you can´t do with one line of code. Let´s extends the discussion, since this problem exists in many places of Flash. On 8/2/06, Mark Walters <[EMAIL PROTECTED]> wrote: What would be the quickest most efficient way to apply a ColorTransform and set the rgb property on a MovieClip? With the Color object, you could use the following line: (new Color(my_mc)).setRGB(0x00); ... and if you extended the Color class and added an rgb getter setter, the following would work as well: (new XColor(my_mc)).rgb = 0x00; ... but with ColorTransform, I can't seem to find a single line solution. I've tried: (my_mc.transform.colorTransform = new ColorTransform ()).rgb = 0x00; ... which doesn't work, although it also doesn't throw an error. I know that I can pass in all the parameters (rm, gm, bm, etc) into the ColorTransform constructor and get it to work on a single line, but I've extended the ColorTransform class and want to be able to call the methods and properties the most efficiently. If anyone could help, that would be very much appreciated. Thanks. ___ 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] scale9grid how to
digging the docs, I found this: "Flex supports scale-9 formatting of embedded images. The scale-9 formatting feature lets you define nine sections of an image that scale independently" at Flex 2 Developer's Guide > Flex Programming Topics > Embedding Assets Embedding asset types And this at the same page: "An embedded SWF file may already contain scale-9 information specified by using Flash Professional. In that case, the SWF file ignores any scale-9 parameters that you specify in the embed statement." I try both inside an actionscript project but didn´t work. Any working example using scaleGridTop, scaleGridBottom, scaleGridLeft, and scaleGridRight? On 7/21/06, Charles Parcell <[EMAIL PROTECTED]> wrote: Here are my thoughts. Based on the image you passed on in one of your previous postings, it looks like you are building a drop down list component. I would assume that you wanted slice9 so you could scale the component in the X direction for longer strings. Is this a correct assumption? You might want to break your image into three (3) columns. Col 1 would be an image from the left edge of the image to just right of the first black line. The second would be a single pixel column between the left and right black lines. The third column would be from just to the left of the right black line to the right edge of the image. With these three graphics you can build a X scaled component of any width. Simply replicate the single pixel column to create a text area the size you need. Use the BitmapData class to build the image and simply dump the resulting image in to a MC. This is but one example of the power held by imaging code new to Flash 8 ( copyPixels() for example ) Charles P. ___ 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] scale9grid how to
I found some workarounds at design time. But i´m still can´t use [Embed] to include my vector or bitmap and use it as scale9grid. Perhaps there´s some implications that I can´t see, to "Macromedia" didn´t implement that. "Some unique effects can be achieved by 9-slicing multiple movieclips and then stacking them." "Also, you can use a 9-sliced movieclip as a mask for another movieclip, which could contain a textfield." I´m curious about how to do that! On 7/20/06, Tom Lee <[EMAIL PROTECTED]> wrote: If you must use a bitmap, you might look into the Splice9 JSFL extension at http://www.brajeshwar.com/downloads/jsfl/splice9/. This extension is an author-time solution to the problem. If possible, however, I would suggest converting your PNGs to vectors. With the filters now available in Flash, there isn't much that you can do with bitmaps that you can't do with vectors. Also, vectors often yield smaller file sizes, and scale without degradation. Instead of putting textfields and movieclips inside the 9-sliced movieclip, how about putting them on top of it? You might consider using the 9-sliced clip as a background layer, and then controlling the width and height of the textfields separately. Some unique effects can be achieved by 9-slicing multiple movieclips and then stacking them. Additionally, you can put multiple shapes in the same movieclip on different layers and all the shapes will be affected by scale9grid. Also, you can use a 9-sliced movieclip as a mask for another movieclip, which could contain a textfield. With a creative combination of techniques, you should be able to achieve the desired result. You may not be able to do it with 9-slice alone, however. -tom -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marcos Neves Sent: Thursday, July 20, 2006 2:56 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] scale9grid how to I´m using for interface components too. I import a png button and align the guides to my needs. But it doesn´t work. I found an "ugly" workaround for this. Textfields and movieClips inside would be good too. On 7/20/06, Tom Lee <[EMAIL PROTECTED]> wrote: > I'm curious how you originally intended to use 9-slice scaling - the uses I > would have for 9-slice would be interface component backgrounds and so > forth, for which it would be far from useless. If you tell us what you're > trying to do, perhaps we can suggest an alternate approach? > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Marcos Neves > Sent: Thursday, July 20, 2006 2:09 PM > To: Flashcoders mailing list > Subject: Re: [Flashcoders] scale9grid how to > > Thanks Julien, > > Your example open my mind. Now I know that scale9grid is not powerfull > as I thought. > Here some conclusions that I found based on some tests: > > It doesn´t work with bitmap > You can´t have movieClip inside it, only shapes. > Nested MC with 9grid doesn´t work. > The gradient fill or bitmap fill scale as if 9grid doesn´t exists. > Textfields too. :( > > Resuming, there are so restrictions that it became almost useless. > Very sorry. :( > > But thanks every one for the hand. :) > > On 7/20/06, Julien Vignali <[EMAIL PROTECTED]> wrote: > > Marco, > > > > If I remember well, you must publish your fla in order to test your > > scale9 grid. You can't preview the results within the flash editor and > > the scale9 guides (the 4 black dashed lines) are just visual "helpers". > > > > But, you can easily apply a scale9 grid to any movieclip at runtime, > > even if you haven't previously enabled scale9 in the movieclip > > properties... > > > > Here is a .fla file to illustrate this: > > http://www.vignali.net/julien/scale9.fla > > > > > > Hope it helps > > Julien Vignali > > > > > > Marcos Neves a écrit : > > > That I did eric, how can I test to see if works? If I scale at the > > > scene, It doesn´t works. When I export the swf, neither. > > > > > > On 7/20/06, eric dolecki <[EMAIL PROTECTED]> wrote: > > >> Make your rectangle a mc. > > >> In the Library, right-click on the mc, choose properties > > >> should be a checkbox @ bottom to enable scale9 > > >> you should see dashed rules appear in mc preview in Library > > >> 2x click into, drag the rules around to set up your scale9 > > >> > > >> On 7/20/06, Marcos Neves <[EMAIL PROTECTED]> wrote: > > >> > Should someone give an example of how to use scale9grid in flash > > >> authoring? > > >> > I bitmap fill a rectangle w
Re: [Flashcoders] scale9grid how to
I´m using for interface components too. I import a png button and align the guides to my needs. But it doesn´t work. I found an "ugly" workaround for this. Textfields and movieClips inside would be good too. On 7/20/06, Tom Lee <[EMAIL PROTECTED]> wrote: I'm curious how you originally intended to use 9-slice scaling - the uses I would have for 9-slice would be interface component backgrounds and so forth, for which it would be far from useless. If you tell us what you're trying to do, perhaps we can suggest an alternate approach? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marcos Neves Sent: Thursday, July 20, 2006 2:09 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] scale9grid how to Thanks Julien, Your example open my mind. Now I know that scale9grid is not powerfull as I thought. Here some conclusions that I found based on some tests: It doesn´t work with bitmap You can´t have movieClip inside it, only shapes. Nested MC with 9grid doesn´t work. The gradient fill or bitmap fill scale as if 9grid doesn´t exists. Textfields too. :( Resuming, there are so restrictions that it became almost useless. Very sorry. :( But thanks every one for the hand. :) On 7/20/06, Julien Vignali <[EMAIL PROTECTED]> wrote: > Marco, > > If I remember well, you must publish your fla in order to test your > scale9 grid. You can't preview the results within the flash editor and > the scale9 guides (the 4 black dashed lines) are just visual "helpers". > > But, you can easily apply a scale9 grid to any movieclip at runtime, > even if you haven't previously enabled scale9 in the movieclip > properties... > > Here is a .fla file to illustrate this: > http://www.vignali.net/julien/scale9.fla > > > Hope it helps > Julien Vignali > > > Marcos Neves a écrit : > > That I did eric, how can I test to see if works? If I scale at the > > scene, It doesn´t works. When I export the swf, neither. > > > > On 7/20/06, eric dolecki <[EMAIL PROTECTED]> wrote: > >> Make your rectangle a mc. > >> In the Library, right-click on the mc, choose properties > >> should be a checkbox @ bottom to enable scale9 > >> you should see dashed rules appear in mc preview in Library > >> 2x click into, drag the rules around to set up your scale9 > >> > >> On 7/20/06, Marcos Neves <[EMAIL PROTECTED]> wrote: > >> > Should someone give an example of how to use scale9grid in flash > >> authoring? > >> > I bitmap fill a rectangle with a checker pattern. The corners should > >> > have no deformation, but it´s having. > >> > > >> > On 7/20/06, Marcos Neves <[EMAIL PROTECTED]> wrote: > >> > > I used that two. You call the scale9 function when? How do you know > >> > > when it need to be updated? > >> > > > >> > > On 7/20/06, Merrill, Jason <[EMAIL PROTECTED]> wrote: > >> > > > Well, what I did is make 9 parts to my graphic, > >> > > > > >> > > > topLeft_mc > >> > > > topCenter_mc > >> > > > topRight_mc > >> > > > centerLeft_mc > >> > > > center_mc > >> > > > etc. > >> > > > > >> > > > Then, put those in a movieClip with the respective instance > >> names. Then pass that clip to a scale function, also pass width and > >> height parameters. Then in the function, do some calculations. > >> Something like this (this example attaches the scale 9 clip from the > >> library): > >> > > > > >> > > > private function scale9():MovieClip { > >> > > >t = this.target_mc.attachMovie("scale9graphic ", > >> "scale9graphic_mc", theDepth); > >> > > >t._x = x; > >> > > >t._y = y; > >> > > >x1 = 0; > >> > > >x2 = t.topLeft_mc._width; > >> > > >x3 = w-(t.topLeft_mc._width); > >> > > >y1 = 0; > >> > > >y2 = t.topLeft_mc._height; > >> > > >y3 = h-t.bottomLeft_mc._height; > >> > > >w1 = t.topLeft_mc._width; > >> > > >w2 = w-(t.topLeft_mc._width + t.topRight_mc._width); > >> > > >w3 = t.topRight_mc._width; > >> > > >h1 = t.topRight_mc._height; > >> > > >h2 = h-(t.topRight_mc._height+t.bottomRight_mc._height); > >> > > >h3 = t.botto
Re: [Flashcoders] scale9grid how to
Thanks Julien, Your example open my mind. Now I know that scale9grid is not powerfull as I thought. Here some conclusions that I found based on some tests: It doesn´t work with bitmap You can´t have movieClip inside it, only shapes. Nested MC with 9grid doesn´t work. The gradient fill or bitmap fill scale as if 9grid doesn´t exists. Textfields too. :( Resuming, there are so restrictions that it became almost useless. Very sorry. :( But thanks every one for the hand. :) On 7/20/06, Julien Vignali <[EMAIL PROTECTED]> wrote: Marco, If I remember well, you must publish your fla in order to test your scale9 grid. You can't preview the results within the flash editor and the scale9 guides (the 4 black dashed lines) are just visual "helpers". But, you can easily apply a scale9 grid to any movieclip at runtime, even if you haven't previously enabled scale9 in the movieclip properties... Here is a .fla file to illustrate this: http://www.vignali.net/julien/scale9.fla Hope it helps Julien Vignali Marcos Neves a écrit : > That I did eric, how can I test to see if works? If I scale at the > scene, It doesn´t works. When I export the swf, neither. > > On 7/20/06, eric dolecki <[EMAIL PROTECTED]> wrote: >> Make your rectangle a mc. >> In the Library, right-click on the mc, choose properties >> should be a checkbox @ bottom to enable scale9 >> you should see dashed rules appear in mc preview in Library >> 2x click into, drag the rules around to set up your scale9 >> >> On 7/20/06, Marcos Neves <[EMAIL PROTECTED]> wrote: >> > Should someone give an example of how to use scale9grid in flash >> authoring? >> > I bitmap fill a rectangle with a checker pattern. The corners should >> > have no deformation, but it´s having. >> > >> > On 7/20/06, Marcos Neves <[EMAIL PROTECTED]> wrote: >> > > I used that two. You call the scale9 function when? How do you know >> > > when it need to be updated? >> > > >> > > On 7/20/06, Merrill, Jason <[EMAIL PROTECTED]> wrote: >> > > > Well, what I did is make 9 parts to my graphic, >> > > > >> > > > topLeft_mc >> > > > topCenter_mc >> > > > topRight_mc >> > > > centerLeft_mc >> > > > center_mc >> > > > etc. >> > > > >> > > > Then, put those in a movieClip with the respective instance >> names. Then pass that clip to a scale function, also pass width and >> height parameters. Then in the function, do some calculations. >> Something like this (this example attaches the scale 9 clip from the >> library): >> > > > >> > > > private function scale9():MovieClip { >> > > >t = this.target_mc.attachMovie("scale9graphic ", >> "scale9graphic_mc", theDepth); >> > > >t._x = x; >> > > >t._y = y; >> > > >x1 = 0; >> > > >x2 = t.topLeft_mc._width; >> > > >x3 = w-(t.topLeft_mc._width); >> > > >y1 = 0; >> > > >y2 = t.topLeft_mc._height; >> > > >y3 = h-t.bottomLeft_mc._height; >> > > >w1 = t.topLeft_mc._width; >> > > >w2 = w-(t.topLeft_mc._width + t.topRight_mc._width); >> > > >w3 = t.topRight_mc._width; >> > > >h1 = t.topRight_mc._height; >> > > >h2 = h-(t.topRight_mc._height+t.bottomRight_mc._height); >> > > >h3 = t.bottomRight_mc._height; >> > > > >> > > >t.topLeft_mc._x = x1; >> > > >t.topLeft_mc._y = y1; >> > > > >> > > >t.topCenter_mc._x = x2; >> > > >t.topCenter_mc._y = y1; >> > > >t.topCenter_mc._width = w2; >> > > > >> > > >t.topRight_mc._x = x3; >> > > >t.topRight_mc._y = y1; >> > > > >> > > >t.centerLeft_mc._x = x1; >> > > >t.centerLeft_mc._y = y2; >> > > >t.centerLeft_mc._height = h2; >> > > > >> > > >t.center_mc._x = x2; >> > > >t.center_mc._y = y2; >> > > >t.center_mc._width = w2; >> > > >t.center_mc._height = h2; >> > > > >> > > >t.centerRight_mc._x = x3; >> > > >t.centerRight_mc._y = y2; >> > > >t.centerRight_mc._height = h2; >> > > >
Re: [Flashcoders] scale9grid how to
You call scale inside the X,Y,height,Width assessors, right? On 7/20/06, Merrill, Jason <[EMAIL PROTECTED]> wrote: >>I used that two. You call the scale9 function when? I call it when I want the graphic to scale - that was just an excerpt from a class I wrote, you would want to add paramters like X,Y,height,Width of the graphic, and the name of the scale9 movie clip in the library. >>How do you know >>when it need to be updated? I don't understand the nature of that question. Jason Merrill Bank of America Learning & Organization Effectiveness - Technology Solutions >>-Original Message- >>From: [EMAIL PROTECTED] [mailto:flashcoders- >>[EMAIL PROTECTED] On Behalf Of Marcos Neves >>Sent: Thursday, July 20, 2006 9:24 AM >>To: Flashcoders mailing list >>Subject: Re: [Flashcoders] scale9grid how to >> >>I used that two. You call the scale9 function when? How do you know >>when it need to be updated? >> >>On 7/20/06, Merrill, Jason <[EMAIL PROTECTED]> wrote: >>> Well, what I did is make 9 parts to my graphic, >>> >>> topLeft_mc >>> topCenter_mc >>> topRight_mc >>> centerLeft_mc >>> center_mc >>> etc. >>> >>> Then, put those in a movieClip with the respective instance names. Then pass >>that clip to a scale function, also pass width and height parameters. Then in the >>function, do some calculations. Something like this (this example attaches the >>scale 9 clip from the library): >>> >>> private function scale9():MovieClip { >>>t = this.target_mc.attachMovie("scale9graphic ", "scale9graphic_mc", >>theDepth); >>>t._x = x; >>>t._y = y; >>>x1 = 0; >>>x2 = t.topLeft_mc._width; >>>x3 = w-(t.topLeft_mc._width); >>>y1 = 0; >>>y2 = t.topLeft_mc._height; >>>y3 = h-t.bottomLeft_mc._height; >>>w1 = t.topLeft_mc._width; >>>w2 = w-(t.topLeft_mc._width + t.topRight_mc._width); >>>w3 = t.topRight_mc._width; >>>h1 = t.topRight_mc._height; >>>h2 = h-(t.topRight_mc._height+t.bottomRight_mc._height); >>>h3 = t.bottomRight_mc._height; >>> >>>t.topLeft_mc._x = x1; >>>t.topLeft_mc._y = y1; >>> >>>t.topCenter_mc._x = x2; >>>t.topCenter_mc._y = y1; >>>t.topCenter_mc._width = w2; >>> >>>t.topRight_mc._x = x3; >>>t.topRight_mc._y = y1; >>> >>>t.centerLeft_mc._x = x1; >>>t.centerLeft_mc._y = y2; >>>t.centerLeft_mc._height = h2; >>> >>>t.center_mc._x = x2; >>>t.center_mc._y = y2; >>>t.center_mc._width = w2; >>>t.center_mc._height = h2; >>> >>>t.centerRight_mc._x = x3; >>>t.centerRight_mc._y = y2; >>> t.centerRight_mc._height = h2; >>> >>>t.bottomLeft_mc._x = x1; >>>t.bottomLeft_mc._y = y3; >>> >>>t.bottomCenter_mc._x = x2; >>>t.bottomCenter_mc._y = y3; >>>t.bottomCenter_mc._width = w2; >>> >>>t.bottomRight_mc._x = x3; >>>t.bottomRight_mc._y = y3; >>> >>>return t; >>> }; >>> >>> Jason Merrill >>> Bank of America >>> Learning & Organization Effectiveness - Technology Solutions >>> >>> >>> >>> >>> >>> >>> >>-Original Message- >>> >>From: [EMAIL PROTECTED] [mailto:flashcoders- >>> >>[EMAIL PROTECTED] On Behalf Of Marcos Neves >>> >>Sent: Thursday, July 20, 2006 8:48 AM >>> >>To: Flashcoders mailing list >>> >>Subject: Re: [Flashcoders] scale9grid how to >>> >> >>> >>And how it can be done? >>> >> >>> >>On 7/20/06, Merrill, Jason <[EMAIL PROTECTED]> wrote: >>> >>> If it gets too messy, you can also roll your own scale 9 function for graphics >>- >>> >>that's what I did since I'm building for Flash 7. It's pretty easy actually. >>> >>> >>> >>> Jason Merrill >>> >>> Bank of America >>> >>> Learning & Organization Effectiveness - Technology Solutions >>> >>> >>> >>> &g
Re: Re: [Flashcoders] scale9grid how to
That I did eric, how can I test to see if works? If I scale at the scene, It doesn´t works. When I export the swf, neither. On 7/20/06, eric dolecki <[EMAIL PROTECTED]> wrote: Make your rectangle a mc. In the Library, right-click on the mc, choose properties should be a checkbox @ bottom to enable scale9 you should see dashed rules appear in mc preview in Library 2x click into, drag the rules around to set up your scale9 On 7/20/06, Marcos Neves <[EMAIL PROTECTED]> wrote: > Should someone give an example of how to use scale9grid in flash authoring? > I bitmap fill a rectangle with a checker pattern. The corners should > have no deformation, but it´s having. > > On 7/20/06, Marcos Neves <[EMAIL PROTECTED]> wrote: > > I used that two. You call the scale9 function when? How do you know > > when it need to be updated? > > > > On 7/20/06, Merrill, Jason <[EMAIL PROTECTED]> wrote: > > > Well, what I did is make 9 parts to my graphic, > > > > > > topLeft_mc > > > topCenter_mc > > > topRight_mc > > > centerLeft_mc > > > center_mc > > > etc. > > > > > > Then, put those in a movieClip with the respective instance names. Then pass that clip to a scale function, also pass width and height parameters. Then in the function, do some calculations. Something like this (this example attaches the scale 9 clip from the library): > > > > > > private function scale9():MovieClip { > > >t = this.target_mc.attachMovie("scale9graphic ", "scale9graphic_mc", theDepth); > > >t._x = x; > > >t._y = y; > > >x1 = 0; > > >x2 = t.topLeft_mc._width; > > >x3 = w-(t.topLeft_mc._width); > > >y1 = 0; > > >y2 = t.topLeft_mc._height; > > >y3 = h-t.bottomLeft_mc._height; > > >w1 = t.topLeft_mc._width; > > >w2 = w-(t.topLeft_mc._width + t.topRight_mc._width); > > >w3 = t.topRight_mc._width; > > >h1 = t.topRight_mc._height; > > >h2 = h-(t.topRight_mc._height+t.bottomRight_mc._height); > > >h3 = t.bottomRight_mc._height; > > > > > >t.topLeft_mc._x = x1; > > >t.topLeft_mc._y = y1; > > > > > >t.topCenter_mc._x = x2; > > >t.topCenter_mc._y = y1; > > >t.topCenter_mc._width = w2; > > > > > >t.topRight_mc._x = x3; > > >t.topRight_mc._y = y1; > > > > > >t.centerLeft_mc._x = x1; > > >t.centerLeft_mc._y = y2; > > >t.centerLeft_mc._height = h2; > > > > > >t.center_mc._x = x2; > > >t.center_mc._y = y2; > > >t.center_mc._width = w2; > > >t.center_mc._height = h2; > > > > > >t.centerRight_mc._x = x3; > > >t.centerRight_mc._y = y2; > > >t.centerRight_mc._height = h2; > > > > > >t.bottomLeft_mc._x = x1; > > > t.bottomLeft_mc._y = y3; > > > > > >t.bottomCenter_mc._x = x2; > > >t.bottomCenter_mc._y = y3; > > >t.bottomCenter_mc._width = w2; > > > > > >t.bottomRight_mc._x = x3; > > >t.bottomRight_mc._y = y3; > > > > > >return t; > > > }; > > > > > > Jason Merrill > > > Bank of America > > > Learning & Organization Effectiveness - Technology Solutions > > > > > > > > > > > > > > > > > > > > > >>-Original Message- > > > >>From: [EMAIL PROTECTED] [mailto:flashcoders- > > > >>[EMAIL PROTECTED] On Behalf Of Marcos Neves > > > >>Sent: Thursday, July 20, 2006 8:48 AM > > > >>To: Flashcoders mailing list > > > >>Subject: Re: [Flashcoders] scale9grid how to > > > >> > > > >>And how it can be done? > > > >> > > > >>On 7/20/06, Merrill, Jason <[EMAIL PROTECTED]> wrote: > > > >>> If it gets too messy, you can also roll your own scale 9 function for graphics - > > > >>that's what I did since I'm building for Flash 7. It's pretty easy actually. > > > >>> > > > >>> Jason Merrill > > > >>> Bank of America > > > >>> Learning & Organization Effectiveness - Technology Solutions > > > >>> > > > >>> > > >
Re: [Flashcoders] scale9grid how to
Should someone give an example of how to use scale9grid in flash authoring? I bitmap fill a rectangle with a checker pattern. The corners should have no deformation, but it´s having. On 7/20/06, Marcos Neves <[EMAIL PROTECTED]> wrote: I used that two. You call the scale9 function when? How do you know when it need to be updated? On 7/20/06, Merrill, Jason <[EMAIL PROTECTED]> wrote: > Well, what I did is make 9 parts to my graphic, > > topLeft_mc > topCenter_mc > topRight_mc > centerLeft_mc > center_mc > etc. > > Then, put those in a movieClip with the respective instance names. Then pass that clip to a scale function, also pass width and height parameters. Then in the function, do some calculations. Something like this (this example attaches the scale 9 clip from the library): > > private function scale9():MovieClip { >t = this.target_mc.attachMovie("scale9graphic ", "scale9graphic_mc", theDepth); >t._x = x; >t._y = y; >x1 = 0; >x2 = t.topLeft_mc._width; >x3 = w-(t.topLeft_mc._width); >y1 = 0; >y2 = t.topLeft_mc._height; >y3 = h-t.bottomLeft_mc._height; >w1 = t.topLeft_mc._width; >w2 = w-(t.topLeft_mc._width + t.topRight_mc._width); >w3 = t.topRight_mc._width; >h1 = t.topRight_mc._height; >h2 = h-(t.topRight_mc._height+t.bottomRight_mc._height); >h3 = t.bottomRight_mc._height; > >t.topLeft_mc._x = x1; >t.topLeft_mc._y = y1; > >t.topCenter_mc._x = x2; >t.topCenter_mc._y = y1; >t.topCenter_mc._width = w2; > >t.topRight_mc._x = x3; >t.topRight_mc._y = y1; > >t.centerLeft_mc._x = x1; >t.centerLeft_mc._y = y2; >t.centerLeft_mc._height = h2; > >t.center_mc._x = x2; >t.center_mc._y = y2; >t.center_mc._width = w2; >t.center_mc._height = h2; > >t.centerRight_mc._x = x3; >t.centerRight_mc._y = y2; >t.centerRight_mc._height = h2; > >t.bottomLeft_mc._x = x1; >t.bottomLeft_mc._y = y3; > >t.bottomCenter_mc._x = x2; >t.bottomCenter_mc._y = y3; >t.bottomCenter_mc._width = w2; > >t.bottomRight_mc._x = x3; >t.bottomRight_mc._y = y3; > >return t; > }; > > Jason Merrill > Bank of America > Learning & Organization Effectiveness - Technology Solutions > > > > > > > >>-Original Message- > >>From: [EMAIL PROTECTED] [mailto:flashcoders- > >>[EMAIL PROTECTED] On Behalf Of Marcos Neves > >>Sent: Thursday, July 20, 2006 8:48 AM > >>To: Flashcoders mailing list > >>Subject: Re: [Flashcoders] scale9grid how to > >> > >>And how it can be done? > >> > >>On 7/20/06, Merrill, Jason <[EMAIL PROTECTED]> wrote: > >>> If it gets too messy, you can also roll your own scale 9 function for graphics - > >>that's what I did since I'm building for Flash 7. It's pretty easy actually. > >>> > >>> Jason Merrill > >>> Bank of America > >>> Learning & Organization Effectiveness - Technology Solutions > >>> > >>> > >>> > >>> > >>> > >>> >>-Original Message- > >>> >>From: [EMAIL PROTECTED] [mailto:flashcoders- > >>> >>[EMAIL PROTECTED] On Behalf Of Marcos Neves > >>> >>Sent: Wednesday, July 19, 2006 4:34 PM > >>> >>To: Flashcoders mailing list > >>> >>Subject: [Flashcoders] scale9grid how to > >>> >> > >>> >>How can I use programaticlly scale9grid to don´t deform a roundRect when > >>> >>scaled? > >>> >>I´know how it works at design time on flash. > >>> >>___ > >>> >>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.
Re: [Flashcoders] scale9grid how to
I used that two. You call the scale9 function when? How do you know when it need to be updated? On 7/20/06, Merrill, Jason <[EMAIL PROTECTED]> wrote: Well, what I did is make 9 parts to my graphic, topLeft_mc topCenter_mc topRight_mc centerLeft_mc center_mc etc. Then, put those in a movieClip with the respective instance names. Then pass that clip to a scale function, also pass width and height parameters. Then in the function, do some calculations. Something like this (this example attaches the scale 9 clip from the library): private function scale9():MovieClip { t = this.target_mc.attachMovie("scale9graphic ", "scale9graphic_mc", theDepth); t._x = x; t._y = y; x1 = 0; x2 = t.topLeft_mc._width; x3 = w-(t.topLeft_mc._width); y1 = 0; y2 = t.topLeft_mc._height; y3 = h-t.bottomLeft_mc._height; w1 = t.topLeft_mc._width; w2 = w-(t.topLeft_mc._width + t.topRight_mc._width); w3 = t.topRight_mc._width; h1 = t.topRight_mc._height; h2 = h-(t.topRight_mc._height+t.bottomRight_mc._height); h3 = t.bottomRight_mc._height; t.topLeft_mc._x = x1; t.topLeft_mc._y = y1; t.topCenter_mc._x = x2; t.topCenter_mc._y = y1; t.topCenter_mc._width = w2; t.topRight_mc._x = x3; t.topRight_mc._y = y1; t.centerLeft_mc._x = x1; t.centerLeft_mc._y = y2; t.centerLeft_mc._height = h2; t.center_mc._x = x2; t.center_mc._y = y2; t.center_mc._width = w2; t.center_mc._height = h2; t.centerRight_mc._x = x3; t.centerRight_mc._y = y2; t.centerRight_mc._height = h2; t.bottomLeft_mc._x = x1; t.bottomLeft_mc._y = y3; t.bottomCenter_mc._x = x2; t.bottomCenter_mc._y = y3; t.bottomCenter_mc._width = w2; t.bottomRight_mc._x = x3; t.bottomRight_mc._y = y3; return t; }; Jason Merrill Bank of America Learning & Organization Effectiveness - Technology Solutions >>-Original Message- >>From: [EMAIL PROTECTED] [mailto:flashcoders- >>[EMAIL PROTECTED] On Behalf Of Marcos Neves >>Sent: Thursday, July 20, 2006 8:48 AM >>To: Flashcoders mailing list >>Subject: Re: [Flashcoders] scale9grid how to >> >>And how it can be done? >> >>On 7/20/06, Merrill, Jason <[EMAIL PROTECTED]> wrote: >>> If it gets too messy, you can also roll your own scale 9 function for graphics - >>that's what I did since I'm building for Flash 7. It's pretty easy actually. >>> >>> Jason Merrill >>> Bank of America >>> Learning & Organization Effectiveness - Technology Solutions >>> >>> >>> >>> >>> >>> >>-Original Message- >>> >>From: [EMAIL PROTECTED] [mailto:flashcoders- >>> >>[EMAIL PROTECTED] On Behalf Of Marcos Neves >>> >>Sent: Wednesday, July 19, 2006 4:34 PM >>> >>To: Flashcoders mailing list >>> >>Subject: [Flashcoders] scale9grid how to >>> >> >>> >>How can I use programaticlly scale9grid to don´t deform a roundRect when >>> >>scaled? >>> >>I´know how it works at design time on flash. >>> >>___ >>> >>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: Re: [Flashcoders] scale9grid how to
This is the bt.swf http://neves.bs2.com.br/as3/bt.swf As you can imagine, I´m trying to scale only inside the black wire rectangle using the scale9grid. On 7/20/06, Marcos Neves <[EMAIL PROTECTED]> wrote: Does any body can tell me what´s wrong with this code? The problem is that the scale9grid is not doing his job. The bt.swf embed has size of 100x22. But the trace at the end ignores it´s size. Why? Where scale9grid should be applied to work? I try many sprites but none work. package { import flash.display.Sprite; import flash.display.StageScaleMode; import flash.geom.Rectangle; import mx.core.MovieClipAsset; import flash.display.MovieClip; public class BtFlash extends Sprite { [Embed(source="bt.swf")] private var btClass:Class; public function BtFlash() { var bt:MovieClipAsset = new btClass(); addChild(bt); var mc:Sprite = new Sprite(); mc.graphics.beginFill(0); var rect:Rectangle = new Rectangle(6, 2, 70, 18); mc.graphics.drawRect(rect.x - 1, rect.y - 1, rect.width + 2, rect.height + 2); mc.graphics.endFill(); bt.addChild(mc); bt.scale9Grid = rect; trace(bt.width); trace(width); } } } On 7/20/06, eric dolecki <[EMAIL PROTECTED]> wrote: > Marcos, > > If you made the rectangle the same size as your "sprite" - there would > be no scale9 to speak of. It has to be smaller than the mc. You know > how it works from implementing it in the IDE, so you know that there > must be "outside" area that is left untouched, the interior does the > scaling. > > - e.d. > > > On 7/20/06, Marcos Neves <[EMAIL PROTECTED]> wrote: > > No so clearly Julien, > > if(I create a rectangle with exact the same size of my sprite, it > > throw me that error. I bust make it at least 1 pixel small. It´s not > > on the docs :\ > > > > On 7/20/06, Julien Vignali <[EMAIL PROTECTED]> wrote: > > > Check the Flash docs... It's explained ;-) > > > > > > mcRoundedRect.scale9Grid = new Rectangle(x1, y1, x2, y2); > > > > > > > > > Marcos Neves a écrit : > > > > How can I use programaticlly scale9grid to don´t deform a roundRect when > > > > scaled? > > > > I´know how it works at design time on flash. > > > > ___ > > > > 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: Re: [Flashcoders] scale9grid how to
Does any body can tell me what´s wrong with this code? The problem is that the scale9grid is not doing his job. The bt.swf embed has size of 100x22. But the trace at the end ignores it´s size. Why? Where scale9grid should be applied to work? I try many sprites but none work. package { import flash.display.Sprite; import flash.display.StageScaleMode; import flash.geom.Rectangle; import mx.core.MovieClipAsset; import flash.display.MovieClip; public class BtFlash extends Sprite { [Embed(source="bt.swf")] private var btClass:Class; public function BtFlash() { var bt:MovieClipAsset = new btClass(); addChild(bt); var mc:Sprite = new Sprite(); mc.graphics.beginFill(0); var rect:Rectangle = new Rectangle(6, 2, 70, 18); mc.graphics.drawRect(rect.x - 1, rect.y - 1, rect.width + 2, rect.height + 2); mc.graphics.endFill(); bt.addChild(mc); bt.scale9Grid = rect; trace(bt.width); trace(width); } } } On 7/20/06, eric dolecki <[EMAIL PROTECTED]> wrote: Marcos, If you made the rectangle the same size as your "sprite" - there would be no scale9 to speak of. It has to be smaller than the mc. You know how it works from implementing it in the IDE, so you know that there must be "outside" area that is left untouched, the interior does the scaling. - e.d. On 7/20/06, Marcos Neves <[EMAIL PROTECTED]> wrote: > No so clearly Julien, > if(I create a rectangle with exact the same size of my sprite, it > throw me that error. I bust make it at least 1 pixel small. It´s not > on the docs :\ > > On 7/20/06, Julien Vignali <[EMAIL PROTECTED]> wrote: > > Check the Flash docs... It's explained ;-) > > > > mcRoundedRect.scale9Grid = new Rectangle(x1, y1, x2, y2); > > > > > > Marcos Neves a écrit : > > > How can I use programaticlly scale9grid to don´t deform a roundRect when > > > scaled? > > > I´know how it works at design time on flash. > > > ___ > > > 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] scale9grid how to
And how it can be done? On 7/20/06, Merrill, Jason <[EMAIL PROTECTED]> wrote: If it gets too messy, you can also roll your own scale 9 function for graphics - that's what I did since I'm building for Flash 7. It's pretty easy actually. Jason Merrill Bank of America Learning & Organization Effectiveness - Technology Solutions >>-Original Message- >>From: [EMAIL PROTECTED] [mailto:flashcoders- >>[EMAIL PROTECTED] On Behalf Of Marcos Neves >>Sent: Wednesday, July 19, 2006 4:34 PM >>To: Flashcoders mailing list >>Subject: [Flashcoders] scale9grid how to >> >>How can I use programaticlly scale9grid to don´t deform a roundRect when >>scaled? >>I´know how it works at design time on flash. >>___ >>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] scale9grid how to
No so clearly Julien, if(I create a rectangle with exact the same size of my sprite, it throw me that error. I bust make it at least 1 pixel small. It´s not on the docs :\ On 7/20/06, Julien Vignali <[EMAIL PROTECTED]> wrote: Check the Flash docs... It's explained ;-) mcRoundedRect.scale9Grid = new Rectangle(x1, y1, x2, y2); Marcos Neves a écrit : > How can I use programaticlly scale9grid to don´t deform a roundRect when > scaled? > I´know how it works at design time on flash. > ___ > 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] scale9grid how to
How can I use programaticlly scale9grid to don´t deform a roundRect when scaled? I´know how it works at design time on flash. ___ 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] list of files in a directory using FileReference or FileReferenceList
You your application will be desktop(not online throught the browser), you always can embed the swf inside a application that would list the files for you and do the communication using the external API. On 7/11/06, jordan robinson <[EMAIL PROTECTED]> wrote: yes i want to list the files in a directory without a server side script. The list would then be used to load and play those files in order. The folder/directory contents could be different on many different computers that this will be installed on so i was hoping there was a way to say "look at this folder and list the contents in flash for me". I've been hinted that northcode's swf studio can do this or another projector wrapper ( http://www.northcode.com/forums/ showthread.php?t=6070&highlight=fileList ). If anyone has tested this please let me know. Thanks for the help thus far. -Jordan On Jul 11, 2006, at 1:25 PM, Marcos Neves wrote: > I think he wants to list the client dir files, not the server. Is > this right? > > On 7/11/06, Jeff Jonez <[EMAIL PROTECTED]> wrote: >> Or you could use PHP or another scripting language. >> >> Jeff >> >> On 7/10/06, Marcos Neves <[EMAIL PROTECTED]> wrote: >> > You can´t dynamic list all files, but you can popup a browser >> window, >> > asking to the user select all files on the folder. This is for >> > security reason. >> > >> > On 7/10/06, jordan robinson <[EMAIL PROTECTED]> wrote: >> > > Is there a way to get a list of files in a directory using >> > > FileReference or FileReferenceList classes in flash 8. I don't >> want >> > > the user to browse to get the files since the files will be >> already >> > > set. I basically want to pull in all the file names that are in a >> > > particular folder. I am trying to set something up to load >> files in a >> > > folder but the folder may constantly change contents. >> > > >> > > >> > > On Jul 9, 2006, at 12:02 PM, jordan robinson wrote: >> > > >> > > > I am working on kiosk project that will be updated >> dynamically. Is >> > > > there way to have flash detect what is in a folder before I >> have >> > > > the shell play through the sub files. I know you can set it up >> > > > through xml and have it go through a list but I'd rather use >> that >> > > > option as plan b. The project is dealing with kiosks in >> hundreds >> > > > of locations and some locations will be playing different >> file then >> > > > others. If I could get my shell to just play whatever is in a >> > > > folder then that would be ideal (playing whatever is in that >> > > > subdirectory). Thanks in advance for any help on this issue. >> > > > >> > > > Jordan Robinson >> > > > >> ___ 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] list of files in a directory using FileReference or FileReferenceList
I think he wants to list the client dir files, not the server. Is this right? On 7/11/06, Jeff Jonez <[EMAIL PROTECTED]> wrote: Or you could use PHP or another scripting language. Jeff On 7/10/06, Marcos Neves <[EMAIL PROTECTED]> wrote: > You can´t dynamic list all files, but you can popup a browser window, > asking to the user select all files on the folder. This is for > security reason. > > On 7/10/06, jordan robinson <[EMAIL PROTECTED]> wrote: > > Is there a way to get a list of files in a directory using > > FileReference or FileReferenceList classes in flash 8. I don't want > > the user to browse to get the files since the files will be already > > set. I basically want to pull in all the file names that are in a > > particular folder. I am trying to set something up to load files in a > > folder but the folder may constantly change contents. > > > > > > On Jul 9, 2006, at 12:02 PM, jordan robinson wrote: > > > > > I am working on kiosk project that will be updated dynamically. Is > > > there way to have flash detect what is in a folder before I have > > > the shell play through the sub files. I know you can set it up > > > through xml and have it go through a list but I'd rather use that > > > option as plan b. The project is dealing with kiosks in hundreds > > > of locations and some locations will be playing different file then > > > others. If I could get my shell to just play whatever is in a > > > folder then that would be ideal (playing whatever is in that > > > subdirectory). Thanks in advance for any help on this issue. > > > > > > Jordan Robinson > > > > > > > > > ___ > > 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] list of files in a directory using FileReference or FileReferenceList
You can´t dynamic list all files, but you can popup a browser window, asking to the user select all files on the folder. This is for security reason. On 7/10/06, jordan robinson <[EMAIL PROTECTED]> wrote: Is there a way to get a list of files in a directory using FileReference or FileReferenceList classes in flash 8. I don't want the user to browse to get the files since the files will be already set. I basically want to pull in all the file names that are in a particular folder. I am trying to set something up to load files in a folder but the folder may constantly change contents. On Jul 9, 2006, at 12:02 PM, jordan robinson wrote: > I am working on kiosk project that will be updated dynamically. Is > there way to have flash detect what is in a folder before I have > the shell play through the sub files. I know you can set it up > through xml and have it go through a list but I'd rather use that > option as plan b. The project is dealing with kiosks in hundreds > of locations and some locations will be playing different file then > others. If I could get my shell to just play whatever is in a > folder then that would be ideal (playing whatever is in that > subdirectory). Thanks in advance for any help on this issue. > > Jordan Robinson > ___ 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] AS3 - Missing
Very thanks to Jens and Nivesh :) On 7/7/06, Jens Halm <[EMAIL PROTECTED]> wrote: > Class names need to be unique. We will support the concept of a > base class for library symbols in the Flash 9 timeframe. These base > classes can be non-unique. Glad to hear that this will be supported. I am really surprised that so far Marcos seems to be the only one here who thinks it's essential. I think it would really be a step backwards without this feature. Maybe the example Marcos used wasn't that obvious. But if we talk about Component classes like CheckBoxes, Buttons etc., I would never want to use composition over inheritance. And in the preview release you wouldn't be able to assign a CheckBox class to more than one MovieClip. So yes, I think that feature is essential. It would also be great if that base class that you can specify is permitted to only extend Sprite and not MovieClip. Even better would be a new symbol type without a timeline for designing Sprites. Jens ___ 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] Flash 9 Public Alpha - Blaze Preview
Those funcionalities are disable on Flash9 until the final release. Check this release note: http://labs.adobe.com/technologies/flash9as3preview/releasenotes.html#issues On 7/6/06, Peter Hall <[EMAIL PROTECTED]> wrote: > I really hope I'm missing something... Yes, you are missing the fact that this is just a technology preview. You should expect things to work unexpectedly, and you should report issues to Adobe, instead of ranting on a mailing list. If you need a production-ready AS3 editor, use FlexBuilder2. Peter On 6/28/06, neo binedell <[EMAIL PROTECTED]> wrote: > Is it just me or is it rather pointless that > AS files containing AS3 classes opened in the > IDE default to AS2 compilation? > Now maybe I'm just a moron but CTRL-T and it it spews > out a long list of errors. Alt-enter and run it and > everything is fine. Do I have to publish the fla > everytime I want to check the AS3 for compile errors? > > I really hope I'm missing something... > > ~neo > > ___ > 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] AS3 - Missing
On 7/5/06, Chris Velevitch <[EMAIL PROTECTED]> wrote: On 7/5/06, Marcos Neves <[EMAIL PROTECTED]> wrote: > I have a A world map where each country is a movieclip. And every one > will have the same behavior. Before flash 9, what I did is assign a > class called Country to each movie clip. This way, I can easy update > the behavior of all at the same time. Did you do this in AS2 or via the library linkage properties? Library linkage > With Flash 9, I can´t assign a class with the same name and can´t > specify a base class to the Auto Generated extends. I haven't used Flash 9 alpha so I don't know Auto Generated is. If you specified the class name via library linkage properties and Flash 9 doesn't allow it, it sounds like a bug. Yes, flash 9 doesn´t allow me assign the class Country to more than one MovieClip. > When ask for AutoGenerate, a check box would enable an different base > class, and I would write on the textbox. So a movieClip called Brazil, > would have a autoGenerated class called Brazil that extends the class > Country, witch would be my base class. Does the Brazil class redefine any methods of Country? AutoGenerate works like this: If you give a Brazil name to a movieClip and don´t assign a class to it, Flash auto generate a class called Brazil wich you can do new Brazil in your code to create that movieClip. Chris -- Chris Velevitch Manager - Sydney Flash Platform Developers Group www.flashdev.org.au ___ 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] AS3 - Missing
AS3 is really mature now, what is excellent! But there´s no reason to didn´t support it. Let´s think from other point of view. Each sprite on the flash screen, is an instance of some class. Flash ide is locking together View+Behavior, so I can´t have two differents Views with the same behavior. With Jcarlos tip, I found two ways to workaround this. But it´s didn´t seens right to me. I draw my Countrys as movieclips without classes. Then create a MovieClip with a Country class and put inside each movieClip (Composition). Inside Country class, I have access to the parent display object using the parent property and do something like an Adapter pattern. The other solution would be put all my countrys inside a MovieClip called World, and use a World class to access each country and assign the behavior. I´ll will upload my .fla files so you can understand. On 7/5/06, Adrian Park <[EMAIL PROTECTED]> wrote: I'm not sure this is really a 'feature' that is missing since the problem really boils down to OOP theory. For example, it could be argued that it is incorrect for the country class to extend MovieClip since a country *is not* a MovieClip but, rather, *uses* a MovieClip for display. By this rational, it makes more sense to extend via composition - i.e. the country class simply gets a reference to a MovieClip that represents it's visual manifestation. This way, the same class is used for many MovieClips. If it was possible in AS2 and is no longer possible in AS3, I'd hope there is a very good reason why and I'd hope that the reason has something to do with AS becoming a more mature language and doing things in a better way. Am I wrong? A. On 7/5/06, Marcos Neves <[EMAIL PROTECTED]> wrote: > > You got the point. But this silly task wasn´t needed on flash 8. > That´s the point. > Should it be on flash 9? I don´t think so. > Isn´t this the time to ask Adobe to include this feature? But I need > help from others developers to show that this feature is essential. > > On 7/5/06, Meinte van't Kruis <[EMAIL PROTECTED]> wrote: > > I'm not sure if it's entirely impossible to assign one class to multiple > > movieclips, but if that's true than the easiest way to overcome that > problem > > is make a baseclass 'Country' and have Brazil extends Country. > > > > You still have the silly task of assigning all your countries to a > > different class, but at least your code will be easy to manage. > > > > good luck > > -Meinte > > > > On 7/4/06, Marcos Neves <[EMAIL PROTECTED]> wrote: > > > > > > Is this the place to talk about AS3? If not, where would be? > > > > > > The concept of any movieClip be a class is very powerfull, given the > > > ability to do new ClassName to create a copy of any clip. But the Auto > > > Generated class and the fact that you can´t have two movieclips with > > > the same class is something that is limiting flash capabilities. > > > > > > Example: > > > I have a A world map where each country is a movieclip. And every one > > > will have the same behavior. Before flash 9, what I did is assign a > > > class called Country to each movie clip. This way, I can easy update > > > the behavior of all at the same time. > > > > > > With Flash 9, I can´t assign a class with the same name and can´t > > > specify a base class to the Auto Generated extends. > > > My suggestion is to do something like this: > > > http://neves.bs2.com.br/flex/preview.jpg > > > > > > When ask for AutoGenerate, a check box would enable an different base > > > class, and I would write on the textbox. So a movieClip called Brazil, > > > would have a autoGenerated class called Brazil that extends the class > > > Country, witch would be my base class. > > > > > > I´m shure no one can deny that this feature is essential. > > > ___ > > > 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 Cons
Re: [Flashcoders] AS3 - Missing
Look at this flash http://adi.idr.org.br/tpl/adi/mapa.tpl.php Did you see that every movieClips have different shapes, but the same behavior. Your suggestion is to drag a Country MovieClip inside each Country and use it to take control of the parent clip? On 7/5/06, jcarlos <[EMAIL PROTECTED]> wrote: But wouldn´t be easier to have composition over extension ? if you have one generic class that has the country movieclip like an property of this class class Country { var mcCountry: MovieClip; var nameCountry:String; function Country( mc: MovieClip, name:String) { .. .. } } - Original Message - From: "Meinte van't Kruis" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Wednesday, July 05, 2006 8:17 AM Subject: Re: [Flashcoders] AS3 - Missing I'm not sure if it's entirely impossible to assign one class to multiple movieclips, but if that's true than the easiest way to overcome that problem is make a baseclass 'Country' and have Brazil extends Country. You still have the silly task of assigning all your countries to a different class, but at least your code will be easy to manage. good luck -Meinte On 7/4/06, Marcos Neves <[EMAIL PROTECTED]> wrote: > > Is this the place to talk about AS3? If not, where would be? > > The concept of any movieClip be a class is very powerfull, given the > ability to do new ClassName to create a copy of any clip. But the Auto > Generated class and the fact that you can´t have two movieclips with > the same class is something that is limiting flash capabilities. > > Example: > I have a A world map where each country is a movieclip. And every one > will have the same behavior. Before flash 9, what I did is assign a > class called Country to each movie clip. This way, I can easy update > the behavior of all at the same time. > > With Flash 9, I can´t assign a class with the same name and can´t > specify a base class to the Auto Generated extends. > My suggestion is to do something like this: > http://neves.bs2.com.br/flex/preview.jpg > > When ask for AutoGenerate, a check box would enable an different base > class, and I would write on the textbox. So a movieClip called Brazil, > would have a autoGenerated class called Brazil that extends the class > Country, witch would be my base class. > > I´m shure no one can deny that this feature is essential. > ___ > 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] AS3 - Missing
You got the point. But this silly task wasn´t needed on flash 8. That´s the point. Should it be on flash 9? I don´t think so. Isn´t this the time to ask Adobe to include this feature? But I need help from others developers to show that this feature is essential. On 7/5/06, Meinte van't Kruis <[EMAIL PROTECTED]> wrote: I'm not sure if it's entirely impossible to assign one class to multiple movieclips, but if that's true than the easiest way to overcome that problem is make a baseclass 'Country' and have Brazil extends Country. You still have the silly task of assigning all your countries to a different class, but at least your code will be easy to manage. good luck -Meinte On 7/4/06, Marcos Neves <[EMAIL PROTECTED]> wrote: > > Is this the place to talk about AS3? If not, where would be? > > The concept of any movieClip be a class is very powerfull, given the > ability to do new ClassName to create a copy of any clip. But the Auto > Generated class and the fact that you can´t have two movieclips with > the same class is something that is limiting flash capabilities. > > Example: > I have a A world map where each country is a movieclip. And every one > will have the same behavior. Before flash 9, what I did is assign a > class called Country to each movie clip. This way, I can easy update > the behavior of all at the same time. > > With Flash 9, I can´t assign a class with the same name and can´t > specify a base class to the Auto Generated extends. > My suggestion is to do something like this: > http://neves.bs2.com.br/flex/preview.jpg > > When ask for AutoGenerate, a check box would enable an different base > class, and I would write on the textbox. So a movieClip called Brazil, > would have a autoGenerated class called Brazil that extends the class > Country, witch would be my base class. > > I´m shure no one can deny that this feature is essential. > ___ > 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] AS3 - Missing
Is this the place to talk about AS3? If not, where would be? The concept of any movieClip be a class is very powerfull, given the ability to do new ClassName to create a copy of any clip. But the Auto Generated class and the fact that you can´t have two movieclips with the same class is something that is limiting flash capabilities. Example: I have a A world map where each country is a movieclip. And every one will have the same behavior. Before flash 9, what I did is assign a class called Country to each movie clip. This way, I can easy update the behavior of all at the same time. With Flash 9, I can´t assign a class with the same name and can´t specify a base class to the Auto Generated extends. My suggestion is to do something like this: http://neves.bs2.com.br/flex/preview.jpg When ask for AutoGenerate, a check box would enable an different base class, and I would write on the textbox. So a movieClip called Brazil, would have a autoGenerated class called Brazil that extends the class Country, witch would be my base class. I´m shure no one can deny that this feature is essential. ___ 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