Text Editor ReplaceSel - An Expert Needed
I have created a basic text editor in FlashMX that will format text (Bold, Italic, Align, Font, Color) within an input textfield. I have also added some buttons that will replace selected text with unicode characters.
example:
on (release) {
_root.userinput.replaceSel("u0100");
}
This inserts a macron over a capital A (no problems there). But, if nothing is selected in the textfield the button will insert the character at the beginning of the textfield. My question is: How can I get the character to be inserted at the end of any text that has been typed into the textfield?
FlashKit > Flash Help > Flash ActionScript
Posted on: 01-09-2003, 11:50 PM
View Complete Forum Thread with Replies
Sponsored Links:
BASIC Text Editor NEEDED
hey gang - Im in a real pickle. I need a very basic text editor for a project.
All it has to do:
allow basic formatting - <b>, <i>, <u> and hyperlink - <a href...
output the text from the text field as html formatted (i just want to save the text into my dbase and render it back out through flash again)
i have josh duras component, but i really need something very simple.
View Replies !
View Related
Create Text Editor Tutorial Needed
Hello,
I have searched google and quite a few flash forums including here. I am looking to build a custom text editor in flash but I have no idea how to do this. I am looking for Action Script 3 AND AS2 based tutorials on how to create a text processor completely in flash.
I have found some FLA's that people have created but unfortunatly they are NOT documented and I do not really understand what all they are doing and quite a few of the features I have no desire to duplicate in mine.
I need a in depth tutorial that fully explains the process and the code. I am familiar with AS and can code ok but it has been a while and I need a really solid tutorial that makes the process clear.
Thank you.
View Replies !
View Related
Text.replaceSel Help
Basically using dunamic text object howver ehat I want to know is how to you specify the index tostart replacing the text?
heres what flash help says
TextField.replaceSel(text)
Method; replaces the current selection with the contents of the text parameter. The text is inserted at the position of the current selection, using the current default character format and default paragraph format. The text is not treated as HTML, even if the text field is an HTML text field.
You can use the replaceSel method to insert and delete text without disrupting the character and paragraph formatting of the rest of the text.
Basiaclly how to you specify where you want replacing or is this command only to replace the whole text object can you not specify a point to overwrite and leave the rest unchanged?
View Replies !
View Related
[AS1] Using ReplaceSel() To Delete Text
hello, everyone.
i'm having a rather peculiar problem. i've been working on a script to format text brought in from an xml file, and because it's an xml file, i've been using tags much like the ultracode used in these forums, using brackets instead of carets to designate formatting tags.
because the client will later be editing this text in flash and regenerating the xml used to display the text (i guess this is just a kind of kludged text editor), i'm staying away from using html formatting for the text and instead going with straight actionscropt formatting for the text.
okay, now that i've got the "why are you making it so hard on yourself" out of the way, here's my dilemma: i'm using the bold, italic, etc., tags to designate where text formatting begins and ends, formatting the text between tags using TextField.setTextFormat(), and then i want to strip the tags from the text after the formatting is complete. to do this, and keep the formatting, my only option is using TextField.replaceSel().
this is all fine and good, except that i can't replace the text with a goddamned null character! it seems to me that TextField.replaceSel() requires a non-empty string to replace the current selection, so i can't use myText_txt.replaceSel(""); or myText_txt.replaceSel("u0000");. it always requires a space (" ") or some other character that messes up the formatting of the field (not to mention makes it look like all style changes require spacing typos for them to work).
anyone have any ideas on how to make this bend to my will?
thanks in advance
View Replies !
View Related
ReplaceSel Fails On Stylesheet Formatted Text
I'm building a text editor for a back-end project. The editable text field is formatted by a stylesheet. When I try to use myTextfield.replaceSel on it, it doesn't work ( though if I don't apply a stylesheet it works fine).
I've read somewhere that using a stylesheet on an input textfield locks it, preventing editing?
Can anybody suggest a fix?
Code:
Selection.setFocus(targetText);
Selection.setSelection(startPoint, endPoint);
targetText.replaceSel(insertTags);
Thanks
View Replies !
View Related
Expert Needed (maybe)
Hi,
Let me try and explain this....
I have a movie clip which contains a different photo on each frame.
I want to make a button that makes this movie clip move forward one frame every time it is pressed, and another button that moves the movie clip backwards one frame each time it is pressed.
Is there a script that will work out what the current frame of a movieclip is, and then either make it move forwards or backwards by 1 fame?
Thanks a lot.
(ps....what i don't want to end up with are loads of diffrent buttons with slightly different gotoAndPlay () actions assigned to them)
View Replies !
View Related
Expert Help Needed
jow guys
what i want is this;
mc blabla needs to play according to the horizontal mouse position in a navigation bar. (the more the mouse to the right, the deeper the timeline plays)
ex; http://www.yulia-nau.de/eng.htm
so
var = _xmouse
var2 = var-200 ///(200=left margin to nav bar)
var3 = (450/100) ///(450=width nav bar, 100=total frames)
tot = (var2/var3)
and then _root.bla should play frame 'tot'
Im not sure how i should script this
Can someone help me plz?
View Replies !
View Related
Expert Help Needed
hey guys.
This question may seem quite basic you those of you here- but thats why Im asking the question at this forum ;^)
I have created a nav system with Buttons that animate forward and backwards. However once the slide out animation is complete, the buttons will not jump to the scene assigned?
Ive done a quick example of nav system im trying to do; only a small emulation of the actual nav. The .fla file is there as well for those who can help
Any help on this prob would be most appreciated!
my thx in advance guys
[Edited by SYiTHE on 09-23-2002 at 11:06 AM]
View Replies !
View Related
Expert Help Needed
Hey guys.
I need some help. I’ve been looking around for some information on a particular project I’m working on, and I seem to be having a real problem. Information from some flash experts like yourselves would be a great help!
Essentially it boils down to the fact I just don’t know a way to animate tweens backwards - if possible at all.
Here is a basic mock up swf, imitating what I’m trying to achieve.
Ideally, this is what I would like do: When the user clicks on the right (or forward) button- the image present scrolls along to reveal the next image. And obviously when the user clicks on the left button (or backward) button the image scrolls back.
How do I do this?! --I’m sure there is a script that can tween or appear to tween the image back into place.
Any help on this would be awesome. Here is the mock up .fla file if you need it. Maybe this doesn’t sound like expert knowledge- but thats why I’m asking here
--Thx in advance guys.
X
View Replies !
View Related
Expert Needed
I have been searching for ages for a way to make a photo/picture gallery site which could be completely and easily updated by the owner. I would like to do it all in Flash and actionscript but otherwise XML or PHP.
Can someone please post an .fla file or a method of doing this?
Ideally, the owner would just upload jpegs and these would automatically be made into thumbnails in the Flash site, then displayed in a scrollable pane.
Any help would be appreciated
View Replies !
View Related
Expert Help Needed
Hey guys,
This question may sound simple to those of you who are flash experts, but thats why I'm posting here
My question is simply this:
I have a long mc that stretches horizontally long the stage, and I need the mc to slide forwards and backwards along the stage. The slide would be invoked by a forward and backward button. Sounds simple enough right? well I've been traversing through these forums and others trying to find a solution, but I keep hitting a brick wall.
I know I can just copy and reverse the frames and use frame-labels to mimic a mc playing forwards and backwards, but that bloats the swf and most importantly - its going to be an absolute nightmare to update - which is a pre-requisite for this site. They want the site to be easily updated with new photos on a regular basis. My theory is - I'll make one long mc that I can update quickly - and this mc will be navigable by using a forwards and backwards button.
Am I approaching this from the wrong angle? Is there an easier way to make a mc scroll back and forth using buttons? -I have attached a rough mockup of what I trying to achieve for you guys.
Many thanks in advance - and I look forward to hearing from you flash gurus!
View Replies !
View Related
Expert Help Needed
i want to create a flash site that houses scrolling text boxes for each page of content.(pref html) within the center of each page. site will have 10 pages. like thi ssite http://www.slaverecordings.com/site/flash.php but will have flash around the page. makes more sense if u look at the page link.
prob is if u use a flash scroller, its a bit fiddly. any one any ideas on the best way to do this?
thanks in advance.
simon
View Replies !
View Related
Expert Help Needed Here
ok, so i need some expert help and i hope that someone will be able to help me, so consider it a challange.
my code is working the way i want ( which is that on click of any given button it will find each movie clip that is currently on the stage and play the "close" frame of it which basically runs a final series of masking frames and then removes itself and then loads the movieclip specific to the button that was clicked) the problem is, and i will certainly admit that my code is very messy, that when you double click on any button everything sort of flys out the window. I know this might be too much for a lot of people to deal with but if anyone could help me i would greatly appreciate it, i've been working on this for days now with no solution. Thank you
the flash file can be downloaded here
http://www.lasalle.edu/~emmerip1/fla...ortfolio_3.fla
View Replies !
View Related
Expert Help Needed Please...
I am going to try and explain myself a little better in the hope that someone out there can help me...here goes.
I have a set of thumbnails (converted to buttons) which when clicked on load the larger versions into an empty movieclip on the stage. As i have (or intend to have) quite a few i thought the best thing to do would be to place them all inside a movieclip which in turn i placed inside the scrollpane component, thus enabling me to maintain all my thumbs on the one page. The problem is now when i click on each button inside the scrollpane, the larger image no longer loads into the container on the stage.
Is this because the buttons (thumbs) are now inside a movieclip which is inside the scrollpane or do i need to change the code (see below)
on (release) {
loadMovie("s1.jpg", "frame");
}
"frame" is the instance name of the target clip and "s1.jpg" is the full size image of the button this code is assigned to. The image also resides in the same folder as the flash file.
I really would be grateful for some assistance with this as its for a college project. I can provide more info if needed.
Thanx
View Replies !
View Related
ReplaceSel Results In Extra Space Preceding Text Replaced
Hi all - I'm working on a little app that allows the user to select a text segment in a dynamic/input field, and upon key press the selected text will change based on built-in parameters.
PROBLEM: Everything is working EXCEPT that when the text segment is replaced, an extra space is inserted before the new text segment.
Here's my code, which lives on Frame 1 and corresponds w/an input text field w/instance name 'myText':
____________________________
myText.addListener(myText);
//note to self: load textContent dynamically in next version
textContent = "This is the text I want to change. This is some other text. Leave this line alone. In this sentence, only select the following word: word."
myText.text=textContent
s = textContent;
_root.onMouseUp = function() {
x = Selection.getBeginIndex();
y = Selection.getEndIndex();
correctText = _level0.s.slice(_level0.x,_level0.y);
}
myText.onChanged = function() {
if ((correctText == "This is the text I want to change") || (correctText == "word")) {
newText = "text is changed";
myText.replaceSel( newText );
z = newText.length;
myTextFormat = new TextFormat();
myTextFormat.color = "0xff0000";
myText.setTextFormat(x, x+z+1, myTextFormat);
s = myText.text;
} else {
newText = correctText
myText.replaceSel( newText );
s = myText.text;
}
};
____________________________
Thanks in advance for any inspirations.
-Sarah
View Replies !
View Related
What The HTTP? Expert Needed
Hi,
i am having a bit of trouble with a feature of flash (which i am relatively new to) and HTTP headers. I am using flash diagrams (embeded in a .php file) that users click on a button to add an item to a cart.
I use the getURL to send:
shopping/shopping_cart_add.php?product_id=956
to my PHP script shopping_cart_add.php. This works fine and adds the item.
However the script then tries to refresh the page it has been called from using HTTP_REFERER:
if (! empty($HTTP_REFERER))
header("Location: $HTTP_REFERER");
// Or go back to the Home Page
else
header("Location: $CFG->firstpage");
I have tried searching for articles on this but none really explain except to say that swf files don't send an HTTP_REFERER.
Does anyone know away around this??
View Replies !
View Related
LoadMovie -- Expert Help Needed
I'm using the following code to load a small animation into an empty movie clip to superimpose over a main movie:
loadMovie ("sparklies.swf", "empty");
The main movie and the .swf file are in the same directory, but the animation doesn't show up on the main movie. If anyone would like to look at the code and see what I'm doing wrong, that'd be fantastic.
Here's the main movie:
Musket Drill (drill.swf)
Musket Drill (drill.fla)
Here's the slowmatch animation (it scales according to your browser window size--should be very small):
Fuse (sparklies.swf)
Fuse (sparklies.fla)
The sparklies.swf is supposed to appear as a lighted fuse that the musketeer is holding to light his matchlock. As you'll see, the movie isn't appearing anywhere.
Thanks for helping me out.
Devon
View Replies !
View Related
Flash/AS Expert Needed
Hey,
I need some help, obviously...
I have a drag and drop window, and I am trying to put a scroll pane thing inside it, one I downloaded from here. It's not a scroll pane component, it's a scroll made out of masks and such. I keep getting this error when I try to put it inside the drag and drop window.
Code:
Target not found: Target="_root.controlmove" Base="_level0.window.instance19.bar"
And I duno what is wrong, I can't figure it out.. It all works fine except when I use the scroll bar. (the scroll window I downloaded is made to look like windows, the arrows and bar inside that resizes depending on how much content you have inside)
Any ideas, if someone would wana help me out I could send them the fla and perhaps they could look inside to see whats wrong with it... If anyone would be so kind.
If not and you can tell me whats wrong on here it would be a great help too.
ICQ: 46549062
MSN: ibbanging@hotmail.com
Yahoo IM: ibbanging (ibbanging@yahoo.com) Duno which one you use to add people.
Those are the easiest ways I can think of to get in touch with me, alough I don't check the E-mail addys within those, so messages would be best.
This is the last thing I need to get my site up and running, I hope.
Ian
View Replies !
View Related
ActionScript Expert Needed
Hi
when using Flash MX .attachMovie from a button
how do you code the OnClipEvent(data) for the attached movie?
i need some data that loads into the attached movie to populate a textbox in
a different movie clip after the data has fully loaded!!
Button Code....
on (release) {
drop.attachMovie("exparent", "insp", 0);
}
then where do i put this code... (code below is supposed to be refering to the
attached movie "insp"
OnClipEvent(data){
_root.anotherClip.textbox = eval("name"+Counter);
}
also just to clarify....
i'm using attachMovie and removeMovieClip because it's the only way i've
found to clear data loaded in from my php script.
is there a more efficient way of doing this or am i on the right track??
even if there's another way i'd still like to know the solution stated above
if possible
Thanks
Jado
View Replies !
View Related
Expert Advise Needed
Hello All,
I have a quick question, I want to build an interactive test inside a flash movie, where the user can make choices to answer questions and be given a final score at the end. And if the score is high enough they would be able to print off a token certificate to prove they passed. I think it would be best to do a simple button selection system, say choose A,B,C or D but I may be wrong, can anyone who has an idea point me in the right direction? with first hand help or send me a link to a good tutorial many thanks and all the best Paul...
View Replies !
View Related
Array Expert Help Needed
i am trying to build something simular to the rake and trail calculator on this site(click rake and trail from the top menu):
http://perseperformance.com/perse-v1.0-1024.swf
everything works in my project except if you select anything above 0 for the tree rake this where i think the array is my problem. the tree rake part is the only thing that has to do with an array.
if you would like to try and help i can email you my fla.
View Replies !
View Related
Sound Expert Needed
I'm controling a sound with actionscript in my current project... Everything is working fine except the sound, sounds like CRAP!
I checked the bit-rate and compression settings but nothing seems to help.
If I place the sound on the stage it works fine but once I attach the sound to an MC through actionscript and call it in the timeline it goes to crap again!
Anybody have experience with anything like this?
View Replies !
View Related
Flash <b>expert</b> Needed
ok, i need a way in flash to draw arrows like in microsoft word's autoshapes, like you click once to start the arrow, then it follows around your cursor until you click again and the arrow ends, then it needs to be made into a movie clip so i can put an action on it for when its clicked on again...i hope some real pro can help me out here
View Replies !
View Related
An Expert's Help Needed - Navigation
Hello All!
I have previously posted this, but noone replied.
I have a problem with navigation and I just can't figure it out why it doesn't work.
What I want is, that from the main navigation ("support") when a "previous" button is clicked the previous .swf loads to its last scene.It sounds so easy, but when I try "gotoAndPlay" or any other way, for some reason it bypasses the last scene and just goes to the first one of the loaded movie. (Ps.If I don't load any movie i can make the main navigation stop at the right navigation place.You see what I'm talking about if you look at the files.)
I post the fla. files, for seeing and understanding what is my problem.I really-really could use a help on this one.(I am not an Action Script expert, but I do have a great understanding.)
Thank you, thank you - who ever can help me out!
Hamvaska
View Replies !
View Related
:: Flash Expert Needed ::
hi experts,
My problem is when the green square is dragged, I need the red circle to stay centred over the red cross and the text box to display the red circle's _x & _y coordinates in relation to the green square.
you can see my problem here:
http://www.dado-gs.net/dragcenter.zip
I have attached the fla file. waiting for your answers...........
View Replies !
View Related
:: FLASH Expert Needed ::
hi experts,
My problem is when the green square is dragged, I need the red circle to stay centred over the red cross and the text box to display the red circle's _x & _y coordinates in relation to the green square.
you can see my problem here:
http://www.dado-gs.net/dragcenter.zip
I have attached the fla file. waiting for your answers...........
__________________
regards
chochweets
View Replies !
View Related
Please.. Expert Scripters Needed...
I was wondering if someone could create this into a count down timer instead of it just counting the seconds..
Code:
now = new Date();
for (i = 1; i <= 5; i++)
{
this["n0" + i + "_1"] = this["n" + i + "_1"];
this["n0" + i + "_2"] = this["n" + i + "_2"];
} // end of for
for (i = 6; i <= 6; i++)
{
this["n0" + i + "_1"] = this["n" + i + "_1"];
this["n0" + i + "_2"] = this["n" + i + "_2"];
this["n0" + i + "_3"] = this["n" + i + "_3"];
this["n0" + i + "_4"] = this["n" + i + "_4"];
} // end of for
time1 = now.getSeconds();
time2 = now.getMinutes();
time3 = now.getHours();
time4 = now.getDate();
time5 = now.getMonth() + 1;
time6 = now.getFullYear();
for (i = 1; i <= 6; i++)
{
if (this["time" + i] < 10)
{
this["time" + i] = "0" + String(this["time" + i]);
}
else
{
this["time" + i] = String(this["time" + i]);
} // end if
for (j = 1; j <= 2; j++)
{
this["n" + i + "_" + j] = this["time" + i].substring(j - 1, j);
if (this["n" + i + "_" + j] != this["n0" + i + "_" + j])
{
this["digit" + i + "_" + j].gotoAndPlay("flag" + _root["n" + i + "_" + j]);
} // end if
} // end of for
} // end of for
for (i = 6; i <= 6; i++)
{
if (this["time" + i] < 10)
{
this["time" + i] = "0" + String(this["time" + i]);
}
else
{
this["time" + i] = String(this["time" + i]);
} // end if
for (j = 1; j <= 4; j++)
{
this["n" + i + "_" + j] = this["time" + i].substring(j - 1, j);
if (this["n" + i + "_" + j] != this["n0" + i + "_" + j])
{
this["digit" + i + "_" + j].gotoAndPlay("flag" + _root["n" + i + "_" + j]);
} // end if
} // end of for
} // end of for
I tried and tried but couldn't do it.. I grabed some countdown script but it didnt work.. here it is if it helps..
Code:
//
// The Countdown - V 1.1
// Created by Sekka Studios
// Contributions from Johnathan Young
//
// If you feel you can contribute, e-mail me on stephen@sekka.co.uk
//
onClipEvent (load) {
countdown = "yes";
// Target Time Information
tyear = 2005;
tmonth = 12;
tday = 15;
thours = 10;
tminutes = 00;
tseconds = 0;
//
}
onClipEvent (enterFrame) {
if (countdown == "yes") {
mon = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"];
daysinmonth = ["31", "28", "31", "30", "31", "30", "31", "31", "30", "31", "30", "31"];
now = new Date();
nyear = now.getFullYear();
nmonth = mon[now.getMonth()];
ndays = daysinmonth[now.getMonth()];
nday = now.getDate();
nhours = now.getHours();
nminutes = now.getMinutes();
nseconds = now.getSeconds();
// Year Code
ryear = tyear-nyear;
//Month Code
if (tmonth>=nmonth) {
rmonth = tmonth-nmonth;
} else {
rmonth = (12-nmonth)+tmonth;
ryear = ryear-1;
}
// Day Code
if (tday>=nday) {
rday = tday-nday;
} else {
rday = (ndays-nday)+tday;
rmonth = rmonth-1;
if (rmonth<0) {
ryear = ryear-1;
rmonth = 12+rmonth;
}
}
// Hour Code
if (thours>=nhours) {
rhours = thours-nhours;
} else {
rhours = (24-nhours)+thours;
rday = rday-1;
if (rday<0) {
rmonth = rmonth-1;
rday = Number(ndays)+Number(rday);
if (rmonth<0) {
ryear = ryear-1;
rmonth = 12+rmonth;
}
}
}
// Minute Code
if (tminutes>=nminutes) {
rminutes = tminutes-nminutes;
} else {
rminutes = (60-nminutes)+tminutes;
rhours = rhours-1;
if (rhours<0) {
rday = rday-1;
rhours = 24+rhours;
if (rday<0) {
rmonth = rmonth-1;
rday = Number(ndays)+Number(rday);
if (rmonth<0) {
ryear = ryear-1;
rmonth = 12+rmonth;
}
}
}
}
// Seconds Code
if (tseconds>=nseconds) {
rseconds = tseconds-nseconds;
} else {
rseconds = (60-nseconds)+tseconds;
rminutes = rminutes-1;
if (rminutes<0) {
rhours = rhours-1;
rminutes = 60+rminutes;
if (rhours<0) {
rday = rday-1;
rhours = 24+rhours;
if (rday<0) {
rmonth = rmonth-1;
rday = Number(ndays)+Number(rday);
if (rmonth<0) {
ryear = ryear-1;
rmonth = 12+rmonth;
}
}
}
}
}
// Countdown Checker
if (ryear<0) {
disyear = 0;
dismonth = 0;
disday = 0;
dishours = 0;
disminutes = 0;
disseconds = 0;
discountdown = "no";
this.play();
countdown = "no";
} else {
// Update Clock Check
if (ryear ne year) {
year = ryear;
if (year<10) {
this.years.years.disyear = "0"+year;
} else {
this.years.years.disyear = year;
}
this.years.play();
}
if (rmonth ne month) {
month = rmonth;
if (month<10) {
this.months.months.dismonth = "0"+month;
} else {
this.months.months.dismonth = month;
}
this.months.play();
}
if (rday ne day) {
day = rday;
if (day<10) {
this.days.days.disday = "0"+day;
} else {
this.days.days.disday = day;
}
this.days.play();
}
if (rhours ne hours) {
hours = rhours;
if (hours<10) {
this.hour.hour.dishours = "0"+hours;
} else {
this.hour.hour.dishours = hours;
}
this.hour.play();
}
if (rminutes ne minutes) {
minutes = rminutes;
if (minutes<10) {
this.minute.minute.disminutes = "0"+minutes;
} else {
this.minute.minute.disminutes = minutes;
}
this.minute.play();
}
if (rseconds ne seconds) {
seconds = rseconds;
if (seconds<10) {
this.second.second.disseconds = "0"+seconds;
} else {
this.second.second.disseconds = seconds;
}
this.second.play();
}
}
}
}
View Replies !
View Related
Expert Advice Needed
I am creating a kiosk for a company that showcases 5 of their products. The opening menu will consist of these products rotating on a vertical carousel (rotating around the x axis). When the user clicks to get more info, they will basically be taken to a series of videos that runs through each product.
There are 2 tricky parts here. The first is that I need to make the transitions between videos relatively seamless (or as seamless as possible). If one video ends with the product in a certain position, the next one in queue needs to start at the same position and I'm worried about a blink between the two. Don't know if there's a way to leave one video up and somehow load the other beneath it. These will all be pulled in using netStream
The other tricky part is that it will be playing on a 63" plasma flipped 90? so it's vertical in a 16:9 format. Originally, they wanted to do this all in Flash but each segment contains a lot of video, audio and special fx. I suggested they'd be better off just creating videos of each and using flash as a shell to control the whole thing. Luckily, the company I'm building it for is a post-house so they will be doing all the vids.
That said, I'm not really sure what size this should be. Maybe that doesn't matter as far as Flash is concerned as the entire thing will essentially be a series of videos. The guy creating the vids seems to think 486x864 is the correct size ... not really sure.
Any advice would be greatly appreciated.
Thanks in advance
View Replies !
View Related
Next Level Expert Needed.
Hi,
I found a cool mail form that works but when I load the swf in another swf the level changes. So the form doesn't send anything anymore.
How to solve this? Here are some things that maby need to change.
In the fla?
loadVariablesNum (mailform, 0, "POST"); and loadVariablesNum(mailform, 0);
if (Selection.getFocus() == "_level0.fname") {
_root.fname = "";
}
Or (also) something in the mailform:
$sendresult = "Send!";
$send_answer = "answer=";
$send_answer .= rawurlencode($sendresult);
echo "$send_answer";
View Replies !
View Related
Flash Expert Needed....
Hi guys,
Thought some of you flash people would be interested in talking to this guy. He emailed me looking for someone to help him on a project, and I don't know enough about doing flash to be of any use to him.
So, I figured I'd pass this along so somebody could maybe make a buck, or two helping this guy with his project.
Here's the email he senty me...
Quote:
Hi there Rockrz.
I hope you don't mind me writing to you via The Laughingbird Software forum. I'm emailing all the members of the forum.
I have a quick question.
I'm in need of a Flash animation expert for a new project I'm working on. If you know of anybody that you could put me in touch with, I'd be interested in speaking with them.
I need a Flash Cartoonist. Somebody who knows Flash inside and out, and who loves cartooning!
have them email me: marc1@thelogocreator.com
If they have any sample animations, perhaps you can ask them to have some handy.
Thanks for your time!
Hope all is well.
- Marc
Marc "Laughingbird" Sylvester
Creator of The Logo Creator software
View Replies !
View Related
Expert Advice Needed
I am creating a kiosk for a company that showcases 5 of their products. The opening menu will consist of these products rotating on a vertical carousel (rotating around the x axis). When the user clicks to get more info, they will basically be taken to a series of videos that runs through each product.
There are 2 tricky parts here. The first is that I need to make the transitions between videos relatively seamless (or as seamless as possible). If one video ends with the product in a certain position, the next one in queue needs to start at the same position and I'm worried about a blink between the two. Don't know if there's a way to leave one video up and somehow load the other beneath it. These will all be pulled in using netStream
The other tricky part is that it will be playing on a 63" plasma flipped 90? so it's vertical in a 16:9 format. Originally, they wanted to do this all in Flash but each segment contains a lot of video, audio and special fx. I suggested they'd be better off just creating videos of each and using flash as a shell to control the whole thing. Luckily, the company I'm building it for is a post-house so they will be doing all the vids.
That said, I'm not really sure what size this should be. Maybe that doesn't matter as far as Flash is concerned as the entire thing will essentially be a series of videos. The guy creating the vids seems to think 486x864 is the correct size ... not really sure.
Any advice would be greatly appreciated.
Thanks in advance
View Replies !
View Related
Expert Help Needed - Form Validation
I've this script (source Flashkit) which has got three text fields, Email, Name & Website. the script checks for the validation of the above three fields.
well, it works fine with email & name, but validating the web address seems to have some help needed from you guys. the code is below,
the name of the text fields are
for Email: email
for Name: id
for Website: web
i hope, there is enough sense in the script. please help me out. for any other further clarification, you all can let me know.
ravi.tandon@learningmate.com
// Script prepared by Answer Studios / ToUnite.com
// Version 1.1 (Feb. 1, 2001
// Logic:
// 8 steps: Preset elements, 6 error checks, write error (if appicable)
// --- Presets
count1 = 0;
count = 0;
Err = 0;
// #1 Check for invalid characters
// Create an arroay of invalid characters
invChars = new Array(" ","#","$","%","!","^","~","'","*","(",")",",","<", ">","/","\");
// Loop through Array and see if there are any matches, if yes then throw and error.
for(i=0; i<invChars.length; i++) {
if (email.indexOf( invChars[i]) >= 0) {
Err = 1;
}
}
invalidChars = new Array(" ","#","$","%","!","^","~","'","*","(",")",",","<", ">","/","\","@");
for(a=0; a<invalidChars.length; a++) {
for(j=0; j<invalidChars.length; j++) {
if (web.indexOf( invChars[j]) >= 0) {
if (id.indexOf( invChars[a]) >= 0) {
Err = 7;
}
}
}
}
/*if (Err == 0) {
for ( n=0; n < web.length; n++ ) {
if (web.charAt(n) == ".") {
count1 = count1 + 1;
}
}
if ( count1 != 1 ) {
Err = 8;
/
}*/
// #3) For Web Address validation.
if ( Err == 0 ) {
splitweb = web.split(".");
webName = splitweb[0];
webDom = splitweb[1];
if ( webName != "www" ) {
Err = 9;
}
if (webDom.indexOf(".") < 0) {
Err = 10;
}
splitDoms = webDom.split(".");
if ( splitDoms[0].length < 2 ) {
Err = 11;
}
if ( splitDoms[1].length < 2 ) {
Err = 12;
}
}
// #2 If passed previous error step >>> Check the @ symbol (1 instance of the symbol)
if (Err == 0) {
// Loop by character through the email string for the @ symbol, count the number of instances
for ( i=0; i < email.length; i++ ) {
if (email.charAt(i) == "@") {
count = count + 1;
}
}
// If there is not 1 instance (0 or more than 1) then throw an error.
if ( count != 1 ) {
Err = 2;
}
}
// Split the email string by the @ sign, forming the name portion and the domain portion.
if ( Err == 0 ) {
splitEmail = email.split("@");
emailName = splitEmail[0];
emailDom = splitEmail[1];
// #3 Verify minimum characters in name portion (minimum of 1), if not throw an error.
if ( emailName.length < 1 ) {
Err = 3;
}
// #4 Verify there is a . (dot) in the domain portion
if (emailDom.indexOf(".") < 0) {
Err = 4;
} else {
// #5 Verify a minimum of 2 characters before the dot, if not throw an error.
// First split the domain portion by the . (dot)
splitDom = emailDom.split(".");
if ( splitDom[0].length < 2 ) {
Err = 5;
}
// #6 Verify a minimum of 2 characters after the dot, if not throw an error.
if ( splitDom[1].length < 2 ) {
Err = 6;
}
}
}
// Associate the Err number into the message array for displaying results on the screen.
ErrMess = ["Passed","Invalid character found.","Problem with the @ symbol.","Problem with the email name.","Missing the dot for the domain name.","Problem with the domain name.","Problem with the domain name extension (.com).", "Invalid username", "Invalid web address","Err9","Err10","Err11","Err12"];
valid = ErrMess[Err];
View Replies !
View Related
Flash Background -expert Help Needed
Hi
Here's my situation: I have a Flash movie with a certain FSCOMMAND that uses the "exec" and calls a batch file, which then opens a file/folder. I'd like to have that flash movie (SWF) as my computer desktop/background. However... it seems that the FS COMMAND "exec" only works when i open the SWF file from the Flash standalone player, and when i open it through a browser or HTML file it doesn't work.
Is there any way to get the FS COMMAND "exec" to work in a HTML file?
What i want to do is have the SWF as a background, so when i click a button it opens "C:" and when i click another button it opens a file etc.
i can make it open a file when i click a button through the batch file (like i explained in the first paragraph) but i don't know how to make it a computer background yet. does anyone know? can someone help me please?
Thanks
~Lorenzo
View Replies !
View Related
Efficiency Expert Needed For Flash 5 AS
I need a countdown display to show the days,hours,minutes,seconds remaining until the new year. I threw this together to see if was a workable concept. It works, but time accuracy over the long run is questionable at this point. That is not a huge issue as I hope somebody has something better to do than sit and watch this.
Really, I need help finding a more efficient way to calculate this than my "creative math".
In a nutshell, I have this
Code:
Frame 1:
then = new Date();
then.setFullYear(2003,0,1);
then.setHours(0);
then.setMinutes(0);
then.setSeconds(0);
targ = then.getTime();
Frame 2: (No snickering allowed, but constructive criticism welcome)
now = new Date();
targo = now.getTime();
diff = targ - targo;
dayRemain = ((((diff/1000)/60)/60)/24);
dayRemain -=1;
trash = new String();
trash = dayRemain.toString();
hack = new Array();
hack = trash.split(".");
days = hack[0];
hours = "." + hack[1];
hours = Number(hours);
hours = hours*24;
hourhack = new Array();
hourFigure = hours.toString();
hourhack = hourFigure.split(".");
hours = hourhack[0];
minutes = "." + hourhack[1];
minutes = Number(minutes);
minutes = minutes * 60;
minFigure = new String();
minFigure = minutes.toString();
minhack = new Array();
minhack = minFigure.split(".");
minutes = minhack[0];
seconds = "." + minhack[1];
seconds = Number(seconds);
seconds = Math.round(seconds * 60);
if (seconds == 60){
seconds = 59
}
if (seconds < 10){
seconds = "0" + seconds;
}
results = days + " Days " + hours + " Hrs " + minutes + " min " +seconds + " sec";
Frame 3:
gotoAndPlay(2);
View Replies !
View Related
HTML E-mail Expert Needed
I did a HTML e-mail ad and the client says he has to click on the thing 4 times to get all the image to come up... What could be the problem??? The ad is 68K , I sent the ad to myself and a friend and it comes up perfect. Maybe someone with more experience might know what the problem is....
View Replies !
View Related
Please Help Flash Expert Needed ASAP
I need help with this in the next day please.
I have done an intro animation for a website I'm doing but am having trouble finishing it off and would really appreciate it if someone could donate some time.
Here is an MX and Flash 5 version of the animation:
http://oppressa.freeservers.com/intro.zip (MX Version)
http://oppressa.freeservers.com/introver5.zip (Flash 5 Version)
What I need to happen towards the end of the animation is the scaffolding to somehow disappear and then the rotating logo to rotate continually from then on.
Can anyone help me please?
View Replies !
View Related
Interactive Interface-Expert Help Needed
I'm trying to make a design center for a project I'm working on. I have a lot of different ceiling panels (MCs) and I want to put them into a virtual ceiling. For example, have an image of a room and make the ceiling editable. I want to have a grid, maybe 3x3, that the panels can be dragged into as to allow the user to make their own design. After the panels ae in place in the grid, I want to have them populate the ceiling of the room. This is a problem, though, because of depth and so fourth. I can only think of an if/then function kind of thing (if panel1 is in grid square 3, then show image xxx in preview window square 3), but I'm not sure of the capabilities of Flash in that area. I'm using MX2004 and AS 2.0. I have a simple version of the grid with drag and drop panels attached, as well as what the ceiling should look like when it's done (but with varying panels) but I need help making the interactive ceiling. Thanks in advance!
View Replies !
View Related
Local Connection Expert Needed
Hi,
I am having some problems getting my Local Connections to communicate properly. I am doing an all flash CD-ROM and need one projector to open another projector and send it some variable information. All is good on the Mac side, and everything works fine on the PC when I run it from my hard drive, it's when I move it to CD-ROM that I run into problems. First of all I have noticed that on the PC everthing takes a long time to load, and here's what is happening.
I click a link which opens another projector that loads a flashpaper document.
When I do this on the PC CD it just shows a blank screen the first time I clcik it. The second time i click it it works.
Here is my local connection code:
on sending SWF:
Code:
_global.loadPaper = function(whatFile){
var sending_file_lc = new LocalConnection();
sending_file_lc.isLoaded = function(amILoaded){
if(amILoaded == "loaded"){
amILoaded = "notLoaded"
sending_file_lc.send("haveConnection","fileToLoad",whatFile);
}
}
sending_file_lc.connect("getConnection");
if(_global.OS_type == "windows"){
fscommand("exec","fileLauncher.exe");
}
else if(_global.OS_type == "mac"){
fscommand("exec","fileLauncher");
}
else{
getURL("fscommand/fileLauncher.swf","_blank");
}
}
on receiving swf:
Code:
//handshake with the sending file
var receiving_file_lc = new LocalConnection();
receiving_file_lc.send("getConnection","isLoaded","loaded")
//once connected set up receiving function
receiving_file_lc.fileToLoad = function(whatFile){
loadMovieNum(whatFile,0);
}
receiving_file_lc.connect("haveConnection")
I have a feeling that the initial communication is not occuring, but i cannot figure out where i have gone wrong.
Can anyone please help me?
Also, is there anyway to optimize the projector to load swf's quicker?
I have one dummy projector which calls another swf, which calls numerous other swf's. the loading of the swf's takes way too long reading from PC-CDRom, again on the Mac it is fine.
Thanks a lot
View Replies !
View Related
Expert Guidence Needed...so New, So Inexperienced
i'm starting with web design and i have a few major problems that i'm sure most of you could help me with.
first of all, i don't understand the deal with photos...how is it that on professionally made websites, photos look so crisp and high quality, yet the load time is remarkably short. on my site on which i use jpgs, they look like crap and they're huge...i'm curious if there's a particular way to save them and if there's a particular program...for photos, i use photoshop's "save for web" function and usually save them at 60% quality because any higher and the files are massive.
basically, i'm curious how pros get their flash sites to load so quickly but all their images are crisp...any tips would be really awesome
thanks
-sean
View Replies !
View Related
XML Player Question (AS Expert Needed)
I have created a XML player from a tutorial online. I can't remember where I got it from though. So I can't ask the creator these questions.
The player has 'stop, play, fwd, rwd' buttons. They all work fine.
The problem is the AS that came along with the player's tut.
First it has been set to Random Play.
I want to select a certain track to start playing first.
Plus when any track finishes, it shows that the next track has loaded. But it doesn't start playing. You have to actually click the 'play' button for it to start playing the next song.
I'm definitely not the greatest when it come to AS.
So any help would be appreciated.
Here is the AS:
format = new TextFormat();
display_txt.bold = true;
display_txt.border = false;
display_txt.background = false;
display_txt.setTextFormat(format);
playlist = new XML();
playlist.ignoreWhite = true;
playlist.onLoad = function(success) {
if (success) {
_global.songname = [];
_global.songband = [];
_global.songfile = [];
for (var i = 0; i<playlist.firstChild.childNodes.length; i++) {
_global.songname[i] = playlist.firstChild.childNodes[i].attributes.name;
_global.songfile[i] = playlist.firstChild.childNodes[i].attributes.file;
trace(songname[i]+" "+songfile[i]);
}
}
_root.createEmptyMovieClip("sound_mc", 1);
_root.sound_mc.sound_obj = new Sound();
_global.song_nr = random(songfile.length);
_root.sound_mc.songStarter(songfile[song_nr], songname[song_nr]);
};
MovieClip.prototype.songStarter = function(file, name) {
this.sound_obj.loadSound(file, true);
this.onEnterFrame = function() {
if (this.sound_obj.position>0) {
delete this.onEnterFrame;
this._parent.display_txt.text = name;
} else {
this._parent.display_txt.text = "loading...";
}
};
this.sound_obj.onSoundComplete = function() {
(song_nr == songfiles.length-1) ? _global.song_nr=0 : _global.song_nr++;
_root.sound_mc.songStarter(songfiles[song_nr], songname[song_nr]);
};
};
btn_play.onRelease = function() {
this._parent.sound_mc.songStarter(songfile[song_nr], songname[song_nr]);
};
btn_stop.onRelease = function() {
this._parent.sound_mc.sound_obj.stop();
};
btn_next.onRelease = function() {
(song_nr == songfile.length-1) ? _global.song_nr=0 : _global.song_nr++;
_root.sound_mc.songStarter(songfile[song_nr], songname[song_nr]);
};
btn_prev.onRelease = function() {
(song_nr == 0) ? _global.song_nr=songfile.length-1 : _global.song_nr--;
_root.sound_mc.songStarter(songfile[song_nr], songname[song_nr]);
};
playlist.load("playlist.xml");
Oh, and if it makes any difference. The AS and the MC is on the root of the Movie.
Thanks,
Deadcell
View Replies !
View Related
LoadMovie And Cache-big Expert Needed
I hava a big question for u and a big problem. I am using loadMovie function to preload some images, some jpgs. So i load them and then i want to use it later in my swf, problem is that even if i preload them on some computers flash cannot find them and then he makes a request from server again for that file and then file that i preloaded doesn't show up in time, there is a delay and that's not good. And it seems that it's depends from browser to browser system to system and definitly flash 6 to flash 7 player version if it is gona work or not like it supposed to. Also it depends if it's exported in flash 6 or 7. Today something didn't work on MAC when exported in flash 6 but when i exported in version 7 it works perfectly. Can someone clear this up or even MM would have problems explaining this?
View Replies !
View Related
[help] Expert's Help Needed For Scrollbar Issue
Hi All,
I have a problem for the experts who like a challenge!:
(using mx2004 - publishing as AS1 and fp6)
I am creating a flash application using 2 'Ultimate Scollbars' from flashloaded.com, 1 horizontal and 1 vertical, kinda like a scrollpane. The app has a 'zoom to point' feature which basically scales the grid and positions it so that the point you clicked on is in the centre of the scroll mask after zoom.
The code works because i have tested without the scrollbars, by moving the x and y coords of the grid, and everything looks sweet. However, when i adjust this code to move the scrollbar positions, the grid ends up in the right place, but jumps about all over the place on it's way there. The scrollbars don't seem to like positioning and scaling at the same time.
A possible solution might be to be able to adjust the grid position by setting x and y values for the grid and having the scrollbars adjust to it, rather than setting the scroll position on the scroll bars and have the grid jump around (not sure if this is possiblee or how to do it). Any one got any ideas?
I have created some demo files for anyone who feels up to the challenge. zoomdemos.zip
zoomdemo1 shows what I am trying to achieve with the scrollbars. This doesn't use the scrollbars, instead it adjust the co-ords of the grid, works fine.
zoomdemo2 shows what happens when I try to do the same thing with the scrollbars.
zoomdemo_1step A simplified attempt with a 1 step transition, still no luck.
I have already asked flashloaded about this problem but they are yet to get back to me with a solution. I would really appreciate any help, even if it's to suggest a different approach that would work.
Thanks in advance
Dave
View Replies !
View Related
Scrolling Menu => Expert Advice Needed :0 )
First take al look at what I already made:
http://bserver.dhs.org:4000/~blacky/...ouse_test.html
What it does:
- reads its content out of a .txt file
=> First the number of menu items
=> Then the text for the seperate labels
=> Links are also there, but thats a problem for later
=> At the end e var called menu loaded set to 1
- duplicates a movieclip as many times as needed to create the menu
- makes all of this scrollable
As you can see, my problem is the gap inbetween the blocks of menu items. I know that with a menu not dynamically created out of a text file you can just duplicate the menu and place it so that the two blocks fit nicely together, but what about this menu ?
If somebody wants the .fla file just mail me nashandpepper@hotmail.com
View Replies !
View Related
EXPERT HELP NEEDED /re: ScrollPane Component Targeting
I have a movie that loads .jpg files into a scrollPane component. I want to have a preloader for the jpg files as they are loading, but I can not determine how to get the "bytesLoaded" or "bytesTotal" for these .jpg files to create a preloader of any kind. (Or whatever it may be called in this case.)
So my question is...
Does anyone have any ideas on how to reference the content being loaded into the scrollPane in relation to it's being fully loaded, or it's bytesLoaded or bytesTotal? ( I don't want all the script for the preloader, just how to reference the properties of the loading .jpg)
Example:
(MC is the instance name of a ScrollPane component)
MC.loadScrollContent ("myPic.jpg");
How do I reference "myPic.jpg" loading progress?
Or simply if it has finished loading?
I tried to use the following code:
_root.MC.getBytesTotal (This seems to return the value of the movieClip before any images are loaded.)
_root.MC.getScrollContent.getBytesTotal (undefined - not what getScrollContent is used for)
I posted this question yesterday and recieved NO responces (but had 33 views), so maybe it is a bit more difficult that I first thought, if it is possible at all. I thought this was a stupid question actually, but it seems that many people can not answer this!!!! (I do appologise if I am just being stupid about this somehow.)
Sorry to post twice (I know, I hate that too!!!) But I can not believe that this is not possible, I guess I just need a FLASH EXPERT's help. So if you can help me, you must be a genious. LOL
Thanks!
View Replies !
View Related
Expert Advice Needed Regarding The Nature Of _levels
I normally come here to help but this time i need the help!
My main movie loads into _level0, then i have content.swf load into _level8.
I've attached sounds within content.swf from its library. These play fine when i test content.swf by itself, but when content.swf is loaded by the main movie into _level8, the sounds do not play.
Who can help me?
thanks
Dene
View Replies !
View Related
Flash Expert Needed For Small Project
Hi...
I have an idea that needs making into reality. Niche about music learning.
Essentially what I would need is 2 flash keyboards (harmonium). 1 would be like a movie, showing which buttons to press with play/pause/stop controls. This would need to be fairly easy for me to change to i could make many of these for different tunes.
Another keyboard underneath, where the person could practice on.
If anyone is interested, if they could get back to me with a price and timescale bearing in made that this will be a non-profit, educational site, it'd be great.
I've seen this which is along the right lines - http://www.flashkit.com/movies/Sound...6819/index.php
View Replies !
View Related
Expert Help Needed With Low-level Web Services Problem
I'm hoping that someone can help me out.
I have an app developed which communicates to the server using ActionScript's Web Service Classes. Users (of my application) will be making hundreds (sometimes thousands) of calls back and forth to the server.
I noticed that some messages were being sent out, and never being returned. Upon further investigation, my team has come to the following conclusion:
It appears as though flash opens a new socket with a new client port number for every call. These port numbers increment by 1 each time, therefore climbing a ladder upwards. Eventually, the client port that Flash is trying to use is blocked by the a user's ISP, and the message gets lost somewhere in the internet. For example, I have watched Flash use ports climbing up towards port 1300, and as soon as port 1300 is reached, my messages go out, but never come back.
Anyway, this is a little beyond the average ActionScript question, but I'm hoping there is a guru somewhere out there who has heard about this, or possibly even has a solution. I appreciate all help that you can provide.
View Replies !
View Related
|