First site, almost done, a few questions...

Hi all. I'm nearing the end (I hope) of my first flash site
and have a few questions.
Most pressing - I've hit a wall on this error #1009 at frame
1. I've read a bit online and and understand what it is, I just
can't figure out what I've left out. Code is attached.
Each label in the code refers to a label on my main timeline.
At the end of each animation I have gotoAndPlay(nextIntro). All of
the animation is located within the same scene. It seems pretty
straightforward but I'm clearly missing something.
On a related note, what is the best way to create large flash
projects with lots of animation? I've laid everything out
chronologically within a single scene. This seems like it will
work, also seems like it could get messy as projects got larger. Is
there a best practice or some reading online regarding this
subject?
Help on my error would be FANTASTIC. Insight on general
philosophy/structure would also be much appreciated. :)

The full error is:
TypeError: Error #1009: Cannot access a property or method of
a null object reference.
at portfolio21test_fla::MainTimeline/frame1()
The code extends from frame 1 to frame 29. At that point we
have a stop(); then the outro plays. The last frame of the outro
has code stating gotoAndPlay(nextIntro);
From this point on, the other scenes in the movie have intros
without any code since they just need to play. This is followed by
a stop(); keyframe at their midpoint and gotoAndPlay(nextIntro);
keyframe at the last frame of their outro.
In recent tests, I'm not getting the error when the file
first loads. I only get the error when I click on the button
instance "main_btn". I can click on that button as soon as the
movie loads and get the error, or I can click around to the other
frame labels without the error, then click main_btn and get the
error...
Would a screenshot of my timeline (or anything else) be
helpful?

Similar Messages

  • Building my first Site, and have a few questions...

    Hi people.
    Despite being a Designer (albeit a non-practicing one at the moment!), I've never done website design before. So, I'm having a go with iWeb to learn some basics, in the hope that my knowledge will improve as time goes on! In the meantime however, I have some questions, which I think I know the answers to, but will ask anyway!
    1) When I add an album, I notice you can choose to have a border round the picture. I know this can be changed for different styles, or even nothing at all. However, I like having a little border round the image-but the one I have comes up white. Is there anyway i can change the border colour?
    2) I want a page with a few links on, but I don't want to have them listed as URL's. Can I make buttons for them? For example, if I wanted to link to the Apple Store, the idea would be to have some sort of button with the Apple Logo in which when clicked takes you to the site. Can this be done in iWeb or should I be looking at more advanced web building programs?
    3) I'm going to have a page with some music interests on-can i make a link for an artist or that particular track that will take you directly to that artist/track in iTunes? Like you click it, it opens iTunes and directs you to that page?
    Any help appreciated!
    Dan

    Dan the 480 Man wrote:
    Or does iWeb re-size them?
    Dan ~ In iWeb click on the iWeb menu and choose Preferences... You'll see a check-box for +"Optimize images on import"+. In iWeb's Help viewer it says:
    Reducing a photo’s file size: Resampling (or downsampling) is a method of reducing a photo’s file size. Downsampling helps your website publish faster and helps photos display and download faster for your visitors.
    Photos you add to a Photos template are imported full size and downsampled automatically when you publish.
    For very large, high-quality RAW and JPG images, you can choose iWeb > Preferences and select “Optimize images on import.” This setting reduces the size of imported images by up to 60 percent so they don’t take up as much space in your Domain file.

  • Few questions about website...

    Hello,
    I'm trying to create my first website but I have few questions as I stuck, link to my website below:
    http://yee.sytes.net
    user: test
    password: t3st
    1. I know that I should slice the boxes of the packages because they need to be flexible but is there some way to do so as they are not symmetric and it is not possible to repeat middle part like in the example from the link (http://http://alt-web.com/DEMOS/Image-slices-in-a-CSS-based-layout.shtml)
    2. what would be the best way to put some text like in the picture below, I was thinking to create a div - wrap around selection (picture of package) and then inside this div create another one with appropriate size and position so it would be fix
    3. Is it possible to delete the colour of the links so there won't be any after visit or if it's active and so on...
    4. Is it good way that I put the small images-slices even if the background is the same, there are doubled but I didn't know how to keep the distances of whole website
    5. How can I disable dragging website pictures I mean if I click on the picture I can drag something like its 'ghost'
    6. How to disable selection/copy of the text
    Sorry for so many questions but it's really important for me and I don't know how to go further, thx in advance.

    3. Is it possible to delete the colour of the links so there won't be any after visit or if it's active and so on...
    If you don't define CSS link styles, you will get  default links in purple, blue  and red.  Better to use CSS to style your links as shown below (use  colors to match your own site.):
    a:link{/*unvisited*/
    color:#990000;}
    a.visited{/*visited*/
    color:#9999FF;
    a:hover{/*mouseover*/
    color:#990000;
    a:active{/*selected*/
    color:#FFCC00;
    a:focus{/*optional,  same as hover, but with tab  key*/
    color:#990000;
    The memory device for   correct link order is LiVHA (link, visited, hover, active).  For more on pseudo-classes and link  styles, visit the w3schools.com
    http://www.w3schools.com/css/css_pseudo_classes.asp
    4.
    Is it good way that I put the small images-slices even if the
    background is the same, there are doubled but I didn't know how to keep
    the distances of whole website
    I really don't  understand this question.  Your design comp should have multiple objects each in it's own layer.  Foreground images separated from background images.
    Read this tutorial.
    Taking  a Fireworks (or Photoshop) comp to a CSS based layout in DW
    http://www.adobe.com/devnet/fireworks/articles/web_standards_layouts_pt1.html
    5. How can I disable dragging website pictures I mean if I click on the picture I can drag something like its 'ghost'
    You can't.
    6. How to disable selection/copy of the text.
    You can't.  This is how the web works.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • I was almost done my project. I hadn't published it anywhere. Then, the next day, the clips from my timeline went all grey and there was an "out of date" icon. My project was lost. What happened? It's not the first time it's done that!

    I was almost done my project. I hadn't published it anywhere. Then, the next day, the clips from my timeline went all grey and there was an "out of date" icon. My project was lost. What happened? It's not the first time it's done that!

    You can undo your permission changes. Probably the most relevant one is cookies. Try one or both of these methods:
    (1) Page Info > Permissions tab
    While viewing a page on the site:
    * right-click and choose View Page Info > Permissions
    * Alt+t (open the classic Tools menu) > Page Info > Permissions
    (2) about:permissions
    In a new tab, type or paste '''about:permissions''' and press Enter. Allow a few moments for the list on the left to populate, as this information needs to be extracted from a database.
    Then type or paste ''rcn''' in the search box above the list to filter it to the most relevant domains. When you highlight a domain, you can adjust its permissions in the right pane.
    Any luck?

  • First Logic gig: a few questions...

    Hi folks,
    Would appreciate any thoughts from the glorious hive-mind that is this forum!
    First gig in a long time coming up, at a Universtiy Freshers Ball. It will be a 30 minute slot in a Dance night, so will be playing mainly four-to-the-floor techno. Ill be using my set up (see signature). Mainly native Core Instrument tracks, but a few Audio Loops. No live mixing, but playing live over the top on each track., using a Virtual Instrument.
    There will be no sound engineer on the night. The Ent's guy who booked me hasn't a clue to the PA system spec's, but has said I can go and have nosy in a few weeks. It's a small venue... ~500 cap.
    Never having used logic live, and not being a sound engineer as such, I was wondering about a few things:
    1) What sort of FX should I have on the output? Same as if were an normal audio bounce? Im bearing in mind that the punters will have been dancing to clubmixes until I go on. Does my master output need to relfect that?
    2) Is it best to freeze all the tracks? I know I could bounce them all to stereo... but I do like to maintain the pretence of being live . Besides, I might use the Keystation to control a few parameters here and there.
    3) I write my songs as individual arranges in logic. Is there a way I can import them all into the same arrange, with all their instruments and automation data, so there is a contiuous flow?
    Your thoughts are always appreciated.
    Best wishes,
    S.

    ICanHearYou wrote:
    I'm an existing Verizon customer with the original Droid I got when it first released and looking to get the iPhone 4S when it releases.
    I plan on pre-ordering it tomorrow on the 7th. I'm not gonna wait until 3:00 EST, but will do so in a reasonable morning hour.
    A few questions:
    1.) My contract ends sometime in November (Whenever the Droid 1 came out). I am still grandfathered into the unlimited data plan, correct?
     Your data plan should not change.  That's what I was told.
    2.) When upgrading to a new phone, are there other fees I should be expecting? (Just so I can get the pre-rage out of the way.)
     No, just the cost of the phone.
    3.) When I pre-order from the website, I am pre-ordering through delivery, correct? I can't have it put on hold for me at my local Verizon/Apple/Best Buy/etc.?
     Apple's website specifically says the phones will be delivered.  Can't really find any specific language on Verizon's site, but I think they also will ship the phone directly to you.
    Thanks in advance.

  • First time upgrading, a few questions..

    I'm an existing Verizon customer with the original Droid I got when it first released and looking to get the iPhone 4S when it releases.
    I plan on pre-ordering it tomorrow on the 7th. I'm not gonna wait until 3:00 EST, but will do so in a reasonable morning hour.
    A few questions:
    1.) My contract ends sometime in November (Whenever the Droid 1 came out). I am still grandfathered into the unlimited data plan, correct?
    2.) When upgrading to a new phone, are there other fees I should be expecting? (Just so I can get the pre-rage out of the way.)
    3.) When I pre-order from the website, I am pre-ordering through delivery, correct? I can't have it put on hold for me at my local Verizon/Apple/Best Buy/etc.?
    Thanks in advance.

    ICanHearYou wrote:
    I'm an existing Verizon customer with the original Droid I got when it first released and looking to get the iPhone 4S when it releases.
    I plan on pre-ordering it tomorrow on the 7th. I'm not gonna wait until 3:00 EST, but will do so in a reasonable morning hour.
    A few questions:
    1.) My contract ends sometime in November (Whenever the Droid 1 came out). I am still grandfathered into the unlimited data plan, correct?
     Your data plan should not change.  That's what I was told.
    2.) When upgrading to a new phone, are there other fees I should be expecting? (Just so I can get the pre-rage out of the way.)
     No, just the cost of the phone.
    3.) When I pre-order from the website, I am pre-ordering through delivery, correct? I can't have it put on hold for me at my local Verizon/Apple/Best Buy/etc.?
     Apple's website specifically says the phones will be delivered.  Can't really find any specific language on Verizon's site, but I think they also will ship the phone directly to you.
    Thanks in advance.

  • [DONE] Bash scripting. A few questions

    Hi,
    I've created my own custom sleep script as it is described here: https://wiki.archlinux.org/index.php/Sy … stem-sleep and it's already working correctly.
    However I've got a few questions concerning bash scripting since I've never did it before.
    Here the example from the wiki:
    #!/bin/sh
    case $1/$2 in
    pre/*)
    echo "Going to $2..."
    post/*)
    echo "Waking up from $2..."
    esac
    Now what do I need the /*) for in the cases pre and post? What does it do? And why isn't there any *) in the end which would exit the script if none of the above is true?
    Secondly, why does it say case $1/$2 in, but not case $1 in, what is the $2 needed for? E.g. in this script only $1 is used: https://wiki.archlinux.org/index.php/OS … ibernation
    And third question is, if I do really need the double quotes around $1? Does it make any difference?
    Sorry for my incompetence but I'm not a dev and as I already said I've never did any bash scripting...
    Thanks in advance
    best regards
    nuc
    Last edited by nuc (2013-02-07 18:10:56)

    ok, here's my actual code:
    #!/bin/sh
    suspend_osssound()
    /usr/lib/oss/scripts/killprocs.sh
    /usr/sbin/soundoff
    resume_osssound()
    /usr/sbin/soundon
    case "$1" in
    pre)
    suspend_osssound
    post)
    resume_osssound
    *) exit $NA
    esac
    It is the same as the one in the OSS wiki entry, but slightly configured to work under logind and not pm-utils. Of course the new location is /usr/lib/systemd/system-sleep/.
    I'm about to update the wiki with my code, so I'd like to know if there aren't any major mistakes. I tested it and it works but I want to get sure
    PS: Do people actually still use pm-utils for suspending or can I safely remove the previous script from the wiki?
    EDIT: Added double quotes
    Last edited by nuc (2013-01-25 23:42:02)

  • A few questions before I buy a new iMac/Mac mini and sign up for Creative Cloud.

    Hello Everyone,
    I am looking to purchase a new Apple computer and sign up for Creative Cloud within the next week and I have a few questions that should be answered before I proceed.
    My wife and I own a business and we will be using the CS6 apps to create brochures, Constant Contact mailings, product package inserts, edit product photography for print and web use, and short HD how-to videos. We are not graphics professionals or power users and wont be doing anything too complicated.
    Any help and answers will be greatly appreciated.
    I will start with the hardware questions first:
    I am trying to decide between the iMac and the Mac mini.
    The iMac is a 2.7Ghz Quad-core Intel core i5 and comes with 4GB of memory that is expandable to 16GB, which I will do for sure. It comes with a Radeon HD 6770M graphics card with 512MB of GDDR5 memory(not upgradable), and a 1TB HDD that runs at 7200RPM. This unit meets the specs required.
    The 2.5Ghz Mac Mini comes with 4GB of memory that is expandable to 8GB, I will also do this. It has a Radeon HD 6630M graphics card with 256MB of GDDR5 memory(not upgradable), and a 500GB HDD that runs at 5400RPM. This unit meets all the spec(I think) except for the speed of the HDD.
    Question: Will the mini run the software without too much of an issue considering the speed of the HDD?
    Question: Will the iMac run the software significantly better to justify the price difference?
    I already have 1 mini(purchased 4 months ago, with the same specs listed above) and will be purchasing a second computer for my wifes desk. If the mini will run CS6 fine, that is great and we can save a few bucks. If my mini will not run CS6 well, I will get the iMac for her desk as she will be doing the bulk of the work in that regard anyway.
    Now a couple of software questions.
    After reading hundreds of reviews and forum posts over the last few days I have seen many people having this or that issue. It seems to me that most of the issues are because of upgrades from Lion to Mountian Lion after installing CS6 first or trying to open CS3,4,5 files in CS6.
    If you want to know what issues have me concerned take a look at just this one forum:
    http://blogs.adobe.com/jnack/2012/07/adobe-cs-apps-mountain-lion-no-known-issues.html
    Similar issues are discussed in the Apple forums as well as many other places around the web.
    I am not a computer professional but I know enough to maintain my systems and keep them running smoothly.
    We do not have any Adobe software installed on my mini and will not be opening any files from previous versions of Adobe product in the new CS6 software. These will be a clean installs on pristine systems running fully updated Mountian Lion OS's on both machines and creating new files from scratch.
    Question: Should I be expecting any issues like the ones I have read in the forums and blogs or are these just the normal things that happen when upgrading to new software with multiple hardware configurations?
    My feeling is that we will not be having too much of a problem due to the clean installs and no files from previous versions.
    Next up, the Creative Cloud(CC) FAQ states that you can install on 2 machines but can't open stuff at the same time.
    Question: Does this mean we can't be using any CS6 apps at the same time or just not using the same app at the same time?
    Example: PS and PS on both machines at same time = No, PS on one and Dreamweaver on the other at the same time=Yes?
    The CC FAQ page says Adobe will add Lightroom 4 later in 2012 while the main CC page lists it as available now.
    Question: Which is true?
    My mini is registered to me, with my name, iTunes account, Apple ID etc.
    Question: Do I need to do the initial set-up of the new machine with all my information to ensure the CS6 suite works on both machines? Do the computers need to be registered(as far as Apple configuration is concerned) to same person for them to work on one CC account or can I install CS6 on any 2 machines regardless of how they were initially set-up?
    This may seem like a silly question but I want to avoid any problems before they happen.
    Well, those are all of my questions at the moment. To anyone who made it this far in my looooong post, Thank You so much for your time. I appreciate your expertise and knowledge and hope that you can help me make this decision.
    Cheers,
    Alex Bogdan

    Alex,
    I'll try and answer your questions as best I can.
    Qn 1 Which Mac.
    Ans:- As I understand it both units will run Adobe CS6.
              Which one really depends on what you wand from CS6. If you are looking for high end demand and performance, then I would go for the IMac
              Your Specs for the Imac are right. However if you buy your IMac straight from Apple there are even higher specs.
              You can get:-
                                  3.4 GHz i7 processor rather than the i5
                                   2GB video card as opposed to a 1Gb video card.
                                   Of course such a model will cost you more.
              In the end it is needs compared with money to spend. That is only a decision you cam make.
    Q2:- Will the higher cost for the Imac justify copst.
    Ans:- Again it depends on what demands you intend to make on the hardware and software.
              But I note you have a business and if that businees expects to high demand and high speedy performance then I suspect the Imac would be more able to provide your needs.
              Again only you will know the answer to that.
    Q3:- Questions about CS6 reliability
    Ans:- I have been with Adobe for way over 10 years.
             Speaking, only for myself, it is the most reliable software on the market.
              It is true that if you look down this form, like any other and I am thinking about the Apple discussions forum, you will find numerous instances of problems.
              Again this is only my opinion, but although all these problems are real for the individuals:-
              First it is not clear why they have the problem e.g. what have they done or not done.
              Second, they are in the minority of the total users using the hardware / software.
              The only problem I am aware of with CS6 is Acrobat X. I understand it has been sorted Adobe, however it cost me so much work I have removed it from my system and reverted to Acrobat 9
              So what I am saying is that there are only two comapnies I rely 100% on: They are Adobe and Apple.
             So if you are happy with my opinion I would not worry about Adobe CS6
    Qn 4:- CS6 0n 2 machines.
    Ans:- Yes you will not be able to run the same program similtaneosly.
               I believe, if it is important that you do run the same program together, that you can acquire a further licience from Adobe to do that.
               You would need to contact Adobe about that.
    Qn 5:- Lightroom 4
    Ans:- Lightroom is now available as part of Creative Cloud.
    Qn 6:- Set up for individual machines
    Ans:- I do not believe you do. Once you have set up your Creative Cloud account you go to the apps site and download the apps for each machine.
              Each machine downloads the apps and your machine and the apps are registered by Adobe.
             Here is something that you may want to know:-
              Because I was so unhappy loosing all the Acrobat data with Acrobat X I ended up deleting Acrobat X
              However as far as Creative Cloud is concered Acrobat X is still on my machine.
              It is not a problem for me because I am happy with Acrobat 9, it fullfils my needs and has not crashed and lost me all my bookmarks.
              However here is the point:-
              Adobe, when there was a problem with Acrobat X requested that no-one deletes the application.
             Though I do not know for certain I believe registration of the apps you have with Creative Cloud are registered with Creative Cloud in their database. Therefore were you to delete an app, it will still be registered with Creative Cloud and you will not be able to download a further copy even though the app is no longer on your    machine.
              Therefore it maybe not a good idea to delete an app when you no longer have a use for it. If you want it back I suspect you will have to contact Adobe Support
    Personal Comment:-
              It is true many unfortunately have had all sorts of problems, including me with Acrobat X.
              That said, Creative Cloud in my view has been a major advance in how Adobe delivers software. I have no regrets with signing up to Creative Cloud and I expect to remain with it.
    Hope all of that goes some way to answering your questions.

  • A few questions regarding my Z10

    Still a new user, new to smartphones too,  can't find time to sit with it very much lately...
    Here are a few questions I have:
    On recharging the phone after I upgraded the OS,  when it was I believe turned off -- I don't think it was on --  I never noticed the green LED that I noticed sometimes while recharging before I upgraded to the latest OS -- it just never seemed to come on green I presume to show a full battery  when I was charging.  Yesterday it did, and I believe my phone was "off"  -- what's the story on that?  Does it just stay on green a short while, then go off? Why sometimes orange/white I think it was, for quite some time, even when it should have been recharged?  I was glad to notice the green yesterday.
    I had the Bell store put in the largest of the media cards, and now I want to load up some apps, not junk, I'm not a kid, just solid ones,  and am not sure how to do that...  ahem.  I know.  I would like to pick up the Globe and Mail news one and the CBC news one unless it's already on there, will check on that, to start, and maybe some other which is recommended.  Can I do this over the household WiFi without turning the carrier date access on?  Or can I do it via my laptop -- I did put BlackBerry Link on the computer [actually the Bell tech did at the Bell store] and I have not attempted to use that yet in any way.  Can someone point me to online instructions on this or give me a step-by-step procedure?  I am still "new" as a user... 
    I would search around myself but have to get a garden set up finished...   perhaps someone has a quick pointer or answer...
    Solved!
    Go to Solution.

    Apps:
    Select the 'Blackberry World' icon
    If this is your first time, you may have to register and create a blackberry id, follow the instructions.
    select the little magnifying glass icon (search)
    Type 'cbc' in the search bar
    You'll see the various CBC apps.
    Select one that you want to look at, select the green 'DOWNLOAD' button
    Repeat as required for other apps.
    Paid apps will most likely be automatically billed thru your BELL account.
    To find the apps after they install, exit BB world.
    from the home page, swipe left to see more pages. Newly installed apps will appear on the last page.
    Globe News, CBC news, CBC radio, National Geographic, TuneIn Radio, Recipe Box, Native Level, Easy Level, NFB, CBC Hockey Night, CBC Music, CIBC Banking, POYNT, Flashlight LED are all free and very good.
    Skype is free, but not great yet.
    If you're on wifi, all the downloads will use wifi data.
    Most apps are pretty small and don't eat up a lot of your data plan, even if you download over wireless.

  • Few questions about iPhone 4S

    Hi,
    Recently I got an iPhone 4S, it is my first new phone in a long time, before this I had an old nokia, so I just have a few questions about it.
    I havve read a alot of horror stories about the 4S battery life, mine seems ok, here is what I would like to know
    1) How long should a healthy battery last?
    2) how long should it take to charge to 100% from 1 or 2%?
    On my daily commute I use listen it to music and sometimes user twiiter/facebook. I also get alerted of emails when they come in. So far it has just about lasted just about two days maybe before I had to recharge. Is this about right? As stated above I am coming from an old nokia, which is very dated now but the battery lasted almost a week before I had to charge, so having to charge my phone this often is new to me. My iPhone is really great and I just don't want any problems. I have turned off all extras that I don't need.
    BTW are the iPhone 4S battery issues a software or hardware issue?
    Thanks

    I attempted to read your post, but in amongst all the random, unrelated waffling, I couldn't actually find exactly what your iPhone related question for this "Using iPhone" forum was.
    Would you like to clarify? Concisely.

  • Few questions about apex + epg and cookie blocked by IE6

    Hi,
    I would like to ask a few questions about apex and epg.
    I have already installed and configured apex 3.2 on oracle 10g (on my localhost - computer name 'chen_rong', ip address -192.168.88.175 ), and enable anonymous access xdb http server.
    now,
    1. I can access 'http://chen_rong' , 'http://localhost' , 'http://192.168.88.175' without input username / password for realm 'XDB' in IE6;
    2. I can access 'http://localhost/apex/apex_admin' , 'http://192.168.88.175/apex/apex_admin' , and I can be redirected into apex administation page after input admin/<my apex admin password> for realm 'APEX' in IE6;
    3. I can access 'http://chen_rong/apex/apex_admin' in IE6, but after input admin/password , I can not be redirected into administation page, because the cookie was blocked by IE6.
    then, the first question is :
    Q1: What is the difference among 'http://chen_rong' , 'http://localhost' , 'http://192.168.88.175' ? I have already include site 'chen_rong' into my trusted stes! why the cookie was blocked by IE6. I have already tried firefox and google browser, both of them were ok for 'chen_rong', no cookie blocked from site 'chen_rong'!
    and,
    1. I have tried to use the script in attachment to test http authentication and also want to catch the cookie by utl_http .
    2. please review the script for me.
    3. I did:
    SQL> exec show_url('http://localhost/apex/apex_admin/','ADMIN','Passw0rd');
    HTTP response status code: 401
    HTTP response reason phrase: Unauthorized
    Please supplied the required Basic authentication username/password for realm XDB for the Web page.
    Web page http://localhost/apex/apex_admin/ is protected.
    MS-Author-Via: DAV
    DAV: 1,2,<http://www.oracle.com/xdb/webdav/props>
    Server: Oracle XML DB/Oracle Database
    WWW-Authenticate: Basic realm="XDB"
    Date: Tue, 04 Aug 2009 02:25:15 GMT
    Content-Type: text/html; charset=GBK
    Content-Length: 147
    ======================================
    PL/SQL procedure successfully completed
    4. I also did :
    SQL> exec show_url('http://localhost/apex/apex_admin/','ANONYMOUS','ANONYMOUS');
    HTTP response status code: 500
    HTTP response reason phrase: Internal Server Error
    Check if the Web site is up.
    PL/SQL procedure successfully completed
    SQL> exec show_url('http://localhost/apex/apex_admin/','SYSTEM','apexsite');
    HTTP response status code: 401
    HTTP response reason phrase: Unauthorized
    Please supplied the required Basic authentication username/password for realm APEX for the Web page.
    Web page http://localhost/apex/apex_admin/ is protected.
    Content-Type: text/html
    Content-Length: 147
    WWW-Authenticate: Basic realm="APEX"
    ======================================
    PL/SQL procedure successfully completed
    my second questions is :
    Q2: After I entered into realm 'XDB', I still need went into realm'APEX'. how could I change the script show_url to accomplish these two tasks and successfully get the cookie from site.
    the show_url script is as following:
    CREATE OR REPLACE PROCEDURE show_url
    (url IN VARCHAR2,
    username IN VARCHAR2 DEFAULT NULL,
    password IN VARCHAR2 DEFAULT NULL)
    AS
    req UTL_HTTP.REQ;
    resp UTL_HTTP.RESP;
    name VARCHAR2(256);
    value VARCHAR2(1024);
    data VARCHAR2(255);
    my_scheme VARCHAR2(256);
    my_realm VARCHAR2(256);
    my_proxy BOOLEAN;
    cookies UTL_HTTP.COOKIE_TABLE;
    secure VARCHAR2(1);
    BEGIN
    -- When going through a firewall, pass requests through this host.
    -- Specify sites inside the firewall that don't need the proxy host.
    -- UTL_HTTP.SET_PROXY('proxy.example.com', 'corp.example.com');
    -- Ask UTL_HTTP not to raise an exception for 4xx and 5xx status codes,
    -- rather than just returning the text of the error page.
    UTL_HTTP.SET_RESPONSE_ERROR_CHECK(FALSE);
    -- Begin retrieving this Web page.
    req := UTL_HTTP.BEGIN_REQUEST(url);
    -- Identify yourself.
    -- Some sites serve special pages for particular browsers.
    UTL_HTTP.SET_HEADER(req, 'User-Agent', 'Mozilla/4.0');
    -- Specify user ID and password for pages that require them.
    IF (username IS NOT NULL) THEN
    UTL_HTTP.SET_AUTHENTICATION(req, username, password, 'Basic', false);
    END IF;
    -- Start receiving the HTML text.
    resp := UTL_HTTP.GET_RESPONSE(req);
    -- Show status codes and reason phrase of response.
    DBMS_OUTPUT.PUT_LINE('HTTP response status code: ' || resp.status_code);
    DBMS_OUTPUT.PUT_LINE
    ('HTTP response reason phrase: ' || resp.reason_phrase);
    -- Look for client-side error and report it.
    IF (resp.status_code >= 400) AND (resp.status_code <= 499) THEN
    -- Detect whether page is password protected
    -- and you didn't supply the right authorization.
    IF (resp.status_code = UTL_HTTP.HTTP_UNAUTHORIZED) THEN
    UTL_HTTP.GET_AUTHENTICATION(resp, my_scheme, my_realm, my_proxy);
    IF (my_proxy) THEN
    DBMS_OUTPUT.PUT_LINE('Web proxy server is protected.');
    DBMS_OUTPUT.PUT('Please supply the required ' || my_scheme ||
    ' authentication username/password for realm ' || my_realm ||
    ' for the proxy server.');
    ELSE
    DBMS_OUTPUT.PUT_LINE('Please supplied the required ' || my_scheme ||
    ' authentication username/password for realm ' || my_realm ||
    ' for the Web page.');
    DBMS_OUTPUT.PUT_LINE('Web page ' || url || ' is protected.');
    END IF;
    ELSE
    DBMS_OUTPUT.PUT_LINE('Check the URL.');
    END IF;
    -- UTL_HTTP.END_RESPONSE(resp);
    -- RETURN;
    -- Look for server-side error and report it.
    ELSIF (resp.status_code >= 500) AND (resp.status_code <= 599) THEN
    DBMS_OUTPUT.PUT_LINE('Check if the Web site is up.');
    UTL_HTTP.END_RESPONSE(resp);
    RETURN;
    END IF;
    -- HTTP header lines contain information about cookies, character sets,
    -- and other data that client and server can use to customize each
    -- session.
    FOR i IN 1..UTL_HTTP.GET_HEADER_COUNT(resp) LOOP
    UTL_HTTP.GET_HEADER(resp, i, name, value);
    DBMS_OUTPUT.PUT_LINE(name || ': ' || value);
    END LOOP;
    -- Read lines until none are left and an exception is raised.
    --LOOP
    -- UTL_HTTP.READ_LINE(resp, value);
    -- DBMS_OUTPUT.PUT_LINE(value);
    --END LOOP;
    UTL_HTTP.GET_COOKIES(cookies);
    dbms_output.put_line('======================================');
    FOR i in 1..cookies.count LOOP
    IF (cookies(i).secure) THEN
    secure := 'Y';
    ELSE
    secure := 'N';
    END IF;
    -- INSERT INTO my_cookies
    -- VALUES (my_session_id, cookies(i).name, cookies(i).value,
    -- cookies(i).domain,
    -- cookies(i).expire, cookies(i).path, secure, cookies(i).version);
    dbms_output.put_line('site:'||url);
    dbms_output.put_line('cookies:');
    dbms_output.put_line('name:'||cookies(i).name);
    dbms_output.put_line('value:'||cookies(i).value);
    dbms_output.put_line('domain:'||cookies(i).domain);
    dbms_output.put_line('expire:'||cookies(i).expire);
    dbms_output.put_line('path:'||cookies(i).path);
    dbms_output.put_line('secure:'||secure);
    dbms_output.put_line('version:'||cookies(i).version);
    END LOOP;
    UTL_HTTP.END_RESPONSE(resp);
    EXCEPTION
    WHEN UTL_HTTP.END_OF_BODY THEN
    UTL_HTTP.END_RESPONSE(resp);
    END;
    /

    I use oracle database enterprise edtion 10.2.0.3. I have already figured out the epg on 10.2.0.3 to support apex 3.2.
    And as I described above, the apex site works fine for ip address , and localhost. but the cookie will be blocked by IE6, if I want to access the site by 'http://computername:port/apex/apex_admin'. This problem does not occured in firefox and google browser. Could someone give me answer?

  • Aperture - a few questions

    Hi there
    I've been doing lot of reading but struggling to find (or understand!) answers to a few questions.
    I have decided that the simplest way to do things is to import files straight from camera into aperture (although one forum member mentioned somewhere one shouldn't do this?).
    Then use the images as managed images, and back up via vault to an external hard drive.
    1)So if I do this will I still have 'managed' libraries, or will my libraries be 'referenced' (to the external hard disk). Because presumably then if that's the case I'll have to have the hard drive connected to work with the images
    2)If I back up to hard drive after editing, will those edits be saved on hard drive too, or will it just be 'master' images.
    3) I have been playing around trying to find the best way to do things - so currently I have photos stored in iphoto, aperture and on my internal drive (in a pictures folder) - this is obviously not ideal, is there any way I can easily get them all stored in aperture as I think most my aperture library is probably referenced? (I tried consoildate images and now it looks like half the images are still in the folder on theinternal disk drive and half aren't!)
    4) so is there some way of checking whether the images in Aperture are Masters or referenced?
    Sorry about all the questions, any help would be greatly appreciated!!

    christie locke wrote:
    Hi there
    I've been doing lot of reading but struggling to find (or understand!) answers to a few questions.
    I have decided that the simplest way to do things is to import files straight from camera into aperture (although one forum member mentioned somewhere one shouldn't do this?).
    Then use the images as managed images, and back up via vault to an external hard drive.
    It depends. If you use referenced master files, using a card reader and placing the new images/folder into storage location first would be better, but if you are letting Aperture manage your master files, it really does not make a difference at all.
    Personally, I only use referenced master file scheme so I use a card reader and files are moved/stored on external drive to be referenced.
    1)So if I do this will I still have 'managed' libraries, or will my libraries be 'referenced' (to the external hard disk). Because presumably then if that's the case I'll have to have the hard drive connected to work with the images
    If your question is about Vault, you will have managed masters in the Aperture Library and the Library content will be backed up to the Vault. They are two different entities - one original and other being compressed backup of the original library.
    2)If I back up to hard drive after editing, will those edits be saved on hard drive too, or will it just be 'master' images.
    Every action taken within Aperture will be backed up into the Vault. As I indicated earlier that I use referenced master files, but my edit steps are all kept in Aperture Library, along with previews, thumbnails and any data associated with the image. So I back up my Aperture Library to Vault, and I also backup my referenced master files independently, outside of Aperture.
    3) I have been playing around trying to find the best way to do things - so currently I have photos stored in iphoto, aperture and on my internal drive (in a pictures folder) - this is obviously not ideal, is there any way I can easily get them all stored in aperture as I think most my aperture library is probably referenced? (I tried consoildate images and now it looks like half the images are still in the folder on theinternal disk drive and half aren't!)
    If you reference all the existing images as you bring them into Aperture environment, then it really does not matter if you consolidate or not. Aperture will keep track of where the files are located, once you associate the file within Aperture (by selecting leave files in original location).
    If you like to have Aperture manage the files, then simply select managed master during import and you're done.
    4) so is there some way of checking whether the images in Aperture are Masters or referenced?
    You mean managed or referenced, I think. Master simply means the original image file (raw, jpeg or tif file). Yes I think this answer was already given in above post.
    Since I access the image directly without the use of Aperture, having managed master does not work for me nor for my setup. I use a MBP with limited storage but I do want to carry the entire library with me. The only way that can work is to have previews on, and Aperture Library on the notebook, while the actual image master files stays on external drive.
    There are tutorial videos on Aperture site (Apple) as well as video podcast on Aperture How-to Series in iTunes that will help you on this and other subjects.
    Cheers

  • Few question to get going w adobe stuff...

    Ok I have a few questions, maybe you can help me...
    A) ORGANIZER RELATED QUESTIONS:
    1) How/where do I back up photo/videos/settings from adobe organizer?
    1b) If I decide to upgrade from pse9 to ps cs5 is it real simple to 'import.transfer' organizer to the big dog ps cs5?
    1c) Same thing (but for videos) if decide to upgrade to premiere pro from premiere elements 9 is it easy to import organizer?
    2) Organizer - are there physical copies of my photos/videos in some other adobe organizer folder
    or are they just linked to similar to windows 7 and libraries?
    B) Photoshop & Premiere Elements 9 vs Photoshop cS5 & Premiere Pro
    1) Does After Effects work with premiere elements 9?
    1b) Recommend some good starter plug in collections for video editing.?
    2) If I decide to upgrade/buy photoshop cs5, do all of my plug ins I've got installed with elements 8 as host get automatically transferred to ps cs5? Or do I have to manually reinstall all over?
    3) How much simpler is photoshop elements to learn than ps cs5 and premiere pro?
    Is the learning curve about the same just more of it to learn (and additional function of course)
    Thanks everybody - have a ton more questions, but gonna lay low and watch some tutorials for about a YEAR first....
    One last thing...
    I love this site, but variety is the spice of life. Can you guys recommend some other Adobe ps/premeire learing sites and help/discussion forums that would be valuable

    A.1) Click File >>Back Up catalog to CD DVD or Hard Drive.
    1b) You can convert a PSE catalog in CS5 but works best with photos only. Project files like slideshows and videos might cause the conversion to stall.
    1c) Premier Pro has it’s own media browser.
    2)There are no physical copies. The Organizer only makes links to the folders on your computer.
    B.1)AE is fully integrated in CS5.5 Production Premium but I’m not sure if it works on a stand alone basis, although I don’t see why not.
    1b) Sorry don’t know any plug-ins to recommend but 32 bit plug-in's will not work with AE.
    2) You would need to move plug-ins manually.
    3) Just more of it. In PS CS5 you get great things like the pen/paths tool and tone curves. With Premier pro you ideally need a fast 64 bit system with high end GPU to take full advantage of the mercury Playback Engine.
    Try adobe TV for all sorts of video tutorials for the various products.
    Good luck.
    Other forums (click the dropdown menu)
    http://forums.adobe.com/index.jspa
     

  • Homework help--almost done but don't know how my class and main work?

    hello, i'm doing a project for my intro to java class. i'm almost done but i'm very confused on making my main and class work. the counter for my class slotMachine keeps resetting after 2 increments. also i don't not know how to make my quarters in the main receive a pay out from my class. Please guide me to understand what i have to do to solve this problem...I have listed my question page and my class and main of what i have done so far. Thank you .I will really appreciate the help.
    Objective: Create a class in Java, make instances of that class. Call methods that solve a particular problem Consider the difference between procedural and object-oriented programming for the same problem.
    Program Purpose:
    Find out how long it will take Martha to lose all of her money playing 3 instances of the slot machine class.
    Specification: Martha in Vegas
    Martha takes a jar of quarters to the casino with the intention of becoming rich. She plays three machines in turn. Unknown to her, the machines are entirely predictable. Each play costs one quarter. The first machine pays 30 quarters every 35th time it is played; the second machine pays 60 quarters every 100th time it is played; the third pays 11 quarters every 10th time it is played. (If she played the 3rd machine only she would be a winner.)
    Your program should take as input the number of quarters in Martha's jar (there will be at least one and fewer than 1000), and the number of times each machine has been played since it last paid.
    Your program should output the number of times Martha plays until she goes broke.
    Sample Session. User input is in italics
    How many quarters does Martha have in the jar?
    48
    How many times has the first machine been played since playing out?
    30
    How many times has the second machine been played since paying out?
    10
    How many times has the third machine been played since paying out?
    9
    Martha plays XXX times
    Specific requirements: You must solve this using an object-oriented approach. Create a class called SlotMachine. Think about: What does a SlotMachine Have? What does it do? What information does it maintain? This is the state and behavior of the object. Each instance of this class will represent a single slot machine. Don�t put anything in the class unless it �belongs� to a single machine.
    In the main method, create 3 instances of the slot machine to solve the problem in the spec. Play the machines in a loop.
    ========================================================================
    my class
    ========================================================================
    public class SlotMachine{
    private int payOut;
    private int playLimit;
    private int counter;
    public SlotMachine (int payOut, int playLimit){
    this.payOut = payOut;
    this.playLimit = playLimit;
    public void setPayOut (int payOut){
    this.payOut = payOut;
    public int getPayOut(){
    return payOut;
    public void setPlayLimit (int playLimit){
    this.playLimit = playLimit;
    public int getPlayLimit(){
    return playLimit;
    public void slotCounter(){
    counter = SavitchIn.readLineInt();
    public int game(){
    counter++;
    if (counter == playLimit){
    counter = 0;
    return payOut - 1;
    return -1; // the game method was edited by my professor but i'm still confused to make it work
    =======================================================================
    my main
    =======================================================================     
    public class Gametesting{
    public static void main(String[]args){
    SlotMachine firstSlotMachine = new SlotMachine (2,3);
    SlotMachine secondSlotMachine = new SlotMachine (2,3);
    SlotMachine thirdSlotMachine = new SlotMachine (2,2);     
    int quarters;
    int playerCount = 0;
    System.out.println("How many quarters does Martha have in the jar?");
    quarters = SavitchIn.readLineInt();
    System.out.println("How many times has the first machine been played since paying out?");
    firstSlotMachine.slotCounter();
    System.out.println("How many times has the second machine been played since paying out?");
    secondSlotMachine.slotCounter();
    System.out.println("How many times has the third machine been played since paying out?");
    thirdSlotMachine.slotCounter();
    while (quarters != 0){
    playerCount++;
    quarters--;
    firstSlotMachine.game();
    if (quarters != 0){
    playerCount++;
    quarters--;
    secondSlotMachine.game();
    if (quarters != 0){
    playerCount++;
    quarters--;
    thirdSlotMachine.game();
    System.out.println("Martha plays " + playerCount + " times");

    The main problem is that you made the first and second slot machine to pay out 2 quarters after 3 games and the third machine pay out two quarters after two games. That is not what your assignment specified.
    SlotMachine firstSlotMachine = new SlotMachine (2,3);
    SlotMachine secondSlotMachine = new SlotMachine (2,3);
    SlotMachine thirdSlotMachine = new SlotMachine (2,2);
    The second problem is that you never add the payout of a machine to Martha's number of quarters.
    Look carefully at the way your professor implemented the game() method. If you think about it, what it returns is the net "gain" from playing a game. On jackpot it returns payOut -1 (jackpot less the one quarter Martha had to pay for the game), otherwise it returns -1 (Martha spends one quarter and wins nothing).
    So what you can do is simply add the returned value to the number of quarters in the jar -
    quarters = <machine>.game();
    instead of quarters--.

  • Few questions I had before buying an iMac..

    Alright, I plan on entering the Mac scene in a week or two, but first would like a few questions I had cleared up.
    My first question involves Boot Camp. From the Apple site: "Boot Camp supports the most popular 32-bit releases of Windows XP and Windows Vista." I was planning on getting Windows XP64 to dual boot with. Will Boot Camp not support 64 bit XP?
    Second question(s) revolve around Time Machine. First, I plan on getting an external 500 gig drive for Time Machine to do its thing with. Does Time Machine need the entire 500 gigs for backup? (The hard drive in the iMac I'm planning on getting has an internal 500 gig drive). Or is it possible to partition half of it for Time Machine and half for my own regular use?
    One more quick question, do the iMac's have any sort of built in speakers?
    I believe that's everything.
    Thanks in advanced,
    Benjamin
    Message was edited by: octojay

    You didn't say why you need bootcamp or 64 bit (nor do you need to).
    I just wanted to say if you are planning on running games on Windows, where you need full access to fast graphics, DirectX, etc. then Boot Camp is the way to go.
    On the other hand, if you need windows for programs such as Quicken or Internet Explorer, it is much more convenient to run them in Virtualization software like Parallels or VMWare. Your XP or Vista session will run in a Window on your Mac and you don't have to reboot to go there. Unfortunately, only 32 bit versions of Windows are supported.
    You can have the best of both worlds. You can have a bootcamp partition that is bootable into Native windows, and you can also access the same Windows license, programs, and data in Parallels (but only if it is 32 bit).
    For Time Machine, you can partition a single drive into a Time Machine partition and another partition, let's say your "Media Files" partition. However, if you plan on backing up your "Media Files" partition to Time Machine along with the files on your internal hard drive, you have the problem that a disk crash would wipe out both the original and the backup.
    I have a nice set of powered JBL surround speakers with subwoofer that I used with my old Dell, and I continued using them with my old iMac. When I got the new Aluminum iMac, I gave the speakers to my daughter, because the internal speakers are quite good and I got tired of the clutter.

Maybe you are looking for