An Interesting One With Text...
Please take a look at: http://www.i-thinkdesign.com/matt/
You will see 2 text boxes that can be manipulated by the anchor points in the corners. i am pleased with the results so far, apart from the text resize. as you can see i can't get the text to word-wrap without some kind of resizing taking place.
Does anybody know how i can achieve this please???
tnx
FlashKit > Flash Help > Flash ActionScript
Posted on: 12-23-2002, 05:09 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Interesting Text... But How Do You Do It
hello all,
just was making a page and thought it would be interesting to create a mouse over menu effect. Please visit www.aldoshoes.com to better understand what I mean.
I want the menue to show up on mouse over but then dissapear whan you move the mouse elseware....
Can anyone help?
Thanks,
Andrew
Interesting Text Effects
Look at this site:
http://www.samsclubbanners.com/allpr..._info_page.php
then click design now
They have really interesting text effects like wave and distort the more interesting point is the version is Flash 6 so they couldn't use new Bitmapdata Class so???
Could any body help me in this
Very Interesting Text Issue...
Hello Friends,
Would love it if someone had some insight into this strange issue.
First, look at the file without pre-loader:
http://www.clonepress.com/cp2.swf
Notice text on the right under "Tshirts" / "Posters" loads just fine.
Now, check it out with the preloader:
http://www.clonepress.com
The text disappears! Spooky...
Any ideas as to what's going on?
Thanks! and Be Well,
Graham
MediaMackenzie.com
Attach Code
Preloader code:
var loader = new Loader();
loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, progressListener);
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeListener);
loader.load(new URLRequest("http://www.clonepress.com/cp2.swf"));
function progressListener (e:ProgressEvent):void {
masky.x = 222 + (600 * (e.bytesLoaded / e.bytesTotal));
trace("progressListener");
//trace("Loading: " + Math.floor(e.bytesLoaded / 1024) + "/" + Math.floor(e.bytesTotal / 1024) + " KB");
}
function completeListener (e:Event):void {
masky.x = 1000;
addChild(loader);
trace("completeListener");
}
Posters code in the main app (tshirts code is the same):
var posterXML:XML;
var posterXMLloader:URLLoader;
var posterXMLrequest:URLRequest = new URLRequest("posters.xml");
var posterformat:TextFormat = new TextFormat();
posterXMLloader = new URLLoader();
posterXMLloader.addEventListener(Event.COMPLETE, posterCompleteListener);
posterXMLloader.load(posterXMLrequest);
var ptext:TextField = new TextField();
function posterCompleteListener(e:Event):void {
posterXML = new XML(posterXMLloader.data);
//trace(posterXML.toString());
ptext.text = String(posterXML.toString());
posterformat.font = "Arial Black";
posterformat.size = 12;
posterformat.align = "justify";
posterformat.color = "0x1C1819";
ptext.width = 350;
ptext.height = 460;
//t.x = 525;
//t.y = 35;
//ptext.embedFonts = true;
ptext.setTextFormat(posterformat);
ptext.wordWrap = true;
postertext.addChild(ptext);
}
Interesting Text Effects. Tutorials?
I browsed around Flashkit looking for some type of introductory text effect I can use for my Flash game I'm working on. I stumbled across this but found it a bit difficult:
http://www.flashkit.com/tutorials/Sp...en-1/index.php
Are there other cool text effects like this? Do they come with tutorials too or what? Reply soon. Thanks.
Interesting Dynamic Text Challenge
I would like to resize dynamic text in a unique way, and I've searched these boards for a few hours but I can't seem to find a way to do it. I think it can't be done. Here's the idea:
let's say the dynamic text string is "THIS IS HOW I NEED THE DYNAMIC TEXT TO APPEAR" I want it to appear in a collumn of text with each line sized to fit a specific width, like the attached gif.
Anyone have any ideas? Should I give up?
Convert Text To... And Then Back After... Interesting
Currently, I'm interested in making text convert to the ASCII Code Number, and then convert back. This is no problem, I've accomplished this in the code below, the trick would be to make the output letters vary by 3 letters, thus making the output with three letters later.
ex: "abc" would become "def"
Here's the code so far...
Code:
sampleString = "sample";
_root.newArr = []
for (i=0; i<sampleString.length; i++) {
_root["b"+i] = (sampleString.charAt(i));
trace(_root["b"+i]);
_root["c"+i] = ord(_root["b"+i]);
trace("converted to ASCII= "+_root["c"+i]);
newArr.push(chr(_root["c"+i]));
trace("Converted from ASCII= "+_root.newArr[i]);
}
a = newArr.join("-");
trace(a);
Help is always appreciated!
An Interesting Problem Regarding A Simple Way To Scroll Text.
Hello there, I made a simple scroll text box using very basic techniques I got from a source file I found online. The only problem with it is that it doesn't continue scrolling, you have to constantly click on it to get it to go down. It basically consists of masked text turned into a movie clip. On the inside of that clip is the text graphic under the mask, which has a motion tween to move the text graphic up within 20 frames. On the up button (on the main timeline) this script is placed:
ActionScript Code:
on (press) {
tellTarget ("motion") {
prevFrame();
}
}
The down arrow is much the same except it says "nextFrame" instead of prev frame. All I want the thing to do is to scroll down when I hold down the arrow buttons. Any help would be greatly appreciated, thanks.
Dynamic Text + Position Relative Elements - Interesting Problem
Hi,
The Problem:
I am having an interesting issue I have never come across, and would appreciate anyone's advice on how to resolve. I have external text documents that are pulling in random quote into a Flash movie for a website i have built. They pull in randomly, and rotate. The problem is, that the graphic designer created a design that includes large quotes around the text in a different color and font, and a citation as to who said the quote in smaller different colored text below.
The Potential Solution
So...I am trying to figure if there is a way to somehow extract the x and y position of the last character in the dynamic text box (after each time it loads the string from the text document), and then re-position the end quote and citation relative to that attribute. Make sense to anyone? Does anyone know a method to do this?
I assume a possible solution in pseudo-code would be something like:
lastLetterX = quoteText.get.LastTextCharacter._x
lastLetterY = quoteText.get.LastTextCharacter._y
endQuotation._x = lastLetterX + 5;
endQuotation._y = lastLetterX + 5;
obviously that isn't an actionscript example that would do anything, but you can see where I am trying to go....
THANK YOU Everyone!
Here's An Interesting One...........
G'Day all,
I was wondering if there was anything in Flash that allowed the user to browse files on their machine. Like what you do when you want to attach a file to a web based email program. Can this be done, are there any components for this? Does anyone know anything about it??????
If I must I will patch in some sort of ASP page but I'd prefer not to.
Interesting....
Anyone know how to create the menu - interface effect used at this website (interface reshapes), I would appreciate any help.
Cheers
G'luk.
http://www.svizra.com/
Here's An Interesting Little One
I have this code:
code: Stage.scaleMode = "noScale";
var myListener:Object = new Object();
myListener.onResize = function() {
test = Stage.width;
};
Stage.addListener(myListener);
Which shows the current width of the browser window (if you set your .swf to 100% wide)
I'm wondering if there's any way to make 'test' display the width as you scale the window (rather than when you've finished dragging the browser window resize tab and released the click)
tnx
Got An Interesting One For You :)
Ok,
basically... i have the following code:
Code:
/*
This is a string, this will always be a string... this must be a string!
*/
var obj_string:String = "{Name:'myName', Age:20}";
var obj = eval(obj_string);
trace(obj.Name);
Basically no matter what i try, the obj_string variable will not be converted into an actual object... its either a string or undefined.
The obj_string variable is defined here for simplicity, but it is being brought in from elsewhere
I have tried the following:
var o = eval(s);
var o = new Object(eval(s));
var o = new Object(s);
var o; eval("o = " + s);
I think thats about it...
a bit annoying because any of the obove will work in javascript ;P
Thanks for your help
Interesting Must See
followiong is interesting
http://devedge-temp.mozilla.org/viewsource/2002/scripting-flash/
Very Interesting But How Is It Done?
This is really interesting.
I am wondering how is this done. The image are being loaded but the flash swf is ready. The images when loaded they have a white border around their thumbnails version and if you click on the thumbnail with the white border around the image is displayed immidiately.
But if the border is gray and you click on the image thumbnail the image holder tells you that the image is now being loaded.
ie how can the swf be still loading but available for interactivity
http://www.airtightinteractive.com/photos/
thanks
Anyone? [interesting]
function loadEntries() {
// Show Please wait text
_parent.read.entries.text = "Loading entries... Please wait...";
// Begin Loading
myEntries = new LoadVars()
myEntries.ref = this
myEntries.load("GuestBook.php?action=read&r="+rand om(999))
myEntries.onLoad = function(success){
if(success){
// Assign output to components and objects
htmlText = true;
entries.htmlText = this.entries;
}
}
}
// Load Default
_parent.read.loadEntries();
Interesting... Anyone?
Q:
What do you think would be the preferred method of using the Infinite Menu and being able to drag the menu items from within the Infinite Menu and drop them at a location and then drag them back again?
Well THAT Was Interesting
Don't know if anyone else has had this happen to them, but I hit cntl-z to undo and Flash instantaneously crashed to the desktop - completely vanished! One sec it was there and the next - gone. I had to check the task manager to make sure it was indeed not running.
Makes me go and
Then when I restarted the program, it tried to act all casual - as if nothing had happened - no apology, no message - nothing! If I had been Flash, I would have at least said something like "Um, sorry... I had a brain fart..." Where have programs' manners gone?
Very Interesting But How Is It Done?
This is really interesting.
I am wondering how is this done. The image are being loaded but the flash swf is ready. The images when loaded they have a white border around their thumbnails version and if you click on the thumbnail with the white border around the image is displayed immidiately.
But if the border is gray and you click on the image thumbnail the image holder tells you that the image is now being loaded.
ie how can the swf be still loading but available for interactivity
http://www.airtightinteractive.com/photos/
thanks
Anyone? [interesting]
function loadEntries() {
// Show Please wait text
_parent.read.entries.text = "Loading entries... Please wait...";
// Begin Loading
myEntries = new LoadVars()
myEntries.ref = this
myEntries.load("GuestBook.php?action=read&r="+rand om(999))
myEntries.onLoad = function(success){
if(success){
// Assign output to components and objects
htmlText = true;
entries.htmlText = this.entries;
}
}
}
// Load Default
_parent.read.loadEntries();
Interesting ?
http://www.videowebsystem.com/
if you ignore the sales pitch the technology is impressive.
Got An Interesting One For You :)
Ok,
basically... i have the following code:
Code:
/*
This is a string, this will always be a string... this must be a string!
*/
var obj_string:String = "{Name:'myName', Age:20}";
var obj = eval(obj_string);
trace(obj.Name);
Basically no matter what i try, the obj_string variable will not be converted into an actual object... its either a string or undefined.
The obj_string variable is defined here for simplicity, but it is being brought in from elsewhere
I have tried the following:
var o = eval(s);
var o = new Object(eval(s));
var o = new Object(s);
var o; eval("o = " + s);
I think thats about it...
a bit annoying because any of the obove will work in javascript ;P
Thanks for your help
Interesting Question :)
ok, i have a few buttons that are supposed to jump to different scenes on release, but they wont go to a different scene unless they are located on the _root timeline. the ones inside MC's on the root timeline wont work. can anyone tell me why? i tried referenceing things to _parent, _root and _level0 to tell the button to look at the root timeline before trying to go to a different scene, that didnt work or i did somethin wrong. anyhow, thanks a bunch
Interesting Question
does anyone know a way, or tip/trick or function that will take a loop, duplicate a movie clip a certain number of times and PLACE EACH CLIP ON SEQUENTIAL BUT DIFFERENT FRAME OF THE TIMELINE.
Any ideas welcome.
Interesting Problem...
Is it possible to drag an object with a clip cursor?(cursor made by the user)
I've tried and the cursor was left behind, any suggestions?
Thanks,
madpiXel.
http://www.mad-pixel.com
Interesting Question
Is there a way where I can create a photo album in Flash that calls an XML file. This file will contain the photos and will also contian the information that goes with each photo. I hope that was clear enough for everyone to understand.
Interesting Question...
Hi
Check this page out...
http://www2.warnerbros.com/babylon5/beings.html
you'll notice they have the first vertical menu (mind games, beings, etc.) , then the second and third column loads up the "characters"... it's on a greenish background.
when you hover your mouse over any of the characters, the background becomes a lime green, and the text becomes black.
i usually use the same button, but multiple copies of it, and regular text over the button, so i can make the button change color, but the text remains the same.
for this website, did they have to make a seperate button for each 'character'? (that when you hover over it the text and background changes color)? or if not, how did they do it?
Thanks
~Lorenzo
Interesting Question I Have...
ok so, i have a fairly advanced query... (at least it is for me.) anyway, here is how i have it set up. in the left frame (entitled navigation) is just that, navigation. it is a flash movie with particular labels at specific times (...artwork, design, fun, index...etc...)... in the right frame is my content in a different flash movie (entitled content). my dilemma is that in the index page there are 4 buttons in the content that also link to internal pages... how do i get the navigation in the left frame to jump to where it should be if one of the buttons in content in the right frame are pressed?
any help would be greatly appreciated
thanks in advance.
jetta
How To Do This Interesting Menu
I am assuming that this is some sort of action script, if anyone knows any tutorials that they can direct me to on how to do this it would be greatly apreciated.
I am looking for something that looks like on the following page:
http://archweb.unl.edu/
how the main menu falls, and when you mouse over one of the falling menu items it stops its motion and drops its submenus
Again thank you all in advance on any help you can give me
-Beto
Web Effect... Interesting
hello..
i am making a webpage..
can someone attach a example or teach how can i do the book effect.
you know when i click on a button. i want that effect that looks like you are turning the page..
hope that u can help me
tnanks alot !
Interesting Navigation
Go to this awesome site (maybe just to rest your eyes on a beautiful lady) and check the navigation:
http://www.federicafontana.it/index2.html
I'm searching for a component/script/movie with such dynamic navigation. Do you have any sites that offer tutorials or components itself for a navigation like this.
Please, any kind of help would be appreciated.
Any Solution For This? Interesting One...
var varfirst = "50.0";
var varsecond = "0.12";
trace("Direct Multiplication: 50.0*0.12 = "+50.0*0.12);
trace("first variable varfirst: " + varfirst);
trace("second variable varsecond: " + varsecond);
trace("Variable Multiplication: varfirst*varsecond = "+Math.ceil(Number(varfirst)*Number(varsecond) ));
output:
Direct Multiplication: 50.0*0.12 = 6
first variable varfirst: 50.0
second variable varsecond: 0.12
Variable Multiplication: varfirst*varsecond = 7 (THIS SHOULD BE 6 RITE), so any solution or workaround for this one...?
note:
i'm taking a value from XML messages for varfirst and varsecond, that's why i make them as a string...
thanx!
Very Interesting Problem Right Here.
Ok, could someone please have a look at this source file.
All I want is the clip to have limits , when sliding left and right, so that it does not continue to slide off the screen.
Please help
Thanks
Interesting Navigation
I stumbled onto the y-conference site and liked the navigation.
I would just like to know how to get something like this working for myself. My buttons just don't work once the movieclip is being dragged.
If anyone could help, that would be great.
here is the site...
http://www.y-conference.com/
thanks
A Very Interesting Question
Say, we have a function and its property - something like:
Code:
a = function()
{
trace(a.prop);
}
a.prop = "toto";
a(); // traces "toto"
As you can see, to get the value of its property the function addresses itself using its own name.
Now imagine we are creating this function "on the fly" and need to write code that when executed inside the function would address the function itself and its properties.
Something like:
Code:
this[i] = function()
{
trace(this.prop);
}
this[i].prop = "toto";
this[i]();
The above wouldn't work and would trace undefined since 'this' would be a reference to the object that contains this function, not the function itself.
trace(this[i].prop) is not an option since at the time of execution the value of "i" has changed.
Is there any way one can do it?
Well, This Is Certainly An Interesting Challenge
See the error message i'm getting. It's attached. I have all the fonts i need. Yes, all of them, i've gotten to the point where i just want the error to stop showing up. Just somehow hide it. It pauses the export halfway through and it won't complete without me saying ok. I really want to find a way to just hide any and all errors like this but the preference menu doesn't help.
I'm using flash MX 04 but i doubt it makes much difference.
Thanks.
Interesting Error
Im not sure if anyone else has had experience with this error. but if you take a look at preloading into containermc's, this command causes an error in netscape but not an error in IE.
percent-=percent-(_root.containermc.getBytesLoaded()/_root.containermc.getBytesTotal()*100)*.25.
I thought that was interesting and was wondering if anyone else experienced similar issues. Thanks in advance
Don
An Interesting Comparision
Hi their folks,
This is my first post out here,
I want to start it with an interesting discussion, a discussion that I had with my friend yesterday. I dont know wether this is the right forum to address this.
Any of the e-learnign experts can help me here.
About comparing Flash with authorware as E-learning tools.
following are the comparing elements:
------------------------------------------------------------------------------------
Authorware
Pros
1. Authorware: Was developed for the E-learning community.
coz has features which enable the developer and helps in speedy development.
2. It has features which enable to read/write a txt file which is a powerful feautre and which isnt the case with flash except that you can write into a sol file but the information being rather stored in an encrypted format.
3. Has features thru which u can keep supplimentary files like images, and other stuff external during the development process and compile as one when to be delivered, again not possible with Flash.
4. Can be easily integrated with a LMS(learning management System). Not sure wether its possible with flash.
Cons,
1. Coding standards / style is very different from conventional standards.
2. No image editing, creating features.
3. Animation is very limited unless u use series of images like gif.
-----------------------------------------------------------------------------------
Flash
1. industry standard for web media.
2. lots of animation/graphic development features,
3. Vector program
4. Excllent coding style ECMA2, and now with MX2004 its pure OOPS.
------------------------------------------------------------------------------------
We were not sure wether both can develop scorm compliant applictions.
I need all your valuable feedback, comments, suggestions and tips regarding the issue.
Thx.Cheerz........
This Might Be Easy For Some Of You, Interesting.
Hi!
Please help me out someone!
Okok, this is how this goes...a dummy file will do the trick, using banana cartoon characters.
Download this file and preview it and please tell me how to make the 3 banana guy standing behind to the front/on top of the banana guy holding the 'WTF' sign when your mouse is over the 'main'?
This Might Be Easy For Some Of You, Interesting.
Hi!
Please help me out someone!
Okok, this is how this goes...a dummy file will do the trick, using banana cartoon characters.
Download this file and preview it and please tell me how to make the 3 banana guy standing behind to the front/on top of the banana guy holding the 'WTF' sign when your mouse is over the 'main'?
Anyone knows it, please give a reply as i really in need of help. Thanks,
ZeNister
Interesting Problem....
I'm building tic tac toe, but having problems with detecting for the horizontal win. This is the code I've been using.
code:
//check for horizon. line
for (count = 1; count <= 9; count += 3) {
if ((board["cell" add count] == board["cell" add (count +1)]) && (board["cell" add (count + 1)] == board["cell" add (count + 2)])) {
if(board["cell" add count] != "") {
return board["cell" add count];
}
}
}
Personally, I can't see any problems with it, but for some reason, it will never manage to detect the horizontal line. Does anyone have an idea what the problem might be?
thanks,
Spidy
Interesting Transitions
I am curious about some transitions I came across in the work section of this site below. How do they get the portfolio examples to transition in and out this way?
Exopolis Design
http://www.exopolis.com/site/
-Mike
Interesting Question
Hi.
I installed IIS 5.0 and I'm using flash with some asp scripts, when I try to run my project, I simply open explorer and write:
http://localhost/project.html
This loads my html files which contains the flash inside, my question
is when I load my project and for instance I made an update in my .fla I compile it again inside flash and I try to refresh the explorer for checking the changes and it doesn't load the new changes, I have to close the explorer and reopen it. why ??
any ideas how to overcome this anoying issue ??
thanks.
One Interesting Question.
Hi All,
Seasons greetings...
I am facing a problem in flash animation and giving action script.
if i make a movie of 70 frames of simple animation...say for example a ball moving from one place to another. I give different kind of animation from 25 to 45 frames. I give gotoAndPlay(25); .....I want this process to continue only 2 times and then movie to move ahead from 46 frame..
How to do that???
please help!
Interesting Question
If a computer has flash installed, but not flash mx the program, how can you play a flash movie in the flash player that comes up with flash mx installed?
Interesting Nav Question
Can anyone give me a clue as to how to get a rollover effect like the navigation in here:
http://www.imagine-entertainment.com
(you have to get past the opening flash to see the navigation)
Thanks for any help anyone!
Interesting Effect ... How?
Hey,
This site uses an interesting navigation technique:
http://www.sorenhald.com
Notice if you keep clicking through the images in one direction you end up at the beginning. (also... ess annoying than the Ultimate Scroller.)
Do you think this is one very long symbol with images positioned manually? My guess is not.
Any guess as to how this is done???
cheers
jen
ADDITION: This site also does it in a different way!!
http://www.in2media.dk/
|