Jump to content

IQAndreas

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

IQAndreas's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Sorry, perhaps I used the wrong word. By framework, I meant "more than just code snippets", around the range of more than 5 classes.* So perhaps I should have used the word "library" instead. * And yes, I realize you can't really judge code by how many classes you use, but if you are writing and structuring your code correctly, I'm using "number of classes" here to indicate how much code would be needed. By "semi-secure", I meant basically not storing passwords in plaintext. *cough*Sony*cough*
  2. I'm assuming this is all inside of an FLA, correct? If you upload the FLA and let me know which URLs need changing, I would be more than happy to help out.
  3. The problem is, you are trying to start the timer before you have created it (you create it in the "appInit" function). By moving around the functions like this, you make sure your app will always initialize before the timer is forced to start: // USER CONFIG SETTINGS ===== var autoStart:Boolean = true; //true, false var secondsDelay:Number = 30; // 1-60 // END USER CONFIG SETTINGS // INIT ===== var currentImageID:Number; var slideshowTimer:Timer; var appInit:Boolean; function initApp(){ currentImageID = 0; slideshowTimer = new Timer((secondsDelay*1000), 0); slideshowTimer.addEventListener(TimerEvent.TIMER, fl_slideShowNext); } if(appInit != true){ initApp(); appInit = true; } // EVENTS ===== playPauseToggle_mc.addEventListener(MouseEvent.CLICK, fl_togglePlayPause); function fl_togglePlayPause(evt:MouseEvent):void { if(playPauseToggle_mc.currentLabel == "play") { fl_startSlideShow(); playPauseToggle_mc.gotoAndStop("pause"); } else if(playPauseToggle_mc.currentLabel == "pause") { fl_pauseSlideShow(); playPauseToggle_mc.gotoAndStop("play"); } } next_btn.addEventListener(MouseEvent.CLICK, fl_nextButtonClick); prev_btn.addEventListener(MouseEvent.CLICK, fl_prevButtonClick); function fl_nextButtonClick(evt:MouseEvent):void { fl_nextSlide(); } function fl_prevButtonClick(evt:MouseEvent):void { fl_prevSlide(); } function fl_slideShowNext(evt:TimerEvent):void { fl_nextSlide(); } // END EVENTS // FUNCTIONS AND LOGIC ===== function fl_pauseSlideShow():void { slideshowTimer.stop(); } function fl_startSlideShow():void { slideshowTimer.start(); } function fl_nextSlide():void { currentImageID++; if(currentImageID >= totalFrames) { currentImageID = 0; } gotoAndStop(currentImageID+1); } function fl_prevSlide():void { currentImageID--; if(currentImageID < 0) { currentImageID = totalFrames+1; } gotoAndStop(currentImageID-1); } if(autoStart == true) { fl_startSlideShow(); playPauseToggle_mc.gotoAndStop("pause"); } else { gotoAndStop(1); } // END FUNCTIONS AND LOGIC As I am unable to test the code, let me know if you have any other problems with it.
  4. I'm working on a site which relies on Joomla for a few features. I want to abandon the bloated Joomla, and I realized that there are only two parts of the Joomla framework that I'm actually using in this project: Users (which includes the standard registration, validation emails, etc) Database access (Just a few helper classes making handling databases easier) The latter I can easily code myself, and the former I might be able to scrape together something for, but that will mean more work, delaying this project even more. Does anyone know a semi-secure framework in PHP which handles users?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.