Sunday, March 28, 2010

Can i have more than 1 FLA in a Air...

I have 10 FLA files, out of which 1 is a index. This opens the other files and they in turn have a return link to index.

Can I put all these together and build an AIR deployer ?

Can i have more than 1 FLA in a Air...

I guess you mean .swf files, just include them while setting the application and installer settings.

Can i have more than 1 FLA in a Air...

Thank you very much Sanjay,

I tried doing what you mentioned. It did not work.

Like you said, I meant SWF and not FLA.

I must be doing something wrong; I am not very good at Flash.

I will try again and get back to you.

I have attached an image of what I want. Please advice. It is a CBT program.

Thanks again

Regards

Adil

Hide a page from numbering

I have a document and wants an extra pop-out page, a fold out page. But I dont want it to appear with page number, so I delete the pagenumbering, but the other pages continues like the page is in the document - as it should. I dont want it to appear in the page numbering. Ex. right page 15 becomes 16, it should stay as 15.

/ Dennis

Hide a page from numbering

Start a new section on the next page.

Hide a page from numbering

Sorry but can you show me a screendump? I mark the page and select Number %26amp; Sections options but nothing I change seems to work.

And you tell it what page number to start at?

It comes up with a warning, but now it works when I fill in Start page number at....

You need to start two new sections. The first one starts the gatefold page, and you can set the numbering to start on anything you like, but change the number style to something not already in use, like a, b, c... and then a new section starts again where you want your regular numbering to continue, Set the number to the continuation page number and the style the same as the rest.

Great, think I got it now :-)

Thanks

Export PDF Rasterize Vectors but retain...

I'm running ID3 on 10.5.7 I have a file which is over 100pp and is very vector graphic heavy. My PDF's are coming out at 7.4MB on the smallest file size setting. I know I can raster the whole page but this makes alos makes the file size to big. What I want to do is have a half way setting and rasterize the vectors only and retain the text.

Is this possible? Can someone explain to me how to achieve this without going back and saving out all images from Illustrator as JPEG's and replaceing them in InDesign?

Export PDF Rasterize Vectors but retain...

There was another thread about this just yesterday. http://forums.adobe.com/message/2090197#2090197

There was a comment in this link http://indesignsecrets.com/creating-smaller-pdfs-from-a-vector-dense-book.php that seemed to indicate you could rasterize the vector graphics, but not the text, by adjusting the balance in the flattener.

Export PDF Rasterize Vectors but retain...

Thanks for that Peter.

The only solution which would potentially answer my problem would be the transparancy setting one. The problem is that even with the transparancy setting set to 1 the vectors don't rasterize. They only rasterize with it set to 0. Problem with this is that all ID text is also converted making the file larger than necassary. As I have over 120 vector files placed and amends are yet to follow from the client, changing the AI files to tiff or JPEG's is not an option. Looks like this is one for future versions of ID.

Thanks again.

Set the transparency of the vector files to 99.9%, then use your flattener style of 1.?Use an object style so you can change them all back easily.

Jay

flashing transition

Hi all,

I'm having a problem with a transition.

In my application, I have 2 states, one containing a HBox with a Panel inside, and one with only a custom component in it.

As you can see in the code below, I defined a transition between loginState and reservationState, which uses an Iris effect

to hide the loginScreen, followed by a Fade effect which fades in the reservationScreen.

This all works as expected, but right before the Iris effect starts, the loginScreen disappears for a brief moment.

I hope someone cna point out what it is I'm doing wrong.

Best regards,

Jurgen

ReservationSystem.mxml:

%26lt;?xml version=''1.0'' encoding=''utf-8''?%26gt;
%26lt;mx:Application
?xmlns:mx=''http://www.adobe.com/2006/mxml''
?xmlns:components=''components.*''
?creationComplete=''BrowserManager.getInstance().setTitle('Course Reservation')''
?width=''100%'' height=''100%''
?layout=''vertical'' currentState=''loginState''%26gt;
?
?%26lt;mx:Style source=''assets/CourseReservation.css'' /%26gt;
?
?%26lt;mx:states%26gt;
?%26lt;mx:State name=''loginState''%26gt;
?%26lt;mx:AddChild%26gt;
?%26lt;mx:HBox id=''loginScreen''
?width=''100%'' height=''100%''
?styleName=''loginScreen''%26gt;
?%26lt;mx:Panel title=''Login''%26gt;
?%26lt;mx:Form%26gt;
?%26lt;mx:FormItem label=''Username:''%26gt;
?%26lt;mx:TextInput id=''txtUsername'' enter=''handleSubmit()'' /%26gt;
?%26lt;/mx:FormItem%26gt;
?%26lt;mx:FormItem label=''Password:''%26gt;
?%26lt;mx:TextInput id=''txtPassword'' enter=''handleSubmit()'' /%26gt;
?%26lt;/mx:FormItem%26gt;
?%26lt;mx:FormItem%26gt;
?%26lt;mx:Button id=''btnLogin'' label=''Submit''
?click=''handleSubmit()'' /%26gt;
?%26lt;/mx:FormItem%26gt;
?%26lt;/mx:Form%26gt;
?%26lt;/mx:Panel%26gt;
?%26lt;/mx:HBox%26gt;
?%26lt;/mx:AddChild%26gt;
?%26lt;/mx:State%26gt;
?%26lt;mx:State name=''reservationState''%26gt;
?%26lt;mx:AddChild%26gt;
?%26lt;components:MainScreen id=''mainScreen'' /%26gt;
?%26lt;/mx:AddChild%26gt;
?%26lt;/mx:State%26gt;
?%26lt;/mx:states%26gt;
?
?%26lt;mx:transitions%26gt;
?%26lt;mx:Transition fromState=''loginState'' toState=''reservationState''%26gt;
?%26lt;mx:Sequence%26gt;
?%26lt;mx:Iris target=''{loginScreen}'' showTarget=''false'' duration=''1000'' /%26gt;
?%26lt;mx:RemoveChildAction target=''{loginScreen}'' /%26gt;
?%26lt;mx:AddChildAction target=''{mainScreen}'' /%26gt;
?%26lt;mx:Fade target=''{mainScreen}'' alphaFrom=''0'' alphaTo=''1'' duration=''2500'' /%26gt;
?%26lt;/mx:Sequence%26gt;
?%26lt;/mx:Transition%26gt;
?%26lt;mx:Transition fromState=''*'' toState=''loginState''%26gt;
?%26lt;mx:Fade target=''{loginScreen}'' alphaFrom=''0'' alphaTo=''1'' duration=''500'' /%26gt;
?%26lt;/mx:Transition%26gt;
?%26lt;/mx:transitions%26gt;
?
?%26lt;mx:Script%26gt;
?%26lt;![CDATA[
?import mx.managers.BrowserManager;
?private function handleSubmit():void {
?if (txtUsername.text == txtPassword.text) {
?txtUsername.text = '''';
?this.currentState = 'reservationState';
?}
?txtPassword.text = '''';
?}
?]]%26gt;
?%26lt;/mx:Script%26gt;
?
%26lt;/mx:Application%26gt;

Pausing an external mp3 file

Right now I am using this code to load an external mp3 file into my website:

var url:String = ''my file'';
var urlRequest:URLRequest = new URLRequest(url);
var sound:Sound = new Sound();
sound.load(urlRequest);
sound.play();

I am wondering if it is possible to add playback buttons (play, pause, stop) which control this external mp3 file from my site. And what code I would use to do that.

Thanks for you help!

Pausing an external mp3 file

are the buttons on the same timeline as the timeline that contains that code?

Pausing an external mp3 file

I haven't added any buttons yet. I am not sure where to put them.

you can put them anywhere you like as long as they have some relation to your swf.

it would be easiest if you put them on the same timeline as the timeline that contains the code you showed.

Ok, but my question is how do I link the buttons to my external mp3? Is there a code you can give me to do that?

the answer to your question depends on the location of the buttons. that's why i've been trying to find out where they will be placed.

Ok, I will put them in the same timeline as that code.


var url:String = ''my file'';
var urlRequest:URLRequest = new URLRequest(url);
var sound:Sound = new Sound();
sound.load(urlRequest);
var sc:SoundChannel=sound.play();

var startTime:uint=0;

playBtn.addEventListener(MouseEvent.CLICK,playF);
stopBtn.addEventListener(MouseEvent.CLICK,stopF);
pauseBtn.addEventListener(MouseEvent.CLICK,pauseF);


function playF(e:Event){
sc=sound.play(startTime);
}

function stopF(e:Event){
sc.stop();
startTime=0;
}


function pauseF(e:Event){
startTime=sc.position;
sc.stop();
}

Thank you, but I added the code and the buttons with matching instance names and it is showing errors. ''access of undefined property sc.''...

Sorry, I'm really new at this.

I fixed it, sorry I just didn't have an instance name right. Thank you so much for your help!

replace your code with the code i gave in my previous message and retest.

Thank you so much for all of your help! Maybe now it'll be easier to figure out ''next'' and ''previous'' buttons.

Thanks again

you're welcome.

How to change the font direction?

There are many titlewindows in my application, so I have to lay out them in order.How to change the font direction?

Not sure what you mean, but there aren't any styles or properties that will change the position of the title in Panel. You might need to create your own component.

Alex Harui

Flex SDK Developer

Adobe Systems Inc.

Blog: http://blogs.adobe.com/aharui

  • nyx cosmetic
  • Adobe Air on Windows Mobile 5.0

    Hello,

    Are Air Apps supported in Windows Mobile, Palm OS and Symbian ??If yes what needs to be done to install them on these platforms ? Is Flashlite sufficient ?

    Also, is there a automatic online/offline synchronization mechanism between server and disconnected databases ? Or does it have to be explicitely coded ?

    Thanks,

    Prajor.

    Adobe Air on Windows Mobile 5.0

    Are Air Apps supported in Windows Mobile, Palm OS and Symbian ??If yes what needs to be done to install them on these platforms ? Is Flashlite sufficient ?