mx.controls.Image source [Flex 4]
| Beiträge: 8 Registriert: Apr 2011
| 11.05.2011, 14:22
Hallo zusammen,
ich möchte in meiner Flex Anwendung ja nur ein Bild anzeigen.
ActionScript:1 2 | var bild:mx.controls.Image = new mx.controls.Image();
bild.source = "http://www.flashhilfe.de/images/fh_logo_box.gif";
|
(das Bild wir dann noch später zur Anzeige gebracht)
Das geht wunderbar. aber ich möchte das Bild aus mein im Projekt befinden pics Ordner haben.
ActionScript:1 2 | var bild:mx.controls.Image = new mx.controls.Image();
bild.source = "../pics/Edit.png";
|
oder auch so:
ActionScript:1 2 | var bild:mx.controls.Image = new mx.controls.Image();
bild.source = "@Embed(source='../pics/Edit.png'))";
|
oder so:
ActionScript:1 2 | var bild:mx.controls.Image = new mx.controls.Image();
bild.source = "@Embed('../pics/Edit.png')";
|
nur geht davon nichts...
könnte es daran ligen?
" When use-network flag is set to false, you can access resources in the local filesystem, but not over the network. The default value is true, which allows you to access resources over the network, but not in the local filesystem."
hab das versucht unter Project Eigenschaft beim Compiler reinzuschreiben. hatte da aber auch noch keine Auswirkungen.
ich hoffe ihr könnt mir helfen, Danke
Tacco | Geändert von Tacco am 11.05.11 um 14:23 Uhr | |
| | Beiträge: 6981 Wohnort: München Registriert: Jan 2002
| 20.05.2011, 09:46
|
|