OY VEY...I Shoulda Seen This Coming
So I have a bunch of frames with textboxes and (mx) scrollbars attached to them on separate frames. I was PLANNING on using an invisible button over certain text to call up a frame in a movie clip to the left of it all...what I forgot to take into account is the actual scrolling! My way would prove useless since the invisible button would always be in the same spot no matter if the text has scrolled or not.
My question is, is there a way to tell a movie clip to do something using text from WITHIN a textbox..like highlighting some text and adding a mc.gotoblahblah into an url or something..? I hope my question is clear and I REALLY need an answer. Any responses would be of great help!
Thanks..
FlashKit > Flash Help > Flash MX
Posted on: 10-02-2002, 06:26 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Coming From AS2
you know back in the day you can create a textbox on the stage make it a instance name tf. then you can goto actions and have the code:
tf.text = "hello world";
ok now what is it for AS3. or do i have to create it all from AS3 coding or can it have drop n drop method along with some AC3 coding.
and no dont tell me to stick with AS2.
Does It Is Coming 4?
I mean with Adobe Flash CS4 will be coming also Action Script CS4?
Paul Weinstock
Dev Kit, Coming Soon
I'm sorry there's no source yet, but it will be out soon.
Coming Soon!
I am in the process of putting together a Dev Kit of some classes that I use, and I'm working on classes that I will be using in the near future. I can't distribute source code yet because I want to wait until I have a strong set before releasing the first iteration, but I am giving you guys the documentation which can be found here...
This is everything that is currently implemented in the dev kit:
http://www.createage.com/as2docs/createage
The dev kit not only includes all the classes, but also when you install the kit, there is full documentation in the Help files as well as Class Documentation in the actions book panel, next to the ActionsPanel.
There is also FULL syntax highlighting as well as FULL code hinting.
Please take a look at the documentation, and give me your opinions/suggestions on what you think needs/doesn't need to be in the kit.
Take Care.
__Michael
JGenerator MX Is Coming
Hello All,
We would like to announce release of JGenerator MX on July 8, 2002!
JGenerator MX:
- supports all current versions of Flash including Flash MX
- provides a set of server-side Flash MX components similar to
JGenerator objects for Flash 5
- supports and integrates with Flash MX GUI components, like scrollpane etc.
Just check it out at http://www.jzox.com
Dmitry Skavish
--------------------
dmitry@jzox.com
http://www.jzox.com
Text Coming At You
I am trying to get text to come OUT of a door. I tried to use snake effect, but I get more of an orbit than text coming out.
It's an opening for a new site. I put it up at:
http://theeventcompanyky.com
I took the doors off and now want to have all of the words: Opening the door
To Your
Imagination coming out of the empty door.
I used 2 scenes (I really don't understand when to use different scenes), just looked like a good idea :-)
If anyone can help me get the words coming out of the door, I would really appreciate it!
Thanks ~Teresa
Deadline Coming
Need your help. This shouldn't be that hard.
I have a mc "box" filled with draggable movieclips. When all the movieclips have been dragged out of the "box" I want to play another clip.
if(eval(_root.box)== "" this is the line I need help with
response="Great Job"
else
goTo....
I might be totally off. How do you evaluate whether a "box" is empty or not?
bk
Bullets Coming Out Of Nowhere
hello,
i just wanted to ask how people
make a command that whenever they press a key,
a tiny bullet springs out of a gun
and it just continuously goes to where that
guns pointed(namely left or right) just goes straght
and dissappers when off screen,
i've read a tutorial here about that
but it seemed quite different than the
one im looking for
so can anyone be able to help me out with this?
thnx a bunch!!
If Coming From Screen 1. Then...
Hey again,
This one might be a bit hard to explain.
I have a Button (A) on Screen (1) that when pressed goes to Screen (2)
There is an exit button (Exit) on Screen (2) that goes back to Screen (1)
I need code to say:
If coming from screen (1) into screen (2) then (Exit) returns to screen (1)
BUT!
If coming from screen (3) into screen (2) then (Exit) returns to screen (3)
Does that even make a lick of sense?
Where Is This Flicker Coming From?
I made a very simple drop down menu system. However once the sub items appear they flicker each time the mouse enters the button hit box. I really have no idea why this is happening
The menu is just a series of keyframe. The first contains large hit boxes with goto frame commands. When you mouse over a menu item it jumps to a key frame which contains the menu sub-items and another hit box with the rollout command going back to frame 1. I just don't get why the items flicker when you enter each button's hitbox.
Any suggestions are hugely appreciated!
Here is the site: www.childhoodstuttering.com
I can upload the fla for download tonight.
XML File Not Coming Up
Hello,
I have a calendar which works like a gem. But if I call it into my main movie through createEmptyMovieClip, the XML doesn't come in.
Here is some of the code on the first frame of the calendar...(there are 4 frames with code on each one, for that file)
PHP Code:
calendar_xml = new XML();
calendar_xml.ignoreWhite = true;
calendar_xml.load("calendar.xml");
calendar_xml.onLoad = xml_handler;
Any help would be enormously appreciated.
Thanks in advance,
bluej2
[CS3] Learning AS3 Coming From AS2
I put a presentation together for work on some of the common issues when converting from AS2 to AS3, and here is the link:
http://www.jasonljohnson.com/AS2_to_AS3/
if it helps you, great, pass it on!
Learning AS3, Coming From AS2
I put a presentation together for work on some of the common issues when converting from AS2 to AS3, and here is the link:
http://www.jasonljohnson.com/AS2_to_AS3/
if it helps you, great, pass it on!
Where Is This Error Coming From?
so I have this function called FlashAlert that uses external interface to call a javascript alert.
the problem is that if you leave the alert open for too long, after click ok on it, flash throws an error like this:
Code:
Error: Error #1502: A script has executed for longer than the default timeout period of 15 seconds.
at flash.external::ExternalInterface$/_toAS()
at flash.external::ExternalInterface$/call()
at MainClass$/FlashAlert()
at MainClass$/alert_alex()
at RingCustomizer/handle_alex_alert()
at RingCustomizer/calcPrice()
at RingCustomizer/onRingChange()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at Stone/dispatchChange()
at Stone/set stone()
at Stone/onChoose()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.display::Stage/dispatchEvent()
at StoneButton/onClick()
The application is perfiectly fine afterwards but this is kind of ugly for a user to see, so I want to catch() it but I am not sure where I should wrap my try() around?
should I put the externalinterface.call() within the try()? I just dont want to display that error.
Thanks!
New MX Studio Coming Out?
Alright, we're in 2005 and I'm a little hesitant to drop a lot of cash on upgrading to Studio MX 2004 if there are going to be new versions out this year.
Has anyone heard about any new versions coming out anytime soon?
Image Coming And Going Two
Hi...
Is there possible that through actionscript I click in a buttom and make an object (in this case my picture) leave the stage.... I´ve already did but using a mivieclip and the eventos "on release bla bla bla"....
if anyone could help me...
Thanks jefferson
Coming Back
ok i have this square for example ...
when i press it moves with a simple tween ...
how can i make it that when i press it agin it goes back to it original place ?
meaning
on press 1 moves to certain place ... ( done )
on press 2 goes back to it original place .....
will this a fla. to show u what i mean ...
http://www.sendspace.com/file/b8w3io
help =D
Image Coming And Going Two
Hi...
Is there possible that through actionscript I click in a buttom and make an object (in this case my picture) leave the stage.... I´ve already did but using a mivieclip and the eventos "on release bla bla bla"....
if anyone could help me...
Thanks jefferson
Flash 8 Coming Soon
Anyone know a firm date for the release of Studio 8? The new Flash Pro looks pretty slick with the blending modes and new filters added.
SB
Error Is Coming
Hii,
I have made dynamic menu like following link. one error is coming which i cant trap it out.. i m new in scripting if possible plz. help me out.. error=Target not found: Target="content/rebuildLoop" Base="_level0.oItem5" its coming in trace.
http://www.metroflix.com/index2.html
i wanna make menu like this. but i dont know much scripting if u can plz. help me out....
bye
Problem Coming From AS2 To AS3
I've done quite a few projects in Flash but I tend to use it solidly for about three weeks and then I won't use it again until another project needs it so although I understand Action Script I never quite remember how to write it so I rely heavily on a bunch of examples that I have gathered over the years but these are all Action Script 2.
I've put off using AS3 for this very reason but the longer I leave it the worse this is going to get so I'm determined this time to use AS3 even though its taking me ages.
Anyway my problem, this is just an example but once I have the solution I will be able to use on my project. I have an FLA setup with some animated movie clips as buttons just like the ones Lee did in ones of his tuts ages back, now with some help I had them working in AS2 so that they would stay down until the next one was clicked just like a typical nav bar.
I have tried to write to translate the code into AS3 but I can only get some far, would one of you guys be kind enough to help me out with this. This is my code
[code]
var activeMenu = b1_mc;
b1_mc.addEventListener(MouseEvent.MOUSE_OVER, over);
b1_mc.addEventListener(MouseEvent.MOUSE_OUT, out);
b1_mc.addEventListener(MouseEvent.CLICK, clicked)
b2_mc.addEventListener(MouseEvent.MOUSE_OVER, over);
b2_mc.addEventListener(MouseEvent.MOUSE_OUT, out);
b2_mc.addEventListener(MouseEvent.CLICK, clicked)
b3_mc.addEventListener(MouseEvent.MOUSE_OVER, over);
b3_mc.addEventListener(MouseEvent.MOUSE_OUT, out);
b3_mc.addEventListener(MouseEvent.CLICK, clicked)
b4_mc.addEventListener(MouseEvent.MOUSE_OVER, over);
b4_mc.addEventListener(MouseEvent.MOUSE_OUT, out);
b4_mc.addEventListener(MouseEvent.CLICK, clicked)
function over(event:MouseEvent):void
{
if(_root.activeMenu == undefined || this._name != _root.activeMenu._name) {
this.gotoAndPlay(2);
}
}
function out(event:MouseEvent):void
{
if(_root.activeMenu == undefined || this._name != _root.activeMenu._name) {
this.gotoAndPlay(7);
}
}
function clicked(event:MouseEvent):void
{
if(_root.activeMenu != undefined) {
_root.activeMenu.gotoAndPlay(7);
}
// make menu active
this.gotoAndStop(20);
// save new menu item
_root.activeMenu = this;
}
I have even noticed that this.gotoAndPlay(2) doesn't even seem to work, do I have to write this differently in AS3?
Creating A Coming Soon Page.............
Hello. I'm creating my first website. I purchased my .com name, I have Cute FTP and my site is hosted by GoDaddy.com. My question...... I want to display a page that simply says, COMING SOON...... So people will know that I'm in the process of creating my site. I think I came up with a pretty decent page, but I cant get it to upload for some odd reason! Is there something that I'm doing wrong?
THANX
New Standalone Player Is Coming
I just heard from a MM representative (thanks J.W.!) that a new STANDALONE player will be released in the next 2-3 weeks. This will supposedly fix the "streaming issue" on standalone players that several people (including myself) have stumbled into. This is the issue that is most prevelant on CDROM applications that load external swf files into a main movie and cause the player to lock up when a new swf is loaded. There is no beta version available-I already asked. If I hear more I will post it here.
AzF
.gif File Is Coming Out Funny
Hello,
I have two files I created for buttons. They look good and clean, but when I view the file in a browser, the text looks ragged. I increased my Publish settings to 100% for jpg quality (although they are .gifs) and HTML quality to Best. Any help would be appreciated to why this is happening.
You can see them at http://www.ayslimos.com/test.html, skip intro then click on "Reservations". They are the Reservation Request button.
Thanks in advance,
MonaE
Motion Tweens Coming Out Bad
For some reason, since I've had the new version of mx, the motion tweens have all come out horribal...
just really chocky and skippy like.. they just aren't smooth, regardless of what I do.. what can I do about this..?
Pictures Coming Out Pixelated.
I know technically you're not supposed to import outside images, but I absolutely had to for a logo for my homepage. When I import it into flash it looks like mangled crap. Also, I saved it as a jpeg but it's importing into flash as a bmp? Anyway to make these imported images look clean in flash?
Pictures Coming Out Pixelated.
I've heard technically you're not supposed to import outside images, but I absolutely had to for a logo for my homepage. When I import it into flash it looks like mangled crap. Also, I saved it as a jpeg but it's importing into flash as a bmp? Anyway to make these imported images look clean in flash
Preloader Question Coming Up
Have downloaded a preloader, have adapted it to my site but I dont know how to link the preloader to the main movie (seperate file) or where to place it in timeline, etc..
help me! please?
Ad
Pop Ups Not Coming To Front Of .swf File?
Hello!
I am creating a .swf file to burn onto a CD that has links that open browser windows that access certain urls. On the initial button, the browser comes to the front of the .swf file just fine. Then I resume my movie and the browser moves to the back of the .swf. On the second button, the browser no longer moves to the front of the .swf but continues to run BEHIND it.
Is there any actionscript I can use to make sure the browser window jumps to the front of the .swf file?
(NOTE: this seems to work fine on macs but not on pc's)
THANK YOU FOR YOUR HELP!
Since Flashtyper Is Never Coming Back..
Im interested in knowing how to implement one of the text effects into my own project. Since the FLA's do not come with instructions, how would one use something like this:
http://www.flashkit.com/textfx/Other...F-31/index.php
in their own projects?
Help appreciated.
For Flash 5
Calcfields Coming Up NULL
Hi, I'm using flash 2004 professional. I'm trying to make a calculated field in a dataset but am having some trouble.
I've tried to follow the example used in the flash help.
I have a dataset named "ds".
I have 3 input text components called "f1" , "f2" and "box1"
In the ds schema, i've made 3 items -- "price", "quantity" and "totalPrice".
All 3 have datatypes set to Number.
"totalPrice" Kind is set to Calculated.
I have f1 bound(out) to ds.price -- f2 bound(out) to ds.quantity -- and box1 bound(in) to ds.totalPrice.
On the first frame of the movie i have this actionscript:
function calculatedFunct(evt) {
evt.target.totalPrice = (evt.target.price * evt.target.quantity);
}
_root.ds.addEventListener('calcFields', calculatedFunct);
When i run the movie and try to input numbers into f1 and f2, I get "NULL" in box1.
What am i doing wrong?
Thanks in advance, db
SWFs Coming In Much Larger Than They Should It Seems
I've attached a file I'm hoping someone can help me with. The script in frame 1 of the actions layer allow you to type in what text you want to be animated (text = "kontakt'). The rest of the scripts and the two movie clips make everything work, and it has a nice effect which you can see by publishing the swf. It uses a fixed width device font for the text (_typewriter), the main movie is three frames, mcChar_mc is five frames, and mcLetter_mc is just one frame. Yet, my swfs produced from this are coming in at around 40k. Why? Is the script so complicated? Previously I had used this same file with an embedded font, and the swfs came in at around 20k - still too much, but I thought it would be worse with embedded fonts.
These swfs are loaded externally by rollovers in another file, so they must be small. It seems like they should be, but I can't figure out what's wrong (which is why I'm here again).
Thanks for any help,
Adam
Array Coming In As A String - Eek
Hello,
I'm loading in an array from an external txt file (I'm bringing it in via LoadVars())
&spectrumLeft=[[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]...]
but it appears to be coming in as a string! eg: (the output window displays this)
spectrumLeft:"[[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]...]"
how do I convert this to an array when it's read in!!?? Or should I be loading this in a different way?
Thanks,
ss
Chipmunk Sounds Coming From Mp3
i have a simple player on the bottom corner of my site, play, stop, back forward. you get the idea. and i have 5 external mp3's loaded into a folder within my site folder. when i click on the songs to play them through winamp out of the folder they sound fine, but if i play them through flash they go haywaire like the chipmunks. any ideas out there? i thought it might have been the 44100 but it seems thats what i am supposed to use.
folder is named "audio", it is within the folder where all of my .swf's reside. code on player is
stop();
var currentSong:Number = 1;
var totalSongs:Number = 5;
var my_sound:Sound = new Sound();
next_mc.onRelease = function() {
if (++currentSong>totalSongs) {
currentSong = 1;
}
loadSong();
// loadSong ====================
function loadSong() {
trace("audio/song"+currentSong+".mp3");
my_sound.loadSound("audio/song"+currentSong+".mp3");
}
//i left out the button code, i dont think it is important?//
Focus Rect Not Coming
TabIndex works if i set the Action Script version to 1.0.
If i change it to actionscript 2.o, tab index dosn't work.Focus rectangle dosn't come.
Thanks...
XML Links Coming Up With Warning
Hi, I'm using the XML CSS tutorial found right here on actonscript.org.
When I tried adding an html link in the xml - web browsers won't let it go through and tell me
"Adobe Flash Player has stopped a potentially unsafe operation."
Tells you, you must reset your settings and restart the application.
At that point I doubt anyone would bother to check out the link.
Are there any ways to get an html link in xml text without getting the warning? Having trouble finding a tutorial that deals with links in xml.
thanks
STEALTH SOUND Where Is It Coming From?
Now this is very weird!
I've got a FLA file, handed to me to change the "hover" sound for a button. No brainer...just open it up and...
..no sound in the timeline! The object is in the Library, but it's nowhere on the timeline! No actionscript is being called, no reference to anything.
But when I export an hover over the button...hey...SOUND!!!!!
Where is it coming from! Where is the refernce being set?
I've opened every single object, looking for a reference to this Lib object....nothing. Checked all timeline entreis for a reference...nothing. Even exported all actionscript to file and checked the files....nothing.
Is my FLA file possesed? Should I have my machine blessed?
Does Flash 8 now have a Jedi skill requirement I'm unaware of?
Obe Wan - "You will play sound!"
SWF - "No, I won't!"
Obe Wan - "You WILL play SOUND!!!"
SWF - "No, I wo......wait.....software update.....yes I will!!!"
HELP!!!!!!!!!
Extra 0.5 Pixel Coming From...Nowhere?
I am stumped by this one.
I have a custom class called Panel that extends MovieClip, inked to a MovieClip in the library of the same name. In the constructor I am loading a bitmap and adding it to the Panel as a child.
When I create an instance of the Panel class, and then add it to the stage using addChild(), the Panel width property always gets an extra 0.5 added to it. So if the bitmap was 100pixels wide, the Panel ends up 100.5!
I have NO idea where this extra half pixel is getting added. Any ideas as to why this is happening?
Attach Code
public function Panel(imageURL:String, w:Number = 100, h:Number = 100)
{
var imageLoader:Loader = new Loader();
var url:String = imageURL;
var urlReq:URLRequest = new URLRequest(url);
//events
imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, loaded)
imageLoader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler)
imageLoader.load(urlReq);
//copy the loader contents into a new Bitmap...
var b:BitmapData = new BitmapData(w,h);
b.draw(imageLoader);
var bmp:Bitmap = new Bitmap(b)
//Here, the width is correct.
trace("Bitmap width: " + (bmp.width) + ", Panel width: " + (this.width));
addChild(bmp);
}
//---This code is added to the stage frame
import Panel;
var panelTest:Panel = new Panel("panel.png", 100, 64);
stage.addChild(panelTest);
//Here the width is reported as having an extra 0.5 pixel.
trace(panelTest.width);
Where Is My Scrolling Text Coming From?
Hello (and long time no see for those that might remember me).
I am having to go back to a Flash movie I did to edit some text. The text is in a scrollable text box I made.
For the life of me, I can't figure out where this text is coming from and I can't find anything to tell me where it might be coming from. I don't think it's connected to an external .txt file (and I can't see anything that says it is).
The text box is empty when I view the file and even if I type in some test text, the old text is overridding it.
It's been a while and my mind is rusty. Can anyone tell me what's going on?
Much thanks in advance.
Simple Question - But It's Just Not Coming To Me
I am creating a pager movieclip
I want to combine it with my random pull down action that I posted on here previously...
What it is going to do is come down at a time between 1 and 30 seconds, then go back up when the message is done scrolling
I need an array of messages and one to be selected randomly and only once that time of execution....
My second question is, when I am scrolling a message across in the movie clip I create, when I put it on my main file, it shows the text outside. scrolling...thats not the best description but....it shows the text line from the beginning to the end when it goes on to the pager and off, is there a way I could make the movie clip a certain size so it would only show what is in that size....??
Thanks
-TJ
New Release Of My 3d Engine Coming
Hi there, it's still far away but right now I have got this important question...
I'm currently playing around with the texturing algorythm part, and I've really got enough of doing useles stuff, so I tought it would be the best idea to simply ask:
There are two options I could choose right now.
1) the engine could work very fast (yes without any lagging on an usual pc) with high fps, rendering realtime, BUT it will look like Doom or Doom 2
[basically: updated raycasting, with no object restrictions, walls don't have to be placed in 90 deg. There are heights and levels in the game, but unlike doom, it is possible to place more objects in one area with different heights/y axis (for example, you could run only up stairs in Doom but couldn't go under the stairs)]
2) I'am not sure myself how fast it would actually run, but I'm pretty certain that it will require some hardware to get high fps, BUT it will be able to render a near quake 1, rather duke nukem 3D enviroment.
long story short: the question is that you'd rather go along with the engine where you can move up and down but can't look up and down, or a slower one with the latter parts enabled
All advices are welcome, altough I've forgotten a lot, I still hope my english is bearable
ps: and whatever I decide, there will be both versions done later, if the first one succeeds
cheers
Preloader Coming Late
Dear Kirupa and friends,
I am using a simple loop type of code to have a % counter... You know.
The main interface is quite heavy and that's why I am using it. The script for loading is on the 2 first frames of the main interface.
I don't understand why this loader is taking a real long time to come up and only shows up at 85 % of the download, making it a bit useless.
check out
http://www.studio-meta.com/
with a bit of patience, you'll see what I'm talking about.
Thanks for suggestions.
MCs Coming In From The Wrong Frame
I have a MovieClip named bob on root 4. I go to frame 6, where there is no MovieClip named bob. I go MovieClip(root).bob.x and somehow we're still accessing the x-coordinate a MovieClip named bob. Why does this happen and how can I stop it?
(The way I'm accessing it isn't as straightforward as MovieClip(root).bob, so don't just say "stop accessing it".)
Where Is My Scrolling Text Coming From?
Hello (and long time no see for those that might remember me).
I am having to go back to a Flash movie I did to edit some text. The text is in a scrollable text box I made.
For the life of me, I can't figure out where this text is coming from and I can't find anything to tell me where it might be coming from. I don't think it's connected to an external .txt file (and I can't see anything that says it is).
The text box is empty when I view the file and even if I type in some test text, the old text is overridding it.
It's been a while and my mind is rusty. Can anyone tell me what's going on?
Much thanks in advance.
Simple Question - But It's Just Not Coming To Me
I am creating a pager movieclip
I want to combine it with my random pull down action that I posted on here previously...
What it is going to do is come down at a time between 1 and 30 seconds, then go back up when the message is done scrolling
I need an array of messages and one to be selected randomly and only once that time of execution....
My second question is, when I am scrolling a message across in the movie clip I create, when I put it on my main file, it shows the text outside. scrolling...thats not the best description but....it shows the text line from the beginning to the end when it goes on to the pager and off, is there a way I could make the movie clip a certain size so it would only show what is in that size....??
Thanks
-TJ
Images Coming In Slowing
Hi
I am tring to bring an image in slowly into the website .
But when I motion tween it just moves from one keyframe and then when then the next keyframe arrives - when the motion tween ends and just moves there suddenly and thats not the idea. I want it to gradually move into place..
Any ideas?
Kind Regards
Melissa
|