Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
embed картинка в mx:Image
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Александр  
View profile   Translate to Translated (View Original)
 More options Nov 10, 8:19 am
From: Александр <2051...@gmail.com>
Date: Tue, 10 Nov 2009 15:19:03 +0200
Local: Tues, Nov 10 2009 8:19 am
Subject: embed картинка в mx:Image
Здарвствуйте, уважаемые, я начинающий flex программист, так что не
кидайте в меня камнями. )))
Передо мной возникла задача, заливки полупразрачной картинкой контейнера
Canvas, реализовал это с помощью подгрузки картинки через Loader, а вот
картинку embed через set никак не могу правильно сделать... Прошу
помощи...))) спасибо...

Исходный код можно посмотреть по следущей ссылке
http://2051020.com/flash/trobles/TileImageCanvas.mxml

__________ Information from ESET NOD32 Antivirus, version of virus signature database 4590 (20091109) __________

The message was checked by ESET NOD32 Antivirus.

http://www.esetnod32.ru


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
kross77  
View profile   Translate to Translated (View Original)
 More options Nov 10, 1:26 pm
From: kross77 <2051...@gmail.com>
Date: Tue, 10 Nov 2009 10:26:28 -0800 (PST)
Local: Tues, Nov 10 2009 1:26 pm
Subject: Re: embed картинка в mx:Image
если я что-то недоступно написал скажите... А вообще очень нужно...
Очень)))

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ivan Dembicki  
View profile   Translate to Translated (View Original)
 More options Nov 10, 1:41 pm
From: Ivan Dembicki <ivan.dembi...@gmail.com>
Date: Tue, 10 Nov 2009 19:41:47 +0100
Local: Tues, Nov 10 2009 1:41 pm
Subject: Re: [ruFlash] Re: embed картинка в mx:Image
Hello kross77,

не очень понятна проблема: тебе нужно залить Canvas однотонной
полупрозрачной картинкой или это должна быть какая-то особая картинка?
В первом случае у BitmapData есть необходимые методы.

--
iv
http://www.bezier.ru
http://bezier.googlecode.com


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
kross77  
View profile   Translate to Translated (View Original)
 More options Nov 10, 1:54 pm
From: kross77 <2051...@gmail.com>
Date: Tue, 10 Nov 2009 10:54:21 -0800 (PST)
Local: Tues, Nov 10 2009 1:54 pm
Subject: Re: embed картинка в mx:Image

> не очень понятна проблема: тебе нужно залить Canvas однотонной
> полупрозрачной картинкой или это должна быть какая-то особая картинка?
> В первом случае у BitmapData есть необходимые методы.

нашел класс, который заливает картинкой, но делает это с помощью
подгрузки картинки во флекс, после построения приложения.
Дописал сеттер. Но это очень некрасиво когда приложение загружается, а
фон появляется через мгновение.
Захотел подставить уже Class с картинкой, но тут возникла проблема,
несовместимости типов.
Я уже и пробывал и Bitmap делать и приводить к DisplayObject, и в
Image подставлял в source, data. Все выдает ошибки...
ЗЫ. Извините за темноту, над этим работаем.

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ivan Dembicki  
View profile   Translate to Translated (View Original)
 More options Nov 10, 2:19 pm
From: Ivan Dembicki <ivan.dembi...@gmail.com>
Date: Tue, 10 Nov 2009 20:19:43 +0100
Local: Tues, Nov 10 2009 2:19 pm
Subject: Re: [ruFlash] Re: embed картинка в mx:Image
Hello kross77,

Закони картинку во FLA, задай класс CanvasBackground в свойствах, скомпили SWF.
Во Flex в AS классе пишешь:

[Embed(source="/../[путь]/catvas.swf", symbol="CanvasBackground")]
private static const CanvasBackground : Class;
private var canvasBackground : BitmapData;

и затем в коде

canvasBackground = new canvasBackground() as BitmapData();

отпиши что получится

--
iv
http://www.bezier.ru
http://bezier.googlecode.com


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
kross77  
View profile   Translate to Translated (View Original)
 More options Nov 10, 3:52 pm
From: kross77 <2051...@gmail.com>
Date: Tue, 10 Nov 2009 12:52:07 -0800 (PST)
Local: Tues, Nov 10 2009 3:52 pm
Subject: Re: embed картинка в mx:Image
> отпиши что получится

http://2051020.com/flash/trobles/pack.zip

может быть я чего-то там не так сделал... Но вроде так, как говорят у
нас белорусов "не працуе"... Короче высылаю что получилось.

[offtop] очень приятно, что человек который хочет заработать миллион
долларов, потратил на меня несколько минуточек)))


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alexey Taran  
View profile   Translate to Translated (View Original)
 More options Nov 10, 4:41 pm
From: Alexey Taran <taran.ale...@gmail.com>
Date: Tue, 10 Nov 2009 23:41:10 +0200
Local: Tues, Nov 10 2009 4:41 pm
Subject: Re: [ruFlash] embed картинка в mx:Image

[Embed(source='image.png')]
private var myImage:Class;

после этого можешь клепать картинок столько, сколько нужно

var image:Bitmap = Bitmap(new myImage());


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ivan Dembicki  
View profile   Translate to Translated (View Original)
 More options Nov 10, 6:18 pm
From: Ivan Dembicki <ivan.dembi...@gmail.com>
Date: Wed, 11 Nov 2009 00:18:39 +0100
Local: Tues, Nov 10 2009 6:18 pm
Subject: Re: [ruFlash] Re: embed картинка в mx:Image
Hello kross77,

> [offtop] очень приятно, что человек который хочет заработать миллион
> долларов, потратил на меня несколько минуточек)))

- миллиард. Миллион - ерунда по нынешним меркам.

--
iv
http://www.bezier.ru
http://bezier.googlecode.com


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alexey Taran  
View profile  
 More options Nov 10, 7:07 pm
From: Alexey Taran <taran.ale...@gmail.com>
Date: Wed, 11 Nov 2009 02:07:02 +0200
Local: Tues, Nov 10 2009 7:07 pm
Subject: Re: [ruFlash] Re: embed картинка в mx:Image

> [Embed(source="swf/bg-rounds.swf", symbol="CanvasBackground")]

> private static const CanvasBackground : Class;

> private var canvasBackground : BitmapData;

>private function init():void
>{
>   canvasBackground = new CanvasBackground() as BitmapData;
>}

CanvasBackground в данном случает не является BitmapData
Если мне память не изменяет, в данном случае CanvasBackground является Shape

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google