Sunday, April 4, 2010

Localize an application for image

Hi,

I define localization resource on image like:

Enlish:

menu.admin.down=

Embed(''assets/en/administrator_down.gif'')

Koren:

menu.admin.down=

Embed(''assets/ko/administrator_down.gif'')

My code like:

%26lt;mx:Image source=''@Resource(key='menu.server.down', bundle='lang')'' /%26gt;

%26lt;mx:Label x=''238'' y=''196'' text=''{resourceManager.getString('lang', 'menu.lang')}'' /%26gt;

Label?is to display correct Koren, but image is still stay at Enlish, maay I know whaat problem on it?

Thanks,

Localize an application for image

Hi,

do you write correct?

menu.admin.down=

Embed(''assets/en/administrator_down.gif'')

%26lt;mx:Image source=''@Resource(key='menu.server.down', bundle='lang')'' /%26gt;

Localize an application for image

I can make sure it does not work for image. it seem to need to trigger to get it work. I have two code show this issue.

First code, when language switch from English to Koren, label is changed, but image did not change to koren image.

Second code, I add a state to create image. when language switch from English to Koren, then click button to switch to ''create image'' state, it will display correct koren image.

Some one can figure out what happen, why it does not work for first situation?

(First code)

%26lt;?xml version=''1.0'' encoding=''utf-8''?%26gt;
%26lt;mx:Application xmlns:mx=''http://www.adobe.com/2006/mxml'' layout=''vertical''%26gt;
%26lt;mx:Metadata%26gt;
?[ResourceBundle(''form'')]
%26lt;/mx:Metadata%26gt;
%26lt;mx:XMLList id=''localeDD''%26gt;
?%26lt;locale key=''1'' value=''English'' /%26gt;
?%26lt;locale key=''2'' value=''Koren'' /%26gt;
%26lt;/mx:XMLList%26gt;
%26lt;mx:Script%26gt;
?%26lt;![CDATA[
?import mx.resources.ResourceBundle;
?private static var rb:ResourceBundle;
private function setLocale():void {
?var selectedLocale:String = localeDropDown.selectedItem.@key;
?if (''1'' == selectedLocale) {
resourceManager.localeChain = [''en_US''];
?} else if (''2'' == selectedLocale) {
resourceManager.localeChain = [''ko_KR''];
?}?
}
?]]%26gt;
%26lt;/mx:Script%26gt;

%26lt;mx:ComboBox id=''localeDropDown'' x=''329'' y=''165'' editable=''true'' enabled=''true''
?dataProvider=''{localeDD}'' labelField=''@value'' change=''setLocale()''/%26gt;
%26lt;mx:Label x=''225'' y=''167'' text=''Select Locale'' color=''#FFFFFF'' fontWeight=''bold'' fontSize=''13''/%26gt;
%26lt;mx:Label x=''238'' y=''196'' text=''{resourceManager.getString('form', 'firstname')}''
?color=''#FFFFFF'' fontWeight=''bold'' fontSize=''13''/%26gt;
?%26lt;mx:Image source=''@Resource(key='menu', bundle='form')'' /%26gt;
%26lt;/mx:Application%26gt;

(second code)

%26lt;?xml version=''1.0'' encoding=''utf-8''?%26gt;
%26lt;mx:Application xmlns:mx=''http://www.adobe.com/2006/mxml'' layout=''vertical''%26gt;
%26lt;mx:Metadata%26gt;
?[ResourceBundle(''form'')]
%26lt;/mx:Metadata%26gt;
%26lt;mx:XMLList id=''localeDD''%26gt;
?%26lt;locale key=''1'' value=''English'' /%26gt;
?%26lt;locale key=''2'' value=''Koren'' /%26gt;
%26lt;/mx:XMLList%26gt;
%26lt;mx:Script%26gt;
?%26lt;![CDATA[
?import mx.resources.ResourceBundle;
?private static var rb:ResourceBundle;
private function setLocale():void {
?var selectedLocale:String = localeDropDown.selectedItem.@key;
?if (''1'' == selectedLocale) {
resourceManager.localeChain = [''en_US''];
?} else if (''2'' == selectedLocale) {
resourceManager.localeChain = [''ko_KR''];
?}?
}
?]]%26gt;
%26lt;/mx:Script%26gt;

%26lt;mx:ComboBox id=''localeDropDown'' x=''329'' y=''165'' editable=''true'' enabled=''true''
?dataProvider=''{localeDD}'' labelField=''@value'' change=''setLocale()''/%26gt;
%26lt;mx:Label x=''225'' y=''167'' text=''Select Locale'' color=''#FFFFFF'' fontWeight=''bold'' fontSize=''13''/%26gt;
%26lt;mx:Label x=''238'' y=''196'' text=''{resourceManager.getString('form', 'firstname')}''
?color=''#FFFFFF'' fontWeight=''bold'' fontSize=''13''/%26gt;
?%26lt;mx:Button label=''switch'' click=''currentState = 'createImage';'' /%26gt;
?%26lt;mx:Canvas width=''100%'' height=''100%'' id=''home''%26gt;

?%26lt;/mx:Canvas%26gt;
?%26lt;mx:states%26gt;
?%26lt;mx:State name=''createImage''%26gt;
%26lt;mx:AddChild relativeTo=''{home}''%26gt;
?%26lt;mx:Image source=''@Resource(key='menu', bundle='form')'' /%26gt;
%26lt;/mx:AddChild%26gt;
?%26lt;/mx:State%26gt;
?%26lt;/mx:states%26gt;?
%26lt;/mx:Application%26gt;

I can make sure it does not work for image. it seem to need to trigger to get it work. I have two code show this issue.

First code, when language switch from English to Koren, label is changed, but image did not change to koren image.

Second code, I add a state to create image. when language switch from English to Koren, then click button to switch to ''create image'' state, then it display correct koren image.

Some one can figure out what happen, why it does not work for first situation?

(First code)

%26lt;?xml version=''1.0'' encoding=''utf-8''?%26gt;
%26lt;mx:Application xmlns:mx=''http://www.adobe.com/2006/mxml'' layout=''vertical''%26gt;
%26lt;mx:Metadata%26gt;
?[ResourceBundle(''form'')]
%26lt;/mx:Metadata%26gt;
%26lt;mx:XMLList id=''localeDD''%26gt;
?%26lt;locale key=''1'' value=''English'' /%26gt;
?%26lt;locale key=''2'' value=''Koren'' /%26gt;
%26lt;/mx:XMLList%26gt;
%26lt;mx:Script%26gt;
?%26lt;![CDATA[
?import mx.resources.ResourceBundle;
?private static var rb:ResourceBundle;
private function setLocale():void {
?var selectedLocale:String = localeDropDown.selectedItem.@key;
?if (''1'' == selectedLocale) {
resourceManager.localeChain = [''en_US''];
?} else if (''2'' == selectedLocale) {
resourceManager.localeChain = [''ko_KR''];
?}?
}
?]]%26gt;
%26lt;/mx:Script%26gt;

%26lt;mx:ComboBox id=''localeDropDown'' x=''329'' y=''165'' editable=''true'' enabled=''true''
?dataProvider=''{localeDD}'' labelField=''@value'' change=''setLocale()''/%26gt;
%26lt;mx:Label x=''225'' y=''167'' text=''Select Locale'' color=''#FFFFFF'' fontWeight=''bold'' fontSize=''13''/%26gt;
%26lt;mx:Label x=''238'' y=''196'' text=''{resourceManager.getString('form', 'firstname')}''
?color=''#FFFFFF'' fontWeight=''bold'' fontSize=''13''/%26gt;
?%26lt;mx:Image source=''@Resource(key='menu', bundle='form')'' /%26gt;
%26lt;/mx:Application%26gt;

(second code)

%26lt;?xml version=''1.0'' encoding=''utf-8''?%26gt;
%26lt;mx:Application xmlns:mx=''http://www.adobe.com/2006/mxml'' layout=''vertical''%26gt;
%26lt;mx:Metadata%26gt;
?[ResourceBundle(''form'')]
%26lt;/mx:Metadata%26gt;
%26lt;mx:XMLList id=''localeDD''%26gt;
?%26lt;locale key=''1'' value=''English'' /%26gt;
?%26lt;locale key=''2'' value=''Koren'' /%26gt;
%26lt;/mx:XMLList%26gt;
%26lt;mx:Script%26gt;
?%26lt;![CDATA[
?import mx.resources.ResourceBundle;
?private static var rb:ResourceBundle;
private function setLocale():void {
?var selectedLocale:String = localeDropDown.selectedItem.@key;
?if (''1'' == selectedLocale) {
resourceManager.localeChain = [''en_US''];
?} else if (''2'' == selectedLocale) {
resourceManager.localeChain = [''ko_KR''];
?}?
}
?]]%26gt;
%26lt;/mx:Script%26gt;

%26lt;mx:ComboBox id=''localeDropDown'' x=''329'' y=''165'' editable=''true'' enabled=''true''
?dataProvider=''{localeDD}'' labelField=''@value'' change=''setLocale()''/%26gt;
%26lt;mx:Label x=''225'' y=''167'' text=''Select Locale'' color=''#FFFFFF'' fontWeight=''bold'' fontSize=''13''/%26gt;
%26lt;mx:Label x=''238'' y=''196'' text=''{resourceManager.getString('form', 'firstname')}''
?color=''#FFFFFF'' fontWeight=''bold'' fontSize=''13''/%26gt;
?%26lt;mx:Button label=''switch'' click=''currentState = 'createImage';'' /%26gt;
?%26lt;mx:Canvas width=''100%'' height=''100%'' id=''home''%26gt;

?%26lt;/mx:Canvas%26gt;
?%26lt;mx:states%26gt;
?%26lt;mx:State name=''createImage''%26gt;
%26lt;mx:AddChild relativeTo=''{home}''%26gt;
?%26lt;mx:Image source=''@Resource(key='menu', bundle='form')'' /%26gt;
%26lt;/mx:AddChild%26gt;
?%26lt;/mx:State%26gt;
?%26lt;/mx:states%26gt;?
%26lt;/mx:Application%26gt;

I can make sure it does not work for image. it seem to need to trigger to get it work. I have two code show this issue.

First code, when language switch from English to Koren, label is changed, but image did not change.

Second code, I add a state to create image. when language switch from English to Koren, then click button to switch to ''create image'' state, then it display correct koren image.

Some one can figure out what happen, why it does not work for first situation?

(First code)

%26lt;?xml version=''1.0'' encoding=''utf-8''?%26gt;
%26lt;mx:Application xmlns:mx=''http://www.adobe.com/2006/mxml'' layout=''vertical''%26gt;
%26lt;mx:Metadata%26gt;
?[ResourceBundle(''form'')]
%26lt;/mx:Metadata%26gt;
%26lt;mx:XMLList id=''localeDD''%26gt;
?%26lt;locale key=''1'' value=''English'' /%26gt;
?%26lt;locale key=''2'' value=''Koren'' /%26gt;
%26lt;/mx:XMLList%26gt;
%26lt;mx:Script%26gt;
?%26lt;![CDATA[
?import mx.resources.ResourceBundle;
?private static var rb:ResourceBundle;
private function setLocale():void {
?var selectedLocale:String = localeDropDown.selectedItem.@key;
?if (''1'' == selectedLocale) {
resourceManager.localeChain = [''en_US''];
?} else if (''2'' == selectedLocale) {
resourceManager.localeChain = [''ko_KR''];
?}?
}
?]]%26gt;
%26lt;/mx:Script%26gt;

%26lt;mx:ComboBox id=''localeDropDown'' x=''329'' y=''165'' editable=''true'' enabled=''true''
?dataProvider=''{localeDD}'' labelField=''@value'' change=''setLocale()''/%26gt;
%26lt;mx:Label x=''225'' y=''167'' text=''Select Locale'' color=''#FFFFFF'' fontWeight=''bold'' fontSize=''13''/%26gt;
%26lt;mx:Label x=''238'' y=''196'' text=''{resourceManager.getString('form', 'firstname')}''
?color=''#FFFFFF'' fontWeight=''bold'' fontSize=''13''/%26gt;
?%26lt;mx:Image source=''@Resource(key='menu', bundle='form')'' /%26gt;
%26lt;/mx:Application%26gt;

(second code)

%26lt;?xml version=''1.0'' encoding=''utf-8''?%26gt;
%26lt;mx:Application xmlns:mx=''http://www.adobe.com/2006/mxml'' layout=''vertical''%26gt;
%26lt;mx:Metadata%26gt;
?[ResourceBundle(''form'')]
%26lt;/mx:Metadata%26gt;
%26lt;mx:XMLList id=''localeDD''%26gt;
?%26lt;locale key=''1'' value=''English'' /%26gt;
?%26lt;locale key=''2'' value=''Koren'' /%26gt;
%26lt;/mx:XMLList%26gt;
%26lt;mx:Script%26gt;
?%26lt;![CDATA[
?import mx.resources.ResourceBundle;
?private static var rb:ResourceBundle;
private function setLocale():void {
?var selectedLocale:String = localeDropDown.selectedItem.@key;
?if (''1'' == selectedLocale) {
resourceManager.localeChain = [''en_US''];
?} else if (''2'' == selectedLocale) {
resourceManager.localeChain = [''ko_KR''];
?}?
}
?]]%26gt;
%26lt;/mx:Script%26gt;

%26lt;mx:ComboBox id=''localeDropDown'' x=''329'' y=''165'' editable=''true'' enabled=''true''
?dataProvider=''{localeDD}'' labelField=''@value'' change=''setLocale()''/%26gt;
%26lt;mx:Label x=''225'' y=''167'' text=''Select Locale'' color=''#FFFFFF'' fontWeight=''bold'' fontSize=''13''/%26gt;
%26lt;mx:Label x=''238'' y=''196'' text=''{resourceManager.getString('form', 'firstname')}''
?color=''#FFFFFF'' fontWeight=''bold'' fontSize=''13''/%26gt;
?%26lt;mx:Button label=''switch'' click=''currentState = 'createImage';'' /%26gt;
?%26lt;mx:Canvas width=''100%'' height=''100%'' id=''home''%26gt;

?%26lt;/mx:Canvas%26gt;
?%26lt;mx:states%26gt;
?%26lt;mx:State name=''createImage''%26gt;
%26lt;mx:AddChild relativeTo=''{home}''%26gt;
?%26lt;mx:Image source=''@Resource(key='menu', bundle='form')'' /%26gt;
%26lt;/mx:AddChild%26gt;
?%26lt;/mx:State%26gt;
?%26lt;/mx:states%26gt;?
%26lt;/mx:Application%26gt;

I try to attached files, someone can help me?

Adjustment Brush Impossibly Slow

I love to use the Adjustment Brush on multiple areas of a photograph, as I can fine-tune specific areas almost like a painting.?However, the process chews up memory, or doesn't use if effeciently, and as masks are added it quickly bogs down to worse than a snail's-pace - to the point where it is unusable and impossible to continue.

I think the only way I've gotten around the problem was to save it and then start all over with a new set of masks.

I hope the engineers watch these comments, because I think this feature woud be one of the most useful in the entire program if it didn't bog down to an intolerable speed so quickly.

Adjustment Brush Impossibly Slow

i t?w?o u?l d b e?(spinning umbrella of frustration)?m o s t a p p r e c i a t e d?i f it was improved on. Guessing that is why bibble 5pro did not come out before christmas as promised, or Jan / Feb or May.

It is obviously problematic

but its also depressingly slow, much quicker to take it to photoshop, another work around

Adjustment Brush Impossibly Slow

I'm not familiar with bibble 5pro.?Does it work with the masking tool??What is it supposed to do?

Cant create a page from a template

Whenever I try to create a page from a template everything seems to go smoothly. The problem I encounter is the page that I create from the template doesn't have any of the styles or page layout of the template. Nothing is aligned, none of the style formatting, background colors, are in the new page. Everything is on the left side of the page and some images are nowhere close to where they are located on the template. I'm using Dreamweaver CS4. Has anyone experienced this problem?

Cant create a page from a template

Make sure any link(s) to any CSS documents is not in an editable region in the template file.

Trying to import presets but they are...

hi there,

I'm wondering if someone could help me, i've tried to load my presets on my Mac to lightroom 2.3 and they dont work. I've tried importing and ive also put them in the user presets folder under Develop presets and I can not see them in lightroom.

I have only just got lightroom last night so please excuse my ignorance if its really simple!

thanks in advance

Lyndal

Trying to import presets but they are...

worked it out!

Trying to import presets but they are...

Excellent!

Was it restarting LR that made it a go?

No John,

I was my stupidity!! I was trying to load ACR presets into lightroom! I didn't know there were a difference!

Bad blonde moment

  • recipes cream
  • hiding a layer through action script

    hi all,

    I've done some searching and it looks like you cant hide a layer using action script. I'm going to have a page with a lot of form controls on it and when the user clicks the submit button, i want all those controls to go away so that i can display something else.

    I really dont want to have to do control._visible = false for every single item. I did see one person saying i could attach those form fields (movieclips) to a parent movieclip, and then just make the parent visibl = false. would that be the best way to hide a bunch of controls without explicitly setting the visability on each movieclip? if so, how do i make something the child of a parent clip?

    thanks

    hiding a layer through action script

    Essentially, anything you add into a timeline is a child of that timeline. Right now you should be able to select all the controls you want to hide at the same time, right click, and select Convert To Symbol-%26gt;MovieClip.?They will immediately become children of the movieclip you just created.

    hiding a layer through action script

    sorry i'm a complete newb to flash/actionscript. you've lost me a bit. If i have a bunch of form fields, and i convert them all to one symbol/movieclip, how do i access the values of each of the form fields?

    for example, say i had two comboboxes, cbox1 and cbox2 - in my action script i can do cbox1.text to find out what the user selected, but once i convert them all to one symbol, that no longer works.

    I need some way to hide them all but still access their values.

    Select the movieclip you placed them in and in the properties panel give it an instance name.?Then, whenever you want to deal with something inside it, use that instance name...

    yourInstanceName.cbox1.etc....

    just had a thought - since my form exists only in one frame, can i just increment to the next frame to hide all the form related stuff and then starting in the 2nd frame, start showing the results of the form submit? how do you go to the next frame (or a specific frame for that matter) in AS 3.0?

    thanks

    ahhhhh! i see! let me give that a try and see if it works. thanks!

    You're welcome

    Why is Merge Selected greyed out?

    ?I am working with a file with many many sub layers and illustrator is running really slow and keeps crashing. I want to merge many of the sublayers into one layer to save space and help simplify the file, But after I select the layers the Merge Selected option under the layers menu is still greyed out and unable to be used. Anyone know how to get merge selected to work? Or any other way to merge layers?

    Why is Merge Selected greyed out?

    You're not going to like this and your going to respond with a WHAT!? But here goes, the sub layers are already by definition merged they are contain within a top level layer.

    There can be no merging since they already are merged.

    Top level layers on the other hand cane be along with their sub layers.

    That's it.

    I know what you're thinking what the閳?

    help with my flash video

    i isntalled a flash video but cant see it. can someone help please.

    its located at www.ohpg.org.

    scroll down the page and let me know what i did wrong please

    thanks in advance

    daniel

    help with my flash video

    The movie does show up. It just takes a long time for the file to download and begin to play. You may want to add a placeholder loading notification to let your user know that something is coming.

    help with my flash video

    how to i add the notification . i can see it in firefox but not explorer i

    have 2 laptop

    why does it not give a message to download the player

    thanks