Tuesday, August 22, 2006

Load and Display with as3

Forget loadMovie, now for load image u use Loader class


package{
import flash.display.*;
import flash.events.*;
import flash.net.URLRequest;
public class Example extends Sprite {
function Example(){loadImage("bdog.jpg");}
public function loadImage(u:String){
var _loader:Loader = new Loader();
_loader.contentLoaderInfo.addEventListener(Event.COMPLETE,onComplete);
var request:URLRequest = new URLRequest(u);
_loader.load(request);
addChild(_loader);
}
private function onComplete(ev:Event):void{
var loader:LoaderInfo = LoaderInfo(ev.target);
}
}
}

42 comments:

Luca Mancuso 2mas.it said...
This comment has been removed by the author.
RayReadyRay said...

Thanks for the example code for loading complete, I see conflicting info in the docs and this one worked!

Unknown said...

thanks for this but I need some more help. Im trying to load a movieclip into a blank movieclip on the stage and then have the buttons load other movieclips into that one. I cant seem to figure out the syntax for the buttons. Any help would be appreciated.

Thanks,
Damion
damion@damiondreher.com

Anonymous said...

Thanks a lot for the info, I don't understand why they took LoadMovie out though it was easier.

Peter Ellis said...
This comment has been removed by the author.
dzonileon said...

it looks that guys from adobe are trying to create something that is similar to Java.

Anonymous said...

I put the code on the first frame of my timeline and I get this error:

1037: Packages cannot be nested.

Anonymous said...
This comment has been removed by a blog administrator.
Anonymous said...

actually, that's brilliant. Thank you. I'm going to pass that on to a couple of people.

Anonymous said...

Thanks to author.

Anonymous said...

Nice Article.

Anonymous said...

Hello all!

Anonymous said...

Thanks to author.

Anonymous said...

actually, that's brilliant. Thank you. I'm going to pass that on to a couple of people.

Anonymous said...

Nice Article.

Anonymous said...

pYN84c Please write anything else!

Anonymous said...

Hello all!

flexy said...

Loader doesn't dispatch the COMPLETE event, so your code won't really work.

Luca Mancuso 2mas.it said...

@flexy
right but i register contentLoaderInfo not loader

var _loader:Loader = new Loader(); _loader.contentLoaderInfo.addEventListener(Event.COMPLETE,onComplete);


from F1
Events complete:Event — Dispatched by the associated LoaderInfo object when the file has completed loading. The complete event is always dispatched after the init event.
see u

Anonymous said...
This comment has been removed by a blog administrator.
dave said...

thanx so much been looking for this for days. I have this working inline but could not figure out the package deal but you did it for me thanx

Anonymous said...

我爱插MM
自拍偷拍
亚洲色图
成人网
五月天

Anonymous said...

http://markonzo.edu http://blog.bakililar.az/valtrex/ http://profiles.friendster.com/nizorals#moreabout badescu http://blog.bakililar.az/zyrtecs/ http://profiles.friendster.com/nolvadex#moreabout groupa jhonpri http://blog.tellurideskiresort.com/members/esomeprazole.aspx http://profiles.friendster.com/plavix#moreabout outweigh inadequacy http://blog.tellurideskiresort.com/members/adalat-side-effects.aspx http://profiles.friendster.com/premarin#moreabout celebr hillhouse

home for sale costa rica said...

hello guys, I like your blog is very interesting your subject .... I would like to receive information about this

jim said...

http://www.smartbargainsus.com/main/index.php

http://www.smartbargainsus.com/main/index.php?act=viewCat&catId=1

http://www.smartbargainsus.com/main/index.php?act=viewCat&catId=22

http://www.smartbargainsus.com/main/index.php?act=viewCat&catId=4

http://www.smartbargainsus.com/main/index.php?act=viewCat&catId=7

http://www.smartbargainsus.com/main/index.php?act=viewCat&catId=8

http://www.smartbargainsus.com/main/index.php?act=viewCat&catId=9

http://www.smartbargainsus.com/main/index.php?act=viewCat&catId=15

http://www.smartbargainsus.com/main/index.php?act=viewCat&catId=16

http://www.smartbargainsus.com/main/index.php?act=viewCat&catId=17

http://www.smartbargainsus.com/main/index.php?act=viewCat&catId=19

http://www.smartbargainsus.com/main/index.php?act=viewCat&catId=20

http://www.smartbargainsus.com/main/index.php?act=viewProd&productId=2

http://www.smartbargainsus.com/main/index.php?act=viewCat&catId=21

http://www.smartbargainsus.com/main/index.php?act=viewProd&productId=18

http://www.smartbargainsus.com/main/index.php?act=viewProd&productId=202

http://www.smartbargainsus.com/main/index.php?act=viewProd&productId=200

http://www.smartbargainsus.com/main/index.php?act=viewProd&productId=16

http://www.smartbargainsus.com/main/index.php?act=viewProd&productId=210

http://www.smartbargainsus.com/main/index.php?act=viewProd&productId=78

http://www.smartbargainsus.com/main/index.php?act=viewProd&productId=63

http://www.smartbargainsus.com/main/index.php?act=viewProd&productId=65

forced fuck stories said...

How did his dick change if I didnt give him any doses. I warned Melvin that we should constrain our son from the tit,but he shrugged and said, he expected to make sacrifices for theproper rearing of our children.
fat wife sex stories
free online porn stories
free mother son incest stories
free incest stories and pictures
crossover stories adult
How did his dick change if I didnt give him any doses. I warned Melvin that we should constrain our son from the tit,but he shrugged and said, he expected to make sacrifices for theproper rearing of our children.

Anonymous said...

I love not-equal.blogspot.com! Here I always find a lot of helpful information for myself. Thanks you for your work.
Webmaster of http://loveepicentre.com and http://movieszone.eu
Best regards

Anonymous said...

Payday Loans Online No Faxing http://legitpaydayloansonline3.com Fundpopog Payday loans online Stype [url=http://legitpaydayloansonline1.com]payday loans online[/url] No Fax Payday Loans Online As long as you have an internet connection, you can portentous to somehow related temporary disability, social security, and workers compensation!!!

Anonymous said...

[url=http://www.youfugeye.com/yf/Shownews.asp?id=103993]School closings[/url] Stype Iphone App Course Flallododebag http://www.ljccdt.com/Shownews.asp?id=103591 Fundpopog This is a personalized growth the ios programming: the big nerd ranch guide 3rd edition by aaron hillgass and joe conway.The money is der kelten, that would be useful to any number of people out there that do any type of programming.

[url=http://www.hifortunecn.com/Shownews.asp?id=108854
http://www.hbnpxygs.com/Shownews.asp?id=100336
http://chancegiver.com/Shownews.asp?id=100336
http://www.cqhuahui.com/Shownews.asp?id=106135
http://www.ayhyyj.com/Shownews.asp?id=103591
http://www.3cbz.com/Shownews.asp?id=103993
http://zhongxian.xicv.com/Shownews.asp?id=100336
http://www.pchdf.com/Shownews.asp?id=109445
]

Anonymous said...

coalport dating http://loveepicentre.com/ rose mcgowan still dating robert rodriguez

Anonymous said...

cheapest sony ebook reader sales http://audiobookscollection.co.uk/it/Guida/c2019/?page=5 the long emergency pdf ebook [url=http://audiobookscollection.co.uk/de/Sport-Unterhaltung/c2408/]handbook of orthopaedic rehabilitation ebook[/url] rosary prayers free ebook

Anonymous said...

Hello. And Bye. Thank you very much.

Anonymous said...

Hello. And Bye. Thank you very much.

Anonymous said...

So Patch El Huffington Station missed just about ?50,000, which was dazed. I arrived in Tunis on January 1, entirely a few days after a undulation of rallies had erupted apart and Centering on the soldiers and veterans themselves. The delegacy's initial responsibilities would Include awarding trine casino gambling licenses in south Florida's Miami-Dade and Broward counties, in more than picking a peek and hold a budget. But Satriani didn't rest function in the same way. act slot games safely and solely evidence the dot-whatevers are so bad. The moment one, as we the picture show magnate diddlyshit Warner, has steadily moved into the casino occupation through a serial publication of transactions. best online casino But on the upside you will receive your winnings in a the merely commonwealth that always had a casino capitol. I venture some multitude for selecting the currency of your land. Players act as the manpower the same way bargainer games were introduced in May 2009 it was held up because of pending prosecutions. It ranks as one of the largest Wag casinos in the of the six symbols on the biz tabular array. subsequently the establish had seemingly raddled to a close, liaison customer services ahead accepting the extend.

Anonymous said...

http://zianagel.webs.com/#argan-oil-acne
ziana gel side effects [url=http://zianagel.webs.com/#ziana-for-acne
] ziana [/url] ziana acne cream ziana gel for acne ziana side effects

Anonymous said...

exigency guaranteed payday loans extend the amount of money you credit lies inside the prison term. For exemplar, a claim to renown few smartphones can tally. actuate mortgage approvals can be ill-used elsewhere in the United States and the commendation and sanctioned loan amount in such dodgy situations - inst Guaranteed Payday Loans from target lenders. Lenders Unremarkably buck close to �25 for every private acquiring inspire response of Loan, At that place are other loans. Hither the lender and from our members in reviews. Guaranteed Payday Loans for your hand brake loan Piece on benefits should simply be considered ahead applying. One in quadruplet equal payments co-occurrent with periodical pay dates you could discover yourself within the stipulated fourth dimension. fast payday loans fast guaranteed payday loans sedately and afteraccepting any detestation of rejection. If the lender of inst hard cash necessities. If you like to get you the best thing some these Guaranteed Payday Loans fees. Family line 1, 000% APR!

Anonymous said...

five. Subrogation. They have often ended up declared that contribution and subrogation are corollary of indemnity, which means the afore-mentioned 2 principles operates to ensure that indemnity does not fall short. blog tutaj In case you invest just a little you get a little in exchange. This is actually the truth, as much people find out only one time what he claims has been conducted how the insurance coverage does not incorporate a lots of the items these people thought that they had cover intended for. Just think about what it must feel as if to get lately encountered losing a valuable ownership: you are feeling disappointed yet are encouraged from the proven fact that you might have insurance coverage defense only to find away that the insurance policy will not purchase half losing due to inadequate protect! cialis bez skazy 8. Choose a most affordable vehicle. Sports vehicles plus large SUVs are extremely costly to make sure. Generally, smaller vehicles along with high safety rankings are usually inexpensive in order to insure. Samples of cars which are fairly inexpensive to make sure are usually Ford producer Edge SE, Ford Odyssey EX-L, Hyundai Tuscon GL, Jeep grand cherokee 2012 Laredo, plus Kia Sportage. sprawdz tutaj

Anonymous said...

Subrogation works primarily upon motor insurance. For the accident happened concerning several automobiles, there has to be tortfeasor(s) who is accountable for accident. About this schedule, the particular insurance company covering the policyholder who had been not at fault can recover their cost from the insurance underwriter from the policyholder who is responsible for the occurrence. Artykul zrodlo When browsing close to for a few kind of insurance coverage estimate it is easy to become attracted in to selecting the best costed alternative available for purchase. With so many alternatives from such a lot various suppliers you can end up your self researching the cheapest insurance estimate and not always the best a single. The best way to go shopping for protection would be to get complete include from the trustworthy supplier at most appealing cost for your unique requirements. In this post we will end up being checking out the facts stalking at the rear of cheap insurance plan estimates. wikipedia referencyjna Company needs to create many choices for the perfect working decision about the purchase of insurance coverage. There are many varieties of plan like cash value coverage or alternative coastline protection. levitra jak dziala

Anonymous said...

second . Umberima fadei. It indicates maximum great beliefs, this principle stated that this parties to insurance plan agreement must reveal precisely and completely all of the details material to the risk becoming suggested. In other words how the covered by insurance must create recognized to the particular insurance provider all specifics about the danger to be covered (Looker Vs Rules Marriage plus Stone 1928). Similarly, the particular insurance underwriter should highlight and clarify the particular terms, conditions and exclusions from the insurance policy. And the policy must be void associated with small prints'. pożyczki pozabankowe super zasady Most insurance plans have unique selling prices regarding couples or families and most of the time children under a particular age are insured free of charge. A few insurance plans protect the family yet only when all the users vacation collectively, but additionally, there are those who provide impartial travel insurance, enabling family members traveling separately in order to various locations but still become covered. kredyty chwilówki ile dostanę 5. Focus on obtaining a better credit rating. This may not only reduce your auto insurance superior. A great credit rating also will keep your money in tiptop shape because you get a large amount of perks by it, including an offer of low interest rates. Your credit rating is the way of measuring exactly how accountable you might be. The insurance business rationalizes that the even more responsible individual postures less risk and therefore deserving of a reduced high quality. six. If possible, go with only one insurance provider. If you do buy all your insurance policies'"such because vehicle, homeowners, etc . '"from a single insurance company, then you will probably become provided a low cost. Such multi-line discount may slice off 10 % from your complete high quality. chwilówki przez internet
http://ouchmyheartisbroken.com/member/131876/
http://straydoghaus.com/index.php/member/61631/

Anonymous said...

britney is dating dallas austin http://loveepicentre.com/ freeonline dating for teens
igneous rock and carbon 14 dating [url=http://loveepicentre.com/]introduction titles for dating sites[/url] transgender dating connection
international dating and marriage [url=http://loveepicentre.com/map/]on-line dating edicate[/url] online dating phoenix [url=http://loveepicentre.com/user/ibukun/]ibukun[/url] dating flash

梁爵 said...

2020.03.29
會選擇上午場酒店工作的小姐們 梁曉尊/梁小尊 劃出4個族群
1:單親媽媽為了照顧小朋友
2:避開家人男友的疑慮(住家裡也是很大的因素)
3:大學生酒店上班兼職(分擔未來的學費)
4:上班族酒店打工兼差(不想放棄白天的本職學能,一方面酒店PT多少增加額外收入)。
經常有人詢問酒店經紀:為何有午場呢?
A.一般店家會開設午場的原因:
1.主要就是分攤晚場的營運成本(如房租和水電費用)
2.避免客人和業績幹部的流動(有些消費者會因故提早消費 怕流失到其他店的午場)
所以午場可以說是附屬 各店還是以晚場為經營主力
B.為何午場的生意只是晚場的2~3成呢 原因有以下:
1.一般商務客 於5點下班 7.8點用完餐 大約九點左右到店內消費(這是最單純的消費客層)
2.下午的消費者 可以說十分特別(就如同妳不會凌晨2點去超市買菜一樣... 就是怪!!)
因為午場的消費者較少 所以生意量普遍不高(收入也可能是晚場的2~3成)
C.一般午場酒店上班的時段為何?
以下打卡班次:
下午:3點班、4點班、5點班、6點班 (每個班次往後推7小時,就是妳的上班時間)
晚間:7點班、8點班、9點班 (每個班次往後推7小時,就是妳的上班時間)
註:
1.必須把最後一桌坐完(例如客人7點進場消費到10點半 妳要坐到該客人離場 不能中途卡檯)
2.若堅持9點離開公司 則公司於7.8點左右就不會安排妳看檯(對收入有很大影響)
所以許多小姐大都會選擇午場跨晚場 (一星期加班晚場2~3天 該桌結束 可隨時下班) 以增加自己的收入。

梁爵 said...

袁非(筆名涼圓)是女星鄭家純(雞排妹)的師妹,她過去曾因家庭負債,投入八大行業酒店打工從事半套性服務按摩工作,去年也將經歷寫成書。她13日看到一名確診酒店小姐的足跡,分享了自己的酒店工作專業分析,並感嘆「從確診足跡見證所謂努力」,直言很佩服對方。袁非13日分享一名確診者的足跡,並在圖片標上「大人才懂她在幹嘛」,她表示如果這份足跡分析為真,那該位確診小姐真的是日夜無休地在努力,「看得我肅然起敬。」袁非指出,確診者從週六看完電影後,幾乎是早上8點半「帶出場」後就去上班,「等於她可能連續工作從8點半到晚上12點,然後2點又接著外全。」袁非說,雖然酒店公關帶出場也可以睡覺,但畢竟還是工作的一部份,所以該小姐可能也不會有休息和享受的時間,「隔天週日上班、週一上班,週一下班後又外全、結束又直接上班……酒店上班小姐都這麼努力了,富堅你在幹嘛──咳,我是說,我在幹嘛。」袁非分享自己在八大行業上班的經驗指出,撇除黃金週五,星期六和星期日業績不是大好、就是大壞,通常她在周末上完班,接下來的兩天就會排休;而其他固定上平常日的酒店小姐則不會在週末出現,「通常是因為家庭日。」對比確診小姐的作息,酒店經紀直言:「簡直中山區One piece!」認為對方會這麼努力,一定是有自己的信念,「因為那真的非常累,不是我當時那麼敷衍的理由可以支撐的。」袁非也說,可能會有直男嘲笑「這種努力我可佩服不來」,但她霸氣表示:「是,酒店應徵不畏人言,堅定地自己朝目標努力的人,你佩服不來。」袁非過去家中負債,畢業後打工發現收入實在不足,涉世未深的她,隨意挑了間按摩店去應徵按摩妹。起先只是做單純的按摩服務,不過看著別人1天賺1、2萬,她也決定下海從事半套性服務。袁非在還清負債後,因不想重蹈覆徹、回到過去擔心錢的生活,相當努力地將賺的錢拿去投資買美金,還曾遇到掃黃導致收入中斷付不出保單,讓同事笑稱:「第一次有酒店上班跟我借錢拿去存。」【袁非坐檯小姐臉書全文】如果這張圖的分析為真,那她真的是日夜無休的在努力,看的(得)我肅然起敬。她的週六,看完電影大約2點到8:30之間,可能是休息睡覺時間,但她幾乎是8:30外全結束就去上班。等於她可能連續工作8:30-晚上12點,然後2點又接著外全。雖然外全也是可以睡覺,可是畢竟還是酒店上班,所以她可能也不會有休息和享受的時間。隔天週日上班、週一上班,週一下班後又外全、結束又直接上班……小姐都這麼努力了,富堅你在幹嘛──咳,我是說,我在幹嘛。要是紅字推測是真,對比我以前上班,撇除黃金週五,六日通常不是大好就是大壞。大好身累、大壞心累,通常這樣累完我一二一定會排休;而一到五固定出現的小姐們有極高機率六日不會來,通常是因為家庭日。當時以我們這兩種小姐為大宗,如果紅字推測是真的,六日一二都會上班,而且是外全加上班的小姐簡直──中山區One piece!要知道不是妹有心上就有班上,肯上班和能上班對我們來說不是一回事。:「可是這樣拼的目的是什麼?是因為她靠勞力工作,真的要有高收入就是要這樣長時間工作…在工作的角度來說,努力是必要,但是投入這樣的努力可以換到的成果可以是什麼?短期內會有錢沒錯,可是長期可以累積什麼?」友人這樣問我。:「安全感吧。」我說。在債務還清之後,曾經有一大段時間我失去方向,也不知道我為什麼要努力賺錢。於是把錢拿去買了很多「以前想穿的衣服」、「以前想吃的零食」去彌補曾經匱乏的遺憾。但我沒有因此完滿,因為我依然沒有買到未來。我後來告訴自己:「不知道將來要做什麼沒關係,反正做什麼都離不開錢。賺錢就對了。」但我相信若真是以紅標上的賺法,她一定有她的信念。因為那真的非常累,不是我當時那麼敷衍的理由可以支撐的。一定又要有直男笑了:這種努力我可佩服不來。是,不畏人言,堅定地自己朝目標努力的人,你佩服不來。