What classes to import for this external as code?
Hi
Just wondering what classes I need to import into my external as fiule to make the following code work:
public static var loader:Loader = newLoader();
loader.contentLoaderInfo.addEventListener(Event.INIT, fontLoaded);
loader.load(new URLRequest("font.swf"));
Cheers
Shaun
the Loader and URLRequest classes.
flash will tell you when you try to publish.
well, now that i look at it more carefully, you should see some error messages that help you fix that.
Similar Messages
-
Need Help..what should i use for this
hello friends, i have to write a program which will load an xml file reader class at run time and depending on the content of xml file i'm going to generate mapping.. e.g xml file- <MyMapping> <ATO> <security type=int> </ATO> <FIX> <symbol type=String> </FIX> </MyMapping> Now i want to change the content of xml file without restarting my running application..changes should be reflected at runtime... also my xml file will contain nearly 1000 lines..so in this case which technique should i use whether i use JAXB which will give the classes of my xml file or any other ?? Also if i use JAXB whether JAXB gives classes corrsponding to my xml nodes (e.g ATO.java as per above example).
daitkarsachin wrote:
hi ,
here is my question again..my xml will have
<Message>
<ATO>
<somefiled="X" type=int value=35 />
</ATO>
<FIX>
<somefiled="Y" type=String value=50 />
<FIX>
</Message>
Now first i have to parse this xml ..then my java program is going to accept value from user ..and depending on user specified value i've to use either ATO or FIX fields...e.g if user value is 35 then my program should use fields within ATO node.
You will read the XML structure into some kind of memory model. When the user supplies a value you will search for a matching value (likely from a collection such as a map or list) and return the value in that object that you locate.
what should be done for this ..
See above.
and what if i change values in my xml file..will i have to restart my application to load xml again ?
If you change the file on the filesystem, you should simply be able to re-parse the XML file and update your in-memory model. If you instead update your in memory-model, you can serialize the model back to XML on the filesystem. Neither needs to necessarily have anything to do with application start-up (other than the fact that you would normally read in the XML model then, but updating is a separate concern, as would re-reading it).
- Saish -
hi even when i connect my macbook and apple tv to the same wifi network i cant put on the air play mirroring option.my airplay mirroring option does not detect any device.what can i do for this?
See
http://support.apple.com/kb/TS4215 -
help me plz.. i,ve got a apple i phone 4 and i'm the 2 owner of it and i dont have it's apple id and passward for it and 1st owner doesnt know it too so what can i do for this plz help me....
Neither can we. Only the original owner can help you, surely he/she can reset their password.
-
I use iphone5, I see an app update on the app store. but when App store and click on the update tab, it doesn't show me which application to update.. just gives me a blank page.!!!! I wouldn't able to know what app has to be updated, untill and unless i get check for each every app on the app store installed on my iphone... what is the solution for this.!!!! can any1 one help me out.!!!!
Cc2528 wrote:
The iTunes Store on my iPad is set up with all my music already. And at the very bottom it shows my apple Id username. The only place it shows the previous owners id is in the App Store...
You can probably change the ID in the "iTunes and App stores" settings on the iPad....click on the wrong account ID , select sign out, then log in with your own ID, I have not done this but I think it works.....
but I would be more inclined to to the factory reset and start afresh. -
I swithced it on by clicking on options when I start up and then clicked on Macintosh HD. the other option was a question mark and network drive.
Is there a way to ensure it never happens again, what is the cause for this problem, if I need to uninstall some application, i am happy to do it as long as I know what is causing this conflict.
many thanks!Something is not making sense here.
You claim this is a brand new machine and you have not tried to install Windows or Boot Camp.
Then why would you ever even go into System Preferences > Startup Disk and choose Macintosh HD? It should have automatically booted into Macintosh HD.
You're probably going to have to reinstall Mac OS X. -
Adobe X PDF files converted to jpg, edited and converted back to PDF have ragged, unclear text. I didn't have this problem with Acrobat 9 standard. What is the remedy for this. If this is the best I can expect, I won't be able to use X standard.
I can't imagine any worse workflow than converting to JPEG to edit text, then back to PDF. Text in a PDF is a vector thing, smooth at all resolutions. And JPEG is made for photos. EVERY conversion to JPEG and back loses quality but how much loss there is will vary.
If you must go to an image format, try PNG. -
I recently upgraded to Mac OS X. I haven't tried to access anything in iWorks 09 since the upgrade, until now. I get an error message when trying to open any of the iWorks 09 applications. What's the fix for this?
Follow Sonicray's advice and when you post try to give as much info about your Mac, your OS, etc... Fill out your Profile info.
-
What cable to use for this?
I am trying to hook up my xbox 360 to my Macbook pro, and I am unsure of what cable to use for this. Composite cables.
Hi there Dsc, i tried to do so b4, but with limited success, now the problem is like been told you, MBP is not design to accept INPUT video signals, i got something called EYETV coast me about 120$, but the resolution that XBOX accepts is much higher than MBP screen can afford, i got this message when i tried to hook it up ( the dash board came up from the xbox ): YOU NEED TO ADJUST YOUR SCREEN TO A HIGHER ADJUSTMENT BEFORE YOU CAN PLAY GAMES ON THE CONSOL or so, but thats my experience any way, if you succeeded please let me know, by the way i asked the same Q b4, just search my questions and you will see the answers on my question. hope this helped.
-
i have an apple iphone4 im facing the problem that my phone senser is not working when i rotate the phone in videos or music play there is working from the senser can u tell me what can i do for this....
If you double tap the home button, and then swipe your finger to the right, make sure you DO NOT have the Lock Orientation button enabled.
You know it is disabled if there is no padlock in the middle of the icon. -
Hi I bought a second-hand phone iphone4, I update the software when you want to activate the phone asked for my registration icloud I do not know what is the password for this registration, can you tell me how to go to the next step without such registration in icloud
my ICCID is 8935905000307066111Unfortunately, you cannot do very much with your phone unless you get assistance from the previous owner, they should either provide you with the password to unlock it or remove their account from the phone entirely remotely through iCloud.com > Find My Phone.
-
What can I do for this? Thank you.
- Never in the library of Itunes
- Never on the store !!!!!!!!Which MSN Hotmail application are you referring to?
Do you mean Mail? or Safari? Both should be in the Applications folder on your hard disk.. Just drag it's icon back onto the Dock.
If you're talking about MSN Messenger, it should be wherever you installed it to.. If you have MS Office, try checking in the MS Office folder (probably under Applications). Or try using Spotlight to search for it. -
i've backup in itunes with another phone number activation , now i want active with new phone number without losing old backups , what can i do for this problem ??
If I get this right, you've ported your phone number to AT&T with the purchase of the iPhone. That is considered opening your own account under your name. Your brother's account is not ported to AT&T unless you used his SS# instead of yours. Your brother still has his account under Verizon Wireless, all you did was use your cell phone number to when you opened your own AT&T account.
If you don't want to use your Verizon Wireless phone #, my suggestion is to call AT&T customer service and explain that you want a new phone number instead of the ported Verizon number. -
i buy anew i phone 5 from ksa from karfor market to use in egypt
when i insert the sim inside i the i phon dosnt work and say the the sim card inserted in this i phone is not supported
so i try the sim in another i phone it work
what can i do for this proplemThe iphone where the sim didn't work is probably locked to a carrier. You need to contact the carrier of that phone. If it's unlocked, then I'm not sure what the problem is, given that the sim works in another phone.
-
i purchaseed an app monotoricamera but i cant find this application and this app removed from iTunes store what can i do for this problem? when i use report problem in purchase history " say to me this app is removed and i pay for that
Well, if you didn't keep it in your iTunes library, on your computer, & then back that data up, you're out of luck if it's no longer available in the App store.
Apple warns to backup your purchases for this very reason.
Maybe you are looking for
-
Installation problem with Photoshop Elements 10 and Premiere Elements 10
I purchased in a package Photoshop Elements 10 as well as Premiere Elements 10. It comes with 5 disc....When I install the first disc it does not ask for the 2nd disc once the first disc is done. When the first one was done the option was hit finis
-
Impact of data file size on DB performance
Hi, I have a general query regarding size of data files. Considering DB performance, which of the below 2 options are better? 1. Bigger data file size but less number of files (ex. 2 files with size 8G each) 2. Smaller data file size but more number
-
Update from tiger to leopard problem
Hi. I have a problem. I just purchased a new imac with leopard and because it seems faster and i like the new functions i'd like to have it on my older macbook as well. But when i try to install it it simply gives me the error message "Mac osx 10.5 c
-
I had computer troubles and had to format. I reinstalled Itunes. Is there a way I can get the songs from my ipod to the itunes library and playlist? If I connect my ipod to my computer, itune will updates my ipod, and i'll lose everything because the
-
[Solved] Xorg fails when using Vmware.
I've recently ran into a problem with ArchLinux running as a guest in VMware, I'd try load xorg and it would crash so I thought I'd install another version of ArchLinux in another machine. All went well until I installed xf86-video-vmware & svga-dri