Controlling Flash Externally
All I need is to make five images in HTML/CSS/javascript that act as buttons, and each of those buttons goes to a different frame in the movie, and that's it. I'm seeing ways to send text into the movie etc. I just need an external button, that goes to a specified frame. I'm mostly getting caught up in the Javascript part, because I don't understand it. Can someone please help or point me in the right direction?
FlashKit > Flash Help > Flash Newbies
Posted on: 05-15-2007, 11:08 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Externally Controlling Flash
Hello all,
I wasn't sure where to post this. So i will start here. what i am looking to do is have a webpage with various radio buttons that i can click on or off. This will then in turn send a variable to flash to control certain features.
For example i would have buttons for different emotions and when you click one it would "turn" that emotion on or off in the flash movie. Basically the flash movie is a header for the home page. Then each day i could load up my control page click on the emotion for the day and in the header it would be displayed. This would save me from opening the flash file editing the file, publishing it and then uploading it each day.
If anyone has an idea how this can be done or can point me in the right direction. Please help me out.
i am currently using flash 8
Controlling Flash Externally
Hi, I have a lot of sound (background music and voice overs) synced perfectly in my flash file. But, I'm using Timeline Sounds, not Sound Objects.
I've tried converting everything to sound objects so I can pause/play everything, but then the sounds become very unsynced.
Bottom line:
Is there an easy way to pause and resume everything in the flash file (sounds included) using HTML, XML, or a separate flash file?
It's easy to pause and play visual objects, but I'm finding having the sound pause too, is horribly complicated, especially for a newbie like me, without having to convert and resync all the sound. Trying to avoid because there is so much of it.
Thanks in advance,
Brian
Controlling My Flash File Externally
Hi all...
I have a flash file from which i would like to have certain sections load up apon clicking a given link externally.
What would be the best way to go about this ?
for example:
HTML Link 1 --> section 1
HTML Link 2 --> section 2
HTML Link 3 --> section 3
Thanks!
Externally Controlling Flash Movie
Hello all,
I wasn't sure where to post this. So i will start here. what i am looking to do is have a webpage with various radio buttons that i can click on or off. This will then in turn send a variable to flash to control certain features.
For example i would have buttons for different emotions and when you click one it would "turn" that emotion on or off in the flash movie. Basically the flash movie is a header for the home page. Then each day i could load up my control page click on the emotion for the day and in the header it would be displayed. This would save me from opening the flash file editing the file, publishing it and then uploading it each day.
If anyone has an idea how this can be done or can point me in the right direction. Please help me out.
Controlling An SWF Externally?
I just heard something about "Flash Methods". Using Javascript to control the SWF from outside of it. Ever hear of it?
What I am trying to do is have the center content of my HTML page reload different textual content when you click on a button in the Nav, but not reload the whole page. The Nav is separate from the SWF content in the center of the page. Is there a way to have it so that when you click on one of the buttons in the Nav that it can tell the swf what fram to go to?
Please let me know if anyone knows how to do this. Sounds like it would be pretty simple if you know anything about how these "Flash Methods" work.
Thanks.....
Controlling Loaded Swf's Externally
i posted this in scripting - backend, and didn't receive any replies. probably because it seemed to be the wrong forum. here it is again, verbatim. also, i'm using flash mx.
---
ok, this is the deal. i'm designing a site and basically what i want to happen is when a section is clicked, i want the previous section to animate out, and the other to animate in. also, i'm loading the sections into a movie clip, using loadmovie.
what i want to happen, ideally, is when a section is clicked, it changes the value of a variable, and then proceeds to play the swf that has been loaded into the movieclip. when it reaches the end of the timeline, i have an function checking the value of the variable (which is located in the main swf), and loading the appropriate swf file.
so, basically, what i'm having trouble with, is controlling the timeline of the loaded movie clip with a button located in a clip in the main swf. i was wondering if this is possible, and also if the function i created to check the value of the variable (for the sections) and also the variable can be passed into the loaded swf file also.
help would be very appreciated, and keep in mind, i'm fairly new to flash. thanks.
Controlling An Externally Loaded Swf
Can anyone help? I have a swf file that I have brought into my main movie using the loadMovie action (it is targeted to a blank movieClip called 'placeholder')
Does anyone know how I can control this loaded movie clip from a button on the main timeline?
When the button is pressed I want the loaded swf to begin playing at Frame X, and when it reaches frame Y, it tells the main movie to goto Scene2. (I think I know how to do the last bit! I'm just struggling with the first bit!!)
Any help/ideas would be much appreciated!!
Ta! :O)
Controlling Externally Loaded Swf's
Can anyone help? I have a swf file that I have brought into my main movie using the loadMovie action (it is targeted to a blank movieClip called 'placeholder')
Does anyone know how I can control this loaded movie clip from a button on the main timeline?
When the button is pressed I want the loaded swf to begin playing at Frame X, and when it reaches frame Y, it tells the main movie to goto Scene2. (I think I know how to do the last bit! I'm just struggling with the first bit!!)
Any help/ideas would be much appreciated!!
Ta! :O)
Controlling SWF That Were Loaded Externally...
I have posted a similiar question and looked all over the place but it just doesn't seem to work. I am trying to have a play and stop button that controls a externally loaded swf and I just can get it to work... I am using the following AS...
ActionScript Code:
on (release) { _root.container.transition.stop();}
My container is obviously called "container" and my swf that is loaded is called "transition" and it just won't work. Does anyone have any suggestions? Thanks
Mike
Controlling Externally Loaded Swf's
hey.
i'm having a bit of a problem that hope someone might be able to help me with.
i had made a image gallery using xml in flash MX 2004. some of the images are jpgs and some are swfs. i'm trying to get it so that once the external file, be it jpg or swf, is loaded, it would recenter itself in the middle of the page.
so i attached the following code to the container clip that the files were loaded into:
onClipEvent(load){
this._x = ((304 - this._width)/2);
this._y = ((304 - this._height)/2);
}
this coding works fine for the loaded jpgs, but not the swfs. then just for laughs, i put a button on the page that had basicly the same code attached to it:
on(press){
this._x = ((304 - this._width)/2);
this._y = ((304 - this._height)/2);
}
and that works on the swfs as well as the jpgs.
so basicly i would like to get this to work without having to press a button to center the image. any thoughts?
Controlling A Movie Externally
I was wondering if it's possible to control a movie via external links. Example.
"main.swf" is loaded into an html page.
below that is either another "menubar.swf" or just standard html links.
clicking one of the links would play a video clip in the "main.swf" or something like that.
Controlling SWF That Were Loaded Externally...
I have posted a similiar question and looked all over the place but it just doesn't seem to work. I am trying to have a play and stop button that controls a externally loaded swf and I just can get it to work... I am using the following AS...
ActionScript Code:
on (release) { _root.container.transition.stop();}
My container is obviously called "container" and my swf that is loaded is called "transition" and it just won't work. Does anyone have any suggestions? Thanks
Mike
Controlling An Externally Loaded FLV
Hi actionscripters,
I'm trying to control an externally loaded FLV. I'm pretty noobish with AS, but here's my code:
Actionscript Code:
vid.setMedia("Welcome.flv", "FLV");movieLength = vid.totalTime;currentPos = vid.playheadTime;pct = currentPos/movieLength;if (pct == 10) { vid.pause();}
I'm trying to make the video stop a little early, but I put 10 in as my percent just so I didn't have to sit through the whole thing to make sure it worked. It doesn't, obviously, so any help or pointers would be greatly appreciated.
Thanks!
Controlling Externally Loaded Jpegs
Hi all. I've loaded a jpg through a function which is called at the end of a mc. The function (on the main timeline) is as follows:
function startjpg(jpg) {
counter = 1;
container_mc.loader_mc._alpha=0; //makes mc jpg is loaded into invisible
container_mc.loader_mc.loadMovie(jpg); //loads jpg into a blank mc
}
I want to fade it in and eventually do other stuff to it like make it move and such. On frame 2 on the main timeline I have:
container_mc.loader_mc._alpha = counter;
And on frame 3:
counter = counter+1;
if (counter>99){
stop();
}
else{
prevFrame();
play();
}
Seems like it should work, but I know I must be doing something wrong. Wish I could post to a url. Hope it's all clear. Thanks!
Controlling Externally Loaded Clips
I am trying to tell an externally loaded clip to go to another frame in the movie. I have loade the clip into an empty movie clip on my main stage, and then I want to put an action on my main timeline that tells the externally loade clip to go to a certain frame in the clip.. Does anyone know the code for this? I tried giving the emptyclip an instance name, and then referencing the instance to go to a certain frame, but it does not work, It ignores it completely.
Mike
Controlling Externally Loaded Clips
I am trying to tell an externally loaded clip to go to another frame in the movie. I have loaded the clip into an empty movie clip on my main stage, and then I want to put an action on my main timeline that tells the externally loaded clip to go to a certain frame in the clip.. Does anyone know the code for this? I tried giving the emptyclip an instance name, and then referencing the instance to go to a certain frame, but it does not work, It ignores it completely.
Mike
Controlling A Cascading Menu Externally
i have a dynamic three-level cascading menu that my client needs to be able to control externally (from within Authorware), (perhaps using something like ExpandMenuTo(*,*,*), he says)... the problem is, the menu is built using the data contained in an external file with this AS:
:::::::::::::::::::::::::::
on (release) {
tellTarget ("/prev") {
gotoAndStop(1);
}
// This is the part where we load the .swf or whatever
loadMovieNum (url, 10);
getURL(url, 10, "post");
// ----------------------------!!!!--------------------------
/:wo = pos;
/:next = eval("/os" add Number(pos+1));
/rev = eval("/os" add Number(pos-1));
/:titel = t_name;
/:header = /:titel;
i = 0;
// set all titels inactive
while (Number(i)<Number(../:t_anz)) {
i = i+1;
tellTarget ("../:" add i) {
gotoAndStop("normal");
}
z = 0;
// set all chapters inactive
while (Number(z)<Number(eval("../:k_anz_t" add i))) {
z = z+1;
tellTarget ("../:" add i add "-" add z) {
gotoAndStop("normal");
}
g = 0;
// set all sub-chapters inactive
while (Number(g)<Number(eval("../:u_k_anz_t" add i add "_k" add z))) {
g = g+1;
tellTarget ("../:" add i add "-" add z add "-" add g) {
gotoAndStop("normal");
}
// get rid of the sub-chapters...
setProperty(i add "-" add z add "-" add g, _visible, 0);
}
}
}
// infos 4 positioning
/:active2 = "";
/:active = _name;
tellTarget ("/") {
gotoAndPlay(6);
}
// last but not least... set this button active
gotoAndStop("active");
}
:::::::::::::::::::::::::::::
there is, of course, more code elsewhere...
i sure could use someone's help in getting these different levels controlled from outside... anyone?
thanks,
glenn
Controlling Externally Loaded Movie
Hi there, well I found out a way to make my image 'canline-alpha' loader to work perfectly smooth .. now I have one more question (haha always more .. what a newb!)
I have my site setup to load, and unload external movies into a "contback" layer that I have ... while that works, I need to be able to control the loaded movies timeline and can't seem to figure how.
im using the command :
b1.onRelease = function() {
if (_root.whatscene != "main1.swf" ){
_root.whatscene = "main1.swf";
_root.contb.gotoAndPlay("open");
}
}
which then in a movie on the main timeline (contb) goes and "opens" the named "scene" via. "loadMovie(_root.whatscene, _root.contback);" which obviously, loads the external movie called main1.swf into the layer contback on the main timeline.
My question now .. is if I wanted to go to a certain frame in the external movie (main1.swf) ; how would I go about doing so?
Controlling Externally Loaded Swfs
Hello-
I am using AS 2.0 and MX 2004. I have a movie that loads in external swfs and images using the MovieClipLoader to load the element in to a clip called "container".
Now I've been testing within flash with test movie and it works great. as soon as I export my commands that toggle within different frames of the external swf fail.
what I have is:
container.gotoAndStop(frameLabel);
is there an obvious reason why this would stop working on export? or things I could try to figure this out.
I tried loading on to levels instead so I would have:
_level25.gotoAndStop(frameLabel);
and I still have the problem.
I am exporting as Flash 8 and testing in Flash Player 8.
ideas?
Controlling Externally Loaded SWF File
Hello to all!
I apologize if this question has already been asked.
I'm trying to figure out how to control a SWF that I'm loading into my main timeline. The SWF has been created in Captivate and already has controls, I just don't want the movie to play as soon as I preload it.
I'm loading the SWF into a blank_mc. How do I get this SWF to not play, or put an action within the blank_mc that will start the playback of the SWF when the end user desires.
Is this possible?
Thank you any and all who can help me out.
Chris
Controlling Mc Fill Color Externally
I have a project that demands control of the fill color of a rectangle shaped mc externally. So the user would have the control to change the fill color of a movie clip by editing something externally, not having to edit the flash file. Is this possible?
Controlling An Externally Loaded .swf's Actionscript
Here is my problem, I am loading a .swf that a previous developer made (don't have the .fla) but the actionscript at the end of the movie is resolving to home.html. Instead of it resolving to home.html I would like for it to instead have gotoandPlay. Is this possible to do?
Thanks for any tips or advice.
Controlling Sound From An Externally Loaded Swf
hello,
here's my problem.
i have a file called main.swf that has background music.
(below is how the music is loaded)
Code:
mySound = new Sound();
mySound.attachSound("Music");
mySound.start(0, 100);
and an external.swf that loads into main.swf
external.swf gets loaded on a button click and at the same time it's loaded the background sound of main.swf is stopped.
all of this works fine.
but when i try to start the sound again with a button in external.swf the sound doesn't start playing.
(below is how i call on the sound to start playing again)
HTML Code:
_root.mySound.start(0, 100);
this seems so excruciatingly simple but i haven't been able to get it to work for 2 full days.
i've tried mySound = new Sound(this); and that doesn't seem to help.
thanks,
jenny
Controlling Externally Loaded Swf Question
i had a scene in a fls that had a clip that acted like a timer, at the end of the clip it told the maintimeline to play
_root.play();
now i made thew scene a separate swf that i am loading externally via the load
component. instamce name is newbiz_clip
as an external swf i cant get the timer to make it play anymore, i tried all these below:
_root.play();
_parent.play();
newbiz_clip.play();
what am i doing wrong here?
Controlling A Cascading Menu Externally
i have a cascading menu that expands to a number of tiers depending on the variables in an external txt file - my client needs to be able to control the flow of the menu externally, if possible (from within Authorware...)...
is there a way to control a Movie externally?
thanks
glenn
Controlling Intances Through Externally Loaded Variables
Hello,
I would like to put a number of "lights" into a movie. The lights have to positions (on/off), and are converted to movieclip symbol. Various instances of this symbol are put on to the stage.#
I would like to control those lights (whether they are on or off) through an external txt file. The textfile has one boolean variable for each instance (e.g. vlight1=true).
On the each instance is following script:
onClipEvent (load) {
if (_root.vlight1 == true) {
tellTarget (this) {
gotoAndStop(5);
}
} else {
tellTarget (this) {
gotoAndStop(1);
}
}
}
...but it doesn't work!
I also tried with instead of tellTarget, but that did not work either.
I tested the variable in a textfield and it seemed to have read the variable alright (the txt file is loaded through loadVariablesNum("variables.txt", 0).
Anyone got an idea how to do this?
Thank you for your help!
Controlling MCs Inside Externally Loaded SWFs
I am loading a SWF file on layer1 of my project, and I'm attempting to position it from my _level0 "root" timeline with:
_level1.pledge._x = 256;
_level1.pledge._y = 144;
Alas, I can't make it work. The only MC inside the loaded SWF file has the instance name "pledge", so I figure this should work. What am I doing wrong?
Controlling Main Timeline Through Externally Loaded Swf
I'm missing something...here's the setup:
navbar.swf (a navigation window) loads into the main timeline, placed into a container called navguide. There are buttons in navbar.swf that I want to control the main timeline, moving it from section to section of the main site (button called "newsbutton" should move the playhead to a News section this time, which is placed on frame 5). The code I have in the main timeline so far is this (on frame 1, _root timeline):
Code:
stop();
loadMovie("scoreboard.swf", scoreboard);
loadMovie("navbar.swf", navguide);
navguide.newsbutton.onPress = function(){
_root.gotoAndStop(5);
}
No blatant typos, as far as I can find, because the effects on the newsbutton (loaded from navbar.swf) work fine. But when I click the newsbutton, nothing happens. What am I missing?
Controlling An Externally Loaded Components Properties
Hi all...
I am having some difficulty figuring out how to control a component's properties in actionscript in an external swf.
Is this possible (ie. in movie A could i load a movie B with a scrollpane, say named "component_mc" , and in Movie A use actionscript to specify setSize or setScrollContent) ????
Specifically i am using the MultiOutlet component (a component that allows you to store multiple resources such as graphics etc. like a shared library, but also with components so you don;t have to reload them each time but share them)
The multioutlet component works fine (get it at http://www.flashcomponents.net)
loading the scrollpane, but i cannot figure out the syntax or where i should put the actionscript in the movie containing the multioutlet component (not the scrollbar movie/library which the component loads) to dynamically change the component's properties...
Please help! Thanks
-aleks
Controlling An Externally Loaded Components Properties
Hi all...
I am having some difficulty figuring out how to control a component's properties in actionscript in an external swf.
Is this possible (ie. in movie A could i load a movie B with a scrollpane, say named "component_mc" , and in Movie A use actionscript to specify setSize or setScrollContent) ????
Specifically i am using the MultiOutlet component (a component that allows you to store multiple resources such as graphics etc. like a shared library, but also with components so you don;t have to reload them each time but share them)
The multioutlet component works fine (get it at http://www.flashcomponents.net)
loading the scrollpane, but i cannot figure out the syntax or where i should put the actionscript in the movie containing the multioutlet component (not the scrollbar movie/library which the component loads) to dynamically change the component's properties...
Please help! Thanks
-aleks
Controlling An Externally Loaded Components Properties
Hi all...
I am having some difficulty figuring out how to control a component's properties in actionscript in an external swf.
Is this possible (ie. in movie A could i load a movie B with a scrollpane, say named "component_mc" , and in Movie A use actionscript to specify setSize or setScrollContent) ????
Specifically i am using the MultiOutlet component (a component that allows you to store multiple resources such as graphics etc. like a shared library, but also with components so you don;t have to reload them each time but share them)
The multioutlet component works fine (get it at http://www.flashcomponents.net)
loading the scrollpane, but i cannot figure out the syntax or where i should put the actionscript in the movie containing the multioutlet component (not the scrollbar movie/library which the component loads) to dynamically change the component's properties...
Please help! Thanks
-aleks
Dynamic Images, Masks And Controlling Externally Loaded Swf Files.
Hiya folks
My latest project (and problem) is as follows.
I have a script file in which the user enters 3 parmaters in an array.. filename, holdtime & mask.
(ie. imgArray[0] = new Image("Testpic1.jpg", "3", "L_Wipe");
The swf itself just contains 3 movieclips, all empty and just holders for the dynamic images/swfs & masks to be loaded into.
So far I have it working very nicely, the jpg or swf is loaded into an imgHolder clip (using loadMovie), the mask/transistion (stored in the library with a linkage ID) is loaded into a mask Holder clip with the attachMovie command, and lastly the underlying img2Holder clip contains a copy of the top image so that when the new image is bought in the transition works seamlesly between the new image and the previous image(which is now loaded into img2Holder). All of this is totally dynamic and the users just specify whatever images/swfs they want, how long to hold the jpg for or how many times the swf loops, and what mask is used as the transition for the incoming image/swf.
DOWNLOAD ZIP: http://194.154.190.87/DynamicImage.zip
HOWEVER..as the user can also specify swf files, this brings up my major problem. At the moment I am having to KNOW the length of the swf file and use the hold variable in the array to hold it for its play length (which is no use as the user will not have produced the swf so have no idea of its length and also the production willnot have any code in it that can be passed back to the main player timeline). What I THINK I need to know,is thus..
1. How do I determine the total number of frames in a swf loaded into a movieclip with attachMovie, and then get it to perform a function when it has reached its last frame. (ALL SCRIPT HAS TO BE ON THE MAIN TIMELINE, AS THE PRODUCTION CANNOT HAVE ANY MANDATORY CONTROLLING SCRIPTING)
2. When I can do the above, I can then use the hold part of the array as a loop counter for swfs and a hold amount in seconds for jpgs. How would I get a swf (loaded as above) to loop a specified amount of times ?
3. Also I need to load in the wsf to the underlying img3Holder clip and then go and stop straight at the last frame so that when the top layered version of the swf finishes, the bottom layered version isn't playing (which it does when loaded in with loadMovie).
So it all comes down to how do I control swf files which have been loaded into a movi clip using the attachMovie command ??
if anyone could please help I would be most grateful and would have no problem as adding them as a contributor in the credits section of the code.
Anyway folks, download the zip file, run the swf then look at the Fla and .as files and see where I am now...
Thanks for listening
Cheers
Akash
[Edited by Akashanq on 08-20-2002 at 08:05 AM]
Controlling Externally Loaded Swf Files From "main.swf"
I've looked all over to get the info . . . can't find it anywhere.
I have main.swf which loads 4 other swfs inside of it such as navigation.swf, audioplayer.swf, and purposes.swf.
I want to be able to code from one button in the navigation.swf to move in the timeline of purposes.swf. HOW DO I DO THIS?
I have tried the _root.purposes.swf (but how can i get specific within the external swf file to specify the frame location [ex. gotoAndPlay (4)].
Does this make sense? It may make more sense if you go to the website.
http://www.fusionokc.com
The top buttons and content are "navigation.swf"
The bottom three buttons and content are "purposes.swf"
And "main.swf" is what loads both of them.
I want to be able to close the navigation.swf content when you push the bottom three "purpose" buttons and vice versa - when pushing top navigation, it moves the timeline to close purposes.swf
HELP!?!?!?!
Externally Loading Swf Inside An Externally Loaded Swf
Hey,
So basically, I have a main movie, with buttons for each section (such as home, portfolio and so on). Each button externally loads each section swf into a container. That works fine, all the sections load in and out perfectly.
Now, I want to load some more swfs (like projects in the portfolio section) into the swf thats been loaded from the main movie. Becuase I put my buttons inside movie clips (so that when you roll over the button, the animation finishes if you roll over another half way through), I had to use the tellTarget("/") script to bring it back, but it dosent work, it seems to load the movie into the main movie!
How can I fix this? Iv tried loading it into a different container symbol in the main movie but its still dosent work
Thanks alot.
Externally Loading Swf Inside An Externally Loaded Swf
Hey,
So basically, I have a main movie, with buttons for each section (such as home, portfolio and so on). Each button externally loads each section swf into a container. That works fine, all the sections load in and out perfectly.
Now, I want to load some more swfs (like projects in the portfolio section) into the swf thats been loaded from the main movie. Becuase I put my buttons inside movie clips (so that when you roll over the button, the animation finishes if you roll over another half way through), I had to use the tellTarget("/") script to bring it back, but it dosent work, it seems to load the movie into the main movie!
How can I fix this? Iv tried loading it into a different container symbol in the main movie but its still dosent work
Thanks alot.
Make A Flash Banner Clickable Externally (not Inside The Flash)
Hi,
I have flash banners (just graphic with no url hard-coded).
I wanted to make it work with openX ads system but it seems to be able to replace a URL only if there's already some URL hard-coded in there (and not if it's only graphic)
At the moment i can't edit the flash (my flasher is away for 2 weeks and i have only the .swf) and i must make it work somehow meanwhile...
How can i make it work (maybe html code banner with a param something that make the whole banner clickable with a URL - is it possible) ?
Or some JS or other HTML code that make it possible to set a URL i want the banner will link to without editing the flash itself.
Thanks
Publishing A Flash File Externally
Does anyone know of a way to publish flash files externally without having to actually open the flash file and hit export? I saw a program that someone wrote that did that and am wondering how they did it. Please help, ill be your best friend.
Linking Externally From Flash File
I have a banner that does not have links within the flash itself.
How do I make the whole banner a link using HTML or JavaScript from outside?
Thanks for your help.
Play Video In Flash Externally
hey everyone
how do you get flash to play .avi or .mov files externally?
i have tried using the examples below, but the movie files dont seem to show up when i open the swf file? why? how can i get this to work? thanks
movieClip.loadMovie("movie.mov");
loadMovie("movie.mov");
movieClip.loadMovieNum("movie.mov", 1);
loadMovieNum("movie.mov", 1);
Loading A JPEG Externally Into A Flash File
Does anybody know a way of loading a JPEG into a flash file?
(not through Flash, but after it's already published)
Example:
Let's say I have 100 JPEG pictures.
When I click on the button "Picture 1" the picture pops up.
However, I don't want the JPEGs to be "in" the movie. I need to be able to access them externally, and dynamically load them onto
the page.
Flash/php Form In Externally Loaded Files
hi there,
i've been using the flash/php email form for awhile now and i've had it opening up in a separate window clickable from my site. it's been great and very reliable.
however, now i want to integrate the form into my site, and not as a separate pop up window. and i have it so that it's placed as an extrnally loaded swf file within my main index file. so far, it's only working kind of half way. problems are:
1) won't move on to the second frame of the file when the "send" button is clicked (but does when the form is viewed separate...not externally loaded into the index file) i think it may have to do with this code in the main form movie clip symbol:
onClipEvent(data){
// show welcome screen
_root.nextFrame();
}
2) although it isn't moving onto the next frame, so that the user can see that it actually went through and sent...sometimes it is sending...although a bit inconsistently. i'm trying to work out one problem at a time, and with this one, i think i may have kind of tired out my server or something for now from all the testing.
if anyone has any tutorials or codes or any insight to share about putting a php/flash contact form within externally loaded files, i'd appreciate it!
denise ciecierega
Positioning Externally Loaded Movies In Flash 5
Hi, posted this previously to little avail....
I'm having problems, positioning movies that have been loaded in externally, I've looked at it over and over and still no joy, I'm using the following code:
loadMovieNum("externals/level1.swf", 2);
_level2._x = 500;
_level2._y = 500;
I gather I need to ensure the movie is loaded before I can position it - how does one check for this ?
I am still learning so it's all rather new.
Many thanks in advance...
tom
Positioning Externally Loaded Movies In Flash 5
Hi,
I'm having problems, positioning movies that have been loaded in externally, I've looked at it over and over and still no joy, I'm using the following code:
loadMovieNum("externals/level1.swf", 2);
_level2._x = 500;
_level2._y = 500;
Is this wrong ?
Many thanks in advance...
tom
Externally Loaded Text Prob In Externally Loaded Swf
hi.
so i have a swf that has externally loaded text in it that is being loaded into another swf. the text loads properly when the swf is opened by itself but when the swf is loaded into my main movie the text ceases to appear
my code to load the text is
loadText = new LoadVars();
loadText.load("dates.txt");
loadText.onLoad = function() {
event1.text = this.event1;
date1.text = this.date1;
location1.text = this.location1;
address1.text = this.address1;
cost1.text = this.cost1;
event2.text = this.event2;
date2.text = this.date2;
location2.text = this.location2;
address2.text = this.address2;
cost2.text = this.cost2;
event3.text = this.event3;
date3.text = this.date3;
location3.text = this.location3;
address3.text = this.address3;
cost3.text = this.cost3;
};
any help would be much appreciated
Externally Loaded Text Prob In Externally Loaded Swf
hi.
so i have a swf that has externally loaded text in it that is being loaded into another swf. the text loads properly when the swf is opened by itself but when the swf is loaded into my main movie the text ceases to appear
my code to load the text is
loadText = new LoadVars();
loadText.load("dates.txt");
loadText.onLoad = function() {
event1.text = this.event1;
date1.text = this.date1;
location1.text = this.location1;
address1.text = this.address1;
cost1.text = this.cost1;
event2.text = this.event2;
date2.text = this.date2;
location2.text = this.location2;
address2.text = this.address2;
cost2.text = this.cost2;
event3.text = this.event3;
date3.text = this.date3;
location3.text = this.location3;
address3.text = this.address3;
cost3.text = this.cost3;
};
any help would be much appreciated
Changing Images In Flash Movie To Load Externally?
Ok, the link to the swf is below (because the fla is MASSIVE - too massive to attach) and what I want to know is this:
in the swf, all the images (intro and galleries) are simply slideshows. is there a quick way that I can make all these images load externally from an "images" folder? I hope I'm explaining this right. It's just the fla is so huge, to muck about with it much will take too long....so can I simply put some as or something where each image should be in the movie, or........?????
Please help, I don't want to have to rebuild this whole damn thing lol
Quick Code Fix For Externally Loaded Flash File
hi there, i know that someone out there can easily take a look at my problem and know immediately what i did wrong. but that's not me!
i have a test website here which has externally loaded files coming into the container on the main index page. the code on the buttons at the top right hand corner have this code on each of them for the externally loaded .swf files to come in:
on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "contact";
container.loadMovie("contact.swf");
} else if (_root.currMovie != "contact") {
if (container._currentframe>= container.midframe) {
_root.currMovie = "contact";
container.play();
}
}
}
and that all works perfectly fine. what my problem is is when i click on the "contact" button and i'm on that page. on the left hand side column towards the bottom, i have a block of text with one red word. i want that word to bring in the f.a.q. page (and replace the contact page i'm currently looking at) which can also be accessed from the top nav. just a little thing, but i wanted to learn how to do it.
i've put the same code into the invisible button that says "faq" which is identical to the code listed above except i changed all instances of "_root" to "_parent" but that didn't do it. i think it's something like that that would have to do with the problem. any help is appreciated!
thanks,
denise
|