For someone who know's their stuff! (pls review my pgming?)

Hello, Thank you for looking at my post! Now lets see if you survive to the end of it... I have about 103 lines of code which I have put together but I am very new to programming and I want to make sure it all makes sense and I'm not missing anything or doing anything wrong! I have gotten help from a bunch of individuals on this forum and it all works now!
I have a slideshow that loads through XML. The first picture slides on from the right and stops in the middle of the screen. There is a Next button and a Previous button. When the user presses Next, the currently displayed image slides off to the left as the next image slides on from the right and stops in the middle of the screen. If the user presses Previous, the currently displayed picture slides back off to the right and the previous picture slides on from the left. That is the basic concept of what this programming does. Oh and the buttons glow on and off as the user presses them.
If some kind soul could take the time to review my code and give me any pointers/critiques or comments etc. I would totally appreciate it and you can relax at the end of the day knowing you have done your good deed for the day/week!
import com.pixelfumes.reflect.*;
import flash.display.BitmapData;
import flash.display.MovieClip;
import flash.events.Event;
import gs.TweenMax;
import gs.easing.*;
var xmlRequest:URLRequest=new URLRequest("imageData.xml");
var xmlLoader:URLLoader =  new URLLoader();
xmlLoader.addEventListener(Event.COMPLETE, xmlLoadedF);
xmlLoader.load(xmlRequest);
var imgData:XML;
var imageReflect:Reflect;
var imageLoader:Loader;
var rawImage:String;
var rawH:String;
var rawW:String;
var imgNum:int = 0;
var lastImageIndex:int = 0;
var imageLoaderHost:MovieClip;
btnNext.addEventListener(MouseEvent.CLICK, nextImgF);
btnBack.addEventListener(MouseEvent.CLICK, prevImgF);
btnNext.buttonMode=true;
btnBack.buttonMode=true;
function xmlLoadedF(event:Event):void {
     imgData=new XML(event.target.data);
     packagedF();
//Loads picture:
function packagedF(e:Event = null):void {
     rawImage=imgData.image[imgNum].imgURL;
     lastImageIndex = imgData.*.length() - 1;
     rawW=imgData.image[imgNum].imgW;
     rawH=imgData.image[imgNum].imgH;
     imageLoaderHost = new MovieClip;
     imageLoader = new Loader;
     imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadCompleteHandler);
     imageLoader.load(new URLRequest(rawImage));
     master_mc.addChild(imageLoaderHost);
     imageLoaderHost.addChild(imageLoader);
     imageLoaderHost.y = (stage.stageHeight - Number(rawH)) /5;
     imageLoaderHost.x = 1500;
     TweenMax.to(imageLoaderHost, 1.5, {x:(stage.stageWidth - Number(rawW)) /1.75, y:(stage.stageHeight - Number(rawH)) /5, ease:Quad.easeInOut});
     TweenMax.from(imageLoader, 1.5,  {blurFilter:{blurX:100}});
     imageLoader.scaleX=.8;
     imageLoader.scaleY=.8;
     clearInterval(imgNum);
     clearInterval(lastImageIndex);
function loadCompleteHandler(event:Event) {
     imageLoader.contentLoaderInfo.removeEventListener(Event.COMPLETE, loadCompleteHandler);
     imageReflect = new Reflect({mc:imageLoaderHost,alpha:50,ratio:50,distance:1,updateTime:2,reflectionDropoff:2});
function nextImgF(e:MouseEvent):void {
// Button glows on and off:
     TweenMax.from(btnNext, .5, {glowFilter: {color:0x0098ff, alpha: 0.6, blurX:45, blurY:45, strength:10, quality:3}, ease:Quad.easeInOut});
//Moves image currently on screen forward to bring on next picture:
     TweenMax.to(imageLoaderHost, 2, {blurFilter: {blurX:100}, x:-1500, y:(stage.stageHeight - Number(rawH)) /5, ease:Quad.easeInOut});
     imgNum = imgNum < lastImageIndex ? imgNum + 1 : 0;
// Refers to function to bring on next picture
     packagedF();         
function prevImgF(e:MouseEvent):void {
// Button glows on and off:
     TweenMax.from(btnBack, .5, {glowFilter: {color:0x0098ff, alpha: 0.6, blurX:45, blurY:45, strength:10, quality:3}, ease:Quad.easeInOut});
// Moves image currently on screen back to where it came from:
     TweenMax.to(imageLoaderHost, 2, {blurFilter: {blurX:100}, x:1500, y:(stage.stageHeight - Number(rawH)) /5, ease:Quad.easeInOut});
     imgNum = imgNum > 0 ? imgNum - 1 : lastImageIndex;
// Refers to function to bring on last picture:
     imageBackMovement();
// Loads previous picture and brings it into view:
function imageBackMovement (e:Event = null):void {
     rawImage=imgData.image[imgNum].imgURL;
     lastImageIndex = imgData.*.length() - 1;
     rawW=imgData.image[imgNum].imgW;
     rawH=imgData.image[imgNum].imgH;
     imageLoaderHost = new MovieClip;
     imageLoader = new Loader;
     imageLoader.load(new URLRequest(rawImage));
     master_mc.addChild(imageLoaderHost);
     imageLoaderHost.addChild(imageLoader);
     imageLoaderHost.y = (stage.stageHeight - Number(rawH)) /5;
     imageLoaderHost.x = -1500;
     TweenMax.to(imageLoaderHost, 1.5, {x:(stage.stageWidth - Number(rawW)) /1.75, y:(stage.stageHeight - Number(rawH)) /5, ease:Quad.easeInOut});
     TweenMax.from(imageLoader, 1.5,  {blurFilter:{blurX:100}});
     imageLoader.scaleX=.8;
     imageLoader.scaleY=.8;
     clearInterval(imgNum);
     clearInterval(lastImageIndex);

I use WPA 2 at work with out issue and you might be fine with most newer devices with only that one enabled.
Click here to Backup the data on your BlackBerry Device! It's important, and FREE!
Click "Accept as Solution" if your problem is solved. To give thanks, click thumbs up
Click to search the Knowledge Base at BTSC and click to Read The Fabulous Manuals
BESAdmin's, please make a signature with your BES environment info.
SIM Free BlackBerry Unlocking FAQ
Follow me on Twitter @knottyrope
Want to thank me? Buy my KnottyRope App here
BES 12 and BES 5.0.4 with Exchange 2010 and SQL 2012 Hyper V

Similar Messages

  • For someone who knows about Micros

    A friend's lent me his broken Micro to try and fix - apart from what I've already done, obviously - any ideas apart from returning it's
    When turned on not connected to the charger, it starts up to the 'Zen Micro' text and then freezes. Same happens when battery is removed and replaced.
    When charger is connected and it's turned on, it goes to 'Rebuilding Library' and the HD whirs for ten minutes or so, then it seems to freeze. There's no progress bar displayed on the 'Rebuilding' screen.
    Cheers

    All you can do is try the options in Rescue Mode. I suspect Reload Firmware is your last option to try, and obviously don't format it if he has valuable data on there.

  • Question for someone who knows IOS

    It is my understanding that Apple TV is an application that is on IOS, which is what Apple TV runs, similiar to what the other mobile apple devices run. This means it will be possible to run apple TV on other IOS devices as I think some have done unauthorized.
    My question concerns future add-ons to ATV if ATV is essentially an just an app.
    So lets say they wanted to add (Major League Baseball)MLB. Adding MLB (which is on the iphone and ipad now) will not be running a MLB app on ATV, instead it will be a complete change to the ATV app.
    Is the above coreect?
    In other words, Netflix on the ATV, is that an app running on IOS or is it part of the ATV app?
    I hope this makes sense.

    I found the answer.
    Whenever you have an operating system it is made of 3 components.
    1) The graphics user interface (GUI)
    2) The core system
    3) The thing that connects the two
    Apple TV has a different GUI then the iphone, that is what you see when you turn it on, the main menu and how you navigate through your phone.
    So what I thought what was the "Apple TV App" is actually the interface.
    So....basically the TV can run the same apps if the app writers adjust them a bit so they fit the GUI of ATV. Currently the ATV has a youtube app and a netflix app and an itunes app, similiar to your iphone. You just interact with them through the ATV interface.
    Message was edited by: richardya

  • Is it possible for someone who updated my phone on their computer to read my messages without me knowing? If so how can I stop that?

    Is it possible for someone who updated my phone on their Mac to read all my current messages? And if so how can I stop it?

    Welcome to the Apple Support Communities
    I really doubt it. To do that, that person must have stolen your Apple ID email and password, and then, log in Messages in his/her iPhone with your Apple ID to read your messages. The Apple ID of an iPhone doesn't change when you connect it to your Mac, so don't worry

  • I've a problem which is: Ibelieve there's someone who knows my password in some games like "Happy Day" so, could you please help me by not letting anybody to use this game except for this IMEI 01 336000 521261 1 even if they have the correct password.

    I've a problem which is: Ibelieve there's someone who knows my password in some games like "Happy Day" so, could you please help me by not letting anybody to use this game except for this IMEI 01 336000 521261 1 even if they have the correct password. Thanks alot for your help.

    Change your password.
    These are user forums. We can't do what you ask, in fact no one can.

  • How to shell script for noob? or Cryptography for someone who doesn't need.

    Hi, I've seen the need of automating some tasks in the Terminal and I believe using shell scripts is my solution, although I don't really even understand how they work.
    Instead of posting a full how-to here, I'd like to ask if anyone knows about good comprehensive guide for someone who never used any programming language, yet knows how to work a bit with the Terminal?
    I will figure out the command I will need to input in the Terminal myself, by testing. Once it's figured all I need is to make a shell script out of it, and perhaps make an application out of it. (Automator? ... or more Script Editor? Or?)
    Thanks
    After seing this page...
    http://www.askdavetaylor.com/howcan_i_secure_encrypt_folders_on_my_macs_usb_flashdrive.html
    ... I believed to have found a great solution for some heavy cryptography, to protect some folder and for learning pleasure. What I wanted to do is to automate the openssl task mostly like this:
    Open my flash drive (or a certain folder) containting a disk image (uncompressed, or compressed if necessary, doesn't matter) but uncrypted. Clicking on something I will name 'Lock' for the moment will run the shell script, encrypting the said image with pre-set parameters and a password I will input when prompted by the app.
    Re-running the app will prompt me a password and simply un-encrypt the image, making it useable for me.
    That's all. Perhaps if I can do it, I'll make it prompt me what cipher and all other parameter to use, but I don't understand openssl very well yet. *I just read and understood more or less informations on that page.*
    Who knows, I'll end up with a sweet GUI for encrypting files usable by the common mortals.

    The Advanced Bash Scripting Guide is a great resource for beginners thru advanced users- http://tldp.org/LDP/abs/html/index.html

  • Looking for someone who can Deliver Oracle Application Express training...!

    Hi Good day!
    By the way, i am looking for someone who can deliver for Oracle Application Express Training.
    If you know someone you can refer to me, i would really appreciate.
    You can reach me through this email Address: [email protected]
    Mobile number is: +639 092 438 249.
    This is URGENT!!!!
    Thanks!
    Ivy

    Can you send along info to a private e-mail adddress?? I would be interested in hearing more, my e-mail address is:
    tony DOT Miller AT Seattle DOT gov, the dot and at need to be replaced with the proper character..
    Thanks!
    Tony Miller
    Monroe, WA

  • Looking for someone who has DPS Pro.

    Hi,
    I'm looking for someone who has DPS Professional version.
    I would like to publish just one project for Android devices, but I really can't afford Pro version.
    So maybe someone could do it for me.
    I'll prepare all indd files in InDesign.

    Guessing from your first name that you are in Poland.
    You may contact Mr Łukasz Kawęcki at Optizen Labs – tel. +48 226170101

  • Can I purchase an app as a gift for someone to use on their iPad using my own credits?

    Can I purchase an app as a gift for someone to use on their iPad using my own credits?

    No. iTunes Store credit can't be spent on any sort of gift.
    (95620)

  • Is it possible for someone to know what you're doing on your iphone on another iphone?

    Is it possible for someone to know what you're doing on your iphone on another iphone? My brother knows exactly what I've been doing on my iphone, playing games, listening to music, whatever and he tells my mom. Is there any apps that can do that? He's also not anywhere near me. He's kinda far away from me and he calls my mom and tells her that I've been doing this and that on my iphone. I was just wondering how he could do that.

    Only if your iPhone has been jailbroken or he has access to your
    Apple ID and password.

  • How to phone into Skype group call for someone who...

    I host a skype group call. Someone who doesn't have Skype wants to call in with her phone? How?

    Hi, MacGyver2020,
    Did you see this FAQ article?
    https://support.skype.com/en/faq/FA12191/making-a-video-call-android-tablets?
    Regards,
    Elaine
    Was your question answered? Please click on the Accept as a Solution link so everyone can quickly find what works! Like a post or want to say, "Thank You" - ?? Click on the Kudos button!
    Trustworthy information: Brian Krebs: 3 Basic Rules for Online Safety and Consumer Reports: Guide to Internet Security Online Safety Tip: Change your passwords often!

  • Looking for someone who's a whizz on photoshop

    Hi guys and girls,
    im not very good on photo shop but looking for someone's who's a whizz on the thing to photshop
    something for me
    could you get intouch at [email protected]
    thanks

    Oh, I'm not looking for free-lance work at all.  Some people come here with the expectation of freeloading in a forum populated by professionals, so it's good to hear you have no such expectations.
    However, "a few quid" doesn't sound too interesting, really, does it?  Just saying…

  • Is there an and in original box with cables. Item cannot be activated because of cloud lock. Preof cloud lockvious user login is UNKNOWN. Unit is sold as is for parts or use by someone who knows how to fix this issue

    Amazon has a refurbed I pad Air with this remark. Item cannot be activated because of cloud lock previous user login unknown. Is there a work around or is it best to forget this one and move on?

    You are welcome, at least the seller was honest enough to let potential buyers know that the device is useless to anyone who would try to buy it.

  • Quick question(For people who know about video formats and stuff)

    What type of media file is AVI? Because I looked on the list of codecs compatible with iPod and it didn't say if it was compatible or not, maybe it's something else. If you know, please tell me

    For the formats that were not compatible, I converted them, and it then played the video, but with no sound. I want to get South of Nowhere for a friend on my ipod, butt he only format they come in is AVI and MPG. MPG is quicktime, I know that so it won't work. But what is AVI. Of course I could buy it from the iTunes music store, but I am a kid with no credit card, and my parents wouldn't dare trust me with that

  • What's the best case for a Macbook Air for someone who *may* drop the laptop?

    I see all the forums here about cases for Macbook Air, but most people seem more worried about scratches.  I am looking for the lightest case that might actually protect the Air in a fall.  Any ideas?
    BTW I have been a long time PC laptop user which seem to be a bit more rugged (and thus heavy).  I have dropped my PC laptop in the past without any damage. I've bought the Macbook Air 13 which arrives this week.  I don't mind adding a little weight to the laptop to protect it in a fall... 

    I am also clumsy but I find Apple products exceptionally tough.
    I dropped my MacBook Air with no case or anything onto concrete from like 1 meter and this is all that happened
    I also dropped my iPad from a table onto the same floor and when I saw it face down I was dreading having to pick it up...it was fine however with not a mark in sight
    Yes this is just the experience of 1 person however I think people are too cautious nowdays
    Remember the things you read on here "I dropped my macbook and the screen shattered please help" are probably the minority - if someone dropped it and it was fine they wouldn't post here so you are getting a false sense that everyone who drops their machine ends up bad!

Maybe you are looking for

  • What FM to use to check on closing fiscal period?

    Hi Guys, Any function module to use to check on the fiscal period is closed or not? Thanks.

  • Have I phone 4 s

    Hi I have the above but it show no service as it was gift from a friend and was with giff gaff  and has some games and apps that have been paid for thus wish to know if there is any way to get  to be able to use any sim card ? as have my own phone wh

  • Older Software Question

    I have some older software (Creative Suite Premier from 2006).  I have been using it without issue for the most part but am now looking to either load it onto a new computer or upgrade to a cloud version.  Is my only option to sign up as a new custom

  • Deployment of SunMC Master Port assignment ??

    I need to change my trap port from the default 162 to 1162 because of its interference with snmp trap traffic. Is there an easy way to do this other than bringing down my entire SunMC environment and updating each of my agents individually ? Is there

  • Recently Upgraded to leopard on 1.5ghz powerbook 1.5gb ram

    hi i upgraded to leopard a couple of months ago which caused problems when i did archive and install. there were some bugs with Mail that would not quit. so them i did a clean install and now slowly adding the software needed. everything seems to run