Still Stuck : addChildByName
Ok
Still stuck here, project at a stand still.... And its
Saturday night!
This is all created in a Class.. (more dynamic than this but
a solution to
this will help )
I have a mclip .name = MC_Holder
Inside this clip i have a child mclip .name = MC_Preloader
& a child sprite
.name = SP_Holder
MC_Preloader has a child textfield .name = TF_Preloader_Text
SP_Holder has a child Loader .name = LD_Img
Layout:-
MC_Holder > MC_Preloader > TF_Preloader_Text
MC_Holder > SP_Holder > LD_Img
Those names are set and trace ok
Now the mclip LD_Img has a ProgressEvent.PROGRESS assigned to
it amongst
others, this also works fine and traces ok!
The problem im having is and i guess its been asked before...
IS
How do i get the function that runs ProgressEvent.PROGRESS to
update the
text in TF_Preloader_Text
private function progressHandler (event:ProgressEvent):void
//-->HELP<--\\
Here is what i need to update
_root.MC_Holder.MC_Preloader.TF_Preloader_Text =
event.bytesLoaded;
//-->HELP<--\\
trace ("HANDLER : PROGRESS LOADED > " + event.bytesLoaded
+ " total: " +
event.bytesTotal);
Prob best that i throw my code in...
Called from other class and named CONTAINER
package
import flash.display.MovieClip;
import flash.display.Sprite;
import flash.events.*;
import flash.net.*;
import flash.display.*;
import flash.net.URLRequest;
import flash.text.TextField;
import flash.text.TextFormat;
import flash.text.Font;
import flash.text.*;
import xmllist;
public class imagemc extends MovieClip
public function imagemc (xmlArray,URLimages):void
//trace ("CLASS CONSTRUCTOR : IMAGEMC");
for (var i:int=0; i<xmlArray.length; i++)
buildSlideContent (xmlArray,URLimages,i);
public function buildSlideContent
(xmlArray,URLimages,i):void
// CREATE MAIN CLIP
var holder:MovieClip = new MovieClip();
holder.graphics.lineStyle (1, 0xFF0000, 1);
holder.graphics.moveTo (0, 0);
holder.graphics.lineTo (760, 0);
holder.graphics.moveTo (760, 0);
holder.graphics.lineTo (760, 390);
holder.graphics.moveTo (760, 390);
holder.graphics.lineTo (0, 390);
holder.graphics.moveTo (0, 390);
holder.graphics.lineTo (0, 0);
holder.x = 0;
// CREATE PRELOADER CLIP //
var holder_Preloader:MovieClip = new MovieClip();
holder_Preloader.graphics.lineStyle (1, 0xFF6600, 1);
holder_Preloader.graphics.moveTo (0, 0);
holder_Preloader.graphics.lineTo (760, 0);
holder_Preloader.graphics.moveTo (760, 0);
holder_Preloader.graphics.lineTo (760, 390);
holder_Preloader.graphics.moveTo (760, 390);
holder_Preloader.graphics.lineTo (0, 390);
holder_Preloader.graphics.moveTo (0, 390);
holder_Preloader.graphics.lineTo (0, 0);
holder_Preloader.x = 0;
// IMPORT TEXT
var Font_Levenim:Font=new Font1();
var Font_Levenim_Format:TextFormat = new TextFormat();
Font_Levenim_Format.font=Font_Levenim.fontName;
// CREATE TEXT FIELD //
var holder_Preloader_Text:TextField = new TextField();
holder_Preloader_Text.defaultTextFormat =
Font_Levenim_Format;
holder_Preloader_Text.embedFonts = true;
holder_Preloader_Text.x = 0;
holder_Preloader_Text.y = 10*i;
holder_Preloader_Text.width = 350;
holder_Preloader_Text.height = 20;
holder_Preloader_Text.border = false;
holder_Preloader_Text.background = false;
holder_Preloader_Text.text = "HELLO";
holder_Preloader_Text.textColor = 0xFF0000;
holder_Preloader_Text.multiline = false;
holder_Preloader_Text.wordWrap = false;
holder_Preloader_Text.selectable = false;
// CREATE IMAGE HOLDER SPRITE
var holder_Sprite:Sprite = new Sprite ();
holder_Sprite.graphics.lineStyle (1, 0xFF6600, 1);
holder_Sprite.graphics.moveTo (0, 0);
holder_Sprite.graphics.lineTo (760, 0);
holder_Sprite.graphics.moveTo (760, 0);
holder_Sprite.graphics.lineTo (760, 390);
holder_Sprite.graphics.moveTo (760, 390);
holder_Sprite.graphics.lineTo (0, 390);
holder_Sprite.graphics.moveTo (0, 390);
holder_Sprite.graphics.lineTo (0, 0);
holder_Sprite.x = 80;
// CREATE IMAGE
var ldr:Loader = new Loader();
var url:String = URLimages+xmlArray
var urlReq:URLRequest = new URLRequest(url);
ldr.load (urlReq);
ldr.x = 0;
ldr.name = "LD_IMG_"+i;
holder.name = "MC_HOLDER_1_"+i;
holder_Preloader.name = "MC_PRELOADER_1_"+i;
holder_Sprite.name = "MC_HOLDER_1_IMG_"+i;
holder_Preloader_Text.name = "TF_PRELOADER_TEXT_1_"+i;
addChild (holder);
holder.addChild (holder_Preloader);
holder.addChild (holder_Sprite);
holder_Preloader.addChild (holder_Preloader_Text);
holder_Sprite.addChild (ldr);
configureListeners (ldr.contentLoaderInfo);
private function configureListeners
(dispatcher:IEventDispatcher):void
dispatcher.addEventListener (Event.COMPLETE,
completeHandler);
dispatcher.addEventListener (HTTPStatusEvent.HTTP_STATUS,
httpStatusHandler);
dispatcher.addEventListener (Event.INIT, initHandler);
dispatcher.addEventListener (IOErrorEvent.IO_ERROR,
ioErrorHandler);
dispatcher.addEventListener (Event.OPEN, openHandler);
dispatcher.addEventListener (Event.UNLOAD, unLoadHandler);
dispatcher.addEventListener (ProgressEvent.PROGRESS,
progressHandler);
private function completeHandler (event:Event):void
//trace ("HANDLER : COMPLETED > " + event +
event.currentTarget.loader.name);
private function openHandler (event:Event):void
//trace ("HANDLER : OPEN > " + event + ldr);
private function progressHandler (event:ProgressEvent):void
Need to update "TF_PRELOADER_TEXT_1_"+i here
trace((getChildAt(0) as
MovieClip).getChildAt(0).getChildAt(0).name); ----
THIS BIT
//trace ("HANDLER : PROGRESS LOADED > " +
event.bytesLoaded + " total: "
+ event.bytesTotal);
private function securityErrorHandler
(event:SecurityErrorEvent):void
trace ("HANDLER : SECURITY > " + event);
private function httpStatusHandler
(event:HTTPStatusEvent):void
trace ("HANDLER : HTTP STATUS > " + event);
private function ioErrorHandler (event:IOErrorEvent):void
trace ("HANDLER : I O ERROR > " + event);
private function unLoadHandler (event:Event):void
trace ("HANDLER : UNLOADED > " + event);
private function initHandler (event:Event):void
trace ("HANDLER : INIT > " + event);
"kglad" <[email protected]> wrote in message
news:[email protected]...
> from within the scope of LD_Img use:
>
>
>
>
MovieClip(this.parent.parent.getChildByName("MC_Preloader")).getChildByName("TF_Preloader _Text");
Similar Messages
-
I want to disable or remove Game center from my iphone. It's always pop up during i play hay day game. So i can not solve this problem. Any way i try to log in game center my several Apple id account but it does' not work. I am still stuck in log in page
The Game Center app is pre installed and cannot be removed from the device.
Best thing to do is move it to the last available screen.
Hold down the Game Center app until all the apps jiggle then sliide the Game Center app to the right from one screen to the next. This requires a bit of finesse, but it's doable.
Press the Home button one time to stop the apps from jiggling.
For the Apple ID issue, try resetting.
Tap Settings > General > Reset > Reset All Settings
Then try your Apple ID and password for the Game Center app. -
Hi, I'm having problems with my iPod Touch. My iPod went off because the battery was empty. And when I tried connecting it to my laptop to recharge, the "connect to iTunes" screen suddenly appeared. According to iTunes I need to RESTORE it for it to work. And that's exactly what I did. However, after the restore and all, the screen is still stuck on the "connect to iTunes" screen.
By the way, it's a 2nd generation iPod Touch. And it's an MC model.
And to make things worse, my iTunes screen is totally empty. The RESTORE option is gone and I really don't know what to do anymore.
Hope you guys can help me out! I'd really appreciate it. Thank you!I really don't know what happened but my iPod Touch is working now!!! Thank you so much! I'm not really sure if it went to DFU mode or not but all of a sudden I can access iTunes App Store already!!! WOOOOAAAAHHHH! And it asked me to type in a new name for my iPod! So everything's good! Thank you so much! Thank you! You have no idea how happy I am right now!
For my iTunes:
Thank you!
P.S: Grrrrrrrr! My bad! I'm new here and I kind of messed up the Correct Answer and Helpful Answer buttons. Sorry. Dunno how to change them. -
Hi,
I am need of help! I have had this issue for a while now and it's becoming frustrating.
My iTunes installed on my HP Windows 8 Netbook is unable to recognize my iPod, the error message along the lines of "iTunes has detected an iPod but unable to recognise"
I have followed all the trouble shooting tips and am still stuck? I am now being told by a friend I need a link sent to me to fix this??
Someone please help me fix this problem.
Many thanks.
Matt.Hi
So just close iTunes and re-open iTunes thats it and that worked for you?
When you say reset your settings do you mean to factory settings? As my iPod was swapped at the store for a new one and the problem is still there...
Thanks. -
iphone is stuck in restore mode when i did a rebook. I hooked up to my macbook and ran a restore. Itunes ran through the restore and now it is still stuck in restore mode.
If it won't restore in the regular restore mode, you may want to try putting it in DFU mode if you haven't already. Instructions for this are linked below.
http://www.iclarified.com/entry/index.php?enid=1034
Put it in this mode, then do a restore again through your computer.
Hope this helps you out! -
My iPod is stuck on the USB connector towards the iTunes snd on cd, and I updated it and now it's saying my iPod has apasscode when it's still stuck on that USB screen... What do I do????
you can do is go to ijailbreak.com then select downloads section.......scroll down and see the latest version of ipod touch second generation is available for download.....when it gets downloaded connect your iPod to itunes or keep it connected then hold option and click restore (mac) search the software by writing in search "iPod" a thing with white cube will show up if it is the file you just downloaded click it and wait for itunes to do its work......you can ask more if you are on windows
-
tried to restore the phone in itunes but it says error 21 and is still stuck on the apple loading page
anyone got a clue how to un freeze it ?See > Check for hardware issues
Related errors: 1, 3, 10-47, 1002, 1011, 1012, 1014, 1000-1020, 1669.
Here > http://support.apple.com/kb/TS3694#hardware -
Messages still stuck in the Inbound queue SMQ2
Hello XI Gurus,
All my messages with "READY" status are still stuck in the inbound queue (smq2) for the last 2 hours...there was no SYSFAIL error messages or scheduled background running. I have to manually go in and executed each of those messages, instead of automatically process it. Could someone please tell me how to troubleshoot this?
Thanks so much in advanced,
DngImplement SAP note 758677 for this. This exactly deals with your issue.
This Basically speaks about scheduling 'RSQIWKEX' for inbound and 'RSQOWKEX' for outbound queues.
Also, you need to set the parameter 'QRFC_Restart_ALLOWED' to '1' in the transaction 'SXMB_ADM' -> Integration engine. Its in the runtime dropdown menu.
Note : without this parameter being set this will not work.
Thanks,
Karthik
Edited by: Karthik Rangaraju on Oct 1, 2008 2:13 PM -
I've done restoring my iphone 3gs and still stuck on cannot activate and contact customer service. What shall i do? any help please.
99.9% of the time, the cause of this issue is the fact the phone was jailbroken/hacked to unlock it for use on networks other than the network the phone was originally locked to. Apple maintains a database of officially unlocked iPhones, and when Apple's servers detect phones such as yours, activation stops & you get the message you got.
So, either get a sim card from the carrier your phone was originally locked to, or get it officially unlocked, if you want to activate it. Because it appears that it was not officially unlocked. -
How do I get rid of a file that is still stuck in the trash can
How do I get rid of a file that is still stuck in the trash can
Hold the option key when emptying the trash
Jerry -
I need help!!! I dropped my iphone from the couch to the floor, really not a big fall... it automatically turned off and got stuck with the apple logo, I already did the reseting process on itunes using the DFU mode or however its called... and it erased all my data and now its still stuck!!!
Does anybody know what can I do?? Please help!If the iPhone is recognized by iTunes, restore it. At the end of the restore process, when you're prompted to by iTunes, do not restore from backup. This will eliminate corrupted/damaged files as the issue.
If the issue persists, it looks like you may need to make a second trip to the Apple store.
Good luck -
I have an iPhone 5c. When I woke up this morning to take it off the charger, the iTunes icon was in the center of my screen with an arrow and a white plug illustration. I have rebooted and it is still stuck. Any suggestions?
Ante Boras wrote:
wich OS you are using?
@ ckuan: wich Jailbreak Tools? He wan't to jailbreak his iPhone. It's hang in the recovery mode, or i not understand right your quastion?
iPhone 5c & 5s comes with IOS 7, if you don't know.
You deleted the TinyUmbrella suggestion and act dumb?\ -
I followed these instructions twice after performing latest update iOS 7. 0. 4 - and my phone is still stuck on restore screen?? help!
Take your time... pay particular attention to Steps 3 and 4.
If no joy... Then a Visit to an Apple Store or AASP (Authorized Apple Service Provider) may be required...
Be sure to make an appointment first... -
help, im trying to update my iphone but it kept saying connect to itunes, i have updated, run the file over and over but its still stuck to connect to itunes, wat can i do? thanx
See Here > http://support.apple.com/kb/HT1808
You may need to try this More than Once...
Be sure to Follow ALL the Steps...
But... if the Device has been Modified... this will Not necessarily work -
I tried restoring my ipad 2 and when its trying to extract the new software this pop up appears on the screen and says ERROR: cannot update software or something. My ipad still doesnt return to the home screen. It's still stuck on the apple logo. I only had this for a year. Is it broken?
If your ipad had no problems before, then it is your computer then may fail you. Try to restart computer and ipad.Try to disable antiviruses. If that happens again and you have apple store close by you can set up appointment, or try another computer.
Maybe you are looking for
-
Dear All, I made GR in which accouting entries are GR IR - Credit - 40000 and stock a/c debit - 40000. For same GR when i am posting MIRO system is not taking accounting entries correctly i.e. in simulate mode it shows Vendor account credit - 40000 G
-
How can I get my blackberry curve 8900 to update to 5.0 and get wifi to work?
I bought a blackberry curve 8900 around a year ago on an AT&T plan back when data plans werent required, so it just has minutes and texting. because of an issue i had with data before, i have data disabled completely on my account to prevent any mist
-
Family sharing not working for music on Apple TV
We have Family Sharing set up and while we can see each other's purchases in Movies and TV shows we can not see our shared music. Does anyone know how to view each other's music purchases on the Apple TV? Thanks
-
Monitor communication channel error
Hi Experts, I am doing a proxy to file scenario. In my scenario I have requirement that if there is a failure in placing the file in the target location then an alert has to be triggered. For testing this I have given dummy host in receiver file adap
-
Hello, I'm selling an iMac G4 and I'm trying to remove the master password. Here's what I'm doing. Under the security preferences next to "A master password is set for this computer" I click "change". I then enter my current password but leave the ne