[Flashcoders] another stupid XML question
hi, small sample: ankematheve concept image path=images/a1.jpg br=413 ho=550 thumbpath= thumbnails/a1.jpg thumbwidth=56 thumbheight=75/image image path=images/vue.jpg br=550 ho=309 thumbpath= thumbnails/vue.jpg thumbwidth=56 thumbheight=75/image /concept details image path=images/a1.jpg br=413 ho=550 thumbpath= thumbnails/a1.jpg thumbwidth=56 thumbheight=75/image image path=images/a2.jpg br=550 ho=413 thumbpath= thumbnails/a2.jpg thumbwidth=56 thumbheight=75/image /details /ankematheve I'd like to be able to load and /or replace sections of this xml file. meaning: when I click a button on stage, i'd like thumbnails(that code has allready been done) to appear from the concept node. when I click another button on stage, i'd like that content to be removed (deleted from the stage, but not from the xml file ofcourse) and be replaced by content from the details node. yup, I feel stupid, but that's ok! Ben ___ 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] another stupid XML question
let me rephrase the question then: when I click a button, i want xml1.xml to be loaded when I click another button, i want xml1.xml to be replaced with xml2.xml thx Ben On 6/9/07, Rákos Attila [EMAIL PROTECTED] wrote: You are the only one who may know how to remove the thumbnails from the stage, since you are the only one who knows how did you created them, stored their references, etc. Your question is totally independent of XML, it's a matter of basic scripting and movieclip handling. Attila bd hi, bd small sample: bd ankematheve bd concept bd image path=images/a1.jpg br=413 ho=550 thumbpath= bd thumbnails/a1.jpg thumbwidth=56 thumbheight=75/image bd image path=images/vue.jpg br=550 ho=309 thumbpath= bd thumbnails/vue.jpg thumbwidth=56 thumbheight=75/image bd /concept bd details bd image path=images/a1.jpg br=413 ho=550 thumbpath= bd thumbnails/a1.jpg thumbwidth=56 thumbheight=75/image bd image path=images/a2.jpg br=550 ho=413 thumbpath= bd thumbnails/a2.jpg thumbwidth=56 thumbheight=75/image bd /details bd /ankematheve bd bd bd bd I'd like to be able to load and /or replace sections of this xml file. bd bd meaning: bd when I click a button on stage, i'd like thumbnails(that code has allready bd been done) to appear from the concept node. bd when I click another button on stage, i'd like that content to be removed bd (deleted from the stage, but not from the xml file ofcourse) and be replaced bd by content from the details node. bd bd yup, I feel stupid, but that's ok! bd bd Ben ___ 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] Firefox bug? external jpg's not loading in Firefox, are loading in IE7
http://www.citogrid.com/ankematheve/testfolder/index.html view in Firefox, then view in IE7. is there a fix for this problem, or am I doing something wrong, i've cut and pasted the actionscript code for the .fla on the page. 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
Re: [Flashcoders] thumbnail panel
you're a STAR Jesse. absolutely perfectly clean and simple!! thnks a million, I had spent a lot of time trying to find a solution based on knowledge I already had, but i simply did not know enough. Again, thanks, Ben On 6/5/07, Jesse Graupmann [EMAIL PROTECTED] wrote: // // // VERSION 1 // // var xspace = 20; var yspace = 20; var xmax = 400; var row = 0; var col = 0; var len = 10; for ( var i = 0; i len; i ++ ) { var depth = this.getNextHighestDepth(); var t = this.attachMovie ( box, box_ + i, depth ); var nx = ( t._width + xspace ) * col; if ( nx xmax ) { col = 0; ++row; nx = ( t._width + xspace ) * col; } var ny = ( t._height + yspace ) * row; ++col; t._x = nx; t._y = ny; } // // // VERSION 2 // // var xspace = 20; var yspace = 20; var width = xspace + 30; var height = yspace + 30; var rows = 5; var len = 10; for ( var i = 0; i len; i ++ ) { var depth = this.getNextHighestDepth(); var t = this.attachMovie ( box, box_ + i, depth ); var col = (i % rows); var row = (Math.floor( i/rows )); t._x = width * col; t._y = height * row; } _ Jesse Graupmann www.jessegraupmann.com www.justgooddesign.com/blog/ _ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ben deroo Sent: Monday, June 04, 2007 5:39 PM To: Flashcoders mailing list Subject: [Flashcoders] thumbnail panel hi, I'm trying to create a simple sample thumbnail panel with movieclips, which i'll later modify, but there seems to be something wrong in the code code: // for (var i:Number = 0; i10; i++) { var t = attachMovie(box, box+i, i+1); var Xspacing:Number = 20; var Xreset:Number = 0; var Yspacing:Number = 20; var counter:Number = 1; t._x += (t._width+Xspacing)*i; if (t._x400) { //counter++; t._y = (t._height+Yspacing); t._x = Xreset; t._x += (t._width+Xspacing)*(counter); } else { //counter++; } } //end code I'm trying to create several rows, but seem to be failing to do so, is this a conditional logic error? thanks for any help Ben ___ 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] thumbnail panel
hi, I'm trying to create a simple sample thumbnail panel with movieclips, which i'll later modify, but there seems to be something wrong in the code code: // for (var i:Number = 0; i10; i++) { var t = attachMovie(box, box+i, i+1); var Xspacing:Number = 20; var Xreset:Number = 0; var Yspacing:Number = 20; var counter:Number = 1; t._x += (t._width+Xspacing)*i; if (t._x400) { //counter++; t._y = (t._height+Yspacing); t._x = Xreset; t._x += (t._width+Xspacing)*(counter); } else { //counter++; } } //end code I'm trying to create several rows, but seem to be failing to do so, is this a conditional logic error? thanks for any help Ben ___ 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] MC position at any given time
a possible (partial) solution: // //import the basics // import mx.transitions.Tween; //define the motion //blok_mc is the instance name of a MovieClip // var myTween:Tween = new Tween(blok_mc, _x, mx.transitions.easing.Bounce.easeOut, 0, Stage.width-blok_mc._width, 3, true); // myTween.onMotionChanged = function() { //round off the position value somewhat //this.position is the key element var MyPos=Math.round(this.position); trace(MyPos); if (this.position80 this.position100) { trace(between 80 and 100); } }; // thanks again for your assistance, Ben On 8/30/06, Ramon Miguel M. Tayag [EMAIL PROTECTED] wrote: you can do sqdown.onMotionProgress - it'll dispatch an event every step of the way for you to track. There are a bunch of other undocumented events that Tween dispatches that you should check out ___ 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] MC position at any given time
/* the question: I want to detect the position of a MovieClip at any given time during a transition. When the clip reaches a certain point somewhere in the transition, i want the second clip to start moving also... e.g. startpoint before transition = 100px endpoint after transition = 200px when the MovieClip(square_mc) passes for example past .y=123px, i'd like to trace(your position is...+current position) and then move square2_mc to ._y=200 (or whatever position i enter in AS) */ import mx.transitions.*; import mx.transitions.easing.*; _root.attachMovie(blok_mc, square_mc, getNextHighestDepth()); _root.attachMovie(blok_mc, square2_mc, getNextHighestDepth()); // // square_mc._width = 60; square_mc._height = 20; square_mc._x = 100; square_mc._y = 20; // square2_mc._width = 60; square2_mc._height = 20; square2_mc._x = square_mc._x+square_mc._width+4; square2_mc._y = 20; // // // function bounceUp(theMc) { var sqdown:Tween = new Tween(theMc, _y, mx.transitions.easing.Elastic.easeOut, 20, 200, 10, true); } /* function bounceDown(theMc) { var sqdown:Tween = new Tween(theMc, _height, mx.transitions.easing.Bounce.easeOut, 200, 20, 1, true); } */ square_mc.onRollOver = function() { bounceUp(this); }; /* square_mc.onRollOut = function() { bounceDown(this); }; */ Any help would be appreciated, Ben ___ 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] MC position at any given time
thanks for the help guys, I'll certainly look into Fuse and learn a bit more about those undocumented events that Tween dispatches. Any suggestion as to where I can find documentation on that, or is that a bit sarcastic of me? kind regards, Ben On 8/29/06, Ryan Potter [EMAIL PROTECTED] wrote: Ben- I don't know if you have played with Fuse but it can do exactly what you want using the built in events. The mx tweens may be able to do the same thing, but I don't know. If you are going to use fuse look at the event onUpdateTween. http://www.mosessupposes.com/Fuse/ http://www.mosessupposes.com/Fuse/fuse1.1docs/ZigoEngine.html -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ben deroo Sent: Tuesday, August 29, 2006 7:55 AM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] MC position at any given time /* the question: I want to detect the position of a MovieClip at any given time during a transition. When the clip reaches a certain point somewhere in the transition, i want the second clip to start moving also... e.g. startpoint before transition = 100px endpoint after transition = 200px when the MovieClip(square_mc) passes for example past .y=123px, i'd like to trace(your position is...+current position) and then move square2_mc to ._y=200 (or whatever position i enter in AS) */ import mx.transitions.*; import mx.transitions.easing.*; _root.attachMovie(blok_mc, square_mc, getNextHighestDepth()); _root.attachMovie(blok_mc, square2_mc, getNextHighestDepth()); // // square_mc._width = 60; square_mc._height = 20; square_mc._x = 100; square_mc._y = 20; // square2_mc._width = 60; square2_mc._height = 20; square2_mc._x = square_mc._x+square_mc._width+4; square2_mc._y = 20; // // // function bounceUp(theMc) { var sqdown:Tween = new Tween(theMc, _y, mx.transitions.easing.Elastic.easeOut, 20, 200, 10, true); } /* function bounceDown(theMc) { var sqdown:Tween = new Tween(theMc, _height, mx.transitions.easing.Bounce.easeOut, 200, 20, 1, true); } */ square_mc.onRollOver = function() { bounceUp(this); }; /* square_mc.onRollOut = function() { bounceDown(this); }; */ Any help would be appreciated, Ben ___ 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] movieclip actions not working
Hi, The action on the m2 movieclip does not work, it will not launch a URL. I've posted a sample fla file here: http://www.citogrid.com/v3/images/fla/whynot.fla all actionscript is in the first frame of the main timeline. Remember, I ONLY want the URL to be launched when clicked on the red box. Sequence should be: launch the swf, mouse over the blue box, see the red box, click the red box and a URL should launch. So the m2 movieclip should trigger the getURL, not the m1 movieclip. I agree with you, it should be simple, and I can do it, but I'd like to do it using only movieclips and no buttons. That's where I'm stuck :-) thanks, Ben -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of a Sent: zondag 19 maart 2006 10:10 To: Flashcoders mailing list Subject: Re: [Flashcoders] movieclip actions not working could you show us a sample of how you are coding this? it seems like a very simple thing. and as it turns out, there is about 4 ways i could think of doing it right off the top of my head. whats not working? the link to the site? the rollover to frame 20? the more info you give us the easier it is to help. Ben Deroo wrote: that's not it, does not work. on what timeline are you putting your actions? I've tried on the main timeline and on the m1 timeline (which is what I think you mean) but both don't work. here's my description again: create a new movie create a blue square and make that a movieclip symbol , name it m1, create a red square and make that a movieclip symbol , name it m2, drag a copy of m1 to the stage and give it instance name m1 open m1 and add some frames to the timeline (50 or so, does not matter) stop action on frame 1 stop action on frame 20 at frame 20 (of the m1 timeline), drag a copy of movieclip m2 on the stage, name it m2, place it just below the blue square I want the following to happen: when a user rolls over the movieclip in the main timeline (m1), I want the m1 timeline to advance to frame 20. You should then see a blue square and a red square. When a user clicks on the RED square (m2), I want them to go to a website (http://www.website.com) anyone? thx, Ben ___ 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] movieclip actions not working
Thanks for your help, but have you actually tried it? When I paste your code, it does not make a difference at all, the m2 button still does not launch a url when clicked. again, here's a link to a fla. See if you can get that to work... http://www.citogrid.com/v3/images/fla/whynot.fla thx, Ben -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Byron Canfield Sent: maandag 20 maart 2006 0:33 To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] movieclip actions not working Your first button event handler has already intercepted the mouse event. The button event handler nested inside is therefore ignored entirely. For your first button event: m1.onRollOver = function() { gotoAndStop(20); //or play(); this.enabled = false; } -- Byron Barn Canfield stop action on frame 1 stop(); m1.onRollOver = function() { gotoAndStop(20); //or play(); } stop action on frame 20 stop(); m2.onRelease = function() { getURL(http://www.website.com;, _blank); } ___ 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] movieclip actions not working
Hi, the code for the m2 is on the first frame of the main timeline. I'd like all code to be on the first frame of the main timeline. also, to avoid confusion: there are not button instances, only movieclips, as you can see in the fla file. There are no code errors (according to flash) I'm sure what your code does is fine, but it does not achieve the set goal... when I click on the movieclip m2, I'd like a URL to be launched. does anyone know how to do this? thx, Ben -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Byron Canfield Sent: maandag 20 maart 2006 1:09 To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] movieclip actions not working All my code does is terminate the interception of the button event by the first button. It does not address other code errors. As was asked before, where is the code for the second button? Is it on frame twenty of the m1 movieclip? And, if so, has the button instantiated by the time the button event handler function is created? -- Byron Barn Canfield Thanks for your help, but have you actually tried it? When I paste your code, it does not make a difference at all, the m2 button still does not launch a url when clicked. again, here's a link to a fla. See if you can get that to work... http://www.citogrid.com/v3/images/fla/whynot.fla thx, Ben -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Byron Canfield Sent: maandag 20 maart 2006 0:33 To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] movieclip actions not working Your first button event handler has already intercepted the mouse event. The button event handler nested inside is therefore ignored entirely. For your first button event: m1.onRollOver = function() { gotoAndStop(20); //or play(); this.enabled = false; } -- Byron Barn Canfield stop action on frame 1 stop(); m1.onRollOver = function() { gotoAndStop(20); //or play(); } stop action on frame 20 stop(); m2.onRelease = function() { getURL(http://www.website.com;, _blank); } ___ 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] movieclip actions not working
have you tried that Byron, and does that work for you? I've tried it here, and makes no difference at all... strange that such a simple thing is so hard to solve... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Byron Canfield Sent: maandag 20 maart 2006 1:18 To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] movieclip actions not working Actually try this, instead. m1.onRollOver = function(){ delete this.onRollOver; //this.play(); this.gotoAndStop(20); } -- Byron Barn Canfield Thanks for your help, but have you actually tried it? When I paste your code, it does not make a difference at all, the m2 button still does not launch a url when clicked. again, here's a link to a fla. See if you can get that to work... http://www.citogrid.com/v3/images/fla/whynot.fla thx, Ben -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Byron Canfield Sent: maandag 20 maart 2006 0:33 To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] movieclip actions not working Your first button event handler has already intercepted the mouse event. The button event handler nested inside is therefore ignored entirely. For your first button event: m1.onRollOver = function() { gotoAndStop(20); //or play(); this.enabled = false; } -- Byron Barn Canfield stop action on frame 1 stop(); m1.onRollOver = function() { gotoAndStop(20); //or play(); } stop action on frame 20 stop(); m2.onRelease = function() { getURL(http://www.website.com;, _blank); } ___ 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] movieclip actions not working
thanks for the help. If you say it can never work, then I assume it can never work... I'll do a little rethinking as you suggest and use the oldstyle buttons where needed. Ben -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andy Johnston Sent: maandag 20 maart 2006 1:41 To: Flashcoders mailing list Subject: Re: [Flashcoders] movieclip actions not working ben, you cannot have a button inside another button... That is why your code wont work. paste this over your current code m1.onRollOver = function ():Void { this.gotoAndStop (20); }; m1.onRollOut = function ():Void { this.gotoAndStop (1); }; m1.m2.onPress = function ():Void { trace(HI) getURL (http://www.cnn.com;, _blank); }; as you will see the trace(HI) will never fire because the m1 button movieClips hit area will expand to the total size of the movieClip. rethink your setup, this will never work despite all the help in the world have you tried that Byron, and does that work for you? I've tried it here, and makes no difference at all... strange that such a simple thing is so hard to solve... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Byron Canfield Sent: maandag 20 maart 2006 1:18 To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] movieclip actions not working Actually try this, instead. m1.onRollOver = function(){ delete this.onRollOver; //this.play(); this.gotoAndStop(20); } ___ 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] movieclip actions not working
yes, I know, done that before.Like I said, I wanted to try something new by using only movieclips... unsuccessfully :-) thx for the help Ben -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andy Johnston Sent: maandag 20 maart 2006 2:19 To: Flashcoders mailing list Subject: Re: [Flashcoders] movieclip actions not working if thats the case you should have a movieClip that contains your buttons in the library. Set its linkage then attach it under your m1 movieClip... _ || m1 - main button menu_mc - library linkage _ || button1_mc // these are all instance named in the menu_mc clip in the library || button2_mc || button3_mc m1.onRollOver = function():Void{ var subMenu:MovieClip = attachMovie(menu_mc, menu_mc, 100); // grab the menu from library subMenu._x = this._x+this._height; // set the menu._x to the m1's x location plus its height subMenu._y = this._y; // set the menu._y to the m1's y location } maybe something along those lines? Yes, something like that, but i wanted: a) only use movieclips b) all actionscript in main timeline in frame 1 I can and have done it plenty of times using movieclip and regular buttons, no problem. Wanted to try something new, guess it was a bad idea :-) Ben -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andy Johnston Sent: maandag 20 maart 2006 1:55 To: Flashcoders mailing list Subject: Re: [Flashcoders] movieclip actions not working what are you trying to achieve with this anyhow? a drop down menu type of system or what? thanks for the help. If you say it can never work, then I assume it can never work... I'll do a little rethinking as you suggest and use the oldstyle buttons where needed. Ben -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andy Johnston Sent: maandag 20 maart 2006 1:41 To: Flashcoders mailing list Subject: Re: [Flashcoders] movieclip actions not working ben, you cannot have a button inside another button... That is why your code wont work. paste this over your current code m1.onRollOver = function ():Void { this.gotoAndStop (20); }; m1.onRollOut = function ():Void { this.gotoAndStop (1); }; m1.m2.onPress = function ():Void { trace(HI) getURL (http://www.cnn.com;, _blank); }; as you will see the trace(HI) will never fire because the m1 button movieClips hit area will expand to the total size of the movieClip. rethink your setup, this will never work despite all the help in the world have you tried that Byron, and does that work for you? I've tried it here, and makes no difference at all... strange that such a simple thing is so hard to solve... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Byron Canfield Sent: maandag 20 maart 2006 1:18 To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] movieclip actions not working Actually try this, instead. m1.onRollOver = function(){ delete this.onRollOver; //this.play(); this.gotoAndStop(20); } ___ 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:
[Flashcoders] movieclip actions not working
My mind is melting :-) Flash: create a new movie create a blue square and make that a movieclip symbol , name it m1, create a red square and make that a movieclip symbol , name it m2, drag a copy of m1 to the stage and give it instance name m1 open m1 and add some frames to the timeline (50 or so, does not matter) stop action on frame 1 stop action on frame 20 at frame 20, drag a copy of movieclip m2 on the stage, name it m2, place it just below the blue square I want the following to happen: when a user rolls over the movieclip in the main timeline (m1), I want the m1 timeline to advance to frame 20. You should then see a blue square and a red square. When a user clicks on the RED square (m2), I want them to go to a website (http://www.website.com) I keep getting these messages the script contains no errors when I validate the actionscript, and still nothing works. any help would be welcome, i'm sure it's a rookie mistake Ben ___ 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] movieclip actions not working
that's not it, does not work. on what timeline are you putting your actions? I've tried on the main timeline and on the m1 timeline (which is what I think you mean) but both don't work. here's my description again: create a new movie create a blue square and make that a movieclip symbol , name it m1, create a red square and make that a movieclip symbol , name it m2, drag a copy of m1 to the stage and give it instance name m1 open m1 and add some frames to the timeline (50 or so, does not matter) stop action on frame 1 stop action on frame 20 at frame 20 (of the m1 timeline), drag a copy of movieclip m2 on the stage, name it m2, place it just below the blue square I want the following to happen: when a user rolls over the movieclip in the main timeline (m1), I want the m1 timeline to advance to frame 20. You should then see a blue square and a red square. When a user clicks on the RED square (m2), I want them to go to a website (http://www.website.com) anyone? thx, Ben -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steven Sacks Sent: zondag 19 maart 2006 2:59 To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] movieclip actions not working stop action on frame 1 stop(); m1.onRollOver = function() { gotoAndStop(20); //or play(); } stop action on frame 20 stop(); m2.onRelease = function() { getURL(http://www.website.com;, _blank); } ___ 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] creating updatable flash sites (tutorial needed)
Hi, Are there any tutorials or samples out there that explain how I can make a flash site with a Content Management System? My client wants to be able to update the texts and some images in the site I am creating for them. Thx, Ben ___ 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] avi open in media player
Hi, Simple question: I have a movieclip that, when clicked on should have a avi file open in the users media player. The avi is located in the same folder. when I use this code (standard getURL): onClipEvent (mouseDown) { getURL (blabla.avi, _blank); } it attempts to open a new browser window with the avi in it, which is not what I want, I'd like the avi to open with the users avi-player (windows media player,...) How should I go about this? Thx, Ben ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] recommended books on XML in Flash
Thanks Johan, My hardcopy has not arrived yet, so I will certainly do a little pre-reading in the PDF. Ben -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Johan Lopes Sent: vrijdag 6 januari 2006 23:33 To: Flashcoders mailing list Subject: Re: [Flashcoders] recommended books on XML in Flash Hi, Just a note that you can download the Learning ActionScript 2.0 for Macromedia Flash 8 as PDF from MM's site. Although, I myself prefer to buy a hard copy if it's good. Link is here: http://download.macromedia.com/pub/documentation/en/flash/fl8/fl8_learning_a s2.zip /Johan On 1/5/06, Ben Deroo [EMAIL PROTECTED] wrote: thanks for the book suggestions, I ended up ordering a couple of books: Foundation PHP 5 for Flash Foundation ASP.NET for Flash Foundation XML for Flash Learning ActionScript 2.0 for Macromedia Flash 8 Using ActionScript 2.0 Components with Macromedia Flash 8 should keep me busy for a while :-) Ben -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ryan Potter Sent: dinsdag 3 januari 2006 21:49 To: Flashcoders mailing list Subject: RE: [Flashcoders] recommended books on XML in Flash Can I third that? Not to be mean, but I saw them speak at flash forward and Joey Lott had to keep answering questions they didn't know. He (Joey) was really nice about it, but it was ugly. I would start in the docs and here: http://www.actionscript.org/tutorials.shtml http://www.oreilly.com/catalog/actscptckbk/index.html?CMP=IL7015 http://www.oreilly.com/catalog/actscript2/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mark Lapasa Sent: Tuesday, January 03, 2006 1:14 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] recommended books on XML in Flash I heartily second this notion. Don't the get Jacobsen and Jacobsen book for all the same reasons. I just happened to gain a better insight from Flash's docs than the book. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Merrill, Jason Sent: Tuesday, January 03, 2006 11:14 AM To: Flashcoders mailing list Subject: RE: [Flashcoders] recommended books on XML in Flash Whatever you do, don't buy Flash and XML: A Developers Guide by Dov Jacobsen and Jesse Jacobsen - Addison-Wesley Press - besides being Flash 5, the book sucks. You get the impression these guys are much more into XML than Flash. If they even use Flash at all in their professional lives. Apologies in advance if you're on thist list and one of the authors. There's some good stuff in it, but for someone new to Flash or doing basic stuff, it's not the book for you. But even the advanced stuff lacks depth though. Jason Merrill | E-Learning Solutions | icfconsulting.com -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Ben Deroo Sent: Saturday, December 31, 2005 4:29 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] recommended books on XML in Flash Hi, The title says it all I guess. Are there any good books out there on the subject of Flash 8 and XML? I found one called XML in Flash from Que publications, but as far as I can tell it is for Flash 5 and was written in 2001. Is that still current? I am assuming not. What books should I read when just getting into this subject, again, using Flash 8 or Flash MX2004? Thanks for your help, Ben ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders NOTICE: This message is for the designated recipient only and may contain privileged or confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of this e-mail by you is prohibited. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo
RE: [Flashcoders] recommended books on XML in Flash
thanks for the book suggestions, I ended up ordering a couple of books: Foundation PHP 5 for Flash Foundation ASP.NET for Flash Foundation XML for Flash Learning ActionScript 2.0 for Macromedia Flash 8 Using ActionScript 2.0 Components with Macromedia Flash 8 should keep me busy for a while :-) Ben -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ryan Potter Sent: dinsdag 3 januari 2006 21:49 To: Flashcoders mailing list Subject: RE: [Flashcoders] recommended books on XML in Flash Can I third that? Not to be mean, but I saw them speak at flash forward and Joey Lott had to keep answering questions they didn't know. He (Joey) was really nice about it, but it was ugly. I would start in the docs and here: http://www.actionscript.org/tutorials.shtml http://www.oreilly.com/catalog/actscptckbk/index.html?CMP=IL7015 http://www.oreilly.com/catalog/actscript2/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mark Lapasa Sent: Tuesday, January 03, 2006 1:14 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] recommended books on XML in Flash I heartily second this notion. Don't the get Jacobsen and Jacobsen book for all the same reasons. I just happened to gain a better insight from Flash's docs than the book. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Merrill, Jason Sent: Tuesday, January 03, 2006 11:14 AM To: Flashcoders mailing list Subject: RE: [Flashcoders] recommended books on XML in Flash Whatever you do, don't buy Flash and XML: A Developers Guide by Dov Jacobsen and Jesse Jacobsen - Addison-Wesley Press - besides being Flash 5, the book sucks. You get the impression these guys are much more into XML than Flash. If they even use Flash at all in their professional lives. Apologies in advance if you're on thist list and one of the authors. There's some good stuff in it, but for someone new to Flash or doing basic stuff, it's not the book for you. But even the advanced stuff lacks depth though. Jason Merrill | E-Learning Solutions | icfconsulting.com -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Ben Deroo Sent: Saturday, December 31, 2005 4:29 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] recommended books on XML in Flash Hi, The title says it all I guess. Are there any good books out there on the subject of Flash 8 and XML? I found one called XML in Flash from Que publications, but as far as I can tell it is for Flash 5 and was written in 2001. Is that still current? I am assuming not. What books should I read when just getting into this subject, again, using Flash 8 or Flash MX2004? Thanks for your help, Ben ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders NOTICE: This message is for the designated recipient only and may contain privileged or confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of this e-mail by you is prohibited. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] anchors in dynamic textfield?
Hi, Bit of a problem: I have a dynamic textfield which loads about 10 pages of text externally. Textfield is formatted as html text. In the 10 pages, there are a few dozen titles, definitions of words ... These titles are all formatted in bold type btitle1/b. Is there a way in actionscript to have the text jump up or down with a button from title to title? Meaning: titles are always one word, the explanation might sometimes be a few paragraphs, I'd like the user to be able to click on something like a next button that would then scroll the text field down to the next title. In Dreamweaver, I would do this with anchor tags, but I don't know how to do this in actionscripting Might be simple, might be impossible, but any help would be greatly appreciated! Happy flashing, Ben ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders