Load User Media?

Get help using Construct 2

Post » Tue Jul 03, 2012 9:50 pm

Hello,

Is it possible in Construct to allow a user to load an image file from their local drive? Interestingly the webcam plugin is titled "user media beta" but it relates only to the webcam.

I know this is not a limitation in javascript or HTML5 as it is quite trivial to do in Processing. Maybe it is trivial in C2 and I have just missed it?

Thanks!
Darin
B
9
S
3
G
4
Posts: 80
Reputation: 3,268

Post » Tue Jul 03, 2012 11:11 pm

Project files might be what you are looking for.

But direct access with JavaScript is not yet possible and is restricted (imagine a fraudulent HTML5 add having access to your hard drive, copying/pasting/deleting files there without you even being aware of it).

You might also want to check latest additions like Sprite: load from URL, AJAX request allowing arrays/dictionaries to load/save datas as JSON, etc... (you might want to check the changelogs of the latest releases of C2)
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,999
Reputation: 57,793


Return to How do I....?

Who is online

Users browsing this forum: austinblackbelt, Matthew de, Skebab and 5 guests