RE: [Flashnewbie] Settings button -- more coding required for Act
ionScript1 2004-03-05 - By Jesse Warden
Back Oh; the components that Flash MX 2004 use, although most will work in Flash Player 6.0.79.0, will NOT work in AS1 as they are coded in AS2. You'll have to use another type of button.
-- --Original Message-- -- From: Ed@(protected) [mailto:Ed@(protected)] Sent: Friday, March 05, 2004 04:16 PM To: flashnewbie@(protected) Subject: RE: [Flashnewbie] Settings button -- more coding required for Act ionScript1.0?
On Fri, 5 Mar 2004, Jesse Warden wrote:
> What button are you using? A component from the library? Did you > apply a behavior to it or did you manually type this code in? >
Okay, like I said I'm using Flash MX Professional 2004. All I did was drag a Button from the UI Components in the Components panel. I dragged it to the stage. Then I changed the label to "Settings" in the Properties panel, just to put some appropiate label on the button. Then in the Actions panel I entered:
on (press) {
System.showSettings(2);
}
(The Actions panel where I typed this code had a tab labelled "Button", since the Button component that I had dragged to the stage was selected.)
Doing all this with the Publish settings on ActionScript 1.0 (and Flash Player 6.0) results in an empty white rectangle in place of that nice little button.
Doing this same thing (except with "click" in place of "press" in the code above) with the Publish settings on ActionScript *2.0* (and Flash Player 6.0) works perfectly.
But I need to do it in ActionScript 1.0 since my other components are ActionScript 1.0.
Ed
> -- --Original Message-- -- > From: Ed@(protected) [mailto:Ed@(protected)] > Sent: Friday, March 05, 2004 03:43 PM > To: flashnewbie@(protected) > Subject: RE: [Flashnewbie] Settings button -- more coding required for > Act ionScript1.0? > > > > On Fri, 5 Mar 2004, Jesse Warden wrote: > > > Change on(click) to on(press) > > > > Thanks -- that did remove the errors, and it works -- but the nice > little button with the label got replaced by an empty black and white > rectangle (no label). So I guess there is something else (to do to > make it work under ActionScript 1.0)? (I'm using Flash MX > Professional 2004.) > > Ed > > > > > > > -- --Original Message-- -- > > From: Ed@(protected) [mailto:Ed@(protected)] > > Sent: Friday, March 05, 2004 03:30 PM > > To: flashnewbie@(protected) > > Subject: [Flashnewbie] Settings button -- more coding required for > > ActionScript1.0? > > > > > > On Fri, 5 Mar 2004, Jesse Warden wrote: > > > > > I think to show that it's like System.showSettings(2); > > > > > > > Thank you again -- that was real easy to do in Flash MX > > Professional, with Action Script 2.0 specified in the Publish > > settings. > > > > I just dragged a button component to the stage, changed the label to > > "Seetings" in the Properties panel, and then added this code to the > > Actions panel for the button: > > > > on (click) { > > > > System.showSettings(2); > > > > } > > > > And it worked like a charm when I did the Test Movie. > > > > However when I changed the Publish settings to ActionScript 1.0, the > > test yielded errors. I'm guessing I have to do more coding for > > ActionScript 1.0, like explicitly adding event listeners or > > something *shrug*. Am I right? > > > > And would Flash MX (not 2004) have better documentation on simple > > stuff like this (how to do it in ActionScript 1.0)? I guess I have > > to stick to to ActionScript 1.0 coding since my other components > > (e.g., the CommunicationComponents, the FuncitonComponents for chat, > > etc.) are written in Action Script 1.0. So in that case would I be > > better off with just Flash MX if I need documentation that assumes > > ActionScript 1.0? Coz most of this MX Pro documentation (like the > > "How do I .." sections) assume ActionScript 2.0. > > > > Thanks > > > > Ed > > > > > > > > -- --Original Message-- -- > > > From: Ed@(protected) [mailto:Ed@(protected)] > > > Sent: Friday, March 05, 2004 01:53 PM > > > To: flashnewbie@(protected) > > > Subject: [Flashnewbie] Settings button > > > > > > > > > Well why I'm at it (or while you're at it), there's one other > > > nifty thing I saw in the voice chat that I liked, and that is a > > > "Settings" button that takes the user directly to the Macromedia > > > Flash Player Settings -- you know, what you normally get when you > > > do a right-mouse click on a Flash movie/app and click Settings -- > > > only difference is that in the case of this button, when clicked > > > it takes the user directly to the Microphone section of the Flash > > > player setting (the microphone tab is already selected instead of > > > the Privacy tab). > > > > > > Thanks > > > > > > Ed > > > > > > > > > -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --- > > > -- > > > - > > > Supported by Fig Leaf Software > > > -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ > > > Lower Prices for Certified Training! Check out new lower prices for > > > Certified Macromedia Training from Fig Leaf Software. Expand your > > > skill set with courses in ColdFusion, Flash, Rich Internet > > > Applications and .NET in the new year. Fig Leaf Software provides the > > > highest caliber instruction at our training centers in Washington > > > D.C., Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at > > > your location. > > > > > > Get the details at http://training.figleaf.com/ > > > -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --- > > > -- > > > -- > > > To unsubscribe, e-mail: flashnewbie-unsubscribe@(protected) > > > For additional commands, e-mail: > > > flashnewbie-help@(protected) > > > > > > > > > -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --- > > > -- > > > - > > > Supported by Fig Leaf Software > > > -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ > > > Lower Prices for Certified Training! Check out new lower prices for > > > Certified Macromedia Training from Fig Leaf Software. Expand your > > > skill set with courses in ColdFusion, Flash, Rich Internet > > > Applications and .NET in the new year. Fig Leaf Software provides the > > > highest caliber instruction at our training centers in Washington > > > D.C., Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at > > > your location. > > > > > > Get the details at http://training.figleaf.com/ > > > -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --- > > > -- > > > -- > > > To unsubscribe, e-mail: flashnewbie-unsubscribe@(protected) > > > For additional commands, e-mail: > > > flashnewbie-help@(protected) > > > > > > > > > > > > > > > -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----- > > - > > Supported by Fig Leaf Software > > -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ > > Lower Prices for Certified Training! Check out new lower prices for > > Certified Macromedia Training from Fig Leaf Software. Expand your > > skill set with courses in ColdFusion, Flash, Rich Internet > > Applications and .NET in the new year. Fig Leaf Software provides the > > highest caliber instruction at our training centers in Washington > > D.C., Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at > > your location. > > > > Get the details at http://training.figleaf.com/ > > -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----- > > -- > > To unsubscribe, e-mail: flashnewbie-unsubscribe@(protected) > > For additional commands, e-mail: > > flashnewbie-help@(protected) > > > > > > -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----- > > - > > Supported by Fig Leaf Software > > -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ > > Lower Prices for Certified Training! Check out new lower prices for > > Certified Macromedia Training from Fig Leaf Software. Expand your > > skill set with courses in ColdFusion, Flash, Rich Internet > > Applications and .NET in the new year. Fig Leaf Software provides the > > highest caliber instruction at our training centers in Washington > > D.C., Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at > > your location. > > > > Get the details at http://training.figleaf.com/ > > -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----- > > -- > > To unsubscribe, e-mail: flashnewbie-unsubscribe@(protected) > > For additional commands, e-mail: > > flashnewbie-help@(protected) > > > > > > > > > -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ > Supported by Fig Leaf Software > -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ > Lower Prices for Certified Training! Check out new lower prices for > Certified Macromedia Training from Fig Leaf Software. Expand your > skill set with courses in ColdFusion, Flash, Rich Internet > Applications and .NET in the new year. Fig Leaf Software provides the > highest caliber instruction at our training centers in Washington > D.C., Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at > your location. > > Get the details at http://training.figleaf.com/ > -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- > To unsubscribe, e-mail: flashnewbie-unsubscribe@(protected) > For additional commands, e-mail: > flashnewbie-help@(protected) > > > -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ > Supported by Fig Leaf Software > -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ > Lower Prices for Certified Training! Check out new lower prices for > Certified Macromedia Training from Fig Leaf Software. Expand your > skill set with courses in ColdFusion, Flash, Rich Internet > Applications and .NET in the new year. Fig Leaf Software provides the > highest caliber instruction at our training centers in Washington > D.C., Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at > your location. > > Get the details at http://training.figleaf.com/ > -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- > To unsubscribe, e-mail: flashnewbie-unsubscribe@(protected) > For additional commands, e-mail: > flashnewbie-help@(protected) > > >
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ Supported by Fig Leaf Software -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ Lower Prices for Certified Training! Check out new lower prices for Certified Macromedia Training from Fig Leaf Software. Expand your skill set with courses in ColdFusion, Flash, Rich Internet Applications and .NET in the new year. Fig Leaf Software provides the highest caliber instruction at our training centers in Washington D.C., Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location.
Get the details at http://training.figleaf.com/ -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- To unsubscribe, e-mail: flashnewbie-unsubscribe@(protected) For additional commands, e-mail: flashnewbie-help@(protected)
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ Supported by Fig Leaf Software -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ Lower Prices for Certified Training! Check out new lower prices for Certified Macromedia Training from Fig Leaf Software. Expand your skill set with courses in ColdFusion, Flash, Rich Internet Applications and .NET in the new year. Fig Leaf Software provides the highest caliber instruction at our training centers in Washington D.C., Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location.
Get the details at http://training.figleaf.com/ -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- To unsubscribe, e-mail: flashnewbie-unsubscribe@(protected) For additional commands, e-mail: flashnewbie-help@(protected)
|
|