RE: [Flashcoders] Passing a Variable to Adobe Acrobat
That makes sense. I just wanted to make sure it wasn't an issue with how I was making the getURL call from Flash. I'm still not sure why acrobat isn't receiving the variable. Anyone know of any acrobat lists I could post this on? Thanks. -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Nathan Mynarcik Sent: Tuesday, December 08, 2009 2:10 PM To: Flash Coders List Subject: Re: [Flashcoders] Passing a Variable to Adobe Acrobat If it did not work with HTML I would check the PDF. Doesn't seem to be a flash issue then. --Original Message-- From: Lord, Susan, CTR, DSS Sender: flashcoders-boun...@chattyfig.figleaf.com To: Flash Coders List ReplyTo: Flash Coders List Subject: [Flashcoders] Passing a Variable to Adobe Acrobat Sent: Dec 8, 2009 12:47 PM Hello, I am attempting to pass a variable to adobe acrobat (a pdf file) using a URL string (certificate.pdf?name). For some reason the pdf file is not receiving the variable. Do any of you have any experience with this? I am not sure if the problem is flash or the pdf. The pdf has a field within it. The name of the field is the the name of the variable being passed. I also attempted to do this through HTML and it did not work. Any thoughts or ideas are appreciated! Thanks! Susan ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Nathan Mynarcik Interactive Web Developer nat...@mynarcik.com 254.749.2525 www.mynarcik.com ___ 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] Passing a Variable to Adobe Acrobat
Hello, I am attempting to pass a variable to adobe acrobat (a pdf file) using a URL string (certificate.pdf?name). For some reason the pdf file is not receiving the variable. Do any of you have any experience with this? I am not sure if the problem is flash or the pdf. The pdf has a field within it. The name of the field is the the name of the variable being passed. I also attempted to do this through HTML and it did not work. Any thoughts or ideas are appreciated! Thanks! Susan ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Error playing flash
Hello, I have a client who is having difficulty playing all of our courses that contain flash 8. She is running flash 9. When she accesses the course, the source code for the page displays. This happens for both SCORM and non-SCORM courses. Have any of you seen anything like this happen? If so, how did you fix it? Thanks! Susan ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [BULK] Re: [Flashcoders] Is there a quick way to convert back to AS2?
The client is convinced that the Flash 9 has not permeated government systems yet. My point of view is how will we ever move forward unless we put the requirement out there? He does not want to force our students to upgrade their plug-ins, with as difficult it is to get technical support in the government (users have no control over their systems and there is a long approval process to get new software, even plug-ins approved). What are some good arguments for upgrading? I need to be able to convince him that this is the way to go! Any words of wisdom you could provide would be very much appreciated! Thank you! Susan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Andrews Sent: Wednesday, October 22, 2008 5:52 PM To: Flash Coders List Subject: [BULK] Re: [Flashcoders] Is there a quick way to convert back to AS2? Importance: Low How can anyone know how much effort is involved? It'll depend on how your code is written. What is sure is that it'll be a ton of work. Why does your client want to revert to AS2? If they insist you'll just have to charge accordingly. I reverted an AS3 video/slide player to AS2 and it was a PIA because the code was close to what it should be but had so many differences because the classes involved had changed between AS2 and AS3. It'd probably have been easier to dump the AS3 code and start from scratch. I'd probably do everything possible to not go back. Try and educate you client that it's a huge amount of work and one day they'll still want to go forward to AS3. Paul - Original Message - From: Lord, Susan, CTR, DSS [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Wednesday, October 22, 2008 10:11 PM Subject: [Flashcoders] Is there a quick way to convert back to AS2? I know this seems like a backwards question... but my client has requested (300 plus fla's later) that we revert our code back to AS2. I was wondering if there was a quick way to do this. When I ran my first piece in AS2 and it was searching for the event class. I was wondering if there was a quick way around this... like somehow incorporating the event class into an AS2 piece or will this piece completely have to be rewritten? Thanks! Susan ___ 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] Is there a quick way to convert back to AS2?
I know this seems like a backwards question... but my client has requested (300 plus fla's later) that we revert our code back to AS2. I was wondering if there was a quick way to do this. When I ran my first piece in AS2 and it was searching for the event class. I was wondering if there was a quick way around this... like somehow incorporating the event class into an AS2 piece or will this piece completely have to be rewritten? Thanks! Susan ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Layering, drawing a blank
Hi there, I cannot for the life of me remember what the method is to have a layer come to the top of the stacking order when you click it. Any help you can provide is appreciated! Thanks, Susan ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [BULK] Re: [Flashcoders] Layering, drawing a blank
AS3. I tried swapDepth() and getDepth, and a fewothers but none worked. Has it changed since AS2? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matt S. Sent: Monday, September 29, 2008 3:02 PM To: Flash Coders List Subject: [BULK] Re: [Flashcoders] Layering, drawing a blank Importance: Low AS2 or AS3? On Mon, Sep 29, 2008 at 2:48 PM, Lord, Susan, CTR, DSS [EMAIL PROTECTED] wrote: Hi there, I cannot for the life of me remember what the method is to have a layer come to the top of the stacking order when you click it. Any help you can provide is appreciated! Thanks, Susan ___ 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
RE: [BULK] Re: [Flashcoders] Layering, drawing a blank
What would my parentDisplayObject be if the objects were drawn directly onto the stage? They are now in an object array and I am manipulating them from there. I noticed that sometimes they drag behind other objects though, so wanted to make sure they always be on top. function startDragging(event:MouseEvent):void { for (i= 0; i count; i++) { if (event.target == aButtons[i] ) { trace(start dragging); event.target.startDrag(); } stage.addEventListener(MouseEvent.MOUSE_UP, stopDragging); } } -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of jonathan howe Sent: Monday, September 29, 2008 3:34 PM To: Flash Coders List Subject: Re: [BULK] Re: [Flashcoders] Layering, drawing a blank Importance: Low It absolutely has: the whole display model has changed for the better. Arguably the most understandable way to do it is a removeChild and addChild in succession. parentDisplayObjectName.removeChild(childYoureMoving); parentDisplayObjectName.addChild(childYoureMoving); This works because addChild() puts the new object at the top of the display order. The display object model is definitely worth doing a little reading on, though. -jonathan On Mon, Sep 29, 2008 at 3:06 PM, Lord, Susan, CTR, DSS [EMAIL PROTECTED] wrote: AS3. I tried swapDepth() and getDepth, and a fewothers but none worked. Has it changed since AS2? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matt S. Sent: Monday, September 29, 2008 3:02 PM To: Flash Coders List Subject: [BULK] Re: [Flashcoders] Layering, drawing a blank Importance: Low AS2 or AS3? On Mon, Sep 29, 2008 at 2:48 PM, Lord, Susan, CTR, DSS [EMAIL PROTECTED] wrote: Hi there, I cannot for the life of me remember what the method is to have a layer come to the top of the stacking order when you click it. Any help you can provide is appreciated! Thanks, Susan ___ 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 -- -jonathan howe :: 404.434.2321 :: 180 High St Apt 26 Portland, ME 04101 ___ 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
RE: [BULK] Re: [Flashcoders] Layering, drawing a blank
What an awesome reference! Thanks!! I used: setChildIndex(aButtons[i], numChildren - 1); And it worked like a charm. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Glen Pike Sent: Monday, September 29, 2008 3:37 PM To: Flash Coders List Subject: Re: [BULK] Re: [Flashcoders] Layering, drawing a blank Importance: Low Hi, It has changed - I think this may help: http://www.foundation-flash.com/tutorials/changingdepths/ If not, try googling AS3 + depth Glen Lord, Susan, CTR, DSS wrote: AS3. I tried swapDepth() and getDepth, and a fewothers but none worked. Has it changed since AS2? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matt S. Sent: Monday, September 29, 2008 3:02 PM To: Flash Coders List Subject: [BULK] Re: [Flashcoders] Layering, drawing a blank Importance: Low AS2 or AS3? On Mon, Sep 29, 2008 at 2:48 PM, Lord, Susan, CTR, DSS [EMAIL PROTECTED] wrote: Hi there, I cannot for the life of me remember what the method is to have a layer come to the top of the stacking order when you click it. Any help you can provide is appreciated! Thanks, Susan ___ 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 -- Glen Pike 01326 218440 www.glenpike.co.uk http://www.glenpike.co.uk ___ 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
RE: [Flashcoders] Problems creating a drag and drop
Turns out it was a layering issue with my movie clips. Also, of course, add the listener to the stage instead of to the button. It works great! :) Thanks so much for all your feedback. You all really helped me think of new places to troubleshoot. :) I just had to post my final coding, because for me, the newbie coder, I am excited I finally got it working! LOL! :D for (i= 0; i count; i++) { aButtons[i].addEventListener(MouseEvent.MOUSE_DOWN, startDragging); aButtons[i].mouseChildren = false; } function startDragging(event:MouseEvent):void { for (i= 0; i count; i++) { if (event.target == aButtons[i] ) { trace(start dragging); event.target.startDrag(); } stage.addEventListener(MouseEvent.MOUSE_UP, stopDragging); } } function stopDragging(event:MouseEvent):void { for (i= 0; i count; i++) { if (event.target == aButtons[i] ) { trace(stop dragging); aButtons[i].stopDrag(); //now figure out whether the drag is over a hit spot or not var hitSpot:Boolean; var index:Number; var snapPosition:Number; var snapInPlace:Boolean; for (index= 0; index count; index++) { hitSpot = event.target.hitTestObject(dropSpots[index]); if (hitSpot == true) { snapInPlace=hitSpot; snapPosition = index; }//end if trace(snap to +snapPosition + hitspot = + hitSpot); }//end for if (snapInPlace) { var snapX:Tween = new Tween(aButtons[i], x, Strong.easeOut, aButtons[i].x, dropSpots[snapPosition].x, .2, true); var snapy:Tween = new Tween(aButtons[i], y, Strong.easeOut, aButtons[i].y, dropSpots[snapPosition].y, .2, true); } else { var returnX:Tween = new Tween(aButtons[i], x, Strong.easeOut, aButtons[i].x, originalPositions[i].x, 1, true); var returnY:Tween = new Tween(aButtons[i], y, Strong.easeOut, aButtons[i].y, originalPositions[i].y, 1, true); }//end if hitSpot = false ; }//end for loop index }//end for i stage.removeEventListener(MouseEvent.MOUSE_UP, stopDragging); }//end stop dragfunction ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Problems creating a drag and drop
Thanks for all of your suggestions. I ended up restructuring the code and adding the event listeners for the mouse up to the stage instead and took them out of the array. It seems to be working well (as long as I keep my mouse on the stage). I am very happy to have a working model! If anyone has any ideas for the occasion when the user moves the mouse off stage, that would be great! One sample I saw had the following in the stopDrag code --if (event.target == circle || circle.contains(event.target))--- But the contains code did not work for me. Below is my current code. Again thanks! ~~~ for (i= 0; i count; i++) { aButtons[i].addEventListener(MouseEvent.MOUSE_DOWN, startDragging); aButtons[i].mouseChildren = false; } function startDragging(event:MouseEvent):void { for (i= 0; i count; i++) { if (event.target == aButtons[i] ) { trace(start dragging); aButtons[i].startDrag(); } stage.addEventListener(MouseEvent.MOUSE_UP, stopDragging); } } function stopDragging(event:MouseEvent):void { for (i= 0; i count; i++) { if (event.target == aButtons[i] ) { trace(stop dragging); aButtons[i] .stopDrag(); } } stage.removeEventListener(MouseEvent.MOUSE_UP, stopDragging); } ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Problems creating a drag and drop
Nevermind my last message... that was not the problem. The problem is my hit test. When I add the following code to determine whether the object is over the target, everything stops working: for (index= 0; index count; index++) { trace(aButtons[index].hitTestObject(dropSpots[index])); } Even having it in there as a simple trace messes things up. Any ideas on how to accommodate the hitTest? Is there a different way to do a hit test in AS3? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lord, Susan, CTR, DSS Sent: Thursday, September 25, 2008 4:43 PM To: Flash Coders List Subject: RE: [Flashcoders] Problems creating a drag and drop Thanks for all of your suggestions. I ended up restructuring the code and adding the event listeners for the mouse up to the stage instead and took them out of the array. It seems to be working well (as long as I keep my mouse on the stage). I am very happy to have a working model! If anyone has any ideas for the occasion when the user moves the mouse off stage, that would be great! One sample I saw had the following in the stopDrag code --if (event.target == circle || circle.contains(event.target))--- But the contains code did not work for me. Below is my current code. Again thanks! ~~~ for (i= 0; i count; i++) { aButtons[i].addEventListener(MouseEvent.MOUSE_DOWN, startDragging); aButtons[i].mouseChildren = false; } function startDragging(event:MouseEvent):void { for (i= 0; i count; i++) { if (event.target == aButtons[i] ) { trace(start dragging); aButtons[i].startDrag(); } stage.addEventListener(MouseEvent.MOUSE_UP, stopDragging); } } function stopDragging(event:MouseEvent):void { for (i= 0; i count; i++) { if (event.target == aButtons[i] ) { trace(stop dragging); aButtons[i] .stopDrag(); } } stage.removeEventListener(MouseEvent.MOUSE_UP, stopDragging); } ___ 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] Problems creating a drag and drop
Hi there, I am having problems with my event listener for my drag and drop. Sometimes it detects the mouse up event and sometimes it doesn't and won't let go of the object (stopDrag). Have any of you ever run into this? If so, is there a fix? Basically I have this coding... function stopDragging(event:MouseEvent):void { trace(mouse up) // There is more function code I just didn't want to paste it all in. } Triggered by: for (i= 0; i aButtons.length; i++) { aButtons[i].mouseChildren = false; aButtons[i].addEventListener(MouseEvent.MOUSE_DOWN, startDragging); aButtons[i].addEventListener(MouseEvent.MOUSE_UP, stopDragging); } Any ideas? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Problems creating a drag and drop
Thanks for the information. I think that may be part of my problem. I tried out the code on that site and Flash does not like the following circle.contains(event.target) If I take that out the code runs, but of course doesn't work. Does anyone know where I can find a good example on how to do a drag and drop in as3? I never had issues with this in 2. Thanks! Susan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matt S. Sent: Wednesday, September 24, 2008 3:25 PM To: Flash Coders List Subject: Re: [Flashcoders] Problems creating a drag and drop You might need to add the releaseOutside hack for AS3, since there is no releaseOutside anymore: http://www.kirupa.com/forum/showthread.php?p=1948182#post1948182 On Wed, Sep 24, 2008 at 2:43 PM, Lord, Susan, CTR, DSS [EMAIL PROTECTED] wrote: Hi there, I am having problems with my event listener for my drag and drop. Sometimes it detects the mouse up event and sometimes it doesn't and won't let go of the object (stopDrag). Have any of you ever run into this? If so, is there a fix? Basically I have this coding... function stopDragging(event:MouseEvent):void { trace(mouse up) // There is more function code I just didn't want to paste it all in. } Triggered by: for (i= 0; i aButtons.length; i++) { aButtons[i].mouseChildren = false; aButtons[i].addEventListener(MouseEvent.MOUSE_DOWN, startDragging); aButtons[i].addEventListener(MouseEvent.MOUSE_UP, stopDragging); } Any ideas? ___ 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] Drag and drop in AS3
Hi there, I am programming a drag and drop using a instance array. The problem I am having is that the instances have dynamic text within them. I am trying to track what symbol the user clicked so that I can drag that instance. Well... sometimes, the program registers the button name, and sometimes it registers the text within the button. Is there a clean way to prevent this from happening? Any help you can provide is appreciated! Thanks! Susan ~~ var aButtons:Array = new Array(b0, b1, b2, b3); aButtons[0].txDrag.text= Drag 1; aButtons[1].txDrag.text= Drag 2; aButtons[2].txDrag.text= Drag 3; aButtons[3].txDrag.text= Drag 4; //var _rectangle:Sprite; var i:Number; for (i= 0; i aButtons.length; i++) { aButtons[i].addEventListener(MouseEvent.MOUSE_DOWN, startDragging); aButtons[i].addEventListener(MouseEvent.MOUSE_UP, stopDragging); } function startDragging(event:MouseEvent):void { var count:Number = aButtons.length; var index:Number; trace(event.target.name) for (i = 0; i count; i++) { if (evt.target.name == aButtons[i].name ) { //drag code to be added... aButtons[i].startDrag(); } ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [BULK] Re: [Flashcoders] Drag and drop in AS3
aButtons[i].mouseChildren = false; worked like a charm! Thanks! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gerry Sent: Tuesday, September 23, 2008 11:23 AM To: Flash Coders List Subject: [BULK] Re: [Flashcoders] Drag and drop in AS3 Importance: Low Susan, Try... aButton[i].buttonMode = true; aButtons[i].mouseChildren = false; On Sep 23, 2008, at 10:58 AM, Lord, Susan, CTR, DSS wrote: Hi there, I am programming a drag and drop using a instance array. The problem I am having is that the instances have dynamic text within them. I am trying to track what symbol the user clicked so that I can drag that instance. Well... sometimes, the program registers the button name, and sometimes it registers the text within the button. Is there a clean way to prevent this from happening? Any help you can provide is appreciated! Thanks! Susan ~~ var aButtons:Array = new Array(b0, b1, b2, b3); aButtons[0].txDrag.text= Drag 1; aButtons[1].txDrag.text= Drag 2; aButtons[2].txDrag.text= Drag 3; aButtons[3].txDrag.text= Drag 4; //var _rectangle:Sprite; var i:Number; for (i= 0; i aButtons.length; i++) { aButtons[i].addEventListener(MouseEvent.MOUSE_DOWN, startDragging); aButtons[i].addEventListener(MouseEvent.MOUSE_UP, stopDragging); } function startDragging(event:MouseEvent):void { var count:Number = aButtons.length; var index:Number; trace(event.target.name) for (i = 0; i count; i++) { if (evt.target.name == aButtons[i].name ) { //drag code to be added... aButtons[i].startDrag(); } ___ 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
RE: [BULK] Re: [Flashcoders] OT - Detecting flash versions for a large site
This is really cool, Glen! Thanks for the heads up on Flash Analytics. I am going to implement this on my personal site! Unfortunately, I am with the gov't and we can't use the Google app on our site. I wish we could! Does anyone know if there is a way to write something that runs with the person first hits my internet home page... possibly an asp script that will detect the version of flash and write it out to a log file? Basically we want to create our own stats for our particular audience. We don't want the coding embedded in a SWF, since there are no swf's on our home page. Any advice or references you have would be most helpful! Thanks! Susan ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] OT - Detecting flash versions for a large site
Hi everyone, I am in a bit of a quandary... I need to do 2 things. First of all, I need to convince my gov't client that AS3 and flash 9 are the way to go for new development. Does anyone know of a good list of benefits I might be able to share with my client? My second task... I need to somehow detect what version of the flash player people are using who access our site and track this data. If I could prove that a certain percentage of people already have the Flash 9 player installed that would greatly help my case. Basically I need to accomplish this task in the background, so it won't disturb the user's workflow and track the data. We have about 80k users of our website. Is there a good way to do this that you might recommend? Any guidance you could provide is greatly appreciated! Thanks! Susan ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Coding question...
Hi there, I was wondering if there was an easy way to inactivate buttons. I activate a series of buttons in an array using the following: for (i = 0; i aRadioButtons.length; i++) { trace(aRadioButtons[i].name); aRadioButtons[i].addEventListener(MouseEvent.CLICK, buttonClicked); aSelected[i].addEventListener(MouseEvent.CLICK, buttonClicked); } I know there is a way to inactivate the listener, but cannot remember for the life of me how to do it. Any pointers you could provide are appreciated! Thanks, Susan ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Coding question...
Ok... I am feeling a bit clueless... I tried it three ways... aRadioButtons[1].removeEventListener(MouseEvent.CLICK, buttonClicked); and aRadioButtons[1].removeEventListener(MouseEvent.CLICK); and aRadioButtons[1].removeEventListener(); I am sure I am doing something simple wrong. Any direction you can provide is appreciated. Thanks! Susan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Monday, September 08, 2008 10:42 AM To: Flash Coders List Subject: RE: [Flashcoders] Coding question... I know there is a way to inactivate the listener, but cannot remember for the life of me how to do it. removeEventListener() on the button Jason Merrill Bank of America Enterprise Technology Global Risk LLD Instructional Technology Media Join the Bank of America Flash Platform Developer Community Are you a Bank of America associate interested in innovative learning ideas and technologies? Check out our internal Innovative Learning Blog subscribe. ___ 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
RE: [Flashcoders] Coding question...
DOH! I had a type-O. Thanks! Error between seat and keyboard LOL! Thanks! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Monday, September 08, 2008 11:16 AM To: Flash Coders List Subject: RE: [Flashcoders] Coding question... for (i = 0; i aRadioButtons.length; i++) { aRadioButtons[i].removeEventListener(MouseEvent.CLICK, buttonClicked); aSelected[i].removeEventListener(MouseEvent.CLICK, buttonClicked); } Should do the trick. It doesn't? By the way, what is the difference between the aRadioButtons array and the aSelected array? Jason Merrill Bank of America Enterprise Technology Global Risk LLD Instructional Technology Media Join the Bank of America Flash Platform Developer Community Are you a Bank of America associate interested in innovative learning ideas and technologies? Check out our internal Innovative Learning Blog subscribe. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lord, Susan, CTR, DSS Sent: Monday, September 08, 2008 10:34 AM To: Flash Coders List Subject: [Flashcoders] Coding question... Hi there, I was wondering if there was an easy way to inactivate buttons. I activate a series of buttons in an array using the following: for (i = 0; i aRadioButtons.length; i++) { trace(aRadioButtons[i].name); aRadioButtons[i].addEventListener(MouseEvent.CLICK, buttonClicked); aSelected[i].addEventListener(MouseEvent.CLICK, buttonClicked); } I know there is a way to inactivate the listener, but cannot remember for the life of me how to do it. Any pointers you could provide are appreciated! Thanks, Susan ___ 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] Unloading an SWF in Flash and controlling the loaded SWF
Hi there, I have a newbie question for you. I posted this to the newbie list and recieved no response. I am wondering if it might be too advanced for that list. For those of you who are on both lists, please excuse the double post. I have a pop-up box that I am loading as an external swf, using the following code: function displayHotword(evt:Event):void { trace(in function); var i =new Loader(); addChild(i); i.load(new URLRequest(hotword.swf)); i.scaleX = 1; i.scaleY = 1; i.x = 100; i.y = 150 ; } btClassified.addEventListener(MouseEvent.CLICK, displayHotword); I am not sure how to unload the movie. I am also not sure on how to control the movie when it is on the screen. In AS2, I always used a movie holder so I had an instance... with this method, I don't know what the movie instance would be. Right now to close the loaded SWF, I am using following code within the loaded swf file. function closeHotword(evt:Event):void { this.visible=false; } btClose.addEventListener(MouseEvent.CLICK, closeHotword); And simply making it invisible from the swf file. I am wondering if there is a better way to do this? It seems like this would cause some memory issues eventually as each time the student will click on the link to load pop-up window, it would create a new instance of the movie and just hide it, instead of unloading it. I am new to AS3 and not sure how to approach this. Any help you could provide is appreciated! Thanks! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [BULK] Re: [Flashcoders] Unloading an SWF in Flash and controlling the loadedSWF
Thanks Paul, I rewrote the code, so its easier to read: var request:URLRequest = new URLRequest(hotword.swf); var loader:Loader = new Loader() function displayHotword(evt:Event):void { loader.load(request); addChild(loader); loader.x = 100; loader.y = 150 } btClassified.addEventListener(MouseEvent.CLICK, displayHotword); My question is, how do I control the instance that is now on the stage? Say I wanted to create a function that would change the opacity of that movie or something like that. How do I reference that item. In the old flash, I would create a movie clip that would hold the swf and reference that instance name. With this new method, I have no instance name to reference. Also, I can't seem to talk to the file. If they click a button within the file (the close button), I want the popup removed from the stage. Right now, I am hiding (visibility = false) the clip and putting the code to hide it within the loaded swf. I am not communicating with the clip from the parent file. Any direction you could provide is very much appreciated! Thank you! Susan ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [BULK] Re: [Flashcoders] Unloading an SWF in Flash andcontrolling the loadedSWF
Your function cracked me up! LOL! Thanks! I will give it a shot. I just added the following to unload the movie clip: function unloadHotword(evt:Event):void { loader.unload(); } loader.addEventListener(MouseEvent.CLICK, unloadHotword); It seemed to work well. :) Now I just need to figure out how to incorporate my array of movie clips! :) Thanks! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of eric e. dolecki Sent: Tuesday, September 02, 2008 1:12 PM To: Flash Coders List Subject: Re: [BULK] Re: [Flashcoders] Unloading an SWF in Flash andcontrolling the loadedSWF Importance: Low I think you want to listen for the event of the loader being loaded then use .content for it. loader.addEventListener( Event.COMPLETE, iAmLoaded_Drunk ); function iAmLoaded_Drunk( e:Event ):void { var lo:Loader = e.target as Loader; lo.content.alpha = 20; // what you actually loaded } On Tue, Sep 2, 2008 at 12:55 PM, Lord, Susan, CTR, DSS [EMAIL PROTECTED] wrote: Thanks Paul, I rewrote the code, so its easier to read: var request:URLRequest = new URLRequest(hotword.swf); var loader:Loader = new Loader() function displayHotword(evt:Event):void { loader.load(request); addChild(loader); loader.x = 100; loader.y = 150 } btClassified.addEventListener(MouseEvent.CLICK, displayHotword); My question is, how do I control the instance that is now on the stage? Say I wanted to create a function that would change the opacity of that movie or something like that. How do I reference that item. In the old flash, I would create a movie clip that would hold the swf and reference that instance name. With this new method, I have no instance name to reference. Also, I can't seem to talk to the file. If they click a button within the file (the close button), I want the popup removed from the stage. Right now, I am hiding (visibility = false) the clip and putting the code to hide it within the loaded swf. I am not communicating with the clip from the parent file. Any direction you could provide is very much appreciated! Thank you! Susan ___ 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
RE: [BULK] Re: [Flashcoders] Unloading an SWF in Flashandcontrollingthe loadedSWF
Thank you, Paul! I was wondering if there might be a cleaner way to call my swf's. Below is my code. You will notice that each button calls a different swf. Any suggestions are appreciated! Thanks! Susan --- var fileName:String = ; var request:URLRequest = new URLRequest(fileName); var myMovie:Loader = new Loader() //load hotword swf function displayHotword(file:String):void { addChild(myMovie); myMovie.load(new URLRequest(file)); myMovie.x = 100; myMovie.y = 150; } //unload hotword swf function unloadHotword(evt:Event):void { //trace(evt); myMovie.unload(); removeChild(myMovie); } myMovie.addEventListener(MouseEvent.CLICK, unloadHotword); //click each hotword button to load a different swf function button1Clicked(evt:Event) { displayHotword(hotword.swf); } btHotWord1.addEventListener(MouseEvent.CLICK, button1Clicked); function button2Clicked(evt:Event) { displayHotword(hotword2.swf); } btHotWord2.addEventListener(MouseEvent.CLICK, button2Clicked); function button3Clicked(evt:Event) { displayHotword(hotword3.swf); } btHotWord3.addEventListener(MouseEvent.CLICK, button3Clicked); ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [BULK] Re: [Flashcoders] Unloading an SWF inFlashandcontrollingthe loadedSWF
I asked too soon... I found an easier way to activate the buttons using an array (see code below). Thanks again for your help! var fileName:String = ; var request:URLRequest = new URLRequest(fileName); var myMovie:Loader = new Loader(); //load hotword swf function displayHotword(file:String):void { addChild(myMovie); myMovie.load(new URLRequest(file)); myMovie.x = 100; myMovie.y = 150; } //unload hotword swf function unloadHotword(evt:Event):void { //trace(evt); myMovie.unload(); removeChild(myMovie); } myMovie.addEventListener(MouseEvent.CLICK, unloadHotword); //click each hotword button to load a different swf var aHotWord:Array = new Array(hotword.swf, hotword2.swf,hotword3.swf); var aHotButtons:Array = new Array(btHotWord0, btHotWord1, btHotWord2); for (var i:Number = 0; i aHotWord.length; i++) { trace(aHotWord[i]); aHotButtons[i].addEventListener(MouseEvent.CLICK, buttonClicked); } function buttonClicked(evt:Event) { trace(evt.target.name); var count:Number = aHotButtons.length; var index:Number; for (var i:Number = 0; i count; i++) { if (evt.target.name == aHotButtons[i].name) { index = i; trace(index) } } displayHotword(aHotWord[index]); } ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Using the TextArea Class
Hi there, When I use a TextArea and import HTML, I see the flash of the scroll bars come up, just prior to the text displaying. Is there anyway to avoid that flash? If the text string is not html, this does not happen. Thanks! Susan ~ import fl.controls.TextArea; import fl.events.ComponentEvent; import flash.display.Sprite; import flash.events.Event; import flash.events.TextEvent; import flash.text.TextField; ta1.editable=false; ta1.setStyle(textPadding,15); var testStringHTML:String = ' bfont face=Arial, Helvetica, sans-serifcolor=#364981 size = 16pxx/fontbrimg src=line.gif /p/pfont face=Arial, Helvetica, sans-serifcolor=#66 size = 12pxyy/f ont/b'; ta1.htmlText = testStringHTML; ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders