What Language/script Can ActionScript Communicate In?
Dear Gurus/members, I am a newbie in ActionScript. What language/scripting can ActionScript communicate with? ASP? VBScript?JavaScript? Any suggestions and information is highly appreciated.
Thanks in advance, Janice
ActionScript.org Forums > ActionScript Forums Group > ActionScript 1.0 (and below)
Posted on: 06-01-2004, 01:41 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
ActionScript 3.0: How To Communicate With Loaded Movies?
Hi,
I have a site I am building in AS3. I have a main SWF, site.swf, that loads the subsections as seperate SWF's only when a user clicks on them (to save on initial load time).
For my subsections, I need to be able to communicate with the SWF that loaded it. In AS2, this was simple enough - just say something like _parent._parent.gotoAndPlay("something"), and step up enough levels to speak to movie clips in the main SWF.
Trying to do this in AS3, however, results in errors such as this when trying to compile my subsection SWF:
Code:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
... because it thinks I am trying to communicate with something that doesn't exist. The result is that I can't compile my subsection SWF's.
For example, I am unable to reference a variable in the main SWF using this code in my subsection SWF:
Code:
myText = this.parent.parent.parent.parent.sectionTitle;
Surely there must be a way to do this? Can I at least tell the Flash 9 Alpha compiler not to stop when it runs across this?
Thanks,
Graham
ActionScript, Is It Hard Language?
Hi.
I want to ask about Action Script. Is it hard language?
cause I bought alot of books for this language but I cann't understand it
Maybe cause is these book only in basics!.
Where Can I Learn The Language Of Actionscript?
I'm interested in leaning actionscript. I understand and can write HTML. There are rules and so long as you follow the rules it works. My question to you is can you suggest a book that will help me learn how to compose actionscript by myself. Most of the flash books I have read give step by step examples but never really explain the language itself. The rules. I read on-line that actionscript 3 has just been released does this throw actionscript 2 into the trash or simple build upon the previous incarnations. I'm curious to hear what all of you think.
thanks in advance
Tito
Can Actionscript Communicate With JavaScript To Create An Online Form?
I'm creating a Flash site for a client and they want a "LOG IN" page with in the Flash site. Users to this site must enter their contact info before they can enter the site. My client's main objective for the site
is to generate sale/contact leads, so the "LOG IN" is really just a way to get their contact information so that a sales team can follow up with calls.
I've created online forms using JavaScript/ASP but never using Flash. For this Flash site, the contact information needs to be sent to my clients email address. Can Flash do this?
I've been trying to figure this out for awhile but having no luck. Any help would really be appreciated!
Thanks!
Understanding Actionscript Language - Help Needed
As a relative novice to Flash I was hoping that some more experienced users could help me to solve an issue that is frustrating me (due to my inability to understand basic Actionscript language)
I have tried posting to the Macromedia Usenet group for Flash but the answers I received (for which I was grateful) were couched in terms that I could not follow or did not seem to work even when I tried to implement the suggestions made (probably because I did not really understand what was being explained to me)
Here then is a description of the project I am trying to complete
I am attempting to construct a clickable map - nothing too difficult with that and I have succeeded in understanding the idea of buttons and attaching behaviours to specific events (like a rollover for example).
Now I wish to attach a movie clip (pop up style) to the same (rollover) event and I cannot understand how to do this.
Imagine a map of the USA (my map is not actually the USA but the example will suffice for this explanation) with each state as a section of the map. As the mouse rolls over each state that section of the map changes colour
I have completed the creation of this first stage of the project already so I have my basic map – this (map) movie consists of just one frame on one layer. The map contains 104 separate sections and each section has been converted into a button with a colour change assigned to the rollover event.
Now in addition (tied to the same rollover/rollout events) I wish to have a panel of information relating to the highlighted section of the map appear at a designated point on the map (so that the pop-up panel does not interfere with viewing the map itself) and then disappear when the mouse rolls out. Of course this means that a new panel of information will immediately appear relating to the adjacent section (state) on the map and so on and so forth for each section (state) on the map.
I have the 104 panels of information already created in a separate Movie – called Regionaldata – this movie consists of one layer with 104 separate frames, one for each section of the map
Please also see the following URL, which is a similar map showing the kind of pop up panel effect I am trying to achieve:
http://eng.bundesregierung.de/frameset/index.jsp - click on the small map image
Here are some basic questions illustrating my poor knowledge of Flash
1.What is the difference between a Movie Clip and a Movie?
2.If you attempt to play a Movie Clip within the Main Movie, does that Movie Clip have to be a part of the Main Movie – i.e. sitting on another layer – or not? If the answer is no what form of syntax is required to call the Movie Clip into the Main Movie – I understand the concept of a pathway, i.e. C:/Main_Folder/Sub_Folder/Movie_Clip – but is this how you identify the target Movie Clip in Flash or is another form of syntax used in Action Script language?
3.Each section of the map is already a button but can these sections also be (simultaneously) a Movie Clip?
Thank you in advance for any help or advice suggested by other members of this forum
What Programming Language Is Most Similar To Actionscript?
I am going to take a programming class in the fall to try to understand actionscript better, which programming language is most similar to actionscript; Java, FORTRAN, or C++. (I am thinking it is Java but I just want a second opinion.) Thanks.
Language Tone Marks In Actionscript
I am currently working on a project for a Tlingit (northwest coast USA indian tribe) language program. I am using dynamic text to put some text on the screen as items are clicked on to identify them. the problem I have is that I need an underlined word to appear on the screen and I cannot seem to find a way to get the word underlined in actionscript. I tried copy and pasting from word but it drops the underline out when I do that. Gaat ... that is the word im trying to put in there.
anyone know?
StinkMoe
Language Check, Javascript/actionscript
Hello,
Can anyone tell me how to make flash check the language installed on a persons pc and according to that information play a label. Maybe someone already tried this before and can help me with it.
I want to use one swf for different languages. so e.g. when the check reads that one person uses the french language on his/her computer the check will play the french label.
This may be a bit OT, but i can try it anyway.
Regards,
Marcus
BBEdit Actionscript 2 Language Module
Hi guys,
For anyone who uses BBEdit 8.x for their actionscripting, I’ve just posted an Actionscipt 2 Codeless Language Module for BBEdit 8.x at:
http://geni.com.au/as2Module.html
Just thought y’all might be interested.
cheers
Glen
Can I Start Learning Actionscript 3.0 As First Language?
I don't know much about programming. I only know some html & css. Now I read that learning actionscript 2.0 first is a waste of time as 3.0 is totally new & different. Now can I pick up Actionscript 3.0 as first language easly? Or should I learn a programming language first?
Understanding Actionscript Language - Help Needed (part II)
To G Paris
First of all thank you for your response to my posting.
I have only just been able to read your posting and look at your suggestions.
I have read various documents related to Actionscript and I have to admit to being very confused by the terminology used by these manuals.
Is there a tutorial included on this site that is relevant to my query?
Now I have further questions to ask flowing from your suggestions:
1. If I convert the existing buttons to movieclips and place these MC's on another layer can all 104 MC's exist on the same layer - yes/no ?
2. What form of commands do you suggest I use to make the panels of information appear and disappear? - I was thinking of using something like:
on (rollOver) {
}
gotoAndPlay();
on (rollOut) {
}
gotoAndStop();
with the relevant layers and frame numbers identified to target the panel of information required
Is this syntax suitable or not?
__________________________________________________ ____________
I'm first tempted to suggest you should read the actionscript manual. It will help clarify the basics of actionscript and lso how Flash works.
Now your questions:
1. What is the difference between a Movie Clip and a Movie?
When we say Movie , usually it's a reference to the whole .fla
A MovieClip is an object in that "Movie/.fla"
2. If you attempt to play a Movie Clip within the Main Movie, does that Movie Clip have to be a part of the Main Movie – i.e. sitting on another layer – or not? If the answer is no what form of syntax is required to call the Movie Clip into the Main Movie – I understand the concept of a pathway, i.e. C:/Main_Folder/Sub_Folder/Movie_Clip – but is this how you identify the target Movie Clip in Flash or is another form of syntax used in Action Script language?
Yes. You will "target" a movieclip, ie "talk" to it. So: "it" has to be present on the timeline at the moment when you "talk" to it. And for targetting it you have to give it a "name" also known as "instance name"
example: a clip is stting on the main timeline, its instance name is "myClip" you want that clip "visible property" to be set to false, so that it disappears:
_level0.myClip._visible=false;
would be the syntax.
3. Each section of the map is already a button but can these sections also be (simultaneously) a Movie Clip?
yes. press F8 and convert to movieclip. You now have a button inside a movieclip.
gparis
Translation Of Text From One Language To Another Language
hello
this is kishore raju
i have a problem
i want to translate some text from english to any other language using google translate (i.e i want to send the word to the google as a parameter and get the result)
so please send me the source for that .
urs
kishore raju
Scripting Language VS Programming Language
Dear Sir,
I cannot understand which is the difference between a scripting language(like actionscript or applescript) and a programming language (like java or C++).
I know that actionscript 2.0 is similar to javascipt. so it must be a scripting language.
but actionscipt 3.0 is most simmilar like java or C++.
so why it is still a scripting language?
Thank you upfront for your interest.
Communicate Between Two SWF
Can someone help me about how to interface two SWF and send commands like geturl play or stop ? I know is with actionscript but....where can i found informations ?
Swf To Communicate With Another Swf
I have two swf's on one html page. I would like one swf to contain a password and when the password is correctly entered, I'd like it to target a scene in the other swf. Is this possible in flash 4 or 5? I know you can tell target in the same parent movie for other clips in that movie, but how about seperate movies? Please help! ASAP please!
Thanks in advance,
P.O.T.U.S.
2 Swf's Communicate?
hi,
I have 2 swf's
1.swf and 2.swf
1 is very long, 2 is very short
so that creates an L shape ... but since im already trying to use some HTML on the compliment of the L shape so i cant make them both into 1 block or 1 swf ... i have 2 make them 2 ...
I just want 2 have a button in 1.swf to simply LOAD 2.swf NEXT to 1.swf (& not over it) .... thats all
it sounds so simple but i just cant figure out a thing
I heard that Flash MX can make 2 swf's communicate but i never found that in the help .... also if the only way is JS can someone make up a mock file 2 show me the exact coding needed to acheive this interaction?
Thanks
Communicate
I've got a movie that loads another .swf movie into it. Now I need to make the loaded movie do something based on a variable I defined in the root of the main movie.
how???
thanks
Communicate Between Swf's?
I have learned the very helpful load movie clip into target function. Is it possible to load say an swf of buttons and have those buttons alter something in another swf movie?
THanKS
Communicate
Can someone tell me how to send info from one .swf to another .swf?
for example: sending mouse coordinates to an other .swf
here is a website witch uses it. (or is it a verry large .swf
who can tell me?)
Madrhino
amazing site not?
MM just realised that they just filled everything up with flash
can someone explain how?
and how to make something following with delay (I know it's with coordinats but not exactley )
Thanx
How To Communicate (SWF-SWF)?
Hi!
How to communicate (SWF-SWF)?
I want the "1.swf" control the timeline on "2.swf", so the "1.swf" changing the frame on "2.swf" to 2.
HOW TO DO THAT?
(FULL GUIDE PLEASE)
How To Communicate (SWF-SWF)?
I posted this in the AS3 and Flash CS3 forums, but didn't got the right answer...
Read carefully:
How to communicate (SWF-SWF)?
I want the "1.swf" control the timeline on "2.swf", so the "1.swf" changing the frame on "2.swf" to frame-number 2.
HOW TO DO THAT?
(FULL GUIDE PLEASE)
Communicate Between AS3 - AS2
Hi Friends,
I created a template in AS3 which loads as2 swf's then an interactivity done in as3 will follow that.
In this case, i have only as2 swf's, so no local connection can be done. Is there anyother way to communicate with AS3 template with AS2 swf.
I need to track the total frames of the loaded swf ?
Communicate Between To Swf’s
Hi you all,
I’m trying to let to swf’s to communicate.
I have one main SWF and loaded a SWF in the main SWF.
Now I want to play a label in the loaded SWF by clicking a button in the main SWF.
For now this is my button code:
Code:
on (release) {
_level0.movieName = "news";
if (_level2) {
_level2.play(“fade”);
}
}
As you can see the name of the label is ‘fade’. When I test the button the loaded movie plays from the beginning instead of playing from the ‘fade’ label.
Hope anyone can help me.
Is It Possible To Communicate Between 2 Different SWF Files?
let's say i've got a frameset with 3 frames. two of them containing flash movies and one with html content:
frame1-flash | frame2-html | frame3-flash
what i want is that both flash movies start at exactly the same time 'cause the movies together form an animation, a symmetry.
i guess both movies will have to contain some sort of preloader, but they will need to communicate with each other in order for them to start their "main scenes" at exactly the same time.
any help is much appreciated 'cause at the moment i'm puzzled.
Swf's And Levels... Can They Communicate?
can seperate swf's comunicate with each other on seperate levels?
can i tell level 5 to load level 1.
and after loading then have level 5 go to a frame?
thanks,
julian
How To Communicate Between 2 Levels
Hi you all,
An item in the main movie, has to be scrollable (Slide on x position)
First, it works fine because I have put the buttons to scroll in the same movie.
Now I have placed the buttons in another movie and level (2) and the whole script does not work anymore.
Here is de code:
Item that has to move/scroll:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
play ();
current_x = getProperty("../extreme", _x);
dif_x = current_x-/:xpos;
setProperty ("../extreme", _x, current_x-(dif_x/5));
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Button in other level, that have to make in move/scroll:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
on (release) {
/:xpos = 780;
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
What do I wrong?
Communicate Between Swf Files
Hi,
is it possible to communicate between swf files?
I have a MAIN swf file. In this MAIN swf file I load two external swf files with loadMovie.
OK, I want to know, if the first movie is really loaded!
Can I do something like “_root.mc1.IsLoaded = 1” ?????
I think no?!?!?!?! Must I do it with a “Java Script” ????
Thanks
David
Communicate Between Swf Files
Hi,
is it possible to communicate between swf files via variables?
I have a MAIN swf file. In this MAIN swf file I load two external swf files with loadMovie.
Can I do something like “_root.IsLoaded = 1” in the first swf file, and in the MAIN swf file I check this variable with “if(_root.IsLoaded == 1) …” ??????
Thanks
David
Can Swf Movie Communicate With Each Other?
If there are two or more swf movie running, is there any method to allow them to have communication with each other? For example, if I press a button on 1.swf, the background of 2.swf will be changed, and 2.swf will inform 1.swf its background is changed by showing a message on 1.swf...is it possible?
Thanks for your kind help.
Using ASP To Communicate With Flash
Hi All ---
I was hoping someone could assist me as I have recently just begun to attempt to use ASP to communicate with the Flash object. I am nowhere near an expert in ASP, but I certainly understand the language and have used it to build database driven websites. With that in mind can someone assist me with the following:
I wish to pass information from an ASP page to the Flash object. For example, how would ASP have a movie clip stop or start playing based upon a conditional event in ASP. For this thread's sake lets assume the following:
Flash Movie: Movie.swf
Movie Clip: myMovieClip
Can someone provide an example of the code I might use?
Also do I need to use a loadVariables action if I am going to load data into the flash movie or can I simply "push" it from the ASP page?
I hope this is clear and if not please let me know and I will do my best to provide more details.
Thanks to any and all responses.
Cheers!
SDL
Communicate Between 2 Different Swf Files ?
hi,
i am developing a website which is a combination of flash and php.
I am using an html frameset, in one frame i have a flash navigation menu, and i would like to have in another frame some kind of "tooltip movie". For example when mouse is over one button of the menu, the tooltip movie gives details on what can be found there.
But as long as the tooltip movie runs in a different frame, it is in a different swf file, and i can't figure out how to pass the events from the menu swf to the tooltip swf.
Is that possible and if yes how ?
thanks for any help
Is It Possible To Communicate With DLL`s With Flash?
I wonder if it`s possible to let Flash communicate with DLL`s?
I have an assignment at my university to make a "plug-in" for Flash
so it`s able to use Bluetooth API. This to let designers make prototype applications that can communicate via Bluetooth.
If this ain`t possible i`m in deep ****
Can Flash And C++ Communicate
I am fooling around with a little idea and i was wonderng if anyone knew if flash could talk with C++, via actionscript or something?
any ideas?
Can Not Communicate With Instance ?
hi all~
i met some problem and have no good idea just now. the situation is, i have a class which which load external xml source and if loaded the instance property named "__loaded" will set to true, but i just find onLoad handler can not communicate with members inside class !!! here is my code:
Code:
class Words
{
private var __source:XML;
private var __loaded:Boolean;
public function Words(source:String)
{
__source = new XML();
__source.ignoreWhite = true;
__source.load(source);
__source.onLoad = function()
{
// Can reach here !!!
parseSource();
__loaded = true;
}
}
private function parseSource():Void
{
//
}
}
within onLoad handler, both parseSource and __loaded can not be reached, any suggestions ?
Communicate From 1 Flash SWF To Another SWF
Hello everyone,
Is this possible -
- to have 2 Flash SWFs loaded in a single web page and
- a action on one Flash SWF updates the other SWF?
For example:
one SWF shows 'square' and 'circle' as buttons and
a click on 'square' button to show a square figure in second
Flash and to work similarly for 'circle'.
If its possible, any such example that exhibits such communication (need not be the example that I mentioned of), will help me learn and develop such a pair of SWFs.
Any help in this inter-Flash files' communication is appreciated.
Have a nice day.
Thanks in advance,
-Venky.
Geting Swf's To Communicate With Each Other
hi im tryin to get 2 swf to communicate somehow with each other
ive read somethings but just cant seem to get it im kinda new to scripting i have flash mx anyway what i want is to have a swf "in a left frame of a html page" goto and play a specific frame in another swf "in a top frame of a html page" with a button clicked in the first swf.
any help would be greatly appreacited thank you
Communicate With HTML?
Hi,
I am giving a first try to actionscript 3.0. I just bought the big Essential ActionScript 3 book, but barely started at the moment.
I have a project coming that would involve Flash and HTML.
A portfolio site where the navigation would be Flash, click on a button, have an image appear. The part I am wondering if possible is to have a descriptive text show, in the HTML page, outside the .swf. So, basically, each time you change the image in the .swf, it must change the HTML text. I am very basic in HTML..
I know it would be possible to have the .swf load a different url, but is it possible to change the HTML text without changing the page url?
I hope I am clear enough.
If this is at all possible, any logic on how to do it or tutorial..or section in my big book...(I cant seem to find it in it, but I havent been through all yet.)
Thank you
|