02Geek HTML5 and JavaScript, TypeScript, React, Flash, ActionScript online School
Previous VideoNext Video

Setting up our initial application configurations

Our first step into building a fully working application is to start a totally new Android Application (just as we did in part 1). We will then start configuring our application name and Adobe Air Settings. We will give our application a unique ID and even define the version number of the application. We will configure our application to be a full screen rotatable application.As we are still testing out our application we are going to configure our application as a debugger version and not a release version. We are doing this to enable us to get debugger events from our application as we test it out on our mobile device later on. And continue and review all the Adobe Air Tabs before we continue into the next video.

Video Transcript

00:00All right, we had enough of learning things.
00:02It's time for us to create a real application.
00:05To do that, I'm just going to start from scratch.
00:07So I'm going to select whatever Air version I want,
00:09if it's desktop, Android, or iOS.
00:11In this case, I'm just going to go for Android
00:13because it's the easiest process right now for me to work on.
00:16And we want to create a mobile application.
00:18So I'm going to click on Air for Android.
00:20I don't really care what the properties are
00:22because everything we're going to do
00:24is going to happen dynamically via code.
00:26The only thing I do want to worry about
00:28is making sure that my configurations for my Air
00:31for Android and my properties is configured correctly.
00:34So to do that, first of all,
00:35I'm going to save my application.
00:37I'm going to click on the Command S or the Control S.
00:41No, Command S or Control, no?
00:46Oh, I don't really remember.
00:47It doesn't really matter.
00:48If you're on a PC, you should know how to do it.
00:50So I'm going to call it ruler.fla.
00:53So I'm going to save that ruler fla.
00:54Now that we have a file,
00:55I'm going to go right into my configurations
00:58of the Adobe Air 3.6 for Android.
01:00In your case, it might be earlier or later.
01:04And I'm going to, I'm fine with the output file,
01:06application name, we're going to call it
01:10simple ruler because it's going to be a simple ruler.
01:14And I'm just going to make sure
01:15that I'm going to put my domain name
01:16because I'm sure that someone made an application
01:18called ruler at some point.
01:20So I'm just going to type your com.zero2geek.ruler.
01:24Dot zero2geek.ruler.
01:28The version is going to be one, but really,
01:30because it's a very, very early prototype,
01:32I'm even going to call it version 001.
01:36Version label, it's going to be alpha.
01:40I don't have to give it a label,
01:41but it's good enough for us.
01:44We're going to keep our aspect ratio to be auto,
01:46not portrait or landscape because we want the user
01:49to be able to flip around their device if they want to.
01:52With that said, do we really want,
01:54do we really care about it?
01:55We might, we'll choose how do we want to work with it
01:58as we configure it.
02:00Now, do we want to go full screen?
02:02Yes, do we want it auto orienting?
02:05We sure do.
02:06We're fine with the rendering mode.
02:09We're fine with the files that are included,
02:11the default files that are included,
02:12and we're ready to move into the development area.
02:15Now you want to make sure that you put your certificate
02:17as we learned about and set whatever password you want
02:19in that certificate.
02:22The next thing is we want to figure out,
02:23do we want to do a device release?
02:25Or for now, we're going to set for a debugger release
02:27because we want to be able to debug and run our application.
02:30So until we're ready,
02:31we're not going to actually publish it out.
02:33So we're going to do a debug release, all right?
02:36We're going to leave the get error
02:37to make sure that the user gets the error application.
02:40We're going to make sure that it publishes to our phone,
02:42which we're fine with that.
02:43If you can't see your phone,
02:44if it's connected to your computer,
02:45click on that refresh until you can see your device.
02:48We're not going to worry about icons for now.
02:50We're going to look into that later
02:51once we create icons for our application.
02:53And we're going to look into permissions
02:55because we're doing these debugging.
02:57We want to make sure that we add that internet.
02:59So we'll be able to get access to the debugging information.
03:02For our languages perspective,
03:04our application is going to really work
03:06in every single language
03:07because there's no real copy inside of it.
03:09It's literally a ruler.
03:11So we could actually mark every single language
03:13because this application is going to be working
03:15in every single language.
03:17How cool is that?
03:19So that way, all the different markets
03:20will be able to get our application without any problem.
03:23So we're done with that.
03:24We could click on okay and save our application.
03:27Now, before we move on to the next video
03:28where we start programming in ActionScript,
03:30what I really want to do is add a vector logo of ours
03:33into the center of the screen and then continue.
03:37So to do that, I'm going to go into my Illustrator
03:40and I'm just going to make sure that I'm going to grab
03:42our logo from our Illustrator file of our homepage.
03:45I'm going to copy that.
03:47We're going to go right back into our application.
03:48Once I copied it,
03:49I'm just going to paste it right in.
03:51Once I do that, it might take it a while,
03:53but basically I'm going to set it to make sure
03:55that it's going to be a vector.
03:56So I'm going to paste it using AI importing preferences
03:59and I'm going to maintain the layers.
04:02I'm going to maintain everything else around it.
04:04I'm just going to click okay.
04:05Once I do that, it's going to import inside our element.
04:08And notice how we have some issues here at the layout,
04:11but we can manually fix them
04:12because sometimes these stuff just don't work perfectly.
04:15So I'm just going to click right into it
04:16and select the line that is problematic.
04:19I'm going to make sure I got all that developer school
04:21and I'm going to go into my letter spacing,
04:23which is fine, I believe,
04:25but I'm going to go into my spacing right here
04:27and maybe increase it until it works for me.
04:34Oh, it was that this line didn't really matter,
04:37but it was actually the first line here.
04:39So I'm going to select that first line
04:41and go into that spacing in my paragraph information.
04:44And I'm just going to reset it to zero.
04:47That's too much.
04:48Let me make it minus eight.
04:51That looks much better.
04:53If I make it to minus seven, even better.
04:57Let me just make it eight here.
05:00No, six.
05:02Okay, really what I want to do is I want to align it
05:04with the bottom here of my rabbit,
05:07or maybe I'll just, you know, this is just,
05:09I'm just playing around here.
05:10I might tweak it a little bit later,
05:12but this looks fine to me.
05:14Really, only thing here is that I would like to maybe
05:17push the T to be a little bit more aligned with the zero,
05:21but it's really not a biggie.
05:22So I'm just going to change the spacing here
05:24by maybe like three pic, maybe a whole pixel even,
05:31maybe even two pixels.
05:33Perfect, right?
05:34So our T and our zero are more or less aligned
05:36to each other, which is kind of nice.
05:38And I think I'm good, right?
05:40So it's the developer school, zero to cake,
05:42the developer school, we got our logo.
05:44The only thing that's left for me to do
05:45before we wrap up this video is I want to convert this
05:48into a movie clip.
05:49So I'm just going to select that isolated mode,
05:51this layer that was created,
05:53and I'm going to click into my modify menu.
05:56I'm going to convert it into a symbol
05:58and I'm going to call it my logo.
05:59We're going to call this MC logo.
06:02We're going to make sure it's a movie clip.
06:03I'm going to keep the registration point in the center.
06:06And the reason I'm going to do that is because
06:07I want to really keep this on the center
06:09of the screen noise.
06:10And by doing that,
06:11it's going to put my registration point in the center,
06:13making it much easier for me to just center it each time.
06:16And the idea itself is that we're not going to
06:17really resize it.
06:18We're going to keep it in the size that it is.
06:20And we're just going to re-center it each time
06:22when something changes or something happens.
06:25Last but not least,
06:25I'm going to give my movie clip a name.
06:27So I'm going to call it MC logo.
06:30And I'm going to save it,
06:30clicking on the command S or whatever way you save.
06:35And that's it.
06:36In the next video,
06:37we're going to continue on by making sure that our logo
06:39is always centered in the center of the screen,
06:41no matter what the resolution of the user is,
06:44and no matter what direction the user is at
06:47with their mobile device.
06:49So we'll see in the next video when we implement that.

Ready to Level Up Your Skills?

Join thousands of learners on 02GEEK and start your journey to becoming a coding expert today!

Enroll Now for Free!