Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Buttons From Externally Loaded Mc Not Responding



HI
i have built a small (300k) slideshow of thumb nailed images. the user scrolls through them and if a thumbnail is clicked then a larger version of that pic appears.

Code:
on (release) {
_root.gotoAndPlay ("bigthumb");
}

when this .swf is played back on its own no problems. the larger image appears and all works fine.

now, when i load this .swf into my other .swf


Code:
on (release) {
loadMovie("slides.swf", "holder1");
}

the thumbs appear and scroll as they should. but on a mouse release no larger images appear.
do i have to make changes to the loaded .swf ? do i have to change the mouse event inside the loaded .swf from

Code:
on (release) {
_root.gotoAndPlay ("bigthumb");
}
to something else ?

any ideas much appreciated.



FlashKit > Flash Help > Flash Newbies
Posted on: 11-04-2005, 02:54 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Buttons Within An Externally Loaded .swf
I am working on a site that has a root .swf file. Within that, the buttons load external, smaller .swf's for the content, etc.. In one of those .swf's, I have a button that needs to open a pop-up window. I followed the "Centered Pop-up" tutorial on this site, but the button does not work when loaded from the root swf. It does however, if I create an html file with just the external .swf loaded, without the main page. What do I need to add in the AS to make the button work outside of the swf? Thanks alot!


-Chase

Buttons And Externally Loaded Swf's
Hey,
I've got a Flash website, where i have 6 movieclips coded as buttons with actionscript 2.0


Code:

b1.onRollOver = function() {
...}
b1.onRelease = function() {
...}
b1.onRollOut = function() {
...}

// b1 is the instance name on the movie clip



I have coded a function to each button, when the user clicks a button (onRelease), the flash loads a external SWF and plays it. Each button has a corresponding SWF it plays when is clicked on.

I was wondering how could i do the following thing:

When a user clicks on another button, the current SWF plays like another 30 frames (for text to fade out) and then immediately loads the one that the user has clicked, and plays it.

so, for example:

1.) Website loads, and default SWF loads and plays
2.) User clicks a button
3.) button maked current SWF play, and when current SWF reaches last frame, it loads the corresponding SWF of the button.

This would have to mean, that one button is able to animate any external SWF which is currently loaded, and then its corresponding one...
Is it possible, or is there another way around it?

Hope you guys can help me out

Thanks
Cya.

Buttons From Externally Loaded Images?
Hi there,

I'm looking to create buttons from externally loaded images but am not sure whether I'm going about it the correct way, or if it's even possible.

I've loaded my images externally onto the stage, and over these (on higher layer) I've created invisible buttons to the exact dimensions and positions which when clicked will cause some text to appear.

Should this work in theory ? Or is there an easier way to achieve this? Basically the buttons will change when content is updated.

All suggestions appreciated.

Many thanks

Q.

Targetting Buttons Inside Externally Loaded SWF
Im having trouble targetting a button named btn1_btn that is located in a movie clip called thumbs_mc. Im loading thumbs_mc into and emtpy movie clip called holder_mc. When i call upon btn1_btn to load Jpeg1.swf do i need to create a new movie clip? I created one for thumbs_mc already. Can i just load Jpeg1.swf into holder_mc? And how in the world do i target btn1_btn from the main movie timeline?

Heres the code im using in the main movie

level1.thumbs_mc.btn1_btn.onRelease = function() {
createEmptyMovieClip("picholder_mc", 1);
picholder_mc._x = 0;
picholder_mc._y = 0;
picholder_mc.loadMovie('Jpeg1.swf');
};

Externally Loaded Swf Slows Rollover Buttons
I beginning to create a portfolio online. I have a pretty standard setup so far. I have a main swf which loads external swfs. One of my externally loaded swfs loads another external swf. When it does, my rollover animated buttons are slow in the main.swf. Any ideas. Memory issue i guess. I've attached the swfs.

Any suggestions? Memory issue I assume. Thanks.

-----joe

EXTERNALLY LOADED BUTTONS DONT WORK HELP
Hey there guys,
I'm back with yet another noob problem. I am working on a project where I load external swfs into the main site on demand. I finally got this to work, but none of the buttons in the loaded movies work. The buttons in the loaded files are gotoAndPlays which target _root, and in some cases _global. I have recently found out that this is a bad practice but I guess this is what growing pains are all about. Also I can't get the preloaders in the loaded movies to work. Thanks in advance to all who reply, I really appreciate it.
Kambiz :D

Making Externally Loaded Movie Clips As Buttons
I have a very small doubt. I have three different swfs of different shapes. All the three are pure graphics and exported. In a base movie clip i am loading all the three swfs in another three different movis clips.

_root.mv1.loadMovie("extnalgra1.swf");

_root.mv2.loadMovie("extnalgra2.swf");

_root.mv3.loadMovie("extnalgra3.swf");

Now the problem is when i click the these mv it has to act like buttons.

i hope you are getting me. I have solutions as round trips. but is there a simple way you know

please can you help me out



regards

Muruganandh

Buttons To Increase Or Decrease Font Size In Externally Loaded HTML Formatted TXT.
My MX movie loads external HTML formatted text from a var.txt file using loadvars().
Var.txt looks like this:

&varPresentation="'<'P ALIGN="LEFT"'>''<'FONT FACE="Verdana" size="11" color="#000000"'>''<'B'>'This is the text for the 'Presentation' window.'<'/B'>''<'/FONT'>''<'/P'>'"

txtbox.MC has this code added to it´s only instance:


Code:
onClipEvent (load){
TheText = _level0.txtLoader.varPresentation;
InstanceName_0.html = true;
InstanceName_0.htmlText=this.TheText;
}
It works fine, now i´m just trying to make a '+' button and a '-' button to dinamically increase or decrease font size in txtbox.MC.

The txt field is named InstanceName_0 so i created a '+' button and added a instance of it to txtbox.MC with this code:


Code:
on (release) {
this.InstanceName_0.htmlText.SIZE++;
}
And it does not work.
Any ideas?
[Edited by Effenberg0x0 on 07-19-2002 at 04:38 PM]

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

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.

Loaded Movie Not Responding
hi, I'm currently working on a project, I'm not that good at scripting I'm more of the graphic type. Anyway, I used tutorial 17 of the intermediate level to make a scrolling menu, this menu is loaded into my main movie, but once it loads the menu won't respond, if I preview the menu by it self, it works perfectly, but as soon as it's loaded to the main movie, the menu won't work.

please help!!!

Eventlister In Loaded Movie Not Responding
PHP Code:




var cbListener_drinks:Object = new Object();
cbListener_drinks.change = function(event_obj:Object) {
drinks.gotoAndStop(event_obj.target.selectedItem.data)
cruise_guest_drinks_id=event_obj.target.selectedItem.data}
combo5.addEventListener("change", cbListener_drinks);






This code works fine until i load the movie from another movie then the drop down stops working ?

Any help would be much appreciated

Thanks

Actions In Swf Not Responding Once Loaded Externaly?
hi, i have an swf, which has a bunch of buttons here and there. when i test it on its own it works fine, but once i test it being loaded into my main swf file, it loads fine, but the buttons dont work anymore. the hand cursor doesnt even show.
how can i fix this?

thanmks

Actions In Swf Not Responding Once Loaded Externaly?
hi, i have an swf, which has a bunch of buttons here and there. when i test it on its own it works fine, but once i test it being loaded into my main swf file, it loads fine, but the buttons dont work anymore. the hand cursor doesnt even show.
how can i fix this?

thanmks

Scrollbar Component In Loaded Movie Not Responding Consistently
Hey,

I am having trouble with the scrollbar component. I have a dynamic textbox that I simply typed all the text in and then resized it approprietly. I attached the scrollbar correctly and all works fine.... until I try to load this movie into another movie.

I am using a button on the main movie like so:

on(release){
_root.theClip.loadMovie ("scrollBarContent.swf");
}

It loads the movie and 75% of the time the scrollbar works fine. Although occasionally, the scrollbar simply appears as disabled. What the #!@%?

Any ideas?

Preloader In Externally Loaded Swf Stops Working (loaded Into An Empty Movie Clip)
SEE BOTTOM OF THREAD FOR CURRENT PROBLEM

1. I have my navigation buttons in level0

2. When a button is pressed it loads an external .swf into the highest empty level

3. There is an MC in this loaded .swf called loadmovie and inside that another MC called empty.

4. Inside the 'loadmovie' MC, there is a frame action that loads another external .swf file into the 'empty' MC.

The problem I am having is that the preloader that is on the external .swf that is loaded into the 'empty' MC does not work.

It works fine if you test it on its own. But not when loaded into a Movie Clip.

MY SCRIPT:
iBytesTotal = _root.getBytesTotal();
iBytesLoaded = _root.getBytesLoaded();
iBytes = (iBytesLoaded/iBytesTotal)*100;
percentageNumber = Math.round(iBytes)+"%";
setProperty("progressBar", _xscale, iBytes);

Do I have to refrence it differently? Because of where it is situated?

e.g
iBytesTotal = _level32._root.loadmovie.empty.getBytesTotal();

confesed!

Stop Loaded Movie Responding To Mouse Movement Outside Of It's Area?
one main mov and one loaded mov. loaded mov has mouse follow trail script attached to it. When the cursor is moving OUTSIDE of the loaded movie area, it can also control the mouse trail movement in the loaded movie. I want to separate the 2. How can i stop the loaded movie responding to the mouse movement outside of itself? or stop the main movie from registering the changes in mouse (x and y movements). The only idea way I know is a chore, which is to "table it" in html and split the 2 movies. Any ideas?

Embeded Buttons Not Responding To Mouseover
I have a menu that I am trying to make that has a circular animation in the center and when you mouseover it the buttons slide from one point to encircle the center animation.

The problem is that I have a onRollOver and onRollOut function assigned to this MC, which contains both the buttons and the center piece, and so my buttons dont ever take the focus from the cursor moving over them.

I am new to making menus so I am wondering how I can fix this. The button responds like it should after I mouseout of the MC. It should be changing size slightly when I mouse over it but doesnt, and when I mouse out and the animation slides the buttons back it just fires like crazy.

It seems like the buttons aren't able to respond because of the onRollOver function having the focus of the cursor.

I attatched the swf, the green button is the only with the Over action on it.

Buttons Not Responding Inside Movieclip
Hi guys forgive my ignorance in the ins and outs of actionscripting, i'm new to the scene. After a few weeks learning i reckoned i could make a menu for my website.

Turns out i have 3 movie clips (top level menu)
on rollover, the specific movie plays revealing a sub menu (this includes buttons).
If i try to assign a getURL or in fact any action to these buttons they dont respond.

I realise the problem may be that i am assigning events to the parent(movieclip) that override the child events (button), but can anyone offer me a solution.

Many thanks in advance

Radio Buttons Stop Responding
hey, i've got a pretty simple problem- but I don't really get why it's happening, so maybe someone can shed some light on this for me.

it boils down to pretty much one thing. If i have a group of radios (radio1, radio2, radio3) in a frame, and the code

stop();

radio2.selected = true;
next_btn.onRelease = function()
{
gotoAndPlay(5);
}

where frame five does nothing but send the playhead back to the original frame- the second time "radio2.selected = true;" is executed it doesn't set the second radio button like it does the first time. Instead all the radio buttons are blank. I just don't get why it would set them the first time it runs that code, but not after that. I'm sure that the code is being executed again evert time i hit "next_btn" becaue i've tested that, so it seems like the radio2 variable stops being connected to the radio button somehow. These are the simplest terms that i have this problem under (obviously i'm not going to another frame for the sole purpose of coming back to the one i just left)- but solving this problem would fix what's wrong with my current project.

-thanks

Duplicate Buttons Not Responding To Actionscript
I have created a scrolling image directory with buttons that load an externel
swf. I had to duplicate the buttons to create the scrolling effect but the duplicate buttons dont respond to the "loadMovieNum" actionscript??

The fla is 365kb so I can't post it but here this the link to the page with the directory.

http://www.magerlawgroup.com/MLG%5FN...ex-Lawyers.htm

If there is a better way to code the buttons a diffent method to get the directory to work, please let me know. Thanks in advance to anyone who can help steer me in the right direction.

Hit Tests Responding To Movies In Buttons
Hi everyone!
I'm trying to make a little game in Flash 8 and I have two movie clips, one that moves left to right and another one inside a button. When the user clicks on the button or hovers over it, it plays a movie clip that is inside. I want the moving clip to 'die' when it reaches the hit area for the movie clip in the button but not when it hits the unclicked button.
So far, I can get the clip to 'die' when it hits the button itself, but not the clip.
So, can anyone help me? Thanks in Advance.

Sorry, if I accidently put this in the wrong forum, I hadn't noticed the Games section and then I wouldn't have known whether it would fall under commands in Flash 8 or games in general...

Radio Buttons Stop Responding
hey, i've got a pretty simple problem- but I don't really get why it's happening, so maybe someone can shed some light on this for me.

it boils down to pretty much one thing. If i have a group of radios (radio1, radio2, radio3) in a frame, and the code

stop();

radio2.selected = true;
next_btn.onRelease = function()
{
gotoAndPlay(5);
}

where frame five does nothing but send the playhead back to the original frame- the second time "radio2.selected = true;" is executed it doesn't set the second radio button like it does the first time. Instead all the radio buttons are blank. I just don't get why it would set them the first time it runs that code, but not after that. I'm sure that the code is being executed again evert time i hit "next_btn" becaue i've tested that, so it seems like the radio2 variable stops being connected to the radio button somehow. These are the simplest terms that i have this problem under (obviously i'm not going to another frame for the sole purpose of coming back to the one i just left)- but solving this problem would fix what's wrong with my current project.

-thanks

Movie Clip With Dynamically Loaded JPEGs Not Responding To Mouse Clicks
I have a movie clip called pictureframe that I am loading JPEGs into sequentially with a movieClipLoader. I want to be able to click on each JPEG and go to a different web site, but it's not working. The MC is not accepting mouse clicks. Here's the code I'm using:


Code:
this.pictureframe.onRelease = function() {
getURL("http://www.a_web_site.com");
}


If this were a normal movie clip with some content "hard coded" into it, it would work fine. It's gotta have something to do with the fact that it's a movie clip that's empty until it gets a JPEG loaded into it.

Assigning Actions To Buttons To Play Responding MC's
Hi everyone,

I have a problem that I don't really know how to solve. I'm going to try to explain it as clearly as I can.

I'm building a Flash website. I have a navigation which buttons trigger the movie clips responding to the button. E.g.: When "Portfolio" button is clicked, a movie clip that's supposed to play accordingly will appear and play. When another button is clicked, e.g.: "Experiments" button, the "Portfolio" movie clip will play the ending and disappear then the movie clip responding to the button which had been clicked ("Experiments") will appear and play. As far as what I have done now is assigning the "on (press, release)" command to each button. The actions attached to the "Experiments" button is:

on (release, press) {
_root.portfolioMov.gotoAndPlay(24); --> frame 24 is the ending
_root.experimentsMov.gotoAndPlay(2); --> frame 2 is the beginning
}

And the actions attached to the "Portfolio" button is:

on (release, press) {
_root.portfolioMov.gotoAndPlay(2);
_root.experimentsMov.gotoAndPlay(24);
}

But I'm gonna have to type all the MC's in each buttons to have them play the ending and disappear. Then all the MC's will play the ending together. And buttons are usually clicked randomly. I'm sure there's a way of doing this, I just don't know yet how. Do you know how I can do this effectively? Maybe with the "when" command? Creating an array maybe?

Hope you can help me.

Regards,

Ziye.

Dynamic Buttons Not Responding To Mouse Events
Hi Guys

I have created buttons dynamically from imported data. They have appeared on stage. They have been renamed them according to the names of an array.

The problem is that they are not responding to mouse events.

For example if I code this nothing happens:

_level0.Twyn_y_Beddau.onPress = function(){gotoAndPlay(2)};

The debugger panel shows the following information also without any associated function:

Button: Target="_level0.Twyn_y_Beddau"
Variable _level0.Twyn_y_Beddau.tabIndex = [getter/setter] undefined

Other buttons not created dynamically respond to mouse events for example:

_level0.Twyn_y_Beddau.onPress = function(){gotoAndPlay(2)};

The debugger panel shows the following information and the associated function:

Button: Target="_level0.Roman_btn"
Variable _level0.Roman_btn.onPress = [function 'onPress']
Variable _level0.Roman_btn.tabIndex = [getter/setter] undefined

How do I get these dynamically created buttons to work?

I'd be grateful for your help.

Cheers Crossy

Buttons Not Responding To External OnRelease Event Def
hi,
i have been working with this for a while and it's such an easy problem to fix i'm sure, but i can't seem to find what i am doing wrong.

I don't want to assign code to each button individually for the sake of maintenance, but that's the only way i can get this thing working.

the buttons simply don't respond to the actions defined in their onRelease events..


Code:
btn_Instance.onRelease = function() {
gotoAndPlay(frame);
getURL("javascript:loadContent('content');");
}
i have tried it with simple traces and nothing happens thinking that it might be a focus issue as well i tried:


Code:
this._focusrect = false;
Selection.setFocus(this);
in the external code for the buttons but nothing seems to be helping.

i've attached the .fla that i'm using for this.

any help is appreciated. thanks!

Looping A Loaded An Externally Loaded Mp3
I was trying to loop an externally loaded mp3 and suceeded on my machine, but when I upload the swf and mp3, the function will not work in my browser (IE). I tried a relative path, as well as the absolute URL and neither worked. Here is the code I used to loop the externally loaded mp3:

loopSound = function () {
my_sound.loadSound("whisper.mp3", true);
};
my_sound = new Sound();
my_sound.loadSound("whisper.mp3", true);
my_sound.onSoundComplete = loopSound;
my_sound.setVolume(45);

Any help would be most appreciated, I have wasted a lot of time on this already.

Externally Loaded Swf Does Not Stay Loaded
Hello,

I am loading an externally loaded swf that uses a mask to transition in. When the user clicks a different button I am doing a gotoAndPlay that goes to a mask that "unloads" the content (it doesnt actually unload the info is just outside of the mask area. As soon As I jump to that section the movie is no longer loaded and just shows the container clip that I had created for it. The Container Clip is never changed and is the same throughout the whole process. The only thing that changes is the mask animation.

Any input onto why this would happen would be greatly appreciated.

I have tried both loadClip and loadMovie but no luck on keeping the clip loaded.

EDIT
- I have narrowed it down. When I change the mask movieclip the movie unloads for some reason. Is there a way I can keep it loaded?

Pop Up From Externally Loaded Swf
I have the main index .swf and inside that .swf I have another externally loaded .swf. In that swf though I have a link to a 3rd party website that I need to load in a new window. The standard code that i have been using is:
btn_Up.onRelease = function() {
getURL("javascript:Launch('http://www.somewepsite.com, 600,600)");
};

Where btn_Up is the button. But for some reason because the swf is embedded into another swf it doesnt work. Please help!

Externally Loaded FLV
In my SWF fie, I have an externally loaded FLV file.

I now want to add another FLV that will load and play automatically when the first one is finished.
I actually want the SWF to jump to a new scene when the first movie is done.
How can I do that/ what the actionscript?
Steven

Pop Up From Externally Loaded .swf
I have a flash movie, that has a external .swf getting loaded into it, from that .swf I have a button, on that button I would like a script that will have a pop-up without toolbars, and at a certain size. What is the script added to the button for this? Thanks.

Externally Loaded Swf
Hello all,

I just made a flash site with buttons on top and I put a empty movie clip called "container" in the middlle of the site. All animation and buttons will animate and appear and "flash" around until frame 90. The site ends at frame 100. I then included the following code in frame 100:

_root.currMovie = "PEhome";
container.loadMovie(_root.currMovie + ".swf" );
stop();

How come it won't load the external .swf into the container?
Can anyone tell me what am I not doing right and what should be done to fix this problem. Thank you very much.

Ryan

HELP Mii With Externally Loaded SWF
hi there peps i jus need a tiny help with my externally loaded swf file and this so far is the AS am using loadMovieNum("<A href="http://www.geocities.com/krizinxgren/7UP.swf",0">http://www.geocities.com/krizinxgren/7UP.swf",0); please ignore the geocities address OK the code works well well but the situation is that instead of the loaded swf to play/run inside my main movie some how my main movie does not show instead all i can see is the loaded swf only still i learnt that i have to create a container or somthing but i still dono how the container function works please peps any help is a blessing to my work our works everybody

thanks all

K

HELP Mii With Externally Loaded SWF
hi there peps i jus need a tiny help with my externally loaded swf file and this so far is the AS am using loadMovieNum(http://www.geocities.com/krizinxgren/7UP.swf,0); please ignore the geocities address, the code works well well but the situation is that instead of the loaded swf to play/run inside my main movie some how my main movie does not show instead all i can see is the loaded swf only still i learnt that i have to create a container or somthing but i still dono how the container function works please peps any help is a blessing to my work our works everybody

thanks all

K

Pop Up From Externally Loaded .swf
I have a flash movie, that has a external .swf getting loaded into it, from that .swf I have a button, on that button I would like a script that will have a pop-up without toolbars, and at a certain size. What is the script added to the button for this? Thanks.

Externally Loaded Swf
Hello all,

I just made a flash site with buttons on top and I put a empty movie clip called "container" in the middlle of the site. All animation and buttons will animate and appear and "flash" around until frame 90. The site ends at frame 100. I then included the following code in frame 100:

_root.currMovie = "PEhome";
container.loadMovie(_root.currMovie + ".swf" );
stop();

How come it won't load the external .swf into the container?
Can anyone tell me what am I not doing right and what should be done to fix this problem. Thank you very much.

Ryan

Externally Loaded Swf
This is probably covered somewhere, but I am loading an external .swf into my main movie and i am just wondering if the actionscript works in the external swf. I see what i am assuming are pages with an external load and most have a preloader. How does this work.

Using PHP In An Externally Loaded SWF
:?

I've constructed a site in Flash, using an external loader. The tutorials on this site are great, thanks. I've made a contact page that uses php script, which has full functionality when previewed OR viewed as an independent HTMP page. However, when I submit contact info from the live site, I never receive any email. Can anyone tell me why this is??

I've tried everything I can think of, and have allowed every file in site folder access through the Flash Player Control Panel. I followed Lee's tutorials for both external loaders and the php contact page extactly.

Thanks in advance for any help!

http://www.simplypilatesnashville.com

//targeting.from.externally.loaded .swf >[.x.]<
I have a movie called --frame.swf
in it i have a mc that loads external .swf's into it. called holder mc instance name "holder"
--
a button on the _root timeline of frame.swf tells the movie clip to play the timeline of the ext .swf after it has been rested on a stop action
--
on the end of the time line of the ext loaded .swf there is a line of code that basically asks if the variable
profile = 1 if it does it says load profile.swf into the mc called "holder" of the movie frame .swf
---
now heres where I have a peoblem how do i target the main timeline of frame to target the mc w/ the instance name of holder?

i tried
if (portfolio=1) {
_root.holder.loadMovie("portfolio.swf", "holder");
} else if (vision = 1) {
_root.holder.loadMovie("vision.swf", "holder");
}

if you can be of any help ...thanx!

GetBytesLoaded On An Externally Loaded .swf
I can't seem to get the bytes loaded of an external .swf which is being loaded into a movie clip instance.

I have the target, _root.holderMC1.holderMC2 and place the external .swf into holderMC2 via

_root.holderMC1.holderMC2.loadMovie("http://url.com/some.swf", some_level);

I then do

if (_root.holderMC1.holderMC2.getBytesLoaded()==_root .holderMC1.holderMC2.getBytesTotal()){
gotoAndStop("remove_cover");
}else{
//loop
}

However, when the timeline gets to 'remove_cover', the items aren't loaded. They come in quickly, but they're clearly not fully loaded.

I think getBytesLoaded is measuring whether holderMC2 is loaded (it's only about 4 bytes) and moves on when it detects that it has. However, the actual external .swf has not loaded fully.

I've done some testing, trying to use the actual name of the .swf being loaded (eg. ...holderMC2.somename.swf), but it comes up zero as do a few other combinations.

Anyway, that's what I think the problem is, maybe it isn't, but how do I get the bytes loaded of an external swf being loaded into a movie clip instance? Does the level it's loaded make a difference if you're referring to it with _root?

How Do I Position A .swf Loaded Externally
Hi, I'm loading some external .swf movies into my main movie as menu items. It's all working great except that I can't seem to be able to position them without using an empty container. Is there any way of loadin an external .swf movie and giving it it's x y position without using containers?

Loader For Externally Loaded .jpg/.mp3
im loading .jpg and .mp3 files into a flash 'shell' movie.

they load into a movie clip called 'dropzone' and i was wondering if you can have a loader progress bar on .jpgs or .mp3s without them being in a .swf file.

Postioning Externally Loaded Mc's
Hi can anyone tell me how to position an exteranlly loaded swf.

I am using MX and the loadmovienum function what else do I add to position it where ever I want?

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)

How To Position Externally Loaded Swf?
I'm putting together a porfolio site of my video and DVD work, and since the images and video clips are pretty big, I am trying to load each one seperately with the loadMovie command.

The only way I can get the images to load in the appropriate place is by making the swf identical dimensions and adjusting the placement within it, so that when it loads into the main site, it is in the proper place.

My questions are: Does this make the exported swf bigger for each image? Is there a way to place it using actionscript so that I can make each image/video swf exaclty the dimansions of the pic/video?

My current script is:
on (press) {
loadMovieNum("IIT.swf",1);

}

Thanks,
Sara

Copyright © 2005-08 www.BigResource.com, All rights reserved