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

Ready for a quick recap of everything we did so far?

Going through really quickly all the steps we've gone through already before continuing to the next step. We will take a peak into the XML file that is built as well before we wrap up this video up.

Video Transcript

00:00So I wanted to recap just from the beginning.
00:02So we talked about the scaling, which is really important,
00:04really critical as you're starting
00:06to orient your information.
00:09We also talked about in our file air settings,
00:13we said that we want to make sure
00:14that our aspect ratio is set to auto
00:16if we want our application to auto orient.
00:19And if we don't, we'll figure out
00:20if we want portrait or landscape.
00:23We also said that we want to configure
00:24also the auto orientation to be set by default,
00:27because if we don't,
00:28we're not going to get the hints of changing,
00:32which we will see them in the next video.
00:34But without this configured and checked,
00:37we wouldn't see it.
00:38Now we've worked only in one way,
00:39but I promised you in the beginning of the video
00:41that I'll show you another way.
00:43And the other way that I want to show you
00:44is if we go right into our source file,
00:46you'll notice that we have our XML file,
00:48which we looked at briefly.
00:50And you'll notice if we go down a little bit,
00:54you'll notice that we have here, if we find it,
00:57auto orient, true.
00:59So we could set it also by going directly into the XML,
01:02but we don't need to,
01:03because we're working in flash and it does it for us.
01:05And the second thing that we wanted to note is that
01:08if we had our application actually,
01:10as soon as we set it to auto, we don't see it anymore.
01:13But if I go in my application
01:14and I come here into my file again, air settings,
01:17and this time around,
01:19I set it to portrait and I click on okay and save it.
01:23Once we go back into the file
01:25after we've published it,
01:27so let me just publish it really quickly.
01:29And if I go into that file again,
01:31once after we published it and I just reopen the file,
01:34you'll notice that now we have here a portrait aspect ratio.
01:38Now you could set the ratio aspect to be auto,
01:40or you could just not have it there
01:42and by default, it will be auto.
01:44But I prefer making sure that it's there
01:46or working directly with your flash application
01:49and making sure that if you're working
01:51with the most up-to-date application,
01:53that you set the configures
01:54the way you want them directly in your inspector.
01:57And once I do that and I click on okay
01:59and we reopen that application,
02:01reopen the XML file again,
02:03if I close it up first and reopen it again,
02:06you'll see that this time around,
02:07our auto orient is not there anymore,
02:10but we could have set it to be auto, our portrait layout,
02:14and I think that covers really
02:15what I wanted to talk about in this video.
02:17In the next video,
02:18we're gonna continue looking into orientation
02:20and see how do we actually know when something changes
02:23so we could go inside and start changing our visuals
02:25if we want to or need to.
02:27All right, so we're gonna see that in the next video.

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!