Don't Escape
I'm a werewolf and it's a full moon. I have to find a way to prevent myself from escaping.
3.85 / 5.00 36,497 ViewsRagnarok Online Jigsaw
Did you play Ragnarok Online? Do you like that game?
3.50 / 5.00 13,769 Viewsim tring to load a png inside an enterframe function
addEventListener(Event.ENTER_FRAME, Ani)
and i put this inside the ani function
loader.load(new URLRequest("C:/Users/Guest.jimmy-PC/New Folder/src/Art/Player/1.png"))
but it wont do anything.please help
i did not make with ms paint.
It seems that Event.ENTER_FRAME is the culprit. I've tried loading a picture with Event.ENTER_FRAME, and then replaced it with Event.ADD_TO_STAGE. The latter works, while the former doesn't.
At 3/16/13 07:59 PM, FlyingColours wrote: It seems that Event.ENTER_FRAME is the culprit. I've tried loading a picture with Event.ENTER_FRAME, and then replaced it with Event.ADD_TO_STAGE. The latter works, while the former doesn't.
Also, you need to add file:/// in front of the local file's address.
Am I the only one who notices he makes a URL request and returns a local file request?
original I am.
At 3/16/13 05:53 PM, HoundByte wrote: loader.load(new URLRequest("C:/Users/Guest.jimmy-PC/New Folder/src/Art/Player/1.png"))
Heres what you do
1. Upload the image to http://www.myfrogbag.com/
2. loader.load(new URLRequest("http://files.myfrogbag.com/kyozy2/6a0120a721c2d7 970b0163049871f7970d-800wi.jpg"))//Replace URL
3. ???
4. Profit!!!
original I am.
At 3/17/13 05:55 AM, mandog wrote: Am I the only one who notices he makes a URL request and returns a local file request?
URL Request can load local files as well.
At 3/17/13 07:02 AM, 4urentertainment wrote:At 3/17/13 05:55 AM, mandog wrote: Am I the only one who notices he makes a URL request and returns a local file request?URL Request can load local files as well.
I think mandog does have a point, though, since accessing local files might cause security issues...
BTW, HoundByte, are you just including art in your game? If so, why not just embed? ;)
i want to use a while loop inside a function that would load created
public function load1(evt:Event)
{
while(f1)
{
loader.load(new URLRequest("C:/Users/Guest.jimmy-PC/New Folder/src/Art/Player/1.png"))
}
}
but flash mesesup because of the loop, i cant use a while loop in a function that isnt enterframe?
thanks
i did not make with ms paint.
I'm sorry if this doesn't help much... it probably doesn't, but there's a lot of things I don't understand about this. Why are while-loops restricted to enterFrame? Why would you load a picture in an enterFrame function?
I think you should just embed the picture. The player isn't going to look in your C:\ drive...
BTW, again, you need to add file:/// before your address.
If you want to embed a local file (which I'm assuming since you're trying to load a file from your harddrive) just use the Embed directive.
public class Main extends Sprite {
[Embed(source = "Art/Player/1.png")]
protected const MyImage:Class;
...
var an_image:Bitmap = new MyImage() as Bitmap;
Assuming that the Art folder is in the same folder as your .as file. Don't forget to add the bitmap to the desired container using addChild.