Accessing stage objects from other objects

I have drawn colored rods which I have placed in the library and have put one of each on the stage with instance names like
blueRod_mc, etc.
I place them around with time-line code like
blueRod_mc.x = 300.0;
I have now created an Actionscript class called Problem.
I build a new object from Problem which I have called Riddle.
But when I put blueRod_mc.x = 300.0 in a method (of Problem),
I get the message that blueRod is not accessible.
So I tried
stage.blueRod_mc.x = 300.0;
That did not work either.
What does work? How can I modify properties of stage objects like blueRod from
within an AC3 object like Riddle?

public class Problem {
  private var number1:String ="";
  private var number2:String ="";
  private var rigor:Number = 1;
     // rigor: -1 is 3 steps, -2 is 4-5 steps, -3 is 6-7 steps
  private var step:Number = 1;
  private var numSteps:Number = 3;
  private var solving:Number = 0;
  private var true1Length:Number;
  private var true2Length:Number;
  private var tuple = new Array(6);
  public function Problem():void  {
   // constructor code
   var i:Number;
   var j:Number;
   for (i = 0; i < 6; i++) {
                 tuple[i] = new Array(3+5);
                 for (j=0; j < 3; j++) {
                   tuple[i][j] = new Array(8+7);
   buildIt();
   planIt();
Just insert bolded code where you need to.

Similar Messages

  • How do I access open tabs from other devices in Firefox 4 for desktop (windows version)

    I want to see the open tabs from other devices but I can't find how to access it.
    Where do I find them in firefox 4?
    I use the windows version.
    Thank you!

    This is for all versions (image attached below):
    1. In the top navigation (you might have to press the ALT key to reveal the menu), navigate to '''History - Tabs From Other Computers'''
    2. Alternatively; open a new tab and type '''about:sync-tabs''' then press enter.
    NB: When you open a tab in the 'Tabs From Other Computers' window it '''WILL NOT''' remove that tab from the other device.

  • Can't Access Aperture Photos from Other Applications

    I am using the trial version of Aperture. I can't access the photos in Aperture from Photoshop, Word or any other application (except Mail). I can see the icon for Aperture and the words "Aperture 3 Trial Library" but it is grayed out. Is there a setting or what? I have Snow Leopard and Mac OS X 10.6.5.

    I guess one thing that bothers me about all my pictures being "bundled" in iPhoto or Aperture is that they don't show up in the Finder.
    This is a real non-issue. A Package is simply a folder that looks like a file. Want to look inside? Go to your Pictures Folder and find the iPhoto Library or the Aperture Library there. Right (or Control-) Click on the icon and select 'Show Package Contents'. A finder window will open with the Library exposed.
    See? There are all your files, in folders.
    Why are they Packaged? Because if you move, rename, or alter them then you will corrupt your Library. So it's a simple protection for the structure of the Library. That's all. No big secret.
    But there are other things you need to consider too.
    Supposing you want to attach a file to an Email in Aperture. Presumably you want to send the edited file of your photo. So, how do you do that +when there is no edited file+? Aperture doesn't actually edit the file at all it simply records the decisions you have taken and shows them to live when you view the pic. All your edits are "virtual". So, the fact that your original files are stored out the the package will be no help to you at all.
    iPhoto is pretty much the same - though the details are different.
    So, you have to use the applications when you want to access the files for whatever reason - editing, printing, sharing, whatever. That's the point of these apps. They are your Photo Manager, what AddressBook is to your Contacts, iTunes is to your Music and so on.
    Here's a macro I use for when these questions come up on the iPhoto Forum. Most - if not all - of these will also work for Aperture:
    You can use any Open / Attach / Browse dialogue. On the left there's a Media heading, your pics can be accessed there. Command-Click for selecting multiple pics.
    Uploaded with plasq's Skitch!
    *_(Note the above illustration is not a Finder Window. It's the dialogue you get when you go File -> Open)_*
    You can access the Library from the New Message Window in Mail:
    Uploaded with plasq's Skitch!
    If you use Apple's Mail, Entourage, AOL or Eudora you can email from within iPhoto or Aperture
    If you use a Cocoa-based Browser such as Safari, you can drag the pics from the iPhoto Window to the Attach window in the browser.
    *If you want to access the files with iPhoto or Aperture not running*:
    For users of 10.6 and later:
    You can download a free Services component from MacOSXAutomation which will give you access to the iPhoto Library from your Services Menu. Using the Services Preference Pane you can even create a keyboard shortcut for it.
    *File -> Export*: Select the files in the iPhoto Window and go File -> Export. The dialogue will give you various options, including altering the format, naming the files and changing the size. This produces, producing a copy.
    Regards
    TD

  • Access Address Book from other applications

    Hi there,
    How can I access Address Book information from other applications (notably the command line, OpenOffice, etc.)?
    In particular, is there a command line utility to access and edit the Address Book?
    Thanks!
    Brian

    One of the best answers would have been the CPAN module: Mac::Glue. Cheers.

  • I am not able to access the application from other PCs in network

    Hi Friends,
    I am a newbie in this field and building an internal application for employees of my org. The HR will enter all the informations regarding a particular employee and it will get stored in the Oracle DataBase(10g).When the admin users will want to know information about a particular emp they will put the emp_code and it will retrieve all the information of that particular emp.For that I am using Oracle AS(10g).After the deployment of the apllication(.war file) in the AS(10g), when I access the URl- http://10.0.37.51:7777/emp/... from my machine (where 10.0.37.51 is the IP Address of my system where server is installed) the application runs properly but when i give the same url from other pcs the whole application does not run properly it gives an error msg http://d6z5sb1s:7777/...not accessible.. can any of my forum friend help me out to solve the problem.I will be thankful to you..
    Regards,
    Prasenjit Biswas
    [email protected]

    Here I am using Java Type IV for database
    connection.
    So,there was no necessity of creating DNS.How your app communicates with db shouldn't matter for the end user. Still, you may want to use a functional network name also for the thin client driver connection string.
    So,is there any other way to solve this problem.What is the problem really? Do you not use dns for network naming? Maybe you have to manage the hosts file on every client then.

  • Accessing public variables from other classes

    Probably a simple questions, but how can I access a variable from another class. My exact situation is as follows.
    A class called WorldCalender has a variable which is defined: public int hour; (the value is given to it elsewhere).
    I want to access this variable and increase it by one in a subroutine in the class Hour. In this class I have put: WorldCalender.hour++; but it doesn't seem to work. How should I do it?

    don't expose the hour variable at all.
    have a method eg addToHourBy( int hrs )
    Probably a simple questions, but how can I access a
    variable from another class. My exact situation is as
    follows.
    A class called WorldCalender has a variable which is
    defined: public int hour; (the value is given to it
    elsewhere).
    I want to access this variable and increase it by one
    in a subroutine in the class Hour. In this class I
    have put: WorldCalender.hour++; but it doesn't seem to
    work. How should I do it?

  • Accessing external DB from other computer?

    i am migrating from a 2006 mac pro running Lion to a 2012 running yosemite.
    two questions please.
    1. can i /store/ the aperture database on a separate 1 TB drive in the 2012 machine with a number of other databases and simply have this drive be my "database" drive?
    2. can i open and work on the aperture database on this drive that is in the 2012 machine (say if it is in the pictures folder on the 2012 machine or on the separate "database drive" in the 2012 machine) while i am booted into Lion on the 2006 machine? i mean, until i get totally set up to work in yosemite is this a possibility?
    thanks

    You can store your Aperture library on a second internal drive or a directly connected external drive. The file system of the drive needs to be MacOS Extended (Journaled). So if you want to recycle drives you used with a Windows computer, move all data off the drive, and reformat the drive with Disk Utility. 
    See this support document:  Use locally mounted Mac OS X Extended volumes for your Aperture library
    If you want to access the drive from different user accounts set the "Ignore Ownership on this Volume" flag, see: iPhoto: Sharing libraries among multiple users (the tile says iPhoto, but this holds also for Aperture).
    If you want to use a library, that is on an internal disk on another mac, you cannot use the library over a network connection. You need a wired connection.  Boot the second Mac in target disk mode, see:    OS X Lion: Transfer files between two computers using target disk mode
    Target disk mode will mount the second computer as an external disk.

  • Can't access new MBP from other Macs on my network

    I just got a new last-gen MBP running Leopard. All Apple updates are installed. I need to access it from two Macs on my network that are running Tiger (also with all current updates installed). Tiger-to-Tiger connections are running perfectly. And the new Mac accesses the Internet, networked printers and so on just fine.
    Problem: While the MBP shows up in the other machines' Network Browser, they can't connect to it. And, while the MBP sees the other machines, all it can connect to is the account Public Folders (the entire volumes are set to share).
    The new MBP was populated with data from my old PB G4 using Migration Assistant.
    I've never had a problem like this. I've tried disabling the MBP Firewall, rebooting the network, rebooting all of my Macs, but still no luck.
    I've searched the Discussions and didn't find any help in previous postings. Hopefully someone can help me now...
    Thank you!

    Abbott Schindler wrote:
    I can connect to any of the Tiger machines from the Leopard machine.
    And the Leopard machine shows in each Tiger machine's network browser.
    I've rebooted all of the machines at least once and rebooted my router and switch as well.
    I've tried connecting to the Leopard machine by specifying its afp address.
    None of this works. I guess I'll need to take advantage of my free 90 days of tech support and call Apple. In 20 years of owning Macs, I've never encountered anything like this. I still hope I don't need to reinstall the OS, but I'm getting very worried.
    Thanks for all the suggestions; I'll keep checking back and will also post the solution if one is found.
    I do not think it's an OS issue. At least one requiring a reinstall.
    I just started my other MBP with Tiger. Takes a bit since it's booting via a FW400 pipe.
    I will see if I can access this MBP from that one in a few minutes. Never did that - all my systems have been peers. (Booted faster than I expected.)
    First I note that this Leopard box does not show up on the Tiger box.
    Also "go" and browse does not show this box.
    It worked but I had to enter this IP into the "connect to" on Tiger.
    Required login and password.
    Connected via afp and a window popped up with the volumes on this box to connect to.
    Clicked this user account and there I was.
    After that, this box showed up in the Finder sidebar.
    So Tiger will connect to a Leopard box, but it seems that one needs to enter the IP of the Leopard box. If that does not work, then something is wrong.
    Curiously, that Tiger box has not registered on this Leopard under Places.
    Ah, I did not have filesharing on in the Tiger box. Turned it on and I can see it from here.
    So I have bilateral network connections: Leopard here <-> Tiger there
    Works for me, but that does not help you except to know that it should work.
    BTW The Tiger version is 10.4.11.
    Message was edited by: nerowolfe

  • Cannot access APEX pages from other IP in the same network

    Hi,
    I installed APEX 3.0 on Oracle XE (Windows OS). The PC I installed has a static IP (no DHCP and DHCP servie is stopped).
    I started the HTTP server and I am able to access the XE database home page and the APEX developer page and admin page. This PC has a static IP too.
    When I tried to access the APEX page from another PC. It is not loading the page.
    When tried using Internet Explorer it says "Internet Explorer Cannot display the page"
    Please let me know whether I missed any configurations to the access the page from another IP.
    Thanks.
    Niko

    Hi,
    Most likly the cause is windows firewall. Try the following:
    1 - from Control panel select windows firewall
    2 - click on the exception tab
    3 - Click Add port
    4 - for name enter yhe name you want (APEX)
    5 - For port number enter APEX prot number
    Hope that will solve your problem
    Regards,
    Ribhi

  • Accessing I-Photo from other programs

    Can not access I-Photo from WORD, I-Movie, etc. since installing I-Photo 09. It will show that I-Photo is available but never produces any photos, just continues to say "Loading" Have to drag photos to screen or other location, then drag to desired location. Have considered re-installing.

    Welcome to the Apple Discussions.
    Run Software Update and make sure you have all the iLife support updates installed. If you have then download and re-install the iLife 9.0.3 update from here
    http://support.apple.com/downloads/iLifeSupport_9_03
    and repair permissions.
    Regards
    TD

  • Lock icon at bottom & can't access my music from other comp.

    I have noticed while using my iPod video there is a lock icon at the bottom of iTunes and it doesn't allow me to access my music while using other computers. how do i remove this feature so i can play mt music.

    The lock icon appears when you iPod is set to automatically update.
    Set it to manually update and you should be able to play the music from other computers.
    Hope this helps.
    M

  • I am unable to redeem iTunes cards from my iPhone 5 or my PC using my account.  I am able to use mmy PC to access and purchase from other's accounts.  I get a temporary unavilable to redeem message or an iTunes unknown 5002 error.

    My iPhone 5 and my PC (Windows 7) will not allow me to redeem cards or make purchases.  I get an unknown iTunes error 5002 on the PC and when using the iPhone it goes blank after a code is entered and does not return.  It recovers when the home button is pressed.  The software is up to date and this has been tried by USB and Wi-Fi from different netwroks.  This matter has persisted for more than five days without a resolution from Apple support.  The same PC allows purchases from iTunes from other accounts belonging to others who use the same PC with their IOS devices (iPhone 5, iPod Touch, iPod Shuffle).

    Hello jaybearden,
    Thanks for the question. After reviewing your post, it sounds like you are not able to restore the iOS device since you get an error 9. I would recommend that you read this article, it may be able to help the issue.
    Resolve iOS update and restore errors - Apple Support
    Check your security software
    Related errors: 2, 4, 6, 9, 1000, 1611, 9006. Sometimes security software can prevent your device from communicating with either the Apple update server or with your device.
    Check your security software and settings to make sure that they aren't preventing a connection to the Apple servers.
    Thanks for using Apple Support Communities.
    Have a nice day,
    Mario

  • Access textfield value from other class

    Hi guys,
    I got a little newbie-problem to solve.
    To say it simple I have the following code (2 classes):
    @interface class1 : UIViewController {
    IBOutlet UITextField *textField;
    @property(nonatomic, retain) UITextField *textField;
    @implementation
    @synthesize textField;
    @implementation class2
    class1 *class = [[class1 alloc] init];
    [[class textField] setText:@"text"];
    My problem is, that the text will not show up in the textfield.
    If I set the text in class1 everything works fine, but not when I try to set it from class2. The connections between the classes work well, because by using code completion it finds the textfield. I am not used to use property and synthesize, maybe thats the problem?
    Thanks for help,
    Krissi

    I'm more familiar with Mac programming and have just started playing with the iPhone SDK so I'm still trying to get my head around how iPhone apps are structured. It's a little hard to give you a definite answer without knowing more about your "class2" and how your xib file(s) are set up and perhaps which template you used to create your iPhone app.
    Assuming your xib file is named "class1.xib", it looks like the code you posted should load the xib. To check: set a breakpoint at that line, run in the debugger, once you stop at that line click the "Step over" button and see if the pointer value for your class1 variable gets updated.
    When you run your app are you even seeing the view with the text field on the screen? It may be that you've loaded the xib but you need to add it to your window. Here's a code snippet from the "MoveMeAppDelegate.m" file in Apple's "MoveMe" sample code for iPhone. This is from the "applicationDidFinishLaunching" method where the delegate object is loading a xib file and adding it to the window:
    UIViewController *aViewController = [[UIViewController alloc] initWithNibName:@"MoveMeView"
    bundle:[NSBundle mainBundle]];
    self.viewController = aViewController;
    [aViewController release];
    // Add the view controller's view as a subview of the window
    UIView *controllersView = [viewController view];
    [window addSubview:controllersView];
    [window makeKeyAndVisible];
    Hope this helps,
    Steve

  • UNABLE TO ACCESS MY PHOTOS FROM OTHER PROGRAMS

    Hi new Mac user here. can anyone shed some light on a small problem I am having.
    I am trying to upload my images to a photo library, but when i click on the select file button it opens up another window allowing me to navigate to where my images are stored in iphoto. I navigate to pictures etc, but when I get to iphoto it is greyed out and won't let me locate the image I want to upload.
    Any ideas why I cannot select my photos which are in seperate folders within iphoto library?

    paramedone
    There are many, many ways to access your files in iPhoto:
    For 10.5 users: You can use any Open / Attach / Browse dialogue. On the left there's a Media heading, your pics can be accessed there. Apple-Click for selecting multiple pics.
    Uploaded with plasq's Skitch!
    To upload to a site that does not have an iPhoto Export Plug-in the recommended way is to Select the Pic in the iPhoto Window and go File -> Export and export the pic to the desktop, then upload from there. After the upload you can trash the pic on the desktop. It's only a copy and your original is safe in iPhoto.
    This is also true for emailing with Web-based services. If you're using Gmail you can use THIS
    If you use Apple's Mail, Entourage, AOL or Eudora you can email from within iPhoto.
    If you use a Cocoa-based Browser such as Safari, you can drag the pics from the iPhoto Window to the Attach window in the browser.
    Or, if you want to access the files with iPhoto not running, then create a Media Browser using Automator (takes about 10 seconds) or use THIS
    Other options include:
    1. *Drag and Drop*: Drag a photo from the iPhoto Window to the desktop, there iPhoto will make a full-sized copy of the pic.
    2. *File -> Export*: Select the files in the iPhoto Window and go File -> Export. The dialogue will give you various options, including altering the format, naming the files and changing the size. Again, producing a copy.
    3. *Show File*: Right- (or Control-) Click on a pic and in the resulting dialogue choose 'Show File'. A Finder window will pop open with the file already selected.
    Regards
    TD

  • How do I access iPhoto files from other programs (i.e. PhotoShop Elements)

    From within many programs, specifically PhotoShop Elements or Adobe Bridge tonight, I navigate to "iPhoto Library" and can not access the files within the library to use in these programs. I can get there from within Finder, just not other programs. This is extremely frustrating...can someone please help?

    Of course - it is a database and you must use the correct access methods
    and for a photo editor like PSE you also need to explain what you are trying to do
    IF -- you want to edit photos within the iPhoto library then simply set PSE as the external editor in the iPhoto preferences - then you edit and save (not save as) and the database is automatically updated -- if you want to choose iPhoto or PSE as the editor then after setting PSE as the external editor set the external editor back to in main window and now normal editing will be in iPhoto but by right clicking on a photo in iPhoto you get a menu allowing you to use PSE for it
    IF - you are generally asking and want the general answer - all open (or attach) dialogue windows have the media browser in the lower left - look under media ==>pictures ==> iPhoto but if you use this method you can not just return photos to iPhoto - you must save as and then import into iPhoto
    click here for a general discussion on accessing your photos safely and correctly.
    LN
    Message was edited by: LarryHN

Maybe you are looking for

  • JLabel text hidden behind another component in GridBagLayout

    Hi everyone I have looked for an answer to this but come up short so here I am. I am using GridBagLayout to position some Jlabels and a JScrollPane I have a JLabel in gridx = 0 and gridy = 0 which spans 2 columns under that in gridx = 0, gridy = 1 I

  • My wifi keeps saying it is timing out wont stay connected

    My MacBook Pro is only 5 months old and just yesterday it started timing out on wifi connection it connects then disconnects in 1 sec.

  • Update Retriever - Missing Intel wireless driver for the W530

    I can't find the driver g1w218ww_s64.exe available for download. I can see the 32 bit version, but not the 64 bit one. I even searched database.xml file to see if I'd accidentally hidden it, but can't see it there either.

  • [SOLVED] Verbatim USB headphones not detected

    I did use this head set once when I bought them in september and they showed up in gnome's pulseaudio-mixer-applet. I can't recall installing anything, just plugged them in... However when I tried today nothing appeared, and dmesg gives med this: usb

  • Unable to open older pages documents

    hello i've got a problem with the pages software. i've got the older version of 'pages' (4.3) and i've installed just recently the new version.  at least i think i have.  when i go to apple store and see recent downloads, i can see the new version of