RE: [Flashcoders] Remove elements from Array
Thanks for the comments and, trust me there is no epeen involved :-) Steven Sacks | BLITZ <[EMAIL PROTECTED]> wrote: That's a fantastic example of over-architecting if I ever saw one. Put away your epeen! ;) > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Arindam Dhar > Sent: Friday, December 22, 2006 12:10 AM > To: Flashcoders mailing list > Subject: Re: [Flashcoders] Remove elements from Array > > function removeElements(arr, level) { > > for (var i = 0; i> { > var tempArr = arr[i]; > > if(Number(tempArr[1] ) < Number(level)) > { > arr.splice(i, 1); > arguments.callee(arr, level); > } > > } > } > removeElements(myArray1, 0); > trace( myArray1); > > Arindam ___ 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 Send instant messages to your online friends http://asia.messenger.yahoo.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Flex + web services Was: Remove elements from Array
(please don't post questions by simly replying to a previous post, but create a new message - otherwise some e-mail clients will mix up threads and the unchanged subject will be totally confusing, too) BS> I have a Flex question. I have been considering FLEX 2.0, but when BS> I spoke with the guy at Adobe, the first thing he told me was that BS> FLEX could not consume web services without Flex Data Services and BS> the price he quoted me for the Departmental License was (well, BS> lets not say). BS> Is this true, or can FLEX consume a web serivce but with BS> limiations? By limitations, for example, not being able to consume BS> a .Net dataset directly - needing to pass the data into an array. Flex applications are able to use web services, as any Flash application can use them. See the docs for details: http://livedocs.macromedia.com/flex/2/docs/1095.html Flex Data Services is a big addition of course, but it is not always required - if the simple request-response method is enough for you and don't need proxying or other sophisticated server-side things, then you can go without FDS. And even if you need it, the single-CPU Flex Data Services 2 Express Edition is totally free. Attila ___ 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] problem with combobox within another clip
Hello :) in flash8 with FP8 compilation you can use the property _lockroot of the MovieClips. You wait the loading of your movie and you apply in the holder movie the value true on the _lockroot property. Example : var loader:MovieClipLoader = new MovieClipLoader() ; loader.addListener(this) ; // register the _root with the event model of the instance /** * Invoqued when the swf or picture is loading */ var onLoadInit:Function = function( target:MovieClip ):Void { target._lockroot = true ; // modify the _lockroot property of the container. } var mc:MovieClip = createEmptyMovieClip("holder_mc", 1) ; loader.loadClip("movie.swf", mc) ; PS : MovieClipLoader is better with this event model... EKA+ :) 2006/12/23, natalia Vikhtinskaya <[EMAIL PROTECTED]>: Hi to all Can anybody help me with this problem? I have combobox in swf file. This loading works well _root.loadMovie("movie.swf"); but with this _root.holder.loadMovie("movie.swf"); combobox does not work I need to load this swf in holder clip and don't know how to solve the problem. Thank you for help. ___ 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] problem with combobox within another clip
THANK YOU. Maybe you can give me one more advice. When holder clip is under mask I don't see my list. I understand that I should embed font somehow to combobox but could not find how. Is it possible that combobox works under mask? 2006/12/23, eka <[EMAIL PROTECTED]>: Hello :) in flash8 with FP8 compilation you can use the property _lockroot of the MovieClips. You wait the loading of your movie and you apply in the holder movie the value true on the _lockroot property. Example : var loader:MovieClipLoader = new MovieClipLoader() ; loader.addListener(this) ; // register the _root with the event model of the instance /** * Invoqued when the swf or picture is loading */ var onLoadInit:Function = function( target:MovieClip ):Void { target._lockroot = true ; // modify the _lockroot property of the container. } var mc:MovieClip = createEmptyMovieClip("holder_mc", 1) ; loader.loadClip("movie.swf", mc) ; PS : MovieClipLoader is better with this event model... EKA+ :) 2006/12/23, natalia Vikhtinskaya <[EMAIL PROTECTED]>: > > Hi to all > Can anybody help me with this problem? > I have combobox in swf file. > This loading works well > _root.loadMovie("movie.swf"); > > but with this > _root.holder.loadMovie("movie.swf"); > combobox does not work > > I need to load this swf in holder clip and don't know how to solve the > problem. > Thank you for help. > ___ > 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] Flex + web services Was: Remove elements from Array
The answer to your question is - you can consume any web service. I reccommend you look into fluorine for a web service that will actually convert c#.net classes into AMF3 objects returned from the web service call. Certain objects do not have a direct AMF representation - your dataset class is probably an example, unless it is just a class that contains a few members that are representable within AMF such as strings, arrays of strings, and so on. GL Seth - Original Message - From: "Rákos Attila" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Saturday, December 23, 2006 12:03 AM Subject: [Flashcoders] Flex + web services Was: Remove elements from Array (please don't post questions by simly replying to a previous post, but create a new message - otherwise some e-mail clients will mix up threads and the unchanged subject will be totally confusing, too) BS> I have a Flex question. I have been considering FLEX 2.0, but when BS> I spoke with the guy at Adobe, the first thing he told me was that BS> FLEX could not consume web services without Flex Data Services and BS> the price he quoted me for the Departmental License was (well, BS> lets not say). BS> Is this true, or can FLEX consume a web serivce but with BS> limiations? By limitations, for example, not being able to consume BS> a .Net dataset directly - needing to pass the data into an array. Flex applications are able to use web services, as any Flash application can use them. See the docs for details: http://livedocs.macromedia.com/flex/2/docs/1095.html Flex Data Services is a big addition of course, but it is not always required - if the simple request-response method is enough for you and don't need proxying or other sophisticated server-side things, then you can go without FDS. And even if you need it, the single-CPU Flex Data Services 2 Express Edition is totally free. Attila ___ 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] problem with combobox within another clip
Hello :) the panel of the combobox is an movieclip hide in the _root by macromedia in this component framework... you can't hide with a mask this panel beaucause the panel isn't in the same referencial :) If you want change this state... you must develop your component with actionscript and localize the panel of the combobox in the good referencial. Or you can try to read and modify the Macromedia class in the classes/mx packages in the install folder of flash. EKA+ :) 2006/12/23, natalia Vikhtinskaya <[EMAIL PROTECTED]>: THANK YOU. Maybe you can give me one more advice. When holder clip is under mask I don't see my list. I understand that I should embed font somehow to combobox but could not find how. Is it possible that combobox works under mask? 2006/12/23, eka <[EMAIL PROTECTED]>: > > Hello :) > > in flash8 with FP8 compilation you can use the property _lockroot of the > MovieClips. > > You wait the loading of your movie and you apply in the holder movie the > value true on the _lockroot property. > > Example : > > var loader:MovieClipLoader = new MovieClipLoader() ; > loader.addListener(this) ; // register the _root with the event model of > the > instance > > /** > * Invoqued when the swf or picture is loading > */ > var onLoadInit:Function = function( target:MovieClip ):Void > { > target._lockroot = true ; // modify the _lockroot property of the > container. > } > > var mc:MovieClip = createEmptyMovieClip("holder_mc", 1) ; > > loader.loadClip("movie.swf", mc) ; > > PS : MovieClipLoader is better with this event model... > > EKA+ :) > > 2006/12/23, natalia Vikhtinskaya <[EMAIL PROTECTED]>: > > > > Hi to all > > Can anybody help me with this problem? > > I have combobox in swf file. > > This loading works well > > _root.loadMovie("movie.swf"); > > > > but with this > > _root.holder.loadMovie("movie.swf"); > > combobox does not work > > > > I need to load this swf in holder clip and don't know how to solve the > > problem. > > Thank you for help. > > ___ > > 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] problem with combobox within another clip
No my clip holder is under mask. Combobox works but don't show text in opend list. 2006/12/23, eka <[EMAIL PROTECTED]>: Hello :) the panel of the combobox is an movieclip hide in the _root by macromedia in this component framework... you can't hide with a mask this panel beaucause the panel isn't in the same referencial :) If you want change this state... you must develop your component with actionscript and localize the panel of the combobox in the good referencial. Or you can try to read and modify the Macromedia class in the classes/mx packages in the install folder of flash. EKA+ :) 2006/12/23, natalia Vikhtinskaya <[EMAIL PROTECTED]>: > > THANK YOU. > Maybe you can give me one more advice. When holder clip is under mask I > don't see my list. I understand that I should embed font somehow to > combobox > but could not find how. Is it possible that combobox works under mask? > > > 2006/12/23, eka <[EMAIL PROTECTED]>: > > > > Hello :) > > > > in flash8 with FP8 compilation you can use the property _lockroot of the > > MovieClips. > > > > You wait the loading of your movie and you apply in the holder movie the > > value true on the _lockroot property. > > > > Example : > > > > var loader:MovieClipLoader = new MovieClipLoader() ; > > loader.addListener(this) ; // register the _root with the event model of > > the > > instance > > > > /** > > * Invoqued when the swf or picture is loading > > */ > > var onLoadInit:Function = function( target:MovieClip ):Void > > { > > target._lockroot = true ; // modify the _lockroot property of the > > container. > > } > > > > var mc:MovieClip = createEmptyMovieClip("holder_mc", 1) ; > > > > loader.loadClip("movie.swf", mc) ; > > > > PS : MovieClipLoader is better with this event model... > > > > EKA+ :) > > > > 2006/12/23, natalia Vikhtinskaya <[EMAIL PROTECTED]>: > > > > > > Hi to all > > > Can anybody help me with this problem? > > > I have combobox in swf file. > > > This loading works well > > > _root.loadMovie("movie.swf"); > > > > > > but with this > > > _root.holder.loadMovie("movie.swf"); > > > combobox does not work > > > > > > I need to load this swf in holder clip and don't know how to solve the > > > problem. > > > Thank you for help. > > > ___ > > > 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] problem with combobox within another clip
Hello :) 1 - use a movieclip to create your mask and the method MovieClip.setMask() (not a layer) 2 - if the first solution don't work. embed the fonts in the library and use the style of the component to embed the fonts and change the default font. EKA+ :) 2006/12/23, natalia Vikhtinskaya <[EMAIL PROTECTED]>: No my clip holder is under mask. Combobox works but don't show text in opend list. 2006/12/23, eka <[EMAIL PROTECTED]>: > > Hello :) > > the panel of the combobox is an movieclip hide in the _root by macromedia > in > this component framework... you can't hide with a mask this panel > beaucause > the panel isn't in the same referencial :) > > If you want change this state... you must develop your component with > actionscript and localize the panel of the combobox in the good > referencial. > Or you can try to read and modify the Macromedia class in the classes/mx > packages in the install folder of flash. > > EKA+ :) > > 2006/12/23, natalia Vikhtinskaya <[EMAIL PROTECTED]>: > > > > THANK YOU. > > Maybe you can give me one more advice. When holder clip is under mask I > > don't see my list. I understand that I should embed font somehow to > > combobox > > but could not find how. Is it possible that combobox works under mask? > > > > > > 2006/12/23, eka <[EMAIL PROTECTED]>: > > > > > > Hello :) > > > > > > in flash8 with FP8 compilation you can use the property _lockroot of > the > > > MovieClips. > > > > > > You wait the loading of your movie and you apply in the holder movie > the > > > value true on the _lockroot property. > > > > > > Example : > > > > > > var loader:MovieClipLoader = new MovieClipLoader() ; > > > loader.addListener(this) ; // register the _root with the event model > of > > > the > > > instance > > > > > > /** > > > * Invoqued when the swf or picture is loading > > > */ > > > var onLoadInit:Function = function( target:MovieClip ):Void > > > { > > > target._lockroot = true ; // modify the _lockroot property of the > > > container. > > > } > > > > > > var mc:MovieClip = createEmptyMovieClip("holder_mc", 1) ; > > > > > > loader.loadClip("movie.swf", mc) ; > > > > > > PS : MovieClipLoader is better with this event model... > > > > > > EKA+ :) > > > > > > 2006/12/23, natalia Vikhtinskaya <[EMAIL PROTECTED]>: > > > > > > > > Hi to all > > > > Can anybody help me with this problem? > > > > I have combobox in swf file. > > > > This loading works well > > > > _root.loadMovie("movie.swf"); > > > > > > > > but with this > > > > _root.holder.loadMovie("movie.swf"); > > > > combobox does not work > > > > > > > > I need to load this swf in holder clip and don't know how to solve > the > > > > problem. > > > > Thank you for help. > > > > ___ > > > > Flashcoders@chattyfig.figleaf.com > > > > To change your subscription options or search the archive: > > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > > > > > Brought to you by Fig Leaf Software > > > > Premier Authorized Adobe Consulting and Training > > > > http://www.figleaf.com > > > > http://training.figleaf.com > > > > > > > ___ > > > Flashcoders@chattyfig.figleaf.com > > > To change your subscription options or search the archive: > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > > > Brought to you by Fig Leaf Software > > > Premier Authorized Adobe Consulting and Training > > > http://www.figleaf.com > > > http://training.figleaf.com > > > > > ___ > > Flashcoders@chattyfig.figleaf.com > > To change your subscription options or search the archive: > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > Brought to you by Fig Leaf Software > > Premier Authorized Adobe Consulting and Training > > http://www.figleaf.com > > http://training.figleaf.com > > > ___ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] problem with combobox within another clip
Nothing helps. I embed Arial in to the library with name "my_font" (I did that in movie.swf) then in that movie I write myComboBox.setStyle("fontFamily", "my_font"); myComboBox.setStyle("fontSize", 12); or _global.style.setStyle("fontFamily", "my_font"); _global.style.setStyle("fontSize", 12); There is nothing see in the combobox in my main movie where I load movie.swfin clip "holder" . Holder clip is under mask. I even embed Arial to the library in my main movie with the same name. Nothing 2006/12/23, eka <[EMAIL PROTECTED]>: Hello :) 1 - use a movieclip to create your mask and the method MovieClip.setMask() (not a layer) 2 - if the first solution don't work. embed the fonts in the library and use the style of the component to embed the fonts and change the default font. EKA+ :) 2006/12/23, natalia Vikhtinskaya <[EMAIL PROTECTED]>: > > No my clip holder is under mask. Combobox works but don't show text in > opend > list. > > 2006/12/23, eka <[EMAIL PROTECTED]>: > > > > Hello :) > > > > the panel of the combobox is an movieclip hide in the _root by > macromedia > > in > > this component framework... you can't hide with a mask this panel > > beaucause > > the panel isn't in the same referencial :) > > > > If you want change this state... you must develop your component with > > actionscript and localize the panel of the combobox in the good > > referencial. > > Or you can try to read and modify the Macromedia class in the classes/mx > > packages in the install folder of flash. > > > > EKA+ :) > > > > 2006/12/23, natalia Vikhtinskaya <[EMAIL PROTECTED]>: > > > > > > THANK YOU. > > > Maybe you can give me one more advice. When holder clip is under mask > I > > > don't see my list. I understand that I should embed font somehow to > > > combobox > > > but could not find how. Is it possible that combobox works under mask? > > > > > > > > > 2006/12/23, eka <[EMAIL PROTECTED]>: > > > > > > > > Hello :) > > > > > > > > in flash8 with FP8 compilation you can use the property _lockroot of > > the > > > > MovieClips. > > > > > > > > You wait the loading of your movie and you apply in the holder movie > > the > > > > value true on the _lockroot property. > > > > > > > > Example : > > > > > > > > var loader:MovieClipLoader = new MovieClipLoader() ; > > > > loader.addListener(this) ; // register the _root with the event > model > > of > > > > the > > > > instance > > > > > > > > /** > > > > * Invoqued when the swf or picture is loading > > > > */ > > > > var onLoadInit:Function = function( target:MovieClip ):Void > > > > { > > > > target._lockroot = true ; // modify the _lockroot property of > the > > > > container. > > > > } > > > > > > > > var mc:MovieClip = createEmptyMovieClip("holder_mc", 1) ; > > > > > > > > loader.loadClip("movie.swf", mc) ; > > > > > > > > PS : MovieClipLoader is better with this event model... > > > > > > > > EKA+ :) > > > > > > > > 2006/12/23, natalia Vikhtinskaya <[EMAIL PROTECTED]>: > > > > > > > > > > Hi to all > > > > > Can anybody help me with this problem? > > > > > I have combobox in swf file. > > > > > This loading works well > > > > > _root.loadMovie("movie.swf"); > > > > > > > > > > but with this > > > > > _root.holder.loadMovie("movie.swf"); > > > > > combobox does not work > > > > > > > > > > I need to load this swf in holder clip and don't know how to solve > > the > > > > > problem. > > > > > Thank you for help. > > > > > ___ > > > > > 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
Re: [Flashcoders] problem with combobox within another clip
Hello :) dont forget the property embedFonts : myComboBox.setStyleProperty("embedFonts", true); myComboBox.setStyleProperty("textFont", "fontID"); myComboBox.setStyleProperty("textSize", 10); with "fontID" the link of your font in the library of flash (right button on the symbol to attach the font in the first frame of the animation) EKA+ :) 2006/12/23, natalia Vikhtinskaya <[EMAIL PROTECTED]>: Nothing helps. I embed Arial in to the library with name "my_font" (I did that in movie.swf) then in that movie I write myComboBox.setStyle("fontFamily", "my_font"); myComboBox.setStyle("fontSize", 12); or _global.style.setStyle("fontFamily", "my_font"); _global.style.setStyle("fontSize", 12); There is nothing see in the combobox in my main movie where I load movie.swfin clip "holder" . Holder clip is under mask. I even embed Arial to the library in my main movie with the same name. Nothing 2006/12/23, eka <[EMAIL PROTECTED]>: > > Hello :) > > 1 - use a movieclip to create your mask and the method MovieClip.setMask () > (not a layer) > > 2 - if the first solution don't work. embed the fonts in the library and > use > the style of the component to embed the fonts and change the default font. > > EKA+ :) > > 2006/12/23, natalia Vikhtinskaya <[EMAIL PROTECTED]>: > > > > No my clip holder is under mask. Combobox works but don't show text in > > opend > > list. > > > > 2006/12/23, eka <[EMAIL PROTECTED]>: > > > > > > Hello :) > > > > > > the panel of the combobox is an movieclip hide in the _root by > > macromedia > > > in > > > this component framework... you can't hide with a mask this panel > > > beaucause > > > the panel isn't in the same referencial :) > > > > > > If you want change this state... you must develop your component with > > > actionscript and localize the panel of the combobox in the good > > > referencial. > > > Or you can try to read and modify the Macromedia class in the > classes/mx > > > packages in the install folder of flash. > > > > > > EKA+ :) > > > > > > 2006/12/23, natalia Vikhtinskaya <[EMAIL PROTECTED]>: > > > > > > > > THANK YOU. > > > > Maybe you can give me one more advice. When holder clip is under > mask > > I > > > > don't see my list. I understand that I should embed font somehow to > > > > combobox > > > > but could not find how. Is it possible that combobox works under > mask? > > > > > > > > > > > > 2006/12/23, eka <[EMAIL PROTECTED]>: > > > > > > > > > > Hello :) > > > > > > > > > > in flash8 with FP8 compilation you can use the property _lockroot > of > > > the > > > > > MovieClips. > > > > > > > > > > You wait the loading of your movie and you apply in the holder > movie > > > the > > > > > value true on the _lockroot property. > > > > > > > > > > Example : > > > > > > > > > > var loader:MovieClipLoader = new MovieClipLoader() ; > > > > > loader.addListener(this) ; // register the _root with the event > > model > > > of > > > > > the > > > > > instance > > > > > > > > > > /** > > > > > * Invoqued when the swf or picture is loading > > > > > */ > > > > > var onLoadInit:Function = function( target:MovieClip ):Void > > > > > { > > > > > target._lockroot = true ; // modify the _lockroot property of > > the > > > > > container. > > > > > } > > > > > > > > > > var mc:MovieClip = createEmptyMovieClip("holder_mc", 1) ; > > > > > > > > > > loader.loadClip("movie.swf", mc) ; > > > > > > > > > > PS : MovieClipLoader is better with this event model... > > > > > > > > > > EKA+ :) > > > > > > > > > > 2006/12/23, natalia Vikhtinskaya <[EMAIL PROTECTED]>: > > > > > > > > > > > > Hi to all > > > > > > Can anybody help me with this problem? > > > > > > I have combobox in swf file. > > > > > > This loading works well > > > > > > _root.loadMovie("movie.swf"); > > > > > > > > > > > > but with this > > > > > > _root.holder.loadMovie("movie.swf"); > > > > > > combobox does not work > > > > > > > > > > > > I need to load this swf in holder clip and don't know how to > solve > > > the > > > > > > problem. > > > > > > Thank you for help. > > > > > > ___ > > > > > > 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 > > > > > > > > > ___ > > > > Flashco
Re: [Flashcoders] problem with combobox within another clip
!!! my problem that I did not use myComboBox.setStyle("embedFonts", true); THANK YOU!!! 2006/12/23, eka <[EMAIL PROTECTED]>: Hello :) dont forget the property embedFonts : myComboBox.setStyleProperty("embedFonts", true); myComboBox.setStyleProperty("textFont", "fontID"); myComboBox.setStyleProperty("textSize", 10); with "fontID" the link of your font in the library of flash (right button on the symbol to attach the font in the first frame of the animation) EKA+ :) 2006/12/23, natalia Vikhtinskaya <[EMAIL PROTECTED]>: > > Nothing helps. > I embed Arial in to the library with name "my_font" (I did that in > movie.swf) then in that movie I write > myComboBox.setStyle("fontFamily", "my_font"); > myComboBox.setStyle("fontSize", 12); > or > _global.style.setStyle("fontFamily", "my_font"); > _global.style.setStyle("fontSize", 12); > > There is nothing see in the combobox in my main movie where I load > movie.swfin clip "holder" . Holder clip is under mask. > I even embed Arial to the library in my main movie with the same name. > Nothing > > > 2006/12/23, eka <[EMAIL PROTECTED]>: > > > > Hello :) > > > > 1 - use a movieclip to create your mask and the method MovieClip.setMask > () > > (not a layer) > > > > 2 - if the first solution don't work. embed the fonts in the library and > > use > > the style of the component to embed the fonts and change the default > font. > > > > EKA+ :) > > > > 2006/12/23, natalia Vikhtinskaya <[EMAIL PROTECTED]>: > > > > > > No my clip holder is under mask. Combobox works but don't show text in > > > opend > > > list. > > > > > > 2006/12/23, eka <[EMAIL PROTECTED]>: > > > > > > > > Hello :) > > > > > > > > the panel of the combobox is an movieclip hide in the _root by > > > macromedia > > > > in > > > > this component framework... you can't hide with a mask this panel > > > > beaucause > > > > the panel isn't in the same referencial :) > > > > > > > > If you want change this state... you must develop your component > with > > > > actionscript and localize the panel of the combobox in the good > > > > referencial. > > > > Or you can try to read and modify the Macromedia class in the > > classes/mx > > > > packages in the install folder of flash. > > > > > > > > EKA+ :) > > > > > > > > 2006/12/23, natalia Vikhtinskaya <[EMAIL PROTECTED]>: > > > > > > > > > > THANK YOU. > > > > > Maybe you can give me one more advice. When holder clip is under > > mask > > > I > > > > > don't see my list. I understand that I should embed font somehow > to > > > > > combobox > > > > > but could not find how. Is it possible that combobox works under > > mask? > > > > > > > > > > > > > > > 2006/12/23, eka <[EMAIL PROTECTED]>: > > > > > > > > > > > > Hello :) > > > > > > > > > > > > in flash8 with FP8 compilation you can use the property > _lockroot > > of > > > > the > > > > > > MovieClips. > > > > > > > > > > > > You wait the loading of your movie and you apply in the holder > > movie > > > > the > > > > > > value true on the _lockroot property. > > > > > > > > > > > > Example : > > > > > > > > > > > > var loader:MovieClipLoader = new MovieClipLoader() ; > > > > > > loader.addListener(this) ; // register the _root with the event > > > model > > > > of > > > > > > the > > > > > > instance > > > > > > > > > > > > /** > > > > > > * Invoqued when the swf or picture is loading > > > > > > */ > > > > > > var onLoadInit:Function = function( target:MovieClip ):Void > > > > > > { > > > > > > target._lockroot = true ; // modify the _lockroot property > of > > > the > > > > > > container. > > > > > > } > > > > > > > > > > > > var mc:MovieClip = createEmptyMovieClip("holder_mc", 1) ; > > > > > > > > > > > > loader.loadClip("movie.swf", mc) ; > > > > > > > > > > > > PS : MovieClipLoader is better with this event model... > > > > > > > > > > > > EKA+ :) > > > > > > > > > > > > 2006/12/23, natalia Vikhtinskaya <[EMAIL PROTECTED]>: > > > > > > > > > > > > > > Hi to all > > > > > > > Can anybody help me with this problem? > > > > > > > I have combobox in swf file. > > > > > > > This loading works well > > > > > > > _root.loadMovie("movie.swf"); > > > > > > > > > > > > > > but with this > > > > > > > _root.holder.loadMovie("movie.swf"); > > > > > > > combobox does not work > > > > > > > > > > > > > > I need to load this swf in holder clip and don't know how to > > solve > > > > the > > > > > > > problem. > > > > > > > Thank you for help. > > > > > > > ___ > > > > > > > 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.figle
Re: [Flashcoders] problem with combobox within another clip
Hello :) All the response are in the documentation ;) Good continuation ;) EKA+ :) 2006/12/23, natalia Vikhtinskaya <[EMAIL PROTECTED]>: !!! my problem that I did not use myComboBox.setStyle("embedFonts", true); THANK YOU!!! 2006/12/23, eka <[EMAIL PROTECTED]>: > > Hello :) > > dont forget the property embedFonts : > > myComboBox.setStyleProperty("embedFonts", true); > myComboBox.setStyleProperty("textFont", "fontID"); > myComboBox.setStyleProperty("textSize", 10); > > with "fontID" the link of your font in the library of flash (right > button on the symbol to attach the font in the first frame of the > animation) > > EKA+ :) > > > > 2006/12/23, natalia Vikhtinskaya <[EMAIL PROTECTED]>: > > > > Nothing helps. > > I embed Arial in to the library with name "my_font" (I did that in > > movie.swf) then in that movie I write > > myComboBox.setStyle("fontFamily", "my_font"); > > myComboBox.setStyle("fontSize", 12); > > or > > _global.style.setStyle("fontFamily", "my_font"); > > _global.style.setStyle("fontSize", 12); > > > > There is nothing see in the combobox in my main movie where I load > > movie.swfin clip "holder" . Holder clip is under mask. > > I even embed Arial to the library in my main movie with the same name. > > Nothing > > > > > > 2006/12/23, eka <[EMAIL PROTECTED]>: > > > > > > Hello :) > > > > > > 1 - use a movieclip to create your mask and the method > MovieClip.setMask > > () > > > (not a layer) > > > > > > 2 - if the first solution don't work. embed the fonts in the library > and > > > use > > > the style of the component to embed the fonts and change the default > > font. > > > > > > EKA+ :) > > > > > > 2006/12/23, natalia Vikhtinskaya <[EMAIL PROTECTED]>: > > > > > > > > No my clip holder is under mask. Combobox works but don't show text > in > > > > opend > > > > list. > > > > > > > > 2006/12/23, eka <[EMAIL PROTECTED]>: > > > > > > > > > > Hello :) > > > > > > > > > > the panel of the combobox is an movieclip hide in the _root by > > > > macromedia > > > > > in > > > > > this component framework... you can't hide with a mask this panel > > > > > beaucause > > > > > the panel isn't in the same referencial :) > > > > > > > > > > If you want change this state... you must develop your component > > with > > > > > actionscript and localize the panel of the combobox in the good > > > > > referencial. > > > > > Or you can try to read and modify the Macromedia class in the > > > classes/mx > > > > > packages in the install folder of flash. > > > > > > > > > > EKA+ :) > > > > > > > > > > 2006/12/23, natalia Vikhtinskaya <[EMAIL PROTECTED]>: > > > > > > > > > > > > THANK YOU. > > > > > > Maybe you can give me one more advice. When holder clip is under > > > mask > > > > I > > > > > > don't see my list. I understand that I should embed font somehow > > to > > > > > > combobox > > > > > > but could not find how. Is it possible that combobox works under > > > mask? > > > > > > > > > > > > > > > > > > 2006/12/23, eka <[EMAIL PROTECTED]>: > > > > > > > > > > > > > > Hello :) > > > > > > > > > > > > > > in flash8 with FP8 compilation you can use the property > > _lockroot > > > of > > > > > the > > > > > > > MovieClips. > > > > > > > > > > > > > > You wait the loading of your movie and you apply in the holder > > > movie > > > > > the > > > > > > > value true on the _lockroot property. > > > > > > > > > > > > > > Example : > > > > > > > > > > > > > > var loader:MovieClipLoader = new MovieClipLoader() ; > > > > > > > loader.addListener(this) ; // register the _root with the > event > > > > model > > > > > of > > > > > > > the > > > > > > > instance > > > > > > > > > > > > > > /** > > > > > > > * Invoqued when the swf or picture is loading > > > > > > > */ > > > > > > > var onLoadInit:Function = function( target:MovieClip ):Void > > > > > > > { > > > > > > > target._lockroot = true ; // modify the _lockroot > property > > of > > > > the > > > > > > > container. > > > > > > > } > > > > > > > > > > > > > > var mc:MovieClip = createEmptyMovieClip("holder_mc", 1) ; > > > > > > > > > > > > > > loader.loadClip("movie.swf", mc) ; > > > > > > > > > > > > > > PS : MovieClipLoader is better with this event model... > > > > > > > > > > > > > > EKA+ :) > > > > > > > > > > > > > > 2006/12/23, natalia Vikhtinskaya <[EMAIL PROTECTED]>: > > > > > > > > > > > > > > > > Hi to all > > > > > > > > Can anybody help me with this problem? > > > > > > > > I have combobox in swf file. > > > > > > > > This loading works well > > > > > > > > _root.loadMovie("movie.swf"); > > > > > > > > > > > > > > > > but with this > > > > > > > > _root.holder.loadMovie("movie.swf"); > > > > > > > > combobox does not work > > > > > > > > > > > > > > > > I need to load this swf in holder clip and don't know how to > > > solve > > > > > the > > > > > > > > problem. > > > > > > > > Thank you for help. > > > > > > > > ___ > > > > > > > > Flashcoders@chattyfig.figleaf.com > > > > > > > > To
RE: [Flashcoders] Flex + web services Was: Remove elements from Array
Hi, Flex can consume Web Services without FDS. Please let me know who you spoke with Rakos so I can make sure to fix this miscommunication. Regards, David Adobe -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Seth Caldwell Sent: Saturday, December 23, 2006 3:47 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] Flex + web services Was: Remove elements from Array The answer to your question is - you can consume any web service. I reccommend you look into fluorine for a web service that will actually convert c#.net classes into AMF3 objects returned from the web service call. Certain objects do not have a direct AMF representation - your dataset class is probably an example, unless it is just a class that contains a few members that are representable within AMF such as strings, arrays of strings, and so on. GL Seth - Original Message - From: "Rákos Attila" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Saturday, December 23, 2006 12:03 AM Subject: [Flashcoders] Flex + web services Was: Remove elements from Array (please don't post questions by simly replying to a previous post, but create a new message - otherwise some e-mail clients will mix up threads and the unchanged subject will be totally confusing, too) BS> I have a Flex question. I have been considering FLEX 2.0, but when BS> I spoke with the guy at Adobe, the first thing he told me was that BS> FLEX could not consume web services without Flex Data Services and BS> the price he quoted me for the Departmental License was (well, BS> lets not say). BS> Is this true, or can FLEX consume a web serivce but with BS> limiations? By limitations, for example, not being able to consume BS> a .Net dataset directly - needing to pass the data into an array. Flex applications are able to use web services, as any Flash application can use them. See the docs for details: http://livedocs.macromedia.com/flex/2/docs/1095.html Flex Data Services is a big addition of course, but it is not always required - if the simple request-response method is enough for you and don't need proxying or other sophisticated server-side things, then you can go without FDS. And even if you need it, the single-CPU Flex Data Services 2 Express Edition is totally free. Attila ___ 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] Flex + web services
I spoke with an A. Barbier. He wanted me to write up some details of my project, which I did. That was some time ago - have not heard back from him - nor do I believe I ever will. In fact, I had contacted Adobe at least a month previous trying to get some information regarding Flex. It was only after many (and I mean MANY) attemps to get someone to contact me did I recieve a phone call. That phone call was rushed and really just focused on how I needed Flex Data Services to do what I could do now for free with FLASH and my little .Net Web Services. Steve From: [EMAIL PROTECTED] on behalf of David Mendels Sent: Sat 12/23/2006 10:06 AM To: Flashcoders mailing list Subject: RE: [Flashcoders] Flex + web services Was: Remove elements from Array Hi, Flex can consume Web Services without FDS. Please let me know who you spoke with Rakos so I can make sure to fix this miscommunication. Regards, David Adobe -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Seth Caldwell Sent: Saturday, December 23, 2006 3:47 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] Flex + web services Was: Remove elements from Array The answer to your question is - you can consume any web service. I reccommend you look into fluorine for a web service that will actually convert c#.net classes into AMF3 objects returned from the web service call. Certain objects do not have a direct AMF representation - your dataset class is probably an example, unless it is just a class that contains a few members that are representable within AMF such as strings, arrays of strings, and so on. GL Seth - Original Message - From: "Rákos Attila" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Saturday, December 23, 2006 12:03 AM Subject: [Flashcoders] Flex + web services Was: Remove elements from Array (please don't post questions by simly replying to a previous post, but create a new message - otherwise some e-mail clients will mix up threads and the unchanged subject will be totally confusing, too) BS> I have a Flex question. I have been considering FLEX 2.0, but when BS> I spoke with the guy at Adobe, the first thing he told me was that BS> FLEX could not consume web services without Flex Data Services and BS> the price he quoted me for the Departmental License was (well, BS> lets not say). BS> Is this true, or can FLEX consume a web serivce but with BS> limiations? By limitations, for example, not being able to consume BS> a .Net dataset directly - needing to pass the data into an array. Flex applications are able to use web services, as any Flash application can use them. See the docs for details: http://livedocs.macromedia.com/flex/2/docs/1095.html Flex Data Services is a big addition of course, but it is not always required - if the simple request-response method is enough for you and don't need proxying or other sophisticated server-side things, then you can go without FDS. And even if you need it, the single-CPU Flex Data Services 2 Express Edition is totally free. Attila ___ 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] problem with combobox within another clip
Hi again Yes of course but sometime I don't know where to find solution. So please help more. My continuation is not good. When combox is loaded in main movie I scroll list and when I move mouse to item trying to choose the item list closes. When I test original swf all work correctly.What can be wrong now? 2006/12/23, eka <[EMAIL PROTECTED]>: Hello :) All the response are in the documentation ;) Good continuation ;) EKA+ :) 2006/12/23, natalia Vikhtinskaya <[EMAIL PROTECTED]>: > > !!! my problem that I did not use > myComboBox.setStyle("embedFonts", true); > > THANK YOU!!! > > > 2006/12/23, eka <[EMAIL PROTECTED]>: > > > > Hello :) > > > > dont forget the property embedFonts : > > > > myComboBox.setStyleProperty("embedFonts", true); > > myComboBox.setStyleProperty("textFont", "fontID"); > > myComboBox.setStyleProperty("textSize", 10); > > > > with "fontID" the link of your font in the library of flash (right > > button on the symbol to attach the font in the first frame of the > > animation) > > > > EKA+ :) > > > > > > > > 2006/12/23, natalia Vikhtinskaya <[EMAIL PROTECTED]>: > > > > > > Nothing helps. > > > I embed Arial in to the library with name "my_font" (I did that in > > > movie.swf) then in that movie I write > > > myComboBox.setStyle("fontFamily", "my_font"); > > > myComboBox.setStyle("fontSize", 12); > > > or > > > _global.style.setStyle("fontFamily", "my_font"); > > > _global.style.setStyle("fontSize", 12); > > > > > > There is nothing see in the combobox in my main movie where I load > > > movie.swfin clip "holder" . Holder clip is under mask. > > > I even embed Arial to the library in my main movie with the same name. > > > Nothing > > > > > > > > > 2006/12/23, eka <[EMAIL PROTECTED]>: > > > > > > > > Hello :) > > > > > > > > 1 - use a movieclip to create your mask and the method > > MovieClip.setMask > > > () > > > > (not a layer) > > > > > > > > 2 - if the first solution don't work. embed the fonts in the library > > and > > > > use > > > > the style of the component to embed the fonts and change the default > > > font. > > > > > > > > EKA+ :) > > > > > > > > 2006/12/23, natalia Vikhtinskaya <[EMAIL PROTECTED]>: > > > > > > > > > > No my clip holder is under mask. Combobox works but don't show > text > > in > > > > > opend > > > > > list. > > > > > > > > > > 2006/12/23, eka <[EMAIL PROTECTED]>: > > > > > > > > > > > > Hello :) > > > > > > > > > > > > the panel of the combobox is an movieclip hide in the _root by > > > > > macromedia > > > > > > in > > > > > > this component framework... you can't hide with a mask this > panel > > > > > > beaucause > > > > > > the panel isn't in the same referencial :) > > > > > > > > > > > > If you want change this state... you must develop your component > > > with > > > > > > actionscript and localize the panel of the combobox in the good > > > > > > referencial. > > > > > > Or you can try to read and modify the Macromedia class in the > > > > classes/mx > > > > > > packages in the install folder of flash. > > > > > > > > > > > > EKA+ :) > > > > > > > > > > > > 2006/12/23, natalia Vikhtinskaya <[EMAIL PROTECTED]>: > > > > > > > > > > > > > > THANK YOU. > > > > > > > Maybe you can give me one more advice. When holder clip is > under > > > > mask > > > > > I > > > > > > > don't see my list. I understand that I should embed font > somehow > > > to > > > > > > > combobox > > > > > > > but could not find how. Is it possible that combobox works > under > > > > mask? > > > > > > > > > > > > > > > > > > > > > 2006/12/23, eka <[EMAIL PROTECTED]>: > > > > > > > > > > > > > > > > Hello :) > > > > > > > > > > > > > > > > in flash8 with FP8 compilation you can use the property > > > _lockroot > > > > of > > > > > > the > > > > > > > > MovieClips. > > > > > > > > > > > > > > > > You wait the loading of your movie and you apply in the > holder > > > > movie > > > > > > the > > > > > > > > value true on the _lockroot property. > > > > > > > > > > > > > > > > Example : > > > > > > > > > > > > > > > > var loader:MovieClipLoader = new MovieClipLoader() ; > > > > > > > > loader.addListener(this) ; // register the _root with the > > event > > > > > model > > > > > > of > > > > > > > > the > > > > > > > > instance > > > > > > > > > > > > > > > > /** > > > > > > > > * Invoqued when the swf or picture is loading > > > > > > > > */ > > > > > > > > var onLoadInit:Function = function( target:MovieClip ):Void > > > > > > > > { > > > > > > > > target._lockroot = true ; // modify the _lockroot > > property > > > of > > > > > the > > > > > > > > container. > > > > > > > > } > > > > > > > > > > > > > > > > var mc:MovieClip = createEmptyMovieClip("holder_mc", 1) ; > > > > > > > > > > > > > > > > loader.loadClip("movie.swf", mc) ; > > > > > > > > > > > > > > > > PS : MovieClipLoader is better with this event model... > > > > > > > > > > > > > > > > EKA+ :) > > > > > > > > > > > > > > > > 2006/12/23, natalia Vikhtinskaya <[EMAIL PROTECTED]>: > > > > > > > > > > > > > > > >
Re: [Flashcoders] Help with custom button (AS3)
I am not very versed on Flex Builder it self, but my first question is to ask why you are importing UICompnent? I can only guess that you have not pasted in all of your code here. Second, why not draw your arrow so that its center is at 0,0? Charles P. On 12/22/06, Reid Priedhorsky <[EMAIL PROTECTED]> wrote: Hi folks, I am trying to create a custom Button in AS3 using the Flex 2 SDK. It is pretty simple; I just want it to be a wedge shape that I can rotate to point in an arbitrary direction. My code is attached below, but I'm stuck on two issues: 1. Making it behave as regular buttons do in terms of mouse-over and mouse-down behavior (i.e. draw it differently in these cases). 2. Currently, when I rotate it, e.g.: it rotates around its 0,0 point, causing it to swing out of the area where Flash "thinks" it is, messing up the layout. I've been wandering through the docs and Google all afternoon, but I haven't figured these things out. Any help or pointers to appropriate documentation would be very much appreciated. TIA, Reid // This class defines a button which looks like an arrow. It points up // and relies on the rotation property to be pointed in the right // direction. package { import flash.display.Graphics; import mx.controls.Button; import mx.core.UIComponent; public class Arrow_Button extends Button { override protected function updateDisplayList(wd:Number, ht:Number) :void { var gr:Graphics = this.graphics; gr.clear(); gr.lineStyle(1); gr.beginFill(0xff8800); gr.moveTo(0, ht); gr.lineTo(wd, ht); gr.lineTo(wd/2, 0); gr.lineTo(0, ht); } } } ___ 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] problem with combobox within another clip
Hello :) Do you use the _lockroot property ? (my first comment explain this property) EKA+ :) 2006/12/23, natalia Vikhtinskaya <[EMAIL PROTECTED]>: Hi again Yes of course but sometime I don't know where to find solution. So please help more. My continuation is not good. When combox is loaded in main movie I scroll list and when I move mouse to item trying to choose the item list closes. When I test original swf all work correctly.What can be wrong now? 2006/12/23, eka <[EMAIL PROTECTED]>: > > Hello :) > > All the response are in the documentation ;) > > Good continuation ;) > > EKA+ :) > > 2006/12/23, natalia Vikhtinskaya <[EMAIL PROTECTED]>: > > > > !!! my problem that I did not use > > myComboBox.setStyle("embedFonts", true); > > > > THANK YOU!!! > > > > > > 2006/12/23, eka <[EMAIL PROTECTED]>: > > > > > > Hello :) > > > > > > dont forget the property embedFonts : > > > > > > myComboBox.setStyleProperty("embedFonts", true); > > > myComboBox.setStyleProperty("textFont", "fontID"); > > > myComboBox.setStyleProperty("textSize", 10); > > > > > > with "fontID" the link of your font in the library of flash (right > > > button on the symbol to attach the font in the first frame of the > > > animation) > > > > > > EKA+ :) > > > > > > > > > > > > 2006/12/23, natalia Vikhtinskaya <[EMAIL PROTECTED]>: > > > > > > > > Nothing helps. > > > > I embed Arial in to the library with name "my_font" (I did that in > > > > movie.swf) then in that movie I write > > > > myComboBox.setStyle("fontFamily", "my_font"); > > > > myComboBox.setStyle("fontSize", 12); > > > > or > > > > _global.style.setStyle("fontFamily", "my_font"); > > > > _global.style.setStyle("fontSize", 12); > > > > > > > > There is nothing see in the combobox in my main movie where I load > > > > movie.swfin clip "holder" . Holder clip is under mask. > > > > I even embed Arial to the library in my main movie with the same > name. > > > > Nothing > > > > > > > > > > > > 2006/12/23, eka <[EMAIL PROTECTED]>: > > > > > > > > > > Hello :) > > > > > > > > > > 1 - use a movieclip to create your mask and the method > > > MovieClip.setMask > > > > () > > > > > (not a layer) > > > > > > > > > > 2 - if the first solution don't work. embed the fonts in the > library > > > and > > > > > use > > > > > the style of the component to embed the fonts and change the > default > > > > font. > > > > > > > > > > EKA+ :) > > > > > > > > > > 2006/12/23, natalia Vikhtinskaya <[EMAIL PROTECTED]>: > > > > > > > > > > > > No my clip holder is under mask. Combobox works but don't show > > text > > > in > > > > > > opend > > > > > > list. > > > > > > > > > > > > 2006/12/23, eka <[EMAIL PROTECTED]>: > > > > > > > > > > > > > > Hello :) > > > > > > > > > > > > > > the panel of the combobox is an movieclip hide in the _root by > > > > > > macromedia > > > > > > > in > > > > > > > this component framework... you can't hide with a mask this > > panel > > > > > > > beaucause > > > > > > > the panel isn't in the same referencial :) > > > > > > > > > > > > > > If you want change this state... you must develop your > component > > > > with > > > > > > > actionscript and localize the panel of the combobox in the > good > > > > > > > referencial. > > > > > > > Or you can try to read and modify the Macromedia class in the > > > > > classes/mx > > > > > > > packages in the install folder of flash. > > > > > > > > > > > > > > EKA+ :) > > > > > > > > > > > > > > 2006/12/23, natalia Vikhtinskaya <[EMAIL PROTECTED]>: > > > > > > > > > > > > > > > > THANK YOU. > > > > > > > > Maybe you can give me one more advice. When holder clip is > > under > > > > > mask > > > > > > I > > > > > > > > don't see my list. I understand that I should embed font > > somehow > > > > to > > > > > > > > combobox > > > > > > > > but could not find how. Is it possible that combobox works > > under > > > > > mask? > > > > > > > > > > > > > > > > > > > > > > > > 2006/12/23, eka <[EMAIL PROTECTED]>: > > > > > > > > > > > > > > > > > > Hello :) > > > > > > > > > > > > > > > > > > in flash8 with FP8 compilation you can use the property > > > > _lockroot > > > > > of > > > > > > > the > > > > > > > > > MovieClips. > > > > > > > > > > > > > > > > > > You wait the loading of your movie and you apply in the > > holder > > > > > movie > > > > > > > the > > > > > > > > > value true on the _lockroot property. > > > > > > > > > > > > > > > > > > Example : > > > > > > > > > > > > > > > > > > var loader:MovieClipLoader = new MovieClipLoader() ; > > > > > > > > > loader.addListener(this) ; // register the _root with the > > > event > > > > > > model > > > > > > > of > > > > > > > > > the > > > > > > > > > instance > > > > > > > > > > > > > > > > > > /** > > > > > > > > > * Invoqued when the swf or picture is loading > > > > > > > > > */ > > > > > > > > > var onLoadInit:Function = function( target:MovieClip > ):Void > > > > > > > > > { > > > > > > > > > target._lockroot = true ; // modify the _lockroot > > > property > > > > of > >
Re: [Flashcoders] problem with combobox within another clip
yes 2006/12/23, eka <[EMAIL PROTECTED]>: Hello :) Do you use the _lockroot property ? (my first comment explain this property) EKA+ :) 2006/12/23, natalia Vikhtinskaya <[EMAIL PROTECTED]>: > > Hi again > Yes of course but sometime I don't know where to find solution. So please > help more. > My continuation is not good. When combox is loaded in main movie I scroll > list and when I move mouse to item trying to choose the item list closes. > When I test original swf all work correctly.What can be wrong now? > 2006/12/23, eka <[EMAIL PROTECTED]>: > > > > Hello :) > > > > All the response are in the documentation ;) > > > > Good continuation ;) > > > > EKA+ :) > > > > 2006/12/23, natalia Vikhtinskaya <[EMAIL PROTECTED]>: > > > > > > !!! my problem that I did not use > > > myComboBox.setStyle("embedFonts", true); > > > > > > THANK YOU!!! > > > > > > > > > 2006/12/23, eka <[EMAIL PROTECTED]>: > > > > > > > > Hello :) > > > > > > > > dont forget the property embedFonts : > > > > > > > > myComboBox.setStyleProperty("embedFonts", true); > > > > myComboBox.setStyleProperty("textFont", "fontID"); > > > > myComboBox.setStyleProperty("textSize", 10); > > > > > > > > with "fontID" the link of your font in the library of flash (right > > > > button on the symbol to attach the font in the first frame of the > > > > animation) > > > > > > > > EKA+ :) > > > > > > > > > > > > > > > > 2006/12/23, natalia Vikhtinskaya <[EMAIL PROTECTED]>: > > > > > > > > > > Nothing helps. > > > > > I embed Arial in to the library with name "my_font" (I did that in > > > > > movie.swf) then in that movie I write > > > > > myComboBox.setStyle("fontFamily", "my_font"); > > > > > myComboBox.setStyle("fontSize", 12); > > > > > or > > > > > _global.style.setStyle("fontFamily", "my_font"); > > > > > _global.style.setStyle("fontSize", 12); > > > > > > > > > > There is nothing see in the combobox in my main movie where I load > > > > > movie.swfin clip "holder" . Holder clip is under mask. > > > > > I even embed Arial to the library in my main movie with the same > > name. > > > > > Nothing > > > > > > > > > > > > > > > 2006/12/23, eka <[EMAIL PROTECTED]>: > > > > > > > > > > > > Hello :) > > > > > > > > > > > > 1 - use a movieclip to create your mask and the method > > > > MovieClip.setMask > > > > > () > > > > > > (not a layer) > > > > > > > > > > > > 2 - if the first solution don't work. embed the fonts in the > > library > > > > and > > > > > > use > > > > > > the style of the component to embed the fonts and change the > > default > > > > > font. > > > > > > > > > > > > EKA+ :) > > > > > > > > > > > > 2006/12/23, natalia Vikhtinskaya <[EMAIL PROTECTED]>: > > > > > > > > > > > > > > No my clip holder is under mask. Combobox works but don't show > > > text > > > > in > > > > > > > opend > > > > > > > list. > > > > > > > > > > > > > > 2006/12/23, eka <[EMAIL PROTECTED]>: > > > > > > > > > > > > > > > > Hello :) > > > > > > > > > > > > > > > > the panel of the combobox is an movieclip hide in the _root > by > > > > > > > macromedia > > > > > > > > in > > > > > > > > this component framework... you can't hide with a mask this > > > panel > > > > > > > > beaucause > > > > > > > > the panel isn't in the same referencial :) > > > > > > > > > > > > > > > > If you want change this state... you must develop your > > component > > > > > with > > > > > > > > actionscript and localize the panel of the combobox in the > > good > > > > > > > > referencial. > > > > > > > > Or you can try to read and modify the Macromedia class in > the > > > > > > classes/mx > > > > > > > > packages in the install folder of flash. > > > > > > > > > > > > > > > > EKA+ :) > > > > > > > > > > > > > > > > 2006/12/23, natalia Vikhtinskaya <[EMAIL PROTECTED]>: > > > > > > > > > > > > > > > > > > THANK YOU. > > > > > > > > > Maybe you can give me one more advice. When holder clip is > > > under > > > > > > mask > > > > > > > I > > > > > > > > > don't see my list. I understand that I should embed font > > > somehow > > > > > to > > > > > > > > > combobox > > > > > > > > > but could not find how. Is it possible that combobox works > > > under > > > > > > mask? > > > > > > > > > > > > > > > > > > > > > > > > > > > 2006/12/23, eka <[EMAIL PROTECTED]>: > > > > > > > > > > > > > > > > > > > > Hello :) > > > > > > > > > > > > > > > > > > > > in flash8 with FP8 compilation you can use the property > > > > > _lockroot > > > > > > of > > > > > > > > the > > > > > > > > > > MovieClips. > > > > > > > > > > > > > > > > > > > > You wait the loading of your movie and you apply in the > > > holder > > > > > > movie > > > > > > > > the > > > > > > > > > > value true on the _lockroot property. > > > > > > > > > > > > > > > > > > > > Example : > > > > > > > > > > > > > > > > > > > > var loader:MovieClipLoader = new MovieClipLoader() ; > > > > > > > > > > loader.addListener(this) ; // register the _root with > the > > > > event > > > > > > > model > > > > > > > > of > > > > > > > > > > the > >
Re: [Flashcoders] problem with combobox within another clip
I found that combox don't like when I do this trick in my main movie in one frame with stop()I load my movie.swf in clip "host" with preloader . onClipEvent (enterFrame) { if (this._url != _root._url) { _root.preload(this); } } preload is usual function that preload any swf function preload (theClip) { if (!theClip.doneLoading) { if (theClip._framesloaded > 0 && theClip._framesloaded == theClip._totalframes) { theClip.doneLoading = true; _root.gotoAndPlay("end"); theClip.stop(); } } else { theClip.stop(); } } } Host is invisible. Then in frame "end": _root.host.unloadMovie(); _root.holder.loadMovie(part); _root.holder._lockroot = true; So If I don't do preloading in clip host combox works well. Nothing understand... ___ 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] problem with combobox within another clip
I have found solution. If I want to load swf with combobox twice in two different clips I should remove first clip. I did unload. That was wrong. Maybe that helps somebody. 2006/12/23, natalia Vikhtinskaya <[EMAIL PROTECTED]>: I found that combox don't like when I do this trick in my main movie in one frame with stop()I load my movie.swf in clip "host" with preloader . onClipEvent (enterFrame) { if (this._url != _root._url) { _root.preload(this); } } preload is usual function that preload any swf function preload (theClip) { if (!theClip.doneLoading) { if (theClip._framesloaded > 0 && theClip._framesloaded == theClip._totalframes) { theClip.doneLoading = true; _root.gotoAndPlay("end"); theClip.stop(); } } else { theClip.stop(); } } } Host is invisible. Then in frame "end": _root.host.unloadMovie(); _root.holder.loadMovie(part); _root.holder._lockroot = true; So If I don't do preloading in clip host combox works well. Nothing understand... ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Re: Help with custom button (AS3)
Charles Parcell wrote: > Hi Charles, Thanks for your help! I am not very versed on Flex Builder it self, but my first question is to ask why you are importing UICompnent? I can only guess that you have not pasted in all of your code here. That's because I was trying to decide whether to subclass Button or UIComponent -- so far, they seem to work the same, but subclassing Button results in a gradiented roundrect being drawn over my own stuff. It's all there; just substitute UIComponent for Button when you read the code. :) Second, why not draw your arrow so that its center is at 0,0? This helps, but the layout is still kind of wonky. This also seems like an odd solution to me; this would mean that people drawing components would have to always work in four quadrants of the Cartesian plane instead of just one. Thanks, Reid On 12/22/06, Reid Priedhorsky <[EMAIL PROTECTED]> wrote: Hi folks, I am trying to create a custom Button in AS3 using the Flex 2 SDK. It is pretty simple; I just want it to be a wedge shape that I can rotate to point in an arbitrary direction. My code is attached below, but I'm stuck on two issues: 1. Making it behave as regular buttons do in terms of mouse-over and mouse-down behavior (i.e. draw it differently in these cases). 2. Currently, when I rotate it, e.g.: it rotates around its 0,0 point, causing it to swing out of the area where Flash "thinks" it is, messing up the layout. I've been wandering through the docs and Google all afternoon, but I haven't figured these things out. Any help or pointers to appropriate documentation would be very much appreciated. TIA, Reid // This class defines a button which looks like an arrow. It points up // and relies on the rotation property to be pointed in the right // direction. package { import flash.display.Graphics; import mx.controls.Button; import mx.core.UIComponent; public class Arrow_Button extends Button { override protected function updateDisplayList(wd:Number, ht:Number) :void { var gr:Graphics = this.graphics; gr.clear(); gr.lineStyle(1); gr.beginFill(0xff8800); gr.moveTo(0, ht); gr.lineTo(wd, ht); gr.lineTo(wd/2, 0); gr.lineTo(0, ht); } } } ___ 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 on Wii
As a potential work around, what version of Shockwave is in it? I am thinking perhaps embedding Flash i Shockwave to get a higher Flash version?? I know wishful thinking right?! Charles P. On 12/22/06, Josh Santangelo <[EMAIL PROTECTED]> wrote: The Wii's "Internet Channel" launched today, which is basically a downloadable version of Opera. Of course the first thing I did after getting it was check out what version of Flash was included. getVersion() returns "WII 7.0.70.0". Kind of lame that it's only Flash 7. It looks like wiicade.com, a site full of Flash games to play on the Wii, was surprised too: http://wiicade.com/ I wonder if there's any kind of hidden API to trap events from the Wii remote control. -josh ___ 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