Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Converting To Button...



I'm having some weird issues when I have an imported bitmap that I convert to a button it distorts the image for some reason. Sometimes when I change the y (length) of the button to 1 pixel larger it will clear it up. I made sure my buttons are on whole integers. Any ideas?



KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 09-17-2004, 02:49 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Help Converting Eps To A Button
Hi everyone,
im new to this forum. I need some help, im working on a flash project for work and im stuck... Im working with vector images... i imported an eps image into flash and i need to convert image to a button... but when i convert it and test movie all i see is a bright red square in place of the object i converted. but if im viewing it from the timeline it looks fine. anyone have any idea why it does that? what am i doing wrong? thanks for any help you can give me.

Converting To Button...
I'm having some weird issues when I have an imported bitmap that I convert to a button it distorts the image for some reason. Sometimes when I change the y (length) of the button to 1 pixel larger it will clear it up. I made sure my buttons are on whole integers. Any ideas?

Converting A *.swf Movie To A Button
How do I convert a whole movie (*.swf, not a movie clip) to a button to create a banner??? I tried importing the file into the edit stage of the button - it didn't work!!!I could see the first image on the stage, but the movie is not playing. (Flash 5)

Thanx.

Converting A MovieClip To A Button
i am attaching a file that i want to use as a button!
i have this button as a movieClip with 10 frames!
what i want to do is this :
when i go over the MC it will show a hand (like over a button)
but i want to be able to give it an mc events(like mouse down and so on....)
and i want fron this events to be able to access the original frames so i can show the button in a diffrent frame each time!
thnaks in advance
peleg

Converting Action To Button
Ok, i have an action on the main canvas. i want to put that into a button. Its 15 frames and i dont know how to put that into a button. Thanks

Help Converting A Movie Into A Button
I created a movie, over several layers and would like to allow the user to click the flash animation, it plays, and then directs the user to a website.

So what happens is, when the user views the frontpage of the website, they see the Flash Movie (stopped) click it, (it plays) and then after it has played the user is directed to the website (via a URL).

Right now I have the animation working as a button, it plays continually and you can click it to open the website in a new window but I'd like the animation to only play once clicked.

Thanks for the help, I hope there is an easy solution.

Image Changes When Converting To Button
Hey guys, so i text thats as image in flash and I wanna make the rollover button to it. So I cut out the image for up and over put it in flash and now when I run it the A and some letters look messed up. How do I fix this. I cant just type the words in as text in flash b/c the spacing wont be the same. Any ideas. Am I converting the jpg wrong in photoshop

attached is teh swf so you can see what im talking about. The words on the left are what they should look like and the word one top ( approach) the A is messed up and so on.

Thanks

http://xquisitegraphix.com/resources/menu.html

Converting To Button = Bad Text
Hi,

I'm trying to create a button with static text on top of it. The text is perfectly clear, perfectly positioned, fff text. However, after I convert the text and a rectangle upon which it sits into a button the text goes a bit fuzzy. Does anyone know why? More importantly, does anyone know how to fix this?


Any help is appreciated. Thank you.

Converting An Animation Into A Button
Hi,
I have created an animation, but now want to change it into a button. i have tried creating a layer then making it to a button symbol, but when I click on it, it doesn't work.

Any ideas what im doing wrong?

Converting Datas Into Button Symbol
hi, is it possible to convert datas loaded in a dynamic text field (from a mysql db for example) into button symbols, so it become possible to add buttons properties to these datas (for example opening a new window with javascript, as it doesn't work if the javascript is implemented in the php file that retrieve the datas)

ps: in flash 5

thx

Converting Datas Into Button Symbol
hi, i'm retrieved datas from a db with a php. I'd like to convert each line of result into a button symbol, to which i could assign the value of the return result. some one may help..? thx

Converting To Button, But Image Distorts
Hey guys, so i text thats as image in flash and I wanna make the rollover button to it. So I cut out the image for up and over put it in flash and now when I run it the A and some letters look messed up. How do I fix this. I cant just type the words in as text in flash b/c the spacing wont be the same. Any ideas. Am I converting the jpg wrong in photoshop

attached is teh swf so you can see what im talking about. The words on the left are what they should look like and the word one top ( approach) the A is messed up and so on.

Thanks

http://xquisitegraphix.com/resources/menu.html

Converting A Flash Button To GrayScale
Hi, I am building a quiz in Flash, the quiz will display a question and a set of three possible answers. Im just wondering if its possible once an incorrect answer has been selected (which is a button) the button can be converted to grayScale???

Any help would be much appreciated.

Ian

Button Functionality Lost In Converting To AS2
I have a series of buttons, grouped within a parent Movie clip. Each individual button has a MC of its own, and the button sits inside that second MC. The event handlers are attached to each button.

Since converting the code to Player 7/AS2 I have lost the button functionalityand can't seem to figure out why.

Any suggestions?

Converting A Loaded Textfield To A Button
Hi,

I am loading tekst into an MC like this, and it works fine:

ActionScript Code:
loadText = new LoadVars();loadText.onLoad = function(success) {if (success) {tekstMC.nieuwstekst.html = true;tekstMC.nieuwstekst.htmlText = this.tekst;tekstMC.nieuwstekst.autoSize = true;}};loadText.load("nieuwstekst.txt");


Now I want to convert the MC to a button, an I tried this:

ActionScript Code:
loadText = new LoadVars();loadText.onLoad = function(success) {if (success) {button.tekstMC.nieuwstekst.html = true;button.tekstMC.nieuwstekst.htmlText = this.tekst;button.tekstMC.nieuwstekst.autoSize = true;}};loadText.load("nieuwstekst.txt");

But now the text doesn't show anymore.
It also happens when I directly convert the textfield to a button.

I wonder if it is possible to convert it to a button, still showing the text?
I really wouldn't want to make seperate buttons.

Thank you very much again,

Jerryj

Problem When Converting Image To Button
Hi
I have the following problem:
When I import a jpg or bmp image and then convert it to a button symbol, the image is stretched a tiny bit, which adds some ugly notches to the image.
It's not visible until I test or export the movie.
It's not all images which act this way.
Also it's only visible when the desktop is set to display less than 32 bit colours (no problems in 32 bit!)
I've accessed my movie from other PCs, but the problem is exactly the same: Nothces in 24/16 bit, no problems in 32 bit.
I hope someone can help me.
Thanks
Jesper

Converting HTML Code To A Button In Flash
Can somebody help me out with a button in Flash?
I have created an account with PayPal. They provided me with the HTML code to copy to my website however I would like to code a button in Flash rather than HTML.
This has been killing me to figure out.

How do I convert the following HTML code to a button in Flash?

<FORM action=https://www.paypal.com/cgi-bin/webscr method=post><INPUT type=hidden value=_xclick name=cmd> <INPUT type=hidden value=business@business.com name=business> <INPUT type=hidden value="Test" name=item_name> <INPUT type=hidden value=10.00name=amount> <INPUT type=hidden value=1 name=no_note> <INPUT type=hidden value=USD name=currency_code> <INPUT type=image alt="Make payments with PayPal - it's fast, free and secure!" src="https://www.paypal.com/en_US/i/btn/x-click-but01.gif" border=0 name=submit> </FORM>

Converting HTML Code To A Button In Flash
Can somebody help me out with a button in Flash?
I have created an account with PayPal. They provided me with the HTML code to copy to my website however I would like to code a button in Flash rather than HTML.
This has been killing me to figure out.

How do I convert the following HTML code to a button in Flash?

<FORM action=https://www.paypal.com/cgi-bin/webscr method=post><INPUT type=hidden value=_xclick name=cmd> <INPUT type=hidden value=business@business.com name=business> <INPUT type=hidden value="Test" name=item_name> <INPUT type=hidden value=10.00name=amount> <INPUT type=hidden value=1 name=no_note> <INPUT type=hidden value=USD name=currency_code> <INPUT type=image alt="Make payments with PayPal - it's fast, free and secure!" src="https://www.paypal.com/en_US/i/btn/x-click-but01.gif" border=0 name=submit> </FORM>

Converting Html Code To Action Script For Paypal Button
Ok I found out the way to put my code in AS...

arw_go_mc.onRelease = function ()
{
var paypal_lv = new LoadVars();
paypal_lv.cmd = "_xclick";
paypal_lv.business = "Business";
paypal_lv.item_name = "Item";
paypal_lv.amount = "Amount";
paypal_lv.no_shipping = "1";
paypal_lv.no_note = "1";
paypal_lv.currency_code = "USD";
paypal_lv.tax = "0"
paypal_lv.bn = "PP-BuyNowBF";
paypal_lv.send("https://www.paypal.com/cgi-bin/webscr", "_blank", "POST");
}



Now I need to figure out how to make it work correctly. I am getting an error...

**Error** Symbol=page_content_scroll copy 2, layer=Layer 11, frame=1:Line 11: Statement must appear within on/onClipEvent handler
arw_go_mc.onRelease = function ()

Thanks for looking.

Converting A PDF To A Flash FLA File Without Converting To An Image First?
Basically, I'm building a digital catalogue that runs off a CD and uses a Flash 'page turning component' to display the pages. Certain pages will have links that use Flash's Fscommand call to open Word and Excel documents.

Has anyone got any bright ideas of how to Convert a PDF to a Flash FLA file without converting to an image first?

I know I can open a PDF in Photoshop, save as a PNG or JPG and then import this into Flash, however the quality isn't brilliant. If you use a hi-res image, then you get a hi-res file size...

Currently, the best way I have found, is to open the PDF in Illustrator, then export it as a SWF. Illustrator converts all text to shapes and you end up with a small SWF, yet great quality when displayed in larger sizes. As I'm currently using a page turning flash component that loads SWF files, I need the quality to be good for the 'Zoom' function.

I've found an Illustrator script that will do the hard work via a 'batch' process, so I can take a 100 page PDF and convert the whole lot to 100 SWF files while I drink tea and 'look busy' and read a magazine, but the problem I have is that I need to add a layer of buttons to several of the SWF files to add a little functionality....

I do have a SWF to FLA decompiler which does a good job, however because Illustrator turns everything into shapes, the decompiler does the same and you end up with thousands of files in the library.... Plus there are a lot of error messages when the file is first loaded...

Many layers are masked, (for some reason without a fill), so if you publish the decompiled file straight away, you just get a blank file. Once you go through and fill the masks needed, it shows when you publish, but this really is a lot of work and I've had a few pages that show when you open the SWF file, but don't show when the SWF is called into the page turning file.... Hmmm....

So in short, I'd like to take a PDF and convert it to a FLA file, add a layer of buttons and publish as a SWF file....

Anyone got any 'Pearls of Wisdom'?

Clere
Clere Print

Is Converting Text To A Button Symbol The Same As Using An Image As A Symbol?
I'm trying to use text as navigation buttons in a flash website instead of image buttons. (I am using Actionscript 2) Any help is appreciated.

-Steven

Converting SWF's...
Does anyone know of a way to convert .swf files to .fla?

Converting...
Hi all,

I'm trying to create some small animations from a .mov file supplied to us. The customer just wants a few scenes taken from it (door opening for 'Come on in' that sort of thing)

What is the best way of doing this? converting the .mov to jpgs and creating small movies...? Any suggestions welcome.

Thanks
Ash

Converting
how do u convert a flash movie into jpg or gif movie format? im trying to make an avatar and it wont let me make it a mov it just makes it a pic

Converting .fla's PC->MAC
im trying to solve a problem for which someone posted a file on these boards that is a solution. when i try and download it, i get a file.php type of deal. when i change the name to something.fla and then go to open it (using view all files) it says 'unexpected file fomat'. i tried using flash typer too but it doesnt help. im on a mac using flash 5.

m

Converting .FLA's From PC -> MAC
im trying to solve a problem for which someone posted a file on these boards that is a solution. when i try and download it, i get a file.php type of deal. when i change the name to something.fla and then go to open it (using view all files) it says 'unexpected file fomat'. i tried using flash typer too but it doesnt help. im on a mac using flash 5. any mac users out there experience this.

its really two issues: one, how to get a file to download off these boards intact

and two: (and ive had this before with no solution) trying to open PC Flash files with a Mac.

please. any tips appreciated this is really holding me back .......!!!!!!

m

Converting
could anybody convert this matlab script into actionscript
im only interested in converting kp to Q




% function to convert a given value of value of Q to Kp or vice versa
%
% function out=q_to_kp(in,index)
%
% Inputs:
%
% in: scalar or vector value of either Q or Kp
% index: String that determines whether in is Q or Kp i.e.
% index="q' or index="kp"
%
% This function uses the simple formula for converting between Q and
% Kp indices. By varying the input string the formula will work backwards
% such that Kp is calculated by Q.

function out=q_to_kp(in, index)

out=repmat(nan,size(in)); % pre-allocate output file
% check the string to see which inex is the input

if strcmp(index,'q'); % compare strings for Q input
for n=1:length(in);
if in(n)==1, out(n)=0; % if Q=1 set Kp to zero
elseif in(n)<0; % test for a negative input and display error
disp('error: Q index cannot be negative!');
out(n)=nan;
else out(n)=in(n)-2; % for any other value of Q get appropriate
Kp
end
end

elseif strcmp(index,'kp'); % compare strings for Kp input
for n=1:length(in);
if in(==0, out=1; % if Kp is zero set Q=1
elseif in(<0; % test for negative input and display error
disp('error: Kp index cannot be negative!');
out(n)=nan; % substitute NaN for the negative values
else out(n)=in(n)+2; % for any other value of Kp get appropriate Q
end
end
else % in case of other string inputs display error
disp('error: string input must be "q" or "kp"');
return;
end
the smiley faces are colons in brackets

Converting An Avi To An Swf
How do I go about converting an avi file to an swf?

Converting Swf's To .fla's
is it possible to convert a swf file back to a fla file ???

any software that does this ?

Converting Swf To Fla
Is it true that there are programs that can take an swf and convert it back to Fla? Are there no protections against this?

Converting Swf Into Avi
Hello dears

I want to convert swf file into avi format. can any body suggest me how to do this.I shall be very thankful to whom, who will tell that

Converting A .SWF Into A .FLA
where do i start? i wish to create a website, but i dont no, yea sure all the books say get a pen and paper blah blah. but really i need some inspiration.

AS Value Converting?
Is there any way actionscript can be used to add zero's before a digit? Hard to explain, but here are some examples.

2 -> 0002
53 -> 0053
734 -> 0734
5346 -> 5346

Converting
I'm so sorry, but I don't know where exacly this would go.

For posting a movie, how do I convert folders to .zip files? I'm trying to post something, but it's not in that format. So sorry about the place I posted this, I'm new here. There's the file.....wait, where is it?
Can this be moves to the correct place?

Converting From AS1 To AS2
Evening peeps

A couple of weeks ago i got FlashMX 2004. One of the first things that intrested me about it was the new option to add images to dynamic text fileds This would be a big plus for me and my site .
I thought it would be as simple as exporting my movie with player 7 and AS 2. when i run the site it throw up all sorts of problems. is ther conflicts with AS1 and AS2?

Cheers
Paul

P.S
Would love to get those smilies working in my forum

Converting
I lost one of my .fla files but I still have the .swf file. What I need to do is turn that .swf into a .html. Is there any way to do this?

Converting .asp To Cgi
I found a flash contact form that I plan on using on my new site but my host doesn't support .asp files which are used by this flash form.

I was wondering if there's any way to convert the .asp file into cgi which is supported by my host.

here's the contact.asp script....

<% @language="VBSCRIPT" %>

<%

Dim myMail, myBody

myBody = "Name: "& request.form("name") & vbcrlf
myBody = myBody & "Email: "& request.form("email") & vbcrlf
myBody = myBody & "Message: "& vbcrlf & request.form("message")

Set myMail = CreateObject("CDONTS.NewMail")

myMail.BodyFormat=1
myMail.MailFormat=1
myMail.From=request.form("email")
myMail.To="mail@mail.com.com"
myMail.Subject="Mail from Web"
myMail.Body=myBody
myMail.Send

set myMail=nothing

%>

And here's the flash commands on the 'submit' button in flash...

on (release) {
if (!name.length) {
name = "PLEASE ENTER A NAME";
} else if (!email.length || email.indexOf("@") == -1 || email.indexOf(".") == -1) {
email = "PLEASE ENTER A VALID EMAIL";
} else if (!message.length) {
message = "PLEASE INSERT A MESSAGE";
} else {
loadVariablesNum("contact.asp", 0, "POST");
gotoAndStop("thank you");
}
}


...Any help would be greatly appreciated!

Converting To .gif?
How do u convert .swi files to .gif files?

Converting Swf To A Fla.
I need to change one of my old flash movies, but I don't have the original fla. I do have the swf. Is there a way to convert it back to a fla, or am I redoing it from scratch?

Thanks.

Converting An Swf To A Jpg?
hey there.

i have a project underway where the user can design a custom postcard via some simple Flash interactivity. Is there a way to either:

a) have the option to save and send the iamge with a personalized greeting on it to an email address?

or if that's a little too much for much

b) have a button that saves it out as a jpg?

Love to know! big help if you can give me some direction.

thanks!

Stevie Spin

Help Converting AS 1 To 2
I need some help converting an AS 1 file to AS 2. It's a preloader script that I got from a tutorial here at FK. I've never tried converting AS 1 to 2 before and after a little bit of trial I found it's a little more difficult than expected. I would appreciate anyone's help on this. I've included my original AS code and not my screwed up attempt. Thanks everyone for any advice or help.

code:
onClipEvent(load) {
_root.stop();
dO = 3.6;
r = 90;
function addslice(O) {
x1 = r*Math.sin(O*Math.PI/180);
x2 = r*Math.sin((O+dO)*Math.PI/180);
y1 = r*Math.cos((O)*Math.PI/180);
y2 = r*Math.cos((O+dO)*Math.PI/180);
with (_root.mask) {
moveTo(0, 0);
beginFill(0x000088);
lineTo(x1, y1);
lineTo(x2, y2);
endFill();
}
}
_root.createEmptyMovieClip("mask", 0);
this.setMask(_root.mask);
_root.mask._yscale = -100;
_root.mask._x = this._x;
_root.mask._y = this._y;
oldLoaded = 0;
}

onClipEvent(enterFrame) {
loaded = Math.ceil(_root.getBytesLoaded()/_root.getBytesTotal()*100);
for (i=oldLoaded; i<loaded; i++) {
addSlice(dO*i);
}
if(loaded == 100) {
_root.mask._alpha = 0;
delete this.onEnterFrame;
_root.gotoAndStop(2);
}
}

Converting AS2 To AS1
excuse me, everyone.. i hope you guys can help me out on something...

how can i convert an AS2 class into AS1?

i believe i will be receiving some sort of code from a friend, and he she said it would be in AS2.. and i am only on flash mx, so i would be needing help on this issue..

thanks, everyone, for any help you can give.

Converting To Gif
Hi folks

Can we import or open Swish Max movie into Flash MX and convert it to GIF and save it, or is it possible that we can open the swish exe file in Flash. I want to convert a swish Max movie into GIF. Is there any solution.

Thanks

Feroze

Converting .swf To .fla
My computer crashed and I lost my original file. I have the .swf file on hand on my web server. I read on here once that there was a program that will convert the files over. Anyone know of any? Also, is it very reliable. I can probably just redo the entire thing but that will require setting up all the images and stuff again and I want it to be an exact reprint. I can't afford to have anything different on the new copy cause it is for a client website that is already in use. Basically there was a change in one of the links that I need to fix.

Converting *.swf
Hi Folks

Anyone know of an app that can convert .swf into mpeg or any other suitable movie format?

Thanks
Dave

Converting To FLV? How, And Is It Necessary?...
How do you (or is there a good/easy tutorial to) convert movie files (.MOV, .WMA, etc) to .FLV format (I'm using Flash MX 2004)? Do I need to buy an outside software package like Sorenson Squeeze or FLIX or something?....

Also, is it necessary to even convert them if what I'm going to be doing is playing them online (based off of the tutorials at gotoandlearn.com )? What's the benefits/advantages to converting them to .FLVs, versus just calling the .MOV file? I'd prefer the media to stream, cuz the movies are like 3-4 minutes long each that I will be doing...

Thanks!...

Converting Swf
i've been trying to convert an swf file to any other sort of video format but i have been unsuccesful. i tried exporting in flash to avi but it only got info on my main timeline and most of my content is in movieclips. i then tried to export to quicktime, this seemed to be actually exporting all my content but at the end i got an error saying that i didn't have the proper handler. i have quicktime pro 6.5 on my machine and that should be able to handle the flash. i get the same message when trying to publish to quicktime. since then i have tried some third party converters like swf2avi and they don't work. does anyone have any suggestions? thanks.

jeremy boyd

Converting A SWF/FLA To A Gif
Ok, I have a flash animation consisting of about 140 frames, the animation has been compressed on to one layer into one frame (so you cant preview it unless you go control, test movie) now, I'm trying to save it as a gif file but for some odd reason, when I open the file up, it just shows the first frame and nothing else happens. If someone could please help me on this, it would be greatly appreciated.

My msn is erik_n@telus.net (just so if someone wants to just do it for me instead of tell me what to do)

Erik

Converting AS1 To AS2
hi could some one tell me what the differences that is between the two samples other then that one is AS1 and the other is AS2? keep in mined I'm working with a xml file.



Code:
AS1:

if (blank == blank) {
aPath = new Array();
aPath.push(audioTracks[i].attributes.path);
}



Code:
AS2:

if (blank == blank) {
var aPath:Array = new Array();
aPath.push(audioTracks[i].attributes.path);
}


why is this two diffrent arrays? though is if do it like this it works


Code:
AS2:

var aPath:Array = new Array();
if (blank == blank) {
aPath.push(audioTracks[i].attributes.path);
}


I'm trying to convert a file from AS1 to AS2 and I dont know much about AS2.
Yet I'm learning it as I go.

Copyright © 2005-08 www.BigResource.com, All rights reserved