To Change A $ To A British Pound ?
Hello on the site im trying to finish (one that is for a UK restaurant) i have a $ sign instead of a British pound sign. where can i find a British pound sign and place it in my movie ? thanks
FlashKit > Flash Help > Flash Newbies
Posted on: 09-06-2005, 02:07 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
British Pound Sign(£) And SIFR
I cannot produce £ signs with sIFR.
It has nothing to do with the fonts im using. When i type a £ sign into the default sIFR .fla file and output a .swf the sIFR breaks in my browser.
Can anyone help?
A Pound A Time
Anyone want to pay me everytime I forget to put a stop action at the end of a **!!**!* animation?
Sound As A Pound?
I am working on a project at the moment which requires external swf files to be imported into the swf file. Some of the loaded movies have AVI movies embedded in them.
This is my question, to keep file size down I am importing the moving image into Flash MX at 50% physical size and between 80-90% quality - the size difference for 100% seems massive - so I'm embedding without the audio and bringing the audio in seperately (aiff files then converting to mp3 at best quality and highest kbps) then streaming the audio to match the motion timeline, this should ensure the maximum sound quality at the minimum file size, is this right? is there a better way of doing this or a better quality format other than aiff?
It seems to be okay, but I could do with some sort of confirmation that I am doing it the easiest way.
Am I?
Sterling Pound Sign Anyone?
I have a dynamic text box that displayes cash Ive added the following code but the £ signs not showing up I tried a $ sign and that worked fine! Is there anything special I need to add to get £ to display?
// display cash with £
function showCash() {
cashDisplay = "£"+cash;
}
Flash, XML And The Pound Sign
Hi All,
I'm not really any good at Flash, more a PHP and HTML man. However, to launch my venture into photography I thought I'd buy a flash website template which allowed you to edit it via a XML file (dynamicfactory.com).
This works great but I've discovered a couple of bugs in it and have no idea how to fix them. Technical support from the guys who sold me the site is pretty poor and of course they haven't bothered to comment anything, so I'm looking for some help
(waits for small barrage of potential insults to fade away for not learning flash)
Basically, I want to display a pound sign in the text. So I goto the config.xml file and enter the £ sign and 40 next to it. Doesn't work, nothing displayed on screen except for 40. Then I try entering the html code & pound ; (without spaces) and that doesn't work I get & pound ; 40 on screen (minus spaces). So I try & # 163 ; (again no spaces) and I get just 40 appear on screen.
I've been through the website and the only suggestion I can find is change the char set to iso instead of utf but to no avail. The response I got back from their support was
Hello Phil,
To insert special characters in flash :
You need to open the FLA file.
Open the properties window.
Click ONCE on the text you want to change.
Click "characters" on property window.
Then choose "allow all characters option" & place all the needed characters (like éàù....) in the "Incluse these characters" field.
Then it will be working fine )
which confused me as the text I am editing is in the config.xml file ready to be loaded and parsed by flash. So I assume that somewhere in flash there must be an object or container which allows character sets or something which I need to edit?
I know its a long shot but can anyone help me. I have flash cs3 and have gone through the various movie objects but can't see a definition of a charset anywhere?
Thanks
Phil
Pound Sign (£) Is Not Displayed
Hi,
This is INSANE!
I think I have embedded fonts in my component but not the whole character set.
I'm using a TextArea (!).
It wont display a £ sign. But if I place on the stage a static text field that uses the same font, and enter a £ sign into it - then the TextArea does display the £ sign.
BUT ... if I place a dynamic text field on the stage, enter a £ sign and then embed the whole character set, the £ sign is NOT displayed anywhere?! Not even in the dynamic text field. WTF?!
I've embedded the font in the component like this:
Code:
import mx.styles.CSSStyleDeclaration;
//-----------------------------------------------------------------
// Global Styles
//-----------------------------------------------------------------
_global.style.setStyle("fontSize", "8");
_global.style.setStyle("color", 0x000000);
_global.style.setStyle("embedFonts", true);
_global.style.setStyle("fontFamily", "FFF Business");
_global.style.setStyle("borderStyle", "none");
//-----------------------------------------------------------------
// TextArea Styles
//-----------------------------------------------------------------
if (_global.styles.TextArea == undefined)
{
_global.styles.TextArea = new CSSStyleDeclaration();
}
_global.styles.TextArea.setStyle("backgroundColor", 0xFFFFFF);
_global.styles.TextArea.setStyle("borderStyle", "none");
_global.styles.TextArea.setStyle("embedFonts", true);
_global.styles.TextArea.setStyle("fontFamily", "FFF Business");
Any ideas? Seems a bit stupid if I have to place a static text box on the stage just to ensure that the font is embedded...
Thanks,
Pound Sign In A Text Field
Hi there,
I would like to set a text variable to have a pound (£) sign in it.
It used to work with an earlier player but now nothing appears. I tried using unicode number 'u00a3'. Strangely enough, it you do 'trace("u00a3");' you get a pound sign trace out but if you do 'str = " u00a3 "' and assign str to a text field nothing comes out.
Any help would be appreciated.
C.
Displaying The Pound Currency Sign
Hi, I am working on a Flash site for a client based in the UK. Its content relies heavily on a backend MySQL database. A php script parses the data, converts it to XML, then passes that on to flash then displays it. There is a problem, however, when it comes to displaying the pound currency (£). The dollar sign ($) shows up but not the former. Can anyone guess where the problem is? I have spent many days on this without any success. Any help is appreciated. Thank you!
Pound (£) Signs Loading From .txt Files
Hi,
I'm loading in a simple .txt file to enable dynamic updating of content on a page, and all checks out fine, apart from the fact that pound signs (£) don't show up. All other characters do. I'm using ampersands (&) to separate my variables, so the code looks like this:
&textline1=The price is £30.00&
Right now all I see in Flash is: The price is 30.00
Is there a special code I can use to make Flash recognise it? Using normal HTML code as in '£' is not an option at the moment as this would make Flash think the variable line had ended.
Anyone got any ideas?
Thanks!
Luke
Flash Will Not Diplay Pound Sign In Dynamic Text
Hi
Reading in text from a text file and flash seems to refuse to display the pound sign (£). Tried doing the url encode thing (%A3) but his dosent seem to work either. Can anyone shed any light on this?
cheers chris
ComboBox, Select Item On Key Press "B" -> "British Columbia" (flash Cs3)
I have never noticed this before until now, but when i type a letter while the combobox is highlighted nothing happens, i want it to go to the first choice of that letter.
this is the norm for html comboboxes
it would be cool if typing 2 letters quickly took both into the choice.
does anyone know how to make this happen with a flash cs3 combobox?
[F8] Flash Currency Handling Has Error.NumberFormat Error, Is Losing A Dollar / Pound
When I add two numbers together Flash adds them fine. If I use the Locale to format it as currency, Flash will lose a dollar! This only happens on certain combinations of numbers. I've been banging my head off a wall on this. Paste the script below into an empty flash document to recreate the problem.
Anyone with any ideas of how to solve this please help
code: import mx.controls.*;
import mx.format.NumberFormat;
import mx.format.Locale;
import mx.format.locales.Nl;
import mx.format.locales.*;
var iPaid:Number = 0;
// simulate strings from a textinput field
var sValue1:String;
var sValue2:String;
Locale.registerLocale(new En_US());
var fmt:NumberFormat = new NumberFormat(Locale.currentLocale.currencyFormat);
sValue1 = "226.89";
sValue2 = "28525.11";
trace("sValue1: "+sValue1);
trace("sValue2: "+sValue2);
iPaid = Number(sValue1)+Number(sValue2);
trace("iPaid: "+iPaid);
trace("String(): "+String(iPaid));
trace("NumberFormat.format: "+fmt.format(iPaid));
trace("Where's my money!!!");
sValue1 = "226.11";
sValue2 = "28525.89";
trace("sValue1: "+sValue1);
trace("sValue2: "+sValue2);
iPaid = Number(sValue1)+Number(sValue2);
trace("iPaid: "+iPaid);
trace("String(): "+String(iPaid));
trace("NumberFormat.format: "+fmt.format(iPaid));
trace("Any Ideas!!!");
'not Sign' Appearing Before 'pound Sign' Problem
Hi all, please see attached file to see what I mean, but for some reason I am getting a 'not sign' (¬) appearing before my pound (£) sign.
The content comes from XML with CDATA tags and is all loading fine. I tested the files on my local server and they work fine (no ¬ sign), I tested on a live server and it works fine, but when I put it on my clients server I get a ¬ sign appear before every £ sign. So £250 becomes ¬£250.
All other 'special characters' in the text are fine, it just seems to be the £ character causing me problems. I am using HelveticaNeue LT 65 Medium
Does anyone know why this might be? I've embedded all the characters I thought I needed, but could this be down to needing to embed more or something more serious??
How To Change Stacking Of Buttons (or How To Change Play To Pause Button)?
My problem is I want to have one button for play and pause music playing in Flash.
Music starts automaticaly, so Pause button is visible. When user presses Pause button, I want to show him Play button on the top of Pause button.
Shortly: Music is playing = visible Pause button
Music is paused = visible Play button
Is anywhere tutorial or explanation.
THX very much for hints
Jan
Button Change Color On Select, Then Change Back
I have 3 buttons, named but,but2,but3. What I want is if you click a button it changes color to show what page your on. But when you click a different button now that one is highlighted and the original one goes back to the original color. Here's the code.
but3.onPress = function () {
_root.createEmptyMovieClip("container", 1);
loadMovie("banner3.swf", "container");
container._x = 0;
container._y = 0 ;
I figure I have to add some kind of if statement?
}
How To Change The Website Position With Resolution Change
Hello
Well i just finished my 100% flash based website...the problem im having is that when i view it in 800 x 600 resolution it is postioned at the center of IE 6 browser. But when i view it in 1024 x 768 resolution it is positioned at top left hand corner...i want it in center in 1024 x 768 resolution...plzzz help quickly as i finished evrthing n im stuck with this...thnx...
also you can better understand what im saying if you visit: http://www.playersclubrestaurant.com/
their site position changes with resolution change
I Want To Change Button Into MC --> Actions Change Too?
Hi there,
Maybe this is very easy but I am just this NOOB!
OK, problem: I have a button that loads a movie into a contentclip.
This action in the script on a frame on the timeline not the button itself:
but1.onRelease = function() {
_root.box.gotoAndPlay(2);
_root.targetx = _root.but1._x;
window._alpha = 100;
window.widthNew = 390;
window.heightNew = 200;
window.xposNew = 14;
window.yposNew = 120;
loadMovie("aboutus.swf", "window.screen");
};
My desire is the make a more 'moving and actionlike' button (fade in and out and so on). So the button 'area' will be in a MC. How to call that action so the movie gets loaded!?
The whole fla I am using is a resize window tutorial.
Eric
Color Change (heavy Change)
Hey everybody,
i dont know if this is possible, but it sure would be nice! I need to change all the elements in my movie that have the color X and change their color to color Y.
Is it possible to have this in AS? like, if i press one button all the elements that have the color black (graphic, text, background, etc) change their color to yellow?
thanks for any thoughts!!
cheers
How To Change Fps
I want different fps in between 10-50 timeline(fps 5) and different in 50-100 timeline(fps 12). Can you tell me how is it possible.
How To Change
hi all,
i want to change the RGB value of a movie randomly
what action i need to associate to movie
any suggestions......tahnks in advance
How Do I Change....
(Please copy this address and paste it onto your browser, my free web hosting doesn't support hyperlinks.(http://devoted-angels.150m.com/help2.bmp)
Hello, I'm newbie when it comes to ActionScript and I need help. How do I change those functions/actions or whatever in the parentheses? I can't rename it and I don't know how to change it. Any ideas? Thx.
I Don't Know If I Can Change This...
hey guys...i was just wondering. when i make a movie from swish and i upload the file to my webpage, on top it says
"SWiSH Movie - (file name)- http://www.swishzone.com - Microsoft Internet Explorer"
Is there any way I can change this so it doesn't say all the swish stuff?
Thanks!
How Do I Change URL's?
When I download FLA's from this site, anytime I try to change the actionscript (such as URL's) they are faded, and I cant edit them. What is going on?
How Do I Change Fps?
my friend says to make yer fps a little higher if you are going to do a slow tween, how do i do this?
ps i dont talk to him much or i would just ask him then
RGB Change
how does one go about changing the rgb color scheme of a movie....say when a button is pressed different movies change colors....how would i do that?thank you.
Change Many MC At Once
I have a MC named clips, inside it i have 20 more movie clips mc1, mc2, mc3, ......., mc20. Is there a easy way to change mc1 - mc20 with out typing the code for each one (IE _root.clips.mc1._alpha = 20 _root.clips.mc2._alpha = 20 _root.clips.mc3._alpha = 20 ETC.) plus I dont want to put the code on clips I want to change each one of the MC1 MC2 ....
Change LOOKS MX /5 Help
If you got Flash MX and made the looks like FLASH MX , can u change it to look like 5 . When you install it you get to pick, if you pick one , can you still pick the other!??!
Change MC's
How can you change one movie clip into another one?
Here's Some AS....how Do I Change It?
Ok, here's the AS I'm dealing with (comments included)...
/* First thing to do is set the stage size of
this movie at the same size as your
"to be loaded" movie, and re-position the display
elements to your liking.
Also set the same framerate as your movie.
Then replace "sound.swf" in 2 of the lines below,
with the name of your movie.
Last, make sure your present movie is cleared
of any preloader, and most importantly, that it
starts off with a first blank keyframe.
*/
// Hides displayed elements
this.reelmc._visible = false;
this.loadbar._visible = false;
percent_display = "";
//create a new movieclip to load
//the external movie into
this.createEmptyMovieClip("container",10);
//load the external movie into the new movieclip
container.loadMovie("logo2tv.swf");
//check the download status of the external
//movie once every frame
this.onEnterFrame=function(){
//trace the percentage of the movie that has loaded
percent=(this.container.getBytesLoaded()/this.container.getBytesTotal())*100;
if(!isNan(percent)){
// trace(percent+"% loaded");
if (percent == 0) {
percent_display = "";
} else {
percent_display = Math.ceil(percent) + "% LOADED.";
}
this.loadbar._visible = true;
this.loadbar._xscale = percent;
if (percent > 1) {
this.reelmc._visible = true;
}
container.stop();
} else {
// trace("0% loaded");
}
if(percent == 100){
delete this.onEnterFrame;
this.reelmc._visible = false;
percent_display = "";
this.loadbar._visible = false;
loadMovieNum("logo2tv.swf",0);
}
}
stop();
Essentially this AS plays a loading bar, percent loaded, and a MC while an entirely different movie is loaded. When it's done loading, it loads the movie. What I would like to do is change the amount loaded by half, so that it doesn't preload the entire movie. Any help would be greatly appreciated. Thanks in advance.
Change Row?
Sorry for this silly question...But I honestly can´t find any help about changing text row in a textfield...Dynamic that is....
I store the text in a var wich I name my_text
When I change text I write:
my_text = "Bla bla bla" ;
Now what if I want it like
my_text = "Bla bla (new row)(new row) bla" ;
is there any commando like in Java...Like the /n ?
How Do I Change...
I found this navigation template, and I like the style, but wanna change a few things (background, navigation buttons, information)... How do I do this?
http://www.flashkit.com/movies/Inter...6224/index.php
thanks!
Help With On (change)
I have 2 movie clips right on top of each other. One of them already had a alpha of 0. I also have a combo box which has the name of the 2 movies. Upon changing the selection of the combo box, I would like to have one of the movie clips to have a alpha of 0 and the other way around when the other selection is selected.
I currently have the following script on my combo box:
code:
on (change) {
targetMC = _root.navigationD.getSelectedItem().data;
_root.targetMC._alpha = 0;
}
Unfortunately this doesn't work. How do you you write the AS to have the targetMC be the value that's been selected? I have used something similar to this but for loadmovie(targetMC) and it worked OK but it didn't work for this situation. If I remove the targetMC and put the movie clips name directly, it works fine so I know its a problem with the value not coming in properly. Can someone please help?
thanks in advance,
kei
How To Change This?
Hello
i have this code
PHP Code:
_root.speed = 5;
ic = 0;
xpos = +100;
xpos2 = -100;
addTweeningMC = function () {
if (ic<=6) {
b = _root.attachMovie("bild", "bild"+ic, 90-ic, {_x:xpos2, _y:0, zielX:ic/100});
m = b.attachMovie('maske', 'maske'+ic, 80-ic, {_x:xpos, _y:0});
b.setMask(m);
b.onEnterFrame = function() {
if (Math.round(this._x-this.zielX) != 0) {
this._x += (this.zielX-this._x)/_root.speed;
} else {
this._x = this.zielX;
delete this.onEnterFrame;
}
};
ic++;
xpos += 100;
xpos2 -= 100;
} else {
clearInterval(t);
}
};
t = setInterval(addTweeningMC, 200);
which represents a masked slide-in effect of a picture(mc) from the left to the right.
Now I'd like to have this effect to slide-in from the bottom to the top (or viceversa), could anyone help me with that please?
thank you
enya
Why Do They Change It?
ok, i got flash 2004, i also got a wacom tablet. 6x8 regular nothing special... worked fine with MX but now with 2004, i cant find the f***** pressure button... and the help is really useful: you can activate pressure in flash.. << HOW?!!?!?!?
plz tell me before i shoot someone!
Can You Change The Bg Of A Pop-up?
hi
i am making an xml photo gallery. I can open the images into a new window by passing the following properties to some actionscript;
does anyone know how to change the bg of the pop-up. my movie bg is a colour but the pop bg is white. I have tried adding bgcolor = 'cc0000' but it doesn't seem to work.
any tips would be great. thanks.
on (release) {
address = "http://www.test.co.uk/test/images";
target_winName = "Gallery";
width = 496;
height = 645;
toolbar = 0;
location = 0;
directories = 0;
status = 0;
menubar = 0;
scrollbars = 0;
resizable = 0;
openWinCentre(address, target_winName, width, height, toolbar, location, directories, status, menubar, scrollbars, resizable);
}
Change From 6 To 8
how can I change this script so it will work in version 8 ?
Thanks
// ***Stage aligned top left
Stage.align = "TL";
// *** Stop the stage from scaling with the browser window.
Stage.scaleMode = "noScale";
stop ();
// initiate postitions and scaling values for objects
bottomClip._x = Stage.width/2;
bottomClip._y = Stage.height-distanceY;
loaderClip._y = Stage.height/2;
loaderClip._x = Stage.width/2;
// end initial position setting
//create a listner that checks to see if the browser window is resized
sizeListener = new Object();
sizeListener.onResize = function() {
// change movieclip properties when the window is resized.
bottomClip._y = Stage.height-distanceY;
bottomClip._x = Stage.width/2;
loaderClip._y = Stage.height/2;
loaderClip._x = Stage.width/2;
//*note* 200 is the width of the left column
};
Stage.addListener(sizeListener);
How To Change To...
Hi...
Working on a project wich has to be online by december 1st. i took the liberty to copy/past some actionscript example from the flash samples dit on my workstation... (it works great.. see at: http://www.476produtcties.nl/PG2007/Index.asp (p.s. external links dont work)
Since the script im using is ment to generate a XML menu with external URL links i need to change it.
What i want is this.
1. use textfiles for the content which need to be loaded when a user klicks te menubutton accordingly. (the text files and xml are not the problem here)
2. make a animated contentfield which fades into visability and then(after fading) loads/shows the text.
3. realise 1 and 2 by using/changing the same script i use for generating the menu.
Since my entire project will be to large for FK upload i will send it by email, on request.
[F8] Can Someone Look At It And Tell Me What To Change?
This is what I got so far with my script. I needed to scale up or down the robot and briefcase of 5%, but I can seem first to make the "minus" button work to bring down the robot and the briefcase. But as I scaled up both of them I notice that I can't switch to the down_btn either. What should I do? The "My Briefcase" is disappearing wen I changed the color of the suitcase: what kind of code do I need?
And finally why does the robot doesn't stop at the edge of the screen while going down, left, and right?
var SPEED:Number = 5;
up_btn.onPress = function() {
target.onEnterFrame = function() {
var upWall:Number = 0;
if (target._y>upWall) {
target._y -= SPEED;
} else {
target._y = upWall;
}
};
};
remote_mc.up_btn.onRelease = function() {
delete target.onEnterFrame;
};
down_btn.onPress = function() {
target.onEnterFrame = function() {
var downWall:Number = Stage.height-target._height;
if (target._y<downWall) {
target._y += SPEED;
} else {
target._y = downWall;
}
};
};
remote_mc.down_btn.onRelease = function() {
delete target.onEnterFrame;
};
right_btn.onPress = function() {
target.onEnterFrame = function() {
var rightWall:Number = Stage.width-target._width;
if (target._x<rightWall) {
target._x += SPEED;
} else {
target._x = rightWall;
}
};
};
remote_mc.right_btn.onRelease = function() {
delete target.onEnterFrame;
};
left_btn.onPress = function() {
target.onEnterFrame = function() {
var leftWall:Number = 0;
if (target._x>leftWall) {
target._x -= SPEED;
} else {
target._x = leftWall;
}
};
};
remote_mc.left_btn.onRelease = function() {
delete target.onEnterFrame;
};
function moveDown():Void {
var bottomWall:Number = Stage.height-target._height;
if (target._y<bottomWall) {
target._y += SPEED;
} else {
target._y = bottomWall;
}
}
function moveUp():Void {
var topWall:Number = 0;
if (target._y>topWall) {
target._y -= SPEED;
} else {
target._y = topWall;
}
}
brown_btn.onRelease = function() {
var briefcaseColor:Color = new Color(briefcase_mc);
briefcaseColor.setRGB(0x996633);
};
burgundy_btn.onRelease = function() {
var briefcaseColor:Color = new Color(briefcase_mc);
briefcaseColor.setRGB(0x993333);
};
plus_btn.onPress = function() {
target.onEnterFrame = function() {
briefcase_mc.onEnterFrame = function() {
var upWall:Number = 0;
if (target._y>upWall) {
target._y -= SPEED;
} else {
target._y = upWall;
}
if (briefcase_mc._y>upWall) {
briefcase_mc._y -= SPEED;
} else {
briefcase_mc._y = upWall;
}
};
};
};
minus_btn.onPress = function() {
briefcase_mc.onEnterFrame = function() {
target.onEnterFrame = function() {
var downWall:Number = 0;
if (briefcase_mc._y<downWall) {
briefcase_mc._y += SPEED;
} else {
briefcase_mc._y = downWall;
}
if (target._y<downWall) {
target._y += SPEED;
} else {
target._y = downWall;
}
};
};
Want To Change From .txt To XML
Hi,
I currently have a flash file that reads content from a txt file and displays it in the movie when it is published. the code on the fla on frame one is:
HTML Code:
loadVariables("messages.txt","_level0")
conversation_counter = 0
i have the following in the txt file:
PHP Code:
conversations_num=5&customer_name_1=Veronica:&customer_name_2=Scott:&customer_name_3=Glenn:&customer_name_4=Bra
ndon:&customer_name_5=Paul:&operator_name=Operator:&operator_1_message_1=Hello! How can I assist you
today?&customer_1_message_1=Do you come here often?&operator_1_message_2=Yes, I love
you.&operator_2_message_1=Hello, Scott! Can I help you?&customer_2_message_1=Do I need 3D MAX to edit 3D style
templates?&operator_2_message_2=No, in fact. All 3-D models are ready to use.&operator_3_message_1=Do you need
some help?&customer_3_message_1=Yes. Can you pls re-send me the download link?&operator_3_message_2=Sure. What
is your order ID please?&operator_4_message_1=Welcome to our Help Chat! Can I help you?&customer_4_message_1=I
need to remove watermark from my logotype...&operator_4_message_2=OK, let me help. First, open your Adobe
Photoshop.&operator_5_message_1=Hello! How can I assist you today?&customer_5_message_1=Do you offer PHP-Nuke
templates?&operator_5_message_2=Yes, of course. Let me push you to this page.
what i want to do is change over from using a txt file to using an xml file.
the fla is attached.
thanks,
galaberg
How Do I Change The FPS?
Ok, I am not that good with flash but i know all the basic tools and been using it for several months.
I am creating this slide that requires me to increase/decrease the fps several times. I have set the document interval at 12 (default) and need to change it to 1 on i.e frames 1 to 180. How do i do this?
I GREATLY appreciate any help! :)
If Var Change Then... ?
I'm trying to figure out how to set up a program so that if a particular variable is being edited (such as hp loss to a spaceship icon) an event (such as flashing lights) occurs. Since I've got a bunch of different ways of changing the variable, it would take hundreds if not thousands of lines of code to insert specifics within each hitTest. Instead, I was hoping to blanket the whole by saying something like
if hp (goes down) then (flashy lights) else (no flashy lights);
but I've never actually seen a command that pings when a variable changes indiscriminately. Does such code exist?
Can You Change The Bg Of A Pop-up?
hi
i am making an xml photo gallery. I can open the images into a new window by passing the following properties to some actionscript;
does anyone know how to change the bg of the pop-up. my movie bg is a colour but the pop bg is white. I have tried adding bgcolor = 'cc0000' but it doesn't seem to work.
any tips would be great. thanks.
on (release) {
address = "http://www.test.co.uk/test/images";
target_winName = "Gallery";
width = 496;
height = 645;
toolbar = 0;
location = 0;
directories = 0;
status = 0;
menubar = 0;
scrollbars = 0;
resizable = 0;
openWinCentre(address, target_winName, width, height, toolbar, location, directories, status, menubar, scrollbars, resizable);
}
How To Change E To L?
Hi,
I am new to Flash MX and I don't know how to write script in flash or anything like that.
But I was wondering the 'E' that can be found here =>http://www.kirupa.com/lab/ein3d.htm.
Does anyone know how I could go about changing that to a 'L'?
If someone could do this or tell me how to do it, I will be very grateful.
Thanx,
Rock_star
Var Change In AS3
I'm a little confused on some of the changes in AS3, namely changing parts of a variable.
For instance, I have a line of code that I don't think will be kosher in AS3:
Code:
static var ls_selectedEdge = {color:0xFFCF4C, thick:3, alpha:100};
I'm not sure how I'd change that to be AS3 compatible.
FLA For Change
Here it is....I am loading Swf in _root.OnEnterFrame Function where i am gettin effects....And on my_mc[ii].onRelease = function() i am calling url...and here i am not getting url....i have tried many ways .....but am not gettin success....
--------------------------********************-----------------------
stop();
my_loader._visible = false;
var XMLString:XML = new XML();
var myLink:Array= new Array();
var depth;
import mx.transitions.Tween;
import mx.transitions.easing.*;
import flash.filters.GlowFilter;
var i:Number = 0;
var start_from:Number = 0;
var current:Number = 0;
XMLString.parseXML("<NewDataSet><Table><ThumbID>1</ThumbID><filename>images/a/abc.swf</filename><label>abc</label><url>---URL---</url></Table><Table><ThumbID>2</ThumbID><filename>images/a/abc.swf</filename><label>etery</label><url>---URL---</url></Table><Table><ThumbID>3</ThumbID><filename>images/a/ipm_web.swf</filename><label>ipm_web</label><url>---URL---</url></Table><Table><ThumbID>4</ThumbID><filename>images/a/abc.swf</filename><label>sgfs</label><url>---URL---</url></Table><Table><ThumbID>5</ThumbID><filename>images/a/abc.swf</filename><label>dsdgg</label><url>---URL---</url></Table><Table><ThumbID>6</ThumbID><filename>images/a/abc.swf</filename><label>gdf</label><url>---URL---</url></Table></NewDataSet>");
numimages = XMLString.firstChild.childNodes.length;
test_right = -(Math.round(numimages*150));
spacing = 100;
scroll_mc._alpha = 0;
scroll_mc.but_right.enabled = false;
scroll_mc.but_left.enabled = false;
my_mc.setMask(Mask_area);
txpos=-250;
typos=40;
xpos = 70;
ypos = 50;
j=0;
_root.onEnterFrame= function(){
for(var i=0; i<=numimages;i++)
{
my_mc[ii].onRelease = function()
{
getURL(myLink[this._name],"_blank");
}
my_mc.createEmptyMovieClip(i,i);
my_mc[i].loadMovie(XMLString.firstChild.childNodes[i].childNodes[1].firstChild.nodeValue);
my_mc[i]._x=xpos;
my_mc[i]._y=ypos;
my_mc[i]._name=i;
depth = my_mc[i].getNextHighestDepth();
myMovie[i]= i;
myLink[i]=XMLString.firstChild.childNodes[i].childNodes[3].firstChild.nodeValue;
ypos = ypos+175;
j++;
delete this.onEnterFrame;
if (xpos>= 1400|| j > 1) {
ypos = 50;
xpos = xpos+335;
j=0;
}
if (xpos>100) {
scroll_mc._alpha = 50;
scroll_mc.but_right.enabled = true;
}
scroll_mc.but_left.onRelease = function() {
if (my_mc._x<60) {
scroll_mc.but_right.enabled = true;
scroll_mc.but_left.enabled = false;
my_mc._x += 557;
my_mc._alpha = 2;
my_mc.onEnterFrame = fadeIn;
new Tween(my_mc,fadeOut,"_x", Strong.easeOut, -557-275, -275 , 24, false);
//new Tween(my_mc, fadeOut,"_y", Strong.easeOut, -500-200 , -200 , 6, true);
}
};
scroll_mc.but_right.onRelease = function() {
if (my_mc._x>test_right) {
scroll_mc.but_right.enabled = false;
scroll_mc.but_left.enabled = true;
my_mc._x -= 557;
my_mc._alpha = 2;
my_mc.onEnterFrame = fadeIn;
new Tween(my_mc,fadeOut,"_x", Strong.easeOut, -275, -557-275, 24, false);
//new Tween(my_mc, fadeOut , "_y", Strong.easeOut, 500-200,-200 , 6, true);
}
};
}
}
fadeAmount = 3;
function fadeIn() {
this._alpha += fadeAmount;
if (this._alpha>=100) {
this._alpha = 100;
this.onEnterFrame = null;
}
}
function fadeOut() {
this._alpha -= fadeAmount;
if (this._alpha<=100) {
this._alpha = 50;
this.onEnterFrame = null;
}
}
FLA For Change
Yes i used trace and i am gettin the values of url :-
"trace(XMLString.firstChild.childNodes[i].childNodes[3].firstChild.nodeValue);"
I am not getting Url on Release of particular swf....
my_mc[ii].onRelease = function()
{
getURL(myLink[this._name],"_blank");
}
where mylink is array where i am storing all URl from XMLString and i am tracing name of each swf loaded using "this._name" of swf...
Now onRelease function executes and i m not able to get the link...
|