# Director Class

**URL:** https://forums.solar2d.com/c/director-class/38.md

[Latest](https://forums.solar2d.com/latest.md) · [Categories](https://forums.solar2d.com/categories.md)

---

## [About the Director Class category](https://forums.solar2d.com/t/about-the-director-class-category/148974)

<div class="topic-metadata">

**Author:** [@system](https://forums.solar2d.com/u/system)\
**Replies:** 0

</div>

---

## [Any build setting version suggest for Director Class](https://forums.solar2d.com/t/any-build-setting-version-suggest-for-director-class/328026)

<div class="topic-metadata">

**Author:** [@mycorona](https://forums.solar2d.com/u/mycorona)\
**Replies:** 6\
**Last updated:** [August 25, 2014, 9:41pm UTC](https://forums.solar2d.com/t/any-build-setting-version-suggest-for-director-class/328026 "2014-08-25T21:41:23Z")

</div>

+++ Solved +++ Dear All, Any suggestion to using which version is ok for Director Class. I need latest admob plug-in. Which version support admob and director class. The latest one is not ok with Director class. Do …

---

## [Director not working in new corona versions?](https://forums.solar2d.com/t/director-not-working-in-new-corona-versions/326723)

<div class="topic-metadata">

**Author:** [@paskuniak](https://forums.solar2d.com/u/paskuniak)\
**Replies:** 6\
**Last updated:** [July 3, 2014, 5:51am UTC](https://forums.solar2d.com/t/director-not-working-in-new-corona-versions/326723 "2014-07-03T05:51:48Z")

</div>

Hi, I recently updates corona, and ever since then, Director doesn’t work on devices (I get a blank screen on android). No errors. and it works on the emulator. Happen to anyone? Thanks!

---

## [\[Resolved\] Problems with new sprite API](https://forums.solar2d.com/t/resolved-problems-with-new-sprite-api/306632)

<div class="topic-metadata">

**Author:** [@anthony.grajirena](https://forums.solar2d.com/u/anthony.grajirena)\
**Replies:** 8\
**Last updated:** [May 15, 2014, 7:55am UTC](https://forums.solar2d.com/t/resolved-problems-with-new-sprite-api/306632 "2014-05-15T07:55:42Z")

</div>

In the past I was using the old API and Zwoptex to handle my sprites, but I’m making the change over to the new API while still using Zwoptex and the old data files, and I’m running into problems. Here is what my code l…

---

## [Only half off a button is working......why?](https://forums.solar2d.com/t/only-half-off-a-button-is-working-why/320661)

<div class="topic-metadata">

**Author:** [@Elbert\_Berendsen](https://forums.solar2d.com/u/Elbert_Berendsen)\
**Replies:** 6\
**Last updated:** [December 31, 2013, 2:05am UTC](https://forums.solar2d.com/t/only-half-off-a-button-is-working-why/320661 "2013-12-31T02:05:00Z")

</div>

In the main file the button is working fine. then using director I open the “homescreen” with on it 1 button. This button is only working half, (only the left half…) If anyone can tell me what I’m doing wrong, I wo…

---

## [Not open an old project in the new version Coron v2013.2076](https://forums.solar2d.com/t/not-open-an-old-project-in-the-new-version-coron-v2013-2076/320561)

<div class="topic-metadata">

**Author:** [@alexey2](https://forums.solar2d.com/u/alexey2)\
**Replies:** 6\
**Last updated:** [December 7, 2013, 9:38am UTC](https://forums.solar2d.com/t/not-open-an-old-project-in-the-new-version-coron-v2013-2076/320561 "2013-12-07T09:38:28Z")

</div>

please help me solve the problem. Projects created in an earlier version of Corona do not want to open in the simulator version v2013.2076, gives an error

---

## [return true vs return+groupname](https://forums.solar2d.com/t/return-true-vs-return-groupname/320164)

<div class="topic-metadata">

**Author:** [@guilherme94mello](https://forums.solar2d.com/u/guilherme94mello)\
**Replies:** 0\
**Last updated:** [November 25, 2013, 4:40am UTC](https://forums.solar2d.com/t/return-true-vs-return-groupname/320164 "2013-11-25T04:40:55Z")

</div>

What’s the difference?

---

## [Having problems with global variables... Please help D:](https://forums.solar2d.com/t/having-problems-with-global-variables-please-help-d/320044)

<div class="topic-metadata">

**Author:** [@guilherme94mello](https://forums.solar2d.com/u/guilherme94mello)\
**Replies:** 4\
**Last updated:** [November 20, 2013, 10:44pm UTC](https://forums.solar2d.com/t/having-problems-with-global-variables-please-help-d/320044 "2013-11-20T22:44:41Z")

</div>

Hello! I’m currently developing a game. Here’s what I want to do: a select level screen with three options: stage 1, stage 2, stage 3. At first, stage 2 and stage 3 should not be accessible, being both texts with alpha…

---

## [A Director Class Error that Occurs only sometimes and only after building project apk.](https://forums.solar2d.com/t/a-director-class-error-that-occurs-only-sometimes-and-only-after-building-project-apk/318525)

<div class="topic-metadata">

**Author:** [@jarrinrantz](https://forums.solar2d.com/u/jarrinrantz)\
**Replies:** 0\
**Last updated:** [October 2, 2013, 9:11pm UTC](https://forums.solar2d.com/t/a-director-class-error-that-occurs-only-sometimes-and-only-after-building-project-apk/318525 "2013-10-02T21:11:30Z")

</div>

Hello, Director Class has proven to be a useful scene class so far, however it has some minor issues (or maybe I’m having some minor issues but anyways). The setup I have currently works on the corona simulator. However…

---

## [Director class fails 'insert'](https://forums.solar2d.com/t/director-class-fails-insert/316470)

<div class="topic-metadata">

**Author:** [@Jamesiancetheridge](https://forums.solar2d.com/u/Jamesiancetheridge)\
**Replies:** 6\
**Last updated:** [September 26, 2013, 11:05am UTC](https://forums.solar2d.com/t/director-class-fails-insert/316470 "2013-09-26T11:05:04Z")

</div>

module(..., package.seeall) function new() local localGroup = display.newGroup(); local back = display.newImageRect("images/back.png", \\\_W, \\\_H); back:setReferencePoint(display.CenterReferencePoint); back.x = \\\_W/2; back…

---

## [director class problem!Helpp](https://forums.solar2d.com/t/director-class-problem-helpp/317435)

<div class="topic-metadata">

**Author:** [@tramoale.at](https://forums.solar2d.com/u/tramoale.at)\
**Replies:** 6\
**Last updated:** [September 26, 2013, 10:55am UTC](https://forums.solar2d.com/t/director-class-problem-helpp/317435 "2013-09-26T10:55:18Z")

</div>

i cant open the screen1…Help me!!! main.lua: &nbsp; display.setStatusBar(display.HiddenStatusBar) local W = display.contentWidth / 2 local H = display.contentHeight / 2 &nbsp; &nbsp; &nbsp; local director = require("di…

---

## [Multiple menus running at the same time - (Scene changes not working right?)](https://forums.solar2d.com/t/multiple-menus-running-at-the-same-time-scene-changes-not-working-right/316832)

<div class="topic-metadata">

**Author:** [@garrettmusto](https://forums.solar2d.com/u/garrettmusto)\
**Replies:** 0\
**Last updated:** [August 13, 2013, 8:13pm UTC](https://forums.solar2d.com/t/multiple-menus-running-at-the-same-time-scene-changes-not-working-right/316832 "2013-08-13T20:13:42Z")

</div>

Hi, I’ve been using the Director class 1.4 to develop a corona game. I’ve had issues in the past that I’ve solved, but this has just stumped me. I have a main menu for the game that you start at and can purchase upgrad…

---

## [function changeScene(e) errors](https://forums.solar2d.com/t/function-changescene-e-errors/316490)

<div class="topic-metadata">

**Author:** [@Jamesiancetheridge](https://forums.solar2d.com/u/Jamesiancetheridge)\
**Replies:** 2\
**Last updated:** [August 4, 2013, 1:09am UTC](https://forums.solar2d.com/t/function-changescene-e-errors/316490 "2013-08-04T01:09:27Z")

</div>

i dont get this no matter how i do this it will not run work without an error function changeScene(e) if (e.phase == "ended") then director:changeScene(e.target.scene) end end local director = require("director") local …

---

## [Director Error: failed to load module "menu"](https://forums.solar2d.com/t/director-error-failed-to-load-module-menu/315662)

<div class="topic-metadata">

**Author:** [@Spikeroo](https://forums.solar2d.com/u/Spikeroo)\
**Replies:** 0\
**Last updated:** [July 10, 2013, 10:57pm UTC](https://forums.solar2d.com/t/director-error-failed-to-load-module-menu/315662 "2013-07-10T22:57:25Z")

</div>

I’ve just recently started messing with director class. I keep getting this error, I’ve tried changing my menu file name. Does anyone see an error in this code that I’m not? module(…, package.seeall); function new() …

---

## [DIrectors fail and crashes corona](https://forums.solar2d.com/t/directors-fail-and-crashes-corona/315480)

<div class="topic-metadata">

**Author:** [@sephirot36](https://forums.solar2d.com/u/sephirot36)\
**Replies:** 8\
**Last updated:** [July 9, 2013, 2:37pm UTC](https://forums.solar2d.com/t/directors-fail-and-crashes-corona/315480 "2013-07-09T14:37:09Z")

</div>

I update my version of Director from 1.1 to 1.4, and now i have some error that crashes corona, this is the report: \[spoiler\]Process: Corona Simulator \[2445\] Path: /Applications/CoronaSDK/Corona Simulator.app/Contents/…

---

## [Director Crash..switched scenes but crash due to previous scene...](https://forums.solar2d.com/t/director-crash-switched-scenes-but-crash-due-to-previous-scene/314461)

<div class="topic-metadata">

**Author:** [@ian064](https://forums.solar2d.com/u/ian064)\
**Replies:** 4\
**Last updated:** [July 5, 2013, 3:52pm UTC](https://forums.solar2d.com/t/director-crash-switched-scenes-but-crash-due-to-previous-scene/314461 "2013-07-05T15:52:55Z")

</div>

I have a game when once finished it switches scenes to a summary screen, this works ok but then sometimes I get a crash related to the precious scene… The scene switches then in the print window Im still getting outputs…

---

## [Pressed button isn't removed](https://forums.solar2d.com/t/pressed-button-isnt-removed/315159)

<div class="topic-metadata">

**Author:** [@Silky](https://forums.solar2d.com/u/Silky)\
**Replies:** 0\
**Last updated:** [June 25, 2013, 7:06pm UTC](https://forums.solar2d.com/t/pressed-button-isnt-removed/315159 "2013-06-25T19:06:20Z")

</div>

I thought I solved this problem but it doesn’t look like it. While changing scenes using Director, everything is removed except the button pressed. How do I remove the initial button? Below is an example of a “contactBtn…

---

## [hardware backbutton listeners to move back through different Director screens](https://forums.solar2d.com/t/hardware-backbutton-listeners-to-move-back-through-different-director-screens/314110)

<div class="topic-metadata">

**Author:** [@jerome.dipietro](https://forums.solar2d.com/u/jerome.dipietro)\
**Replies:** 8\
**Last updated:** [May 28, 2013, 2:12pm UTC](https://forums.solar2d.com/t/hardware-backbutton-listeners-to-move-back-through-different-director-screens/314110 "2013-05-28T14:12:18Z")

</div>

Searched in the forums and online but can’t get this working, can someone help? I have a multi screen app that uses Director. I want the hardware back button on Android devices to function as expected - i.e. from the ho…

---

## [director:changeScene does not return to scene that you calledm](https://forums.solar2d.com/t/director-changescene-does-not-return-to-scene-that-you-calledm/313956)

<div class="topic-metadata">

**Author:** [@sunichi01](https://forums.solar2d.com/u/sunichi01)\
**Replies:** 8\
**Last updated:** [May 25, 2013, 1:29am UTC](https://forums.solar2d.com/t/director-changescene-does-not-return-to-scene-that-you-calledm/313956 "2013-05-25T01:29:06Z")

</div>

Hi All, i have a problem using function clean() in director class. is this as simple as function clean() &nbsp; &nbsp; print("join\\\_game lua is cleaned?") end ? &nbsp; or function clean() &nbsp; &nbsp; codes that …

---

## [Director Class is not working on Device](https://forums.solar2d.com/t/director-class-is-not-working-on-device/312943)

<div class="topic-metadata">

**Author:** [@info8888](https://forums.solar2d.com/u/info8888)\
**Replies:** 0\
**Last updated:** [April 25, 2013, 11:10am UTC](https://forums.solar2d.com/t/director-class-is-not-working-on-device/312943 "2013-04-25T11:10:20Z")

</div>

Hello, The director class Is not showing the scene on device: require “CiderDebugger”;----------------------------------------------------------------------------------------- – – main.lua – –Debug the smart way …

---

## [Storyboards Help](https://forums.solar2d.com/t/storyboards-help/312552)

<div class="topic-metadata">

**Author:** [@abraham.lukwesa](https://forums.solar2d.com/u/abraham.lukwesa)\
**Replies:** 2\
**Last updated:** [April 16, 2013, 12:04am UTC](https://forums.solar2d.com/t/storyboards-help/312552 "2013-04-16T00:04:34Z")

</div>

I am trying to load the first screen of my app… but i keep getting this error message : “attempt to concatenate global ‘screenName’ \<a nil value\>” here is my main.lua to load the first scene that I am trying to go: \_\_…

---

## [Director 1.4 Turntobook() With Pinchandzoom?](https://forums.solar2d.com/t/director-1-4-turntobook-with-pinchandzoom/312429)

<div class="topic-metadata">

**Author:** [@altafr8](https://forums.solar2d.com/u/altafr8)\
**Replies:** 0\
**Last updated:** [April 12, 2013, 2:48pm UTC](https://forums.solar2d.com/t/director-1-4-turntobook-with-pinchandzoom/312429 "2013-04-12T14:48:29Z")

</div>

Does anyone have any working sample code using director book interface and pinchtozoom functionality? it seems that the touch events are clashing and I am unable to implement any kind of pinch zoom? GEtting an error in t…

---

## [Do Director Class Set Nil To All The Objects From Last Scene?](https://forums.solar2d.com/t/do-director-class-set-nil-to-all-the-objects-from-last-scene/311835)

<div class="topic-metadata">

**Author:** [@Wiler\_Jr](https://forums.solar2d.com/u/Wiler_Jr)\
**Replies:** 52\
**Last updated:** [April 1, 2013, 1:14pm UTC](https://forums.solar2d.com/t/do-director-class-set-nil-to-all-the-objects-from-last-scene/311835 "2013-04-01T13:14:52Z")

</div>

Do director class set nil to all the objects from last scene? When I get out of an scene and enter another, I see an relative grow in the memory used. I turn off all the event listeners, so I don’t know the problem here…

---

## [HELP!! Change Scene Not Working accordingly](https://forums.solar2d.com/t/help-change-scene-not-working-accordingly/311264)

<div class="topic-metadata">

**Author:** [@abraham.lukwesa](https://forums.solar2d.com/u/abraham.lukwesa)\
**Replies:** 10\
**Last updated:** [March 12, 2013, 8:57am UTC](https://forums.solar2d.com/t/help-change-scene-not-working-accordingly/311264 "2013-03-12T08:57:21Z")

</div>

I currently have 3 scenes…in my game app… the game usually starts with a “startpage” this page contains 3 buttons … 1. Play (to load the game scene) ,2. Help(to Load the help scene 3. credits(to load the credits scene) …

---

## [Does director.lua set nil to all my local variables when changing scene?](https://forums.solar2d.com/t/does-director-lua-set-nil-to-all-my-local-variables-when-changing-scene/311303)

<div class="topic-metadata">

**Author:** [@Wiler\_Jr](https://forums.solar2d.com/u/Wiler_Jr)\
**Replies:** 0\
**Last updated:** [March 9, 2013, 2:09am UTC](https://forums.solar2d.com/t/does-director-lua-set-nil-to-all-my-local-variables-when-changing-scene/311303 "2013-03-09T02:09:55Z")

</div>

Thanks. \[import\]uid: 162818 topic\_id: 37210 reply\_id: 67210\[/import\]

---

## [Director not changing scenes](https://forums.solar2d.com/t/director-not-changing-scenes/311274)

<div class="topic-metadata">

**Author:** [@adrianeraldo](https://forums.solar2d.com/u/adrianeraldo)\
**Replies:** 4\
**Last updated:** [March 8, 2013, 6:30pm UTC](https://forums.solar2d.com/t/director-not-changing-scenes/311274 "2013-03-08T18:30:32Z")

</div>

This is actually a solution more than a question. I’ll explain. I was making a new animation for my new app as an opening scene. So I created a module with the animation. After the animation it should have load the mai…

---

## [How to Change or Convert Code on Story Board to Director Class ??](https://forums.solar2d.com/t/how-to-change-or-convert-code-on-story-board-to-director-class/311171)

<div class="topic-metadata">

**Author:** [@ahsan.sharif007](https://forums.solar2d.com/u/ahsan.sharif007)\
**Replies:** 0\
**Last updated:** [March 4, 2013, 11:11am UTC](https://forums.solar2d.com/t/how-to-change-or-convert-code-on-story-board-to-director-class/311171 "2013-03-04T11:11:52Z")

</div>

How to Change or Convert Code on Story Board to Director Class ?? \[import\]uid: 180259 topic\_id: 36691 reply\_id: 336691\[/import\]

---

## [HELP! - Director class Error](https://forums.solar2d.com/t/help-director-class-error/311126)

<div class="topic-metadata">

**Author:** [@abraham.lukwesa](https://forums.solar2d.com/u/abraham.lukwesa)\
**Replies:** 36\
**Last updated:** [March 2, 2013, 6:37pm UTC](https://forums.solar2d.com/t/help-director-class-error/311126 "2013-03-02T18:37:51Z")

</div>

Hello !! I am currently developing an app which includes changing scenes… I keep getting this error when I run it : Director ERROR: Module ‘credits’ must have a new ()function the app contains 4 scenes, a startpage sc…

---

## [Failed to execute new( params ) function on 'Menu\_View'.](https://forums.solar2d.com/t/failed-to-execute-new-params-function-on-menu-view/310388)

<div class="topic-metadata">

**Author:** [@mazensalih1](https://forums.solar2d.com/u/mazensalih1)\
**Replies:** 0\
**Last updated:** [February 2, 2013, 1:58pm UTC](https://forums.solar2d.com/t/failed-to-execute-new-params-function-on-menu-view/310388 "2013-02-02T13:58:11Z")

</div>

Hi, I tried testing my app on my device and got this error Director ERROR: Failed to execute new( params ) function on ‘Menu\_View’. My app works perfectly fine on the simulator, but gives me the error on the device. He…

---

## [what if my app consist of groups?..inserting everything to the localGroup messes everything up...](https://forums.solar2d.com/t/what-if-my-app-consist-of-groups-inserting-everything-to-the-localgroup-messes-everything-up/310163)

<div class="topic-metadata">

**Author:** [@hansel.rios](https://forums.solar2d.com/u/hansel.rios)\
**Replies:** 6\
**Last updated:** [January 25, 2013, 4:44am UTC](https://forums.solar2d.com/t/what-if-my-app-consist-of-groups-inserting-everything-to-the-localgroup-messes-everything-up/310163 "2013-01-25T04:44:26Z")

</div>

what if my app consist of groups?..inserting everything to the localGroup that is returned, it messes everything up… Any ideas on how to fix this?? \[import\]uid: 123133 topic\_id: 35281 reply\_id: 335281\[/import\]

[Next page](https://forums.solar2d.com/c/director-class/38.md?page=1)
