AttachMovie - work but loadMovie - not

hi
This Code working: var t =
this.attachMovie("ball"+i,"bb"+i,i+1);
But this: createEmptyMovieClip("ball"+i,
this.getNextHighestDepth());
var t = "ball"+i.loadMovie(PIC
); - not.
I cant understand why!?
How i can understand attachMovie working only with library's
movie clips, does it ??
Does exist function that can put movie clip into a library ??
Or create movie clip into a library??
Thanx

Sorry, but PIC is array, it's my mistake i want write:
createEmptyMovieClip("ball"+i, this.getNextHighestDepth());
var t = this["ball"+i].loadMovie(PIC
does't work, Can't understand why.
All my code:
// XML
var galery:XML = new XML();
galery.ignoreWhite = true;
var PIC:Array = new Array();
var index:Number = 0;
xml.onLoad = Delegate.create (this, onLoad);
galery.load("galery.xml");
galery.onLoad = function(success){
if (success){
nodes = galery.firstChild.childNodes;
for (i=1; i<=nodes.length; i++){
PIC.push(nodes[i-1].childNodes[0].nodeValue);
var numOfBalls:Number = 4;
var radiusX:Number = 500;
var radiusY:Number = 100;
var centerX:Number = Stage.width / 2;
var centerY:Number = (Stage.height / 2)-90;
var speed:Number = 0.01;
var vector:Number = 1;
var AlphaSpeed:Number = 5;
right.onRollOver = function() { _root.vector = 1; };
left.onRollOver = function() { _root.vector = 0; };
main();
function main()
for(var i=0;i<nodes.length;i++)
createEmptyMovieClip("ball"+i, this.getNextHighestDepth());
var t = this["ball"+i].loadMovie(PIC); trace(t);
t.angle = i * ((Math.PI*2)/nodes.length);
t.onEnterFrame = mover;
function mover()
this._x = Math.cos(this.angle) * radiusX + centerX;
this._y = Math.sin(this.angle) * radiusY + centerY;
var s = this._y /(centerY+radiusY);
this._xscale = this._yscale = s*100;
if(vector==1) { this.angle -= this._parent.speed; }
if(vector==0) { this.angle += this._parent.speed; }
this.swapDepths(Math.round(this._xscale) + 100);
this.onRollOver = function()
{ _root.speed = 0; _root.AlphaSpeed = 0;
if(this._x>100 && this._x<860) {
tip.swapDepths(1000); tip._x = _xmouse; tip._y = _ymouse;
tip.startDrag();
tip.content = "1";
tip.head = "1";
tip.gotoAndPlay(2);
this.onRollOut = function()
{ _root.speed = 0.01; _root.AlphaSpeed = 5; tip._x = -300;
tip._y = -300; };
if (this._x<100 && this._x>30 &&
vector==0) { this._alpha -= AlphaSpeed; }
if (this._x<930 && this._x>860 &&
vector==0 && this._alpha<100) { this._alpha +=
AlphaSpeed; }
if (this._x>30 && this._x<100 &&
vector==1 && this._alpha<100) { this._alpha +=
AlphaSpeed; }
if (this._x>860 && this._x<930 &&
vector==1) { this._alpha -= AlphaSpeed; }
if (this._x<0) { this._alpha = 0; }
if (this._x>960) { this._alpha = 0; }
Where is my mistake??

Similar Messages

  • The Power Supply Fan is still working, but does not appear to respond to increased loads, and its speed cannot be increased using SMCFanControl. Any suggestions?

    Hi all - My mac pro 1,1 has an enigmatic problem. It's quad-core, 3Ghz, running OS X 10.7.5. The problem began some months back, when running HD video conferences, HD streaming videos and some other graphics-moderate (I won't say intense) uses, such as slide shows in Just Looking. My machine has an ATY, RadeonX1900 card and 2 monitors - both Apple displays, one being 30 inch 2560x1600, the other being 24 inch 1920x1200.
    When I start those types of graphics-moderate apps, after about 5 minutes, something would crash (the monitors making a noise as it did) and the displays would both go black. The power did not appear to be fully cut off from the monitors. I think that the underlying applications, however, did not crash. So, I could still hear and speak to people during video conferences, and I could hear the sound tracks of videos.
    Attempts to restart the computer and get the monitors back did not immediately work to undo the problem, if done straight away. The only way to correct the problem (so as to have the monitors work) was to wait for a few minutes and then restart.
    After a lot of puzzled looking at console logs (and I confess that I am not an expert), I ran into a blank.
    But, because of the timing of the crashes (after ~5minutes use) and restarts (after some minutes wait), I reasoned that the problem might be temperature related.
    Once on that path of thought, I found this article:
    http://worldtv.com/blog/guides_tutorials/fixing_an_overheating_mac_pro_no_expens e_required.php
    I installed both Temperature Monitor and SMCFanControl. And I experimented, and got interesting results:
    Now to the puzzling bit: SMCFanControl shows that the speed of the Power Supply Fan doesn't vary much, even if I use SMCFanControl to ramp fan speeds right up. All of the other fans react to SMCFanControl, going up to and above 2500rpm when commanded. But the Power Supply Fan does not.  Having watched it for a few days now, the Power Supply Fan, according to AFCFanControl, never varies outside of a range from about 600-640 rpm, regardless of what I do with AFCFanControl.
    Also (and not surprisingly), whenever the graphics-moderate apps run, when I ramp all the fan speeds up using SMCFanControl, Temperature Monitor shows that the all of the temperatures within the machine plummet, except in the power supply locations. Power Supply Location 2 is the worst affected. Because the Power Supply Fan does not react as the other fans do, the "crashes" still occur.
    I could post some screen shots of the read outs of SMCFanControl and Temperature Monitor, although I think I have covered the key points in this post.
    It seems that the Power Supply Fan is still working, but does not respond to increased loads.
    Instinctively, I'm worried that if that's right, it might be a hard problem to fix. Any suggestions? Help! I would really appreciate them!
    Cheers
    P

    Thanks for your response Grant. I had already read about, and I think excluded, dust in graphics card/fan/assembly as a cause. The entire inside of the computer, including the graphics card/fan/assembly, is as clean as a whistle. It looks clean. I've cleaned the dust out every now and then (including a few days ago). Also, my undersanding (derived from the article, linked in my first post) is that I might expect to see high temperatures in the Northbridge and memory module B if the graphics card was overheating. According to Temperature Monitor, however, locations do not increase in temperature when I run the relevant apps. Finally, the graphics card/assembly does not feel too hot to touch.
    It is strange that SMCFanControl lists the Power Supply Fan as being software controllable, if that fan is not. Still, your comments are consistent with my observations, as the fan simply does not respond to software control.
    There are two upsides: First, I've something of a work-around. I've worked out what temperature must be achieved in Power Supply Location 2 for a crash to occur, and I can watch that location in Temperature Monitor, terminating the process before that treshold is reached. Of course, that's not ideal. Second, ramping all the other fans up does significantly delay the onset of the problem, and makes recovery time much quicker.
    Is there any donwside to peridically ramping up the other fans when running the relevant apps? Given that it causes all of the other locations to cool significantly, could this lessesn the life expecancy of the mahcine? (I don't want to run the fans up all the time - that's like sitting next to a jet ready for take off!)
    Also, a correction to my first post: Yesterday, with all the other fans running on full and running an HD streaming video, the Power Supply Fan did, eventually, slowly, come up to ~740rpm, which is much higher than the ~640rpm maximum I had previously seen, and this may have aided delaying the onset of the problem. 
    I'm not sure where this leaves me? The problem might now be able managed. Well, sort-of. But it's not eliminated.

  • My i phone 4 is water damaged and it is working but network not shown so please help me

    my i phone 4 is water damaged and it is working but network not shown so please help me

    A replacement iPhone is usually a refurbished iPhone that has received new battery and case and repair of anything that may have been faulty.  The refurbished iPhone is indistinguishable from a new iPhone.  A number of the regulars on here prefer the refurbished Aplle products because they have been so thoroughly tested.
    A replacement iPhone is identical to the original, same color, capacity, and so on.

  • My camera is working but does not work on skype how do I turn the camera on for Skype

    My camer is working but does not work on skype how do I turn the camera on.

    See this thread:
    https://discussions.apple.com/thread/5306216?tstart=0
    FIX: 
    1. You need Time Machine
    2. Go to folder /Library/CoreMediaIO/Plug-Ins/DAL/
    3. Copy AppleCamera.plugin to good place (usb memory stick is the best place).
    4. Go to Time machine in date that skype work fine.
    5. Change AppleCamera.plugin with file from Time Machine
    6. Restart system, Now skype need to work with camera.
    If that doesnt pass,
    Suggest looking here, much success has been found:
    http://community.skype.com/t5/Mac/OS-X-10-8-5-broke-Video-on-MacBook-Air/td-p/18 91729/page/4

  • Why does Maverick mail no longer search properly? I used to search for a name and it would find it in All mailboxes. Now it sometimes works, but mostly not. Any solutions?

    Why does Maverick mail no longer search properly?
    I used to search for a name and it would find it in One or All mailboxes. Now it sometimes works, but mostly not. Any solutions?

    I would like to add that Comcast is my internet provider. Perhaps that is part of the issue although the Connection Doctor confirms the mail box is connecting to the internet. No other function processes when Connection Doctor program is used to find the source of the issue. I have read forum posts but am unable to find a way to get my Apple mail to be delivered to my computer. It worked fine up until I chose to transfer mail to the Cloud. My mail account is a .mac account.
    Still hoping someone out there can help me.
    thanks,
    anne

  • USB Drives works, but does not show up in "Safely Remove Hardware"

    USB Drives works, but does not show up in "Safely Remove Hardware"
    windows 8 
    USB Drives works, but does not show up in "Safely Remove Hardware"
    Here are my symptom
    - USB Flash Drives , USB External HDD works normally
    - I can see them in "My Computer"
    - I can open "Safely Remove Hardware" via Run Command, but there is no device in the list
    - They show up as "Disk drives" in device manager
    - When I right click their icons in "My Computer", there is no option to "Eject" them
    - In "Disk Management", they show up as "Basic". Prior to this issue, they were "Removable"
    After I tested, it seems that my Vista detects every USB storage device as a normal HDD.
    I don't know why but I'd appreciate any help because I have to plug-in and remove those drives often, especially flash drives.
    Thank you

    Hello Mickey2003
    Welcome to the HP Forums, I hope you enjoy your experience! To help you get the most out of the HP Forums I would like to direct your attention to the HP Forums Guide First Time Here? Learn How to Post and More.
    I understand you are having issues in Windows Vista with your USB Storage devices not showing up in the Safely Remove Hardware list. I am providing you with a link to a Microsoft Hotfix for this very issue titled An external USB storage device may not appear in the Safely Remove Hardware list in the notification.... I would recommend you review the KB document and ensure you a familiar with the Hotfix information and run the hotfix to resolve the issue you are experiencing.
    Please re-post if you require additional support. Thank you for posting on the HP Forums. Have a great day!
    Please click the "Thumbs Up" on the bottom right of this post to say thank you if you appreciate the support I provide!
    Also be sure to mark my post as “Accept as Solution" if you feel my post solved your issue, it will help others who face the same challenge find the same solution.
    Dunidar
    I work on behalf of HP
    Find out a bit more about me by checking out my profile!
    "Customers don’t expect you to be perfect. They do expect you to fix things when they go wrong." ~ Donald Porter

  • H800-30ea,USB Drives works, but does not show up in "Safely Remove Hardware"

    hi
    USB Drives works, but does not show up in "Safely Remove Hardware"
    Here are my symptom
    - USB Flash Drives , USB External HDD works normally
    - I can see them in "My Computer"
    - I can open "Safely Remove Hardware" via Run Command, but there is no device in the list
    - They show up as "Disk drives" in device manager
    - When I right click their icons in "My Computer", there is no option to "Eject" them
    - In "Disk Management", they show up as "Basic". Prior to this issue, they were "Removable"
    After I tested, it seems that my Vista detects every USB storage device as a normal HDD.
    I don't know why but I'd appreciate any help because I have to plug-in and remove those drives often, especially flash drives.
    Thank you

    Hello takpesar,
    Welcome to the HP Forums, I hope you enjoy your experience! To help you get the most out of the HP Forums I would like to direct your attention to the HP Forums Guide First Time Here? Learn How to Post and More.
    I understand you are having issues in Windows Vista with your USB Storage devices not showing up in the Safely Remove Hardware list. I am providing you with a link to a Microsoft Hotfix for this very issue titled An external USB storage device may not appear in the Safely Remove Hardware list in the notification.... I would recommend you review the KB document and ensure you a familiar with the Hotfix information and run the hotfix to resolve the issue you are experiencing.
    Please re-post if you require additional support. Thank you for posting on the HP Forums. Have a great day!
    Please click the "Thumbs Up" on the bottom right of this post to say thank you if you appreciate the support I provide!
    Also be sure to mark my post as “Accept as Solution" if you feel my post solved your issue, it will help others who face the same challenge find the same solution.
    Dunidar
    I work on behalf of HP
    Find out a bit more about me by checking out my profile!
    "Customers don’t expect you to be perfect. They do expect you to fix things when they go wrong." ~ Donald Porter

  • While using Illustrator or Photoshop I seem to be hitting a shortcut to lock my key board. Other shortcuts work but can not type anything?

    While using Illustrator or Photoshop I seem to be hitting a shortcut to lock my key board. Other shortcuts work but can not type anything?

    You are planning to do a number of things, so let me first make a suggestion about the overall approach. Instead of: "Before I make a clone of my hard drive I would like to fix this problem so I only have one account with everything in it but I do not know what to move ... or how to safely move it", I would make that clone immediately. And leave it alone until you have completed the reconfiguring and rearrangements you plan to do. This way, if you accidentally do something that needs to be undone, your clone is there with all the originals. By the way, this is the approach I always adopt, whenever I have to do anything drastic with an existing installation.
    After all the rearranging etc. of the main drive you just make a new clone that erases the previous one.
    The "Deano" account doesn't show up when I go to System Preferences:Accounts. So I assume I must have done something wrong.
    This would suggest to me there is only one account, i.e. the principal, or Admin account. Why do you think there is a second account?
    Where should I keep all my work files?
    You can keep them where ever it is most convenient. As you know, you can create folders within folders, and there is nothing special about the Documents folder. Feel free to ignore it, if that's the way you want to work. You can direct your downloads, the default "save to" locations etc. to the appropriate places, as you work.
    Can I create a new place for all my work files and just move them? I know I will have to update linked files within the various software packages but this is not a problem.
    By all means.
    .. can it be directly on the HD like my Applications folder etc.?
    Indeed, yes. Or even on a different hard drive (or partition of the same drive).
    And best wishes for the new year, to you too.

  • My mouse works but does not control the software

    my mouse works but does not control the software

    What is it doing?  The clicks not work or the cursor not move...  etc
    Need more info.
    Regards,
    Captfred

  • Face time doesn't work on iPhone. Did work but now not. Any ideas how to fix?

    Face time doesn't work on iPhone. Did work but now not. Any ideas how to fix?

    My phone is working fine.  My wife's did last week but not now.  I've turned phone off and rebooted.  Also, when I try to "sign in using apple id " it tells me it could not sign in. Check network connection and try again.  However the phone is connecting to my wifi network.  Suggestions?

  • I have a factory unlock iphone 5 with the lasted version. Since yesterday my sim card stopped working and now says `No Sim`, was working fine and stopped working now, other sim works but just not mine. ¿What can be happening?

    I have a factory unlock iphone 5 with the lasted version. Since yesterday my sim card stopped working and now says `No Sim`, was working fine and stopped working now, other sim works but just not mine. ¿What can be happening?

    I thought that, but I put the sim card in another device that is not Apple and works. Definitely the sim card work, but no longer in my iPhone 5 or maybe in any other Apple device, i dont know why!! But i gonna get a replacement to see what happen

  • HT4199 I have a new iPhone 4s.  I have a home wi-fi network using Cisco Linksys2000 router with all settings per this article - phone will not see network if set to 5 GHz channel width - solution??  2.4 works but is not optimal with other devices in home

    I have a new iPhone 4s.  I have a home wi-fi network using Cisco Linksys2000 router with all settings per this article - phone will not see network if set to 5 GHz channel width - solution??  2.4 works but is not optimal with other devices in home (computers; tivo).  Have others seen this?  Any advice is much appreciated.

    Stephen Spark is right - your best alternative is to use a simultaneous dual band wireless router like the AirPort Extreme. Your Cisco Linksys2000 is not a dual band router, meaning that it will be constrained to operate at the slowest speed of all the devices on your network.
    The AirPort Extreme's dual networks will support all your 802.11n devices as well as all your 802.11b/g devices on both the 2.4 and 5 GHz frequencies simultaneously.

  • Camera is working but flash not working

    My Camera is working but flashlight on my iphone 5 is not working just few days before. This phone was iOS 7.0.4 version. can you tell me why?

    Hi Nassar Babu,
         Does the flash work when you take a photo?  You may have a damaged flash.  You may also try to reset the phone by holding down the home button and the top right sleep/wake button for about 10 seconds to see if that resolves it for you.  It's just a reboot sequence and won't hurt anything.  If the flash does not work at all... you may need a hardware repair.

  • Iphone works but is not charging after installing new battery

    Hi guys ,
    I am going to do my best to clearly explain what has happened with my Iphone 5s. I noticed my battery was losing charge much quicker then normal so i went ahead and ordered a new battery from Ifixit. I consider myself pretty decent at hands on jobs so i went ahead and replaced the battery myself to try and save some money. The installation went as smooth as can be, No broken parts to my knowledge and the phone went back together no problem. I then powered the phone on , it came on just like normal and everything seemed to be ok , besides the fact the the battery they gave me was only charged 13%. This is when my problems started to happen , I grabbed my apple charger and plugged it in like i would do any other time to charge up the battery. I came back in a hour and noticed that it was still stuck on the same 13% and had not moved at all. It recognized the charger and even said it was charging and showed the lightning bolt but would not take the charge.
    I started looking up things online about how to fix this and found a lot of people with similar problems after they changed there battery or lcd screen. I then unplugged it and thought maybe it needed to be calibrated so i let it run completely out of juice until the phone shut off completely. Plugged it in again and now it was stuck at the screen when your phone is dead and shows  that it needed to be plugged in. I tried cleaning out the the charger port and that did not help. I then thought it might be the battery IFIXIT sent me so i took the phone apart again , and put my old battery back into the phone , put it all back together and it turned on no problem, I thought my issue was fixed but i was wrong. I went a plugged it in to charge it and the same thing happened again , would not take a charge just stayed stuck on the same percentage. I went through the phone and made sure all my connections were good and nothing was broken. The phone has been barley used over the last year and before i replaced the battery it had no problems what so ever and the charger port always worked fine.
    Does anyone have any idea what my problem could be? I have read so many forums and spent hours trying to get to the bottom of this with no luck yet. Alot of other people seem to have this same problem happen when they replaced there battery or LCD but cant find a solution. I contacted IFIXIT and they thought it could be a bad battery and are sending me out a new one next day shipping. That was before i tested my old battery and found out it has nothing to do with a bad battery it just wont take a charge now. Any help will be greatly appreciated i no longer have apple-care so that's not a option. i was told to maybe clean all the connections with alchol but im a bit nervous that could cause more problems?

    konradsa wrote:
    Ok, you go and pay that 80 bucks, I will go have a nice dinner with the money I saved.
    Fair market value for a legitimate iPhone battery would be about $40-50.  If you're paying anything less than that, then you're getting an inferior battery.  How much did you pay for the replacement battery?  Let's assume you didn't get scammed, and actually did purchase a quality (albeit unauthorized) battery.
    So, you saved about $30-40.  Okay, good so far.  However, now you run the risk of:
    A) The installation was performed incorrectly, and causes a problem down the road.
    B) The battery or iPhone has a related issue within the next few months, and you pay for another battery and/or another installation, because the first one didn't fix the problem.
    C) That battery wasn't actually a quality battery; it was just priced like one, and it leaks, expands, causes a fire, etc.
    There's a phrase you need to learn; penny wise and pound foolish.
    Depending on the context, it has various meanings.  In this context, it means you are trying to save a little bit of money in the short term, but failing to see the possible long term costs.
    Let's take a hypothetical:
    I have an iPhone 6 Plus, 128 GB.  Retail cost:  $949 USD + tax.
    My battery needs to be replaced.  Apple quotes me $79 USD + tax.  I find a place in the mall called 'iFix iPhones 4 U' that will do it for $40, parts and labor included.
    "Heh, dumb Apple, they think I'm a sucker.  I'm saving me $39 and taking my girl out to a fancy place, like Red Lobster!" (sarcasm intended)
    About three months later, I notice that my iPhone 6 Plus is getting really warm.  Like, toasty warm, almost enough to burn my skin.
    I go back to the kiosk in the mall that replaced my battery.  They tell me they don't warranty their work past five days, and they could replace the battery again for $40, if I want.  Great.  Now I've broken even, but at least I have that great Red Lobster dinner memory!
    A few weeks later, the screen flashes red, and the iPhone locks up.
    The kiosk guy tells me he's down, and to go somewhere else.  He's sick of seeing me, because he's already got my money, and there's a sign that says 'All sales final'.  What am I gonna do?  Hire a lawyer over $80?
    Maybe Apple can help.  I go to the Apple Store, explain my case, they inspect my iPhone, and then tell me they cannot replace the battery because the device has had unauthorized service.  Dang.  Okay, but I've heard that I can get an iPhone 6 Plus exchanged, even if it's damaged, for $329.  Surely they will do that, right?
    Nope.  Unauthorized modifications void ALL support options from Apple.  Meaning I cannot get it replaced by Apple.  So, what are my options?
    A) Pay another $949 USD + tax to get another iPhone 6 Plus 128 GB.
    B) Find another unauthorized shop and try my luck again... and again... and again.
    Guess I'm not going to Red Lobster anytime soon.
    “For the want of a nail the shoe was lost,
    For the want of a shoe the horse was lost,
    For the want of a horse the rider was lost,
    For the want of a rider the battle was lost,
    For the want of a battle the kingdom was lost,
    And all for the want of a horseshoe-nail.”
    TL;DR Version: Saving $30-40 bucks today might end up costing you 20x as much later on.
    Instead of that nice dinner, chew on that instead.

  • HT201263 I am confused if my daughters i pod is blocked. Everything works except safari. I did block it when we thought we'd lost it but when we found everything seemed to work but can not go online

    I need to know please when you request a block what it does to the i pod touch. We thought we'd lost it..., blocked it and then found it again. Most things appeared to work but cant seem to go online. I have done a full system restore on it and updated to ios6, but still no internet. Please help!!!!!

    Restore to factory setting/new iPod if you have not done so already
    Does the iPod connect to other networks?
    Does the iPod see the network?
    Do other devices connect to the network?
    Try:
    - Reset the iPod. Nothing will be lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Power off and then back on the router
    - Reset network settings: Settings>GeneralReset>Reset Network Settings
    - iOS: Troubleshooting Wi-Fi networks and connections
    - iOS: Recommended settings for Wi-Fi routers and access points
    - Make an appointment at the Genius Bar of an Apple store.
    Apple Retail Store - Genius Bar

Maybe you are looking for