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




Having Trouble Adding Adverts And External Xml



Hello,I am having trouble adding adverts and external files to a flash website.I needs some guidance on how to do this properly. Can someone share their knowledge with me?Thanks,Sid



General Flash
Posted on: Tue Jul 29, 2008 10:26 pm


View Complete Forum Thread with Replies

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

Trouble With Adding A New Scene
Hi,

I have a main scene that begins with a animation. Now when i add a new scene to house a preloader and place it above the main scene and play the movie the preloader works fine but when it plays the next scene everything stops at frame 1. At 1st I thought it was my preloader but i tripled checked it and it was fine, I also just added a blank scene but i get the same problem. Im using flash 8. ne 1 ever get this problem?

thx

Having Trouble Adding A SWF File To Vb.net
Ok so I found this on a help site somewhere but I can't seem to locate the Shockwave control in VB.net. I am currently using the trial version of Flash 8 and vb.net from 2002. Are my versions incompatible?

VB.Net
Right click on the tool box. Select “Add/Remove Items…”. Select “COM Components”
Select “Shockwave Flash Object”. Click OK
Draw it on the form
Name it “SF1”

Adding Load Bar Trouble
hey guys, i think i posted this once before but i still havnt gotten a solution.
basically what i want to achieve is a site like the "Preloader and Transition for Dynamic Files" tutorial but where it says "loading" i want to replace with a loading bar. now i thought this would be pretty simple and straight forward but as hard as i try to make it work, it wont

this is my best guess so far in the 'content' actionscript

onClipEvent (enterFrame) {
if (!loaded && this._url != _root._url) {
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
_root.transition.loadBar._width = getPercent*100;
_root.transition.loadText = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
loaded = true;
_root.transition.gotoAndPlay("opening");
}
}
}

i thought that should work but it doesnt? can anyone help me out? ill really appreciate some help.

cheers, evan

Adding Load Bar Trouble
hey guys, i think i posted this once before but i still havnt gotten a solution.
basically what i want to achieve is a site like the "Preloader and Transition for Dynamic Files" tutorial but where it says "loading" i want to replace with a loading bar. now i thought this would be pretty simple and straight forward but as hard as i try to make it work, it wont

this is my best guess so far in the 'content' actionscript

onClipEvent (enterFrame) {
if (!loaded && this._url != _root._url) {
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
_root.transition.loadBar._width = getPercent*100;
_root.transition.loadText = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
loaded = true;
_root.transition.gotoAndPlay("opening");
}
}
}

i thought that should work but it doesnt? can anyone help me out? ill really appreciate some help.

cheers, evan

Trouble Adding .mp3 To Project
Hello, I have just started to play around with Flash this week and I am having trouble importing an .mp3 file to my project.  It gives me the error, "One or more files were not imported because there were problems reading them".  However, this is only for certain .mp3 files.  I can import some .mp3's, just not all of them.  They all exist in the same folder and I made sure that the file name were legit.  I am completey lost, so if anybody could help, I would appreciate it!

Regards,
Corey

Still Having Trouble Adding Link To Swf File
Hey There,

I'm still having difficulty adding a hyperlink to an swf file... i tried adding the 'get url' action into the graphic itself, even changed it into a movie behavior- but for some reason when i go to 'basic actions', and scroll down to the 'on mouse event' or 'on clip event', they aren't highlighted- so i can't choose them.

so- essentially. i want the animation to loop, but i only want the url link to open if someone clicks on the animation. the animations i want to become hyperlinks are at the bottom of this page: http://www.lynnguppy.com/johnnyfish.htm

? any more help ? i know i'm probably missing something simple. but i guess that's why i'm a newbie.

thanks for your kind indulgence, lynn

Having Trouble With Dynamic Text Adding, Etc
Hello, Ive gotten lots of help here for my dynamic text and this is the last thing to complete my site.

What I have is a main scene with 2 movie clips
one movie clip you make a selection
the other movie clip shows the total cost, adding or subtracting the amount of your choice.

Its confusing so ill show you what code I have
On first frame of the main scene

Code:
_root.baseprice=700;
_root.surfaceprice=0;
_root.cupprice=0;
_root.legprice=0;
_root.addonprice=0;
_root.total_price=_root.baseprice + _root.surfaceprice + _root.cupprice + _root.legprice + _root.addonprice;


In the movie clip where I want to display the total (named "right"), i have a dynamic text field var: named "total_price" and this code in the first frame of the clip

Code:
_root.right.total_price=_root.total_price;


Now this displays the "700" like it should. But I want it to change as i make my selections in the other movie clip.
So I have this code for 3 buttons, one button makes the value 0, one 100, and one 200.

Code:
//first button
on (press) {
_root.surfaceprice =0;

//different button
on (press) {
_root.surfaceprice =100;

//last button
on (press) {

_root.surfaceprice =200;



So, in theory, shouldnt pressing these buttons change the value of the "_root.surfaceprice" in the main scene, then in turn chang the value of the "total_price" in the other movie clip?

Thank you for the help.
Brian

Trouble Adding Eventlistener In Loop
I'm having trouble adding this eventlistener in a simple loop. Can somebody tell, why the eventhandler doesn't get triggered?


Code:
// handler
function countryHandler(e:MouseEvent)
{
trace(e.currentTarget.name);
}

// add eventlistener loop
for (var i:Number = 0; i < isoCountriesArr.length; i++)
{
var tempId:String = isoCountriesArr[i];
if (map_mc.getChildByName(tempId) != null)
{
var tempCountryMc:MovieClip = MovieClip(map_mc.getChildByName(tempId));
countryArray.push(tempCountryMc)
tempCountryMc.addEventListener(MouseEvent.CLICK, countryHandler);
}
}

Trouble Adding Flvplayback Flash Cs3
Hi,
I can't seem to add the flvplayback component to the stage to a flash actionscript 3 file (for that matter my video imports seem to fail as well)---i have no trouble doing it in a action script 2 file though.

any advice?

thanks.

FMS 2 - Trouble Adding Application (CentOS)
Hi,

Very recently I managed to install on a CentOS 4.4 platform. I checked what services were running:

./fmsmgr list

21937 pts/0 00:00:00 fmsmaster
32580 pts/0 00:00:00 fmsadmin

I tried to develop my first test application found in 'Learning Flash Media Server 2' book. After creating the subfolder under applications folder, I them tried to add the application inside the Admin Console. The application was added momentarily and then disappeared. I went to check the messages log and by stopping and starting the fms server I was able to isolate the weird Failed messages below:

Jul 27 14:21:49 popcodestudio 257[21937]: Server starting...
Jul 27 14:21:49 popcodestudio Server[21937]: No primary license key found. Switching to Developer Edition.
Jul 27 14:21:49 popcodestudio 257[21937]: Server started (/opt/macromedia/fms/conf/Server.xml).
Jul 27 14:21:49 popcodestudio Server[21950]: No primary license key found. Switching to Developer Edition.
Jul 27 14:21:49 popcodestudio Server[21953]: No primary license key found. Switching to Developer Edition.
Jul 27 14:21:49 popcodestudio Adaptor[21950]: Listener started ( _defaultRoot__edge1 ) : 19350
Jul 27 14:21:50 popcodestudio Adaptor[21950]: Failed to create thread (TCProtocolAdaptor::startListenerThread).
Jul 27 14:21:50 popcodestudio Adaptor[21950]: Failed to start listeners for adaptor _defaultRoot__edge1.

Can anybody help me please, I couldn't find any help anywhere on the WEB.

Thanks a lot

Trouble Adding Commas To String
I'm using code I found on this site to add commas to a large number (so that a number like 1000000 appears as 1,000,000). Below is the actionscript I'm using.

When I define the variable debt as any number, the script works perfectly. But if I define debt as a variable passed to the movie from a PHP file, then the script puts the commas in the wrong places (i.e., 10,000,00). Can anyone explain to me why this would happen, and how to fix it?

var input = debt;
var inputString = input.toString();
var finalString = "$";
var count = 0;
var tempString = "";
for (var i = inputString.length-1; i>=0; i--) {
count++;
tempString += inputString.charAt(i);
if ((count%3 == 0) && (i - 1 >= 0)) {
tempString += ",";
}
}
for (var k = tempString.length; k>=0; k--) {
finalString += tempString.charAt(k);
}
return(finalString);

Trouble Adding Numbers In Array
As an excercise, I'm trying to create a class that will take the average value of numbers in an array.
I'm stuck on adding the values of the array elements. I keep getting "NaN" for the total. Below is my code.


ActionScript Code:
private function getTotal ():Number
    {
        var total:Number;
        for (var i = 0; i<numArray.length; i++)
        {
            total += Number(numArray[i]);
        }
        trace("total= "+total);
        return (total);
    }

Trouble With Adding Buttons That Link To Other Scenes...? (PLEASE HELP)
Greetings...

I have put in the following code, to link to various scenes in my movie...
================================================
For example:

on (press, release) {
gotoAndPlay("Scene 6", 1);
}
================================================

Now, I place these actionscripts on the images that I converted to Flash Buttons and the following error comes up...

================================================
Example:

Scene=Scene 2, Layer=Presentations, Frame=485: Line 1: Mouse events are permitted only for button instances
on (press, release) {
================================================

When I play my movie, the "Buttons" that I created do act like real buttons (my mouse changes on MouseOver) but when I click them, nothing happens...

Why would this happen? I have other buttons in my movie, on other pages that link just fine and I used the same code... Why isn't it working now?


Thanks!!!
Dan

Trouble Adding Duplicated Movieclips To Array
whats up everybody,

once again its almost time to choke the young'ns. I'm on my last nerve and someone or something is gonna catch the wrath.

i have a question or problem that seems easy enough to handle. i've been trying to store my duplicated movie clips inside an array so i can access the x and y positions later. i have duplicate about 20 movie clips and need to have their names stored in an array while they're being duplicated. here's what my code looks like so far:

var intervalID;
intervalID = setInterval(checkLoadStatus, 100);

function checkLoadStatus() {
if(Title.loaded){
clearInterval(intervalID);

//split artist string into array
aArtists = Title.artists.split(",");
aPhotos = Title.photos.split(",");

// initialize stars with Title data
star_amount = aArtists.length;
trace("XXstar_amount = " + star_amount);



//declare arrays
a_Stars = new Array(star_amount);
a_centerCheck = new Array(star_amount);


for (i=0; i<star_amount; i++){

a_Stars[i] = duplicateMovieClip("star", "star" + i, 1+i );

//set length of array
a_Stars[i] = this["star" + i];

//set boolean values to check for position
a_centerCheck[i] = false;

}
star._visible = false;
trace("AAthe elements in a_Stars: " + a_Stars[1]._name);
trace("ZZthe elements in a_centerCheck: " + a_centerCheck[5]);
}
}


the problem is that flash is not storing the elements of the array. on my trace command a_Stars array keeps coming up empty while a_centerCheck displays its elements all fine. stars(the duplicated movie clip) is a child so the target is i believe to be ok. (but is probably wrong also - i just don't know).
any help, as always, is greatly appreciated.

thanks
erase

Having Trouble Adding Action Script To Button Symbol
Hello everyone:
I am hoping someone will read this as I am a developer in 'dires straits' with Flash ( a newbie). My problem regards a layer called "button" which has already been converted to symbol and turned into an invisible button. The problem lies when I try to use the selection tool to select it so that I can add action script to it. Instead of the actions dialogue box saying "actions-button", it says "actions-frame", and as a result, the action script doesn't work. I don't know what to do, it should be simple to select it but something is wrong. If you feel a need to help a developer in need, you can email me at support@tahutiwebsites.com, and I can e-mail you the file so that you can help. Thanks, or you can call me at 310-867-5167
Corinna

Flash Adverts
Does anyone know how the Flash adverts are done? I was wanting to give you an example but ones I have seen have since gone. But I usually see them on the major search engines, they appear from nowhere and can fill the whole screen as if floating on the page. I know its flash but is it something to do with MX?

Flash Adverts
Does anyone have any information on how to produce Flash adverts that I have seen on various websites of late. The adverts just seem to appear on top over websites almost like popups but obviously fully Flash animated. Is there any tutorials on how to produce these?

>>> Adverts In Flash?
If you have some HTML coding for an advertisment like this

<a href="http://tracker.tradedoubler.com/click?p=1469&a=933723&g=38168" target="_blank"><img src="http://impgb.tradedoubler.com/imp/img/38168/933723" border=0></a>

can you input that into a INPUT TEXT box and clcik onto the RENDER TEXT AS HTML button and it should work shouldn't. Well it isn't working for me WHY WHY PLEASE TELL ME WHY AND TELL ME HOW TO PUT HTML CODING ADVERTS INTO FLASH!!

Thanks

New Flash Adverts
OK, I know everyone has seen the new Flash ads that apear to move down/over with a transparent background AND no browser window, yet stay within the current browser.

I also know there is both a term for the technique and a way to do it...

Can anyone tell me where I can find more info on how to do this?

I like the effect, and the clean apperance they show, but am not sure what they are called/how to make them.

Any help would be great...

Thanks

Flash Adverts
As I surf I have seen several instances where a flas advert banner on the page has an image come from it do some thing then disapear. I have seen wizards walk across the screen. How is it done?

Help Please>flash Adverts
Hi i am all new to this and not 100% sure what i am doing. I want a flash advert on my site, which by the act of god managed to install. Howevere all i get is a big white box and i dont know how to solve it. You will see what i mean here

http://rs-mania.co.uk/forums

This is the script i was given. Can anyone help me at all please?????????

INSTALLING

first put the jpg photos you want to use inside the "jpg"
subfolder. then open the "jpgrotator.xml" file with Notepad or
another text editor. the file looks like this:

<?xml version="1.0"?>
<jpgrotator>
<parameters>
<rotatetime>6</rotatetime>
<randomplay>true</randomplay>
<shownavigation>true</shownavigation>
<transition>fluids</transition>
</parameters>
<photos>
<photo path="jpg/sidewalk.jpg" link="http://www.xdipsites.net" />
<photo path="jpg/grass.jpg" link="" />
<photo path="jpg/tiopepe.jpg" link="http://www.x3fusion.com" />
</photos>
</jpgrotator>


this works like html. just keep all the tags intact, just change the
values. in the parameters section you can make 4 different settings:
1. The time an image shows in seconds (2 to 10 look good)
2. Whether the rotation should be random or not (true or false)
3. Whether the navigation buttons should display (true or false)
4. The transition type (fade, bgfade, fluids, blocks, circles)

the lines in the photos section are for the images to include.
you should copy-paste a line for every image you want to have in
the rotator. in this example there are three images, with the
following parameters: the "path" is the filepath from the player
to your jpg file. the "link" is to what page the image links if
you click on it. it can be set to the URL of a certain webpage:
"http://www.fsf.org/" or left blank: "", if you don't want links.


after saving and closing the jpgrotator.xml file, you can copy
everything to your website. put it all into the same directory
as your html page. then copy-paste this code to your html page on
the place you want the jpgrotator to appear:

<object type="application/x-shockwave-flash" width="300" height="180"
bgcolor="#ffffff" data="jpgrotator.swf">
<param name="movie" value="jpgrotator.swf" />
<param name="bgcolor" value="#ffffff" />
</object>

this code is set to make the rotator 300 pixels wide and 180
high. you can adjust the "width" and "height" to the sizes you
want them to be. you can adjust the background(bg)color the same
way, but be aware it appears twice ! you can set hex values or
type the name of a color.




VARIABLE

there is also one variable you can set in html: the location of
the xml file. this is handy if you want to use multiple xml
files for one jpgrotator (eg. every page other photos or in
combination with cms). suppose you have a file called
"alternate.xml", the code will be this:

<object type="application/x-shockwave-flash" width="600" height="180"
bgcolor="#ffffff" data="jpgrotator.swf?file=alternate.xml">
<param name="movie" value="jpgrotator.swf?file=alternate.xml" />
<param name="bgcolor" value="#ffffff" />
</object>

you can also link to xml files in another folder, but not to xml
files on another server, due to security restrictions of Flash.




SOME HINTS

your jpg files cannot be saved as "progressive jpg" ! photoshop
'save for web' does this by default but flash cannot handle this
type of jpg files. use standard jpg instead.

insert your links with the full http:// address or linking
might not work !

you can change the layout of the navigation buttons by opening
the .fla in FlashMX2004. you can find the button graphics in
the Library, it is called "navBut". the color of the text is
controlled in actionscript, in the setButtons() and killButtons()
functions. these colors are set in hex values (0xff0000) ..

The blocks transition use blocks of 60 pixels square. So if you
want the transition to display only square blocks, make sure the
height and width of your jpg rotator is a multitude of 60 pixels !
or change the block size in the .fla ..

The .fla file can only be opened if you have Flash MX 2004 with
it's 7.2 updater (free at macromedia.com). i cannot save the
script to an older version since some scripting is only supported
from this release on.

there is no "random" transition parameter ! this tends to make
the banner look very cluttered and badly designed.

Flash Adverts
Hi,

I have been asked to make a series of flash adverts for a client. I have made so before, however it was a few years ago now and they have been basic. I would like to take it on a step or two.

I would like to do two things (if possible).

1. I would like to be able to make a flash advert that "gets around" the file limit of the advert spec (normally around 25k) I have thought that this could be done by calling another swf in to the on hosted on the site where the advert will be shown.
Is this possible? and if so how do I do it?

2. I have seen flash adverts in the past that "grow" and sit over the normal html content of the website (some times on msn) when hovered over. Does anyone know how to do this or point me to a tutorial. I think I could do it if I had access to the html of the site, as i could use divs+css+javascript, but i don't have that.

Can anyone help please?

Thanks

Templates Adverts
can anyone point me to a tutorial explaining how adverts are made using the templates in MX/MX Pro and how they are then incorporated onto a sites page.

Thnx in advance

Markone

Flash Adverts
Just a quick question.

One thing that I've noticed is that flash adverts are now appearing over websites as a layer and you have to click to close it.

If you goto http://www.football365.com you can see an example of one.

Can anyone tell me how this is done or point me in the right direction.


regards

Trouble Adding Dynamically Named Elements To An Array Immediate Help Is Needed
OK, here we go... if someone can help me figure this out, I will have successfully completed my site in time for the deadline today at noon...

-- I have an array located at "_parent.emptyWindows"
-- "_parent[this._name]" gives me the name of the current MC and the value I want to add to array "emptyWindows"
-- I'm trying to add an element in this manner:


Code:
_parent.emptyWindows[_parent[this._name]] = _parent[this._name];
That is not working, but not even this is working for me:


Code:
_parent.emptyWindows["bird"] = "bird";
Here I've given an explicit value and name for the element to be added to the array, but obviously something is wrong in my context and I just am NOT finding it.

Any guesses???
Much appreciation,
The Dust

Bloody Adverts Are Getting On My Nerves
Hi there guys

Well it saturday morning and i'm at work again and i was just reading the sport on thesun.co.uk and one of those adverts that takes over the screen came on. You know the ones where you can still see the page behind the advert and you cant do anything else until the advert is closed. I'm now wondering how the movie background is made see through does anyone have any idea's

Cheers Mike...

Floating Flash Adverts
Can anyone tell me how to make these floating flash anims on top of a html page? u know like how many standard html sites have, and then u have to close the animation.

How Do They Do These Transparent Flash Adverts?
Hi there,

I was wondering is someone out there knows how they do these flash adverts that keeps poping up in the middle of the page? For example if you go to http://www.sky.com/skynews/home

Thank you in advance for any help given

Flash Akira

Subline Adverts In Flash
good morning!

i have been asked to create a subline advert in flash (like these here: http://www.eyeconomy.co.uk/sublines_demos/sky.aspx ) now from what i can gather the various parts need to be created as separate flash movies i.e drop downs, bar that is constantly visible etc.

while i am certainly not having a problem creating all these separate parts i am at a bit of a loss as to how one would compile them. should the bar have hit zones put in it? do i need to make sure the drop downs are closable (may not be a real word) I can't find any sort of advice online as to how to create a subline advert has anyone out there had any experience of this that they could share with me?

[F8] Adverts And Watch Folders
Hello,

I'm not exactly a newbie to flash but it has been a long time since i have used it in for anything more than simple graphics and banners. I'm basically looking for some advice as to how to go about a task.

What I am looking to do is to create a way of displaying a random variety of adverts on our company website which link to products and other pages. The steps I would like it to go through are below:

1 - One swf preloads and fades in which is displayed, say for 10 seconds.

2 - While the first swf is displayed another is preloaded and after 10 seconds or when it has finished loading (which ever is longest) the 1st fades out and 2nd is faded in. etc etc.

What I would ideally like to be able to do is place all the swfs in a watch folder and have flash read the contents and load them in a random order. I want to do it this way so I don't have to keep adding to the actionscript each time we add a new advert.

Is there a way of using watch folders in actionscript? If anyone can advise me as to which methods to use or how to structure this project I would be most grateful!

Cheers

Neil.

Flash Adverts I Need Inspiration
Im looking for flash anim popup adverts u see round the net!
THos ones that randomly pop up and usually have hard to see [x] buttons to exit with!
I need to create a new one for a site and need inspiration.
Its a girl band thats releasing a single and i need to advertise it so it needs to be colourful or another bands single advert if u can find one.
Needs to be flash.
Just for ideas!
Ad,

Howto: New Flash Adverts?
I'm sure you have all seen these new pop-up ads that are completely chromeless and completely done in flash. Does anyone know how to create them?

Floating Flash Overlay Adverts
I have seen many Flash adverts that 'float' over the top of the HTML page below (cannot find a single one to show as an example - typical)

I know how to make a transparent flash movie, but I would really like to have a small Flash animation that sits on top of my page.

Can anyone point me in the right direction, or point me to a page where such an advert occurs. I know that this will need a piece of Javascript embedded into the HTML, but I can't see that it's too difficult to achieve!

Thanks for any help with this!

Rob

Small Adverts Expalnding Over Webpage
Hard to explian so I will link.

http://www.gluelondon.com/casestudy.php?id=09 click on view ad to get the idea.


Saw a really cool one on....... myspace cough cough.


Does anybody know a tutorial on how to do this, of even better, wanna send me a fla file so I can have a play

Thank you very much people : )

[Flash 8] Adverts And Watch Folders
Hello,

I'm not exactly a newbie to flash but it has been a long time since i have used it in for anything more than simple graphics and banners. I'm basically looking for some advice as to how to go about a task.

What I am looking to do is to create a way of displaying a random variety of adverts on our company website which link to products and other pages. The steps I would like it to go through are below:

1 - One swf preloads and fades in which is displayed, say for 10 seconds.

2 - While the first swf is displayed another is preloaded and after 10 seconds or when it has finished loading (which ever is longest) the 1st fades out and 2nd is faded in. etc etc.

What I would ideally like to be able to do is place all the swfs in a watch folder and have flash read the contents and load them in a random order. I want to do it this way so I don't have to keep adding to the actionscript each time we add a new advert.

Is there a way of using watch folders in actionscript? If anyone can advise me as to which methods to use or how to structure this project I would be most grateful!

Cheers

Neil.

Supplying Flash Adverts For 3rd Party Sites
I've been asked to create some ads to go on a site that specifies "Advertising requiring the use of plug-ins like Flash and Shockwave must utilize "sniffer" code to detect if the user has the required plug-in and display an alternate image if the user does not have it. ".

How do I do this? Are they expecting me to supply the HTML/Javascript that loads either my .swf or a JPEG? I would have expected the host site to have a site-wide function to handle that. What is the normal way of doing this?

Bob

Trouble With External Text, External CSS
I'm stuck here.

I've created a Textfield, loaded external text and loaded external CSS. My problems is that I can't get the styles to apply to the text.

I have verified that my CSS style is legit - Dreamweaver displays it correctly. Additionally, I'm using the htmlText prop and not the text prop.

Traces confirm that an [object StyleSheet] exists - and that it appears to be assigned to the stylesheet property of Textfield.

I've verified that the html and css correspond. According to the AS3 cookbook by Lott - "The HTML text must be applied after the CSS is applied." So I've moved that around a bit - thinking it may be the issue...

I've also tried to move code to a button - just for testing purposes and still nothing. Button code not included below.

Anybody see what I'm missing here?


ActionScript Code:
//make a container
var sprContainer:Sprite = new Sprite();

//create a textfield
var tCal:TextField = new TextField();
tCal.text = "Test";


//put text field into container
sprContainer.addChild(tCal);

//add container to display list
this.addChild(sprContainer);

//Set textfield default size & position
tCal.border = true;
tCal.width = 294;
tCal.height = 107;
tCal.x = 135;
tCal.y = 253;
tCal.background = true;
tCal.multiline = true;
var textHolder:String;
var styleHolder:String;

//----------------------- CSS Loading ---------------------------------------------

// create a new TextField.StyleSheet instance
var cssCalStyle:StyleSheet;

//load the external css
var cssLoader = new URLLoader();
cssLoader.load(new URLRequest("calStyles.css"));
cssLoader.addEventListener(Event.COMPLETE, cssStylesLoaded);

function cssStylesLoaded(event:Event):void {
    //trace("CSS Loaded OK");
   
    cssCalStyle = new StyleSheet();
    cssCalStyle.parseCSS(event.currentTarget.data);
   
    styleHolder = event.currentTarget.data;
   
    tCal.styleSheet = cssCalStyle;
   
    //tCal.htmlText = textHolder;
   
}


//------------------------ External Text Loading ---------------------------------

//Load the external text
var txtLoader:URLLoader = new URLLoader();
txtLoader.addEventListener(Event.COMPLETE, onTextLoaded);
txtLoader.load(new URLRequest("tourschedule.txt"));


function onTextLoaded(event:Event):void{
   
    //trace("text Loaded OK");
   
    tCal.htmlText = event.currentTarget.data as String;
   
    textHolder = event.currentTarget.data as String;
    //trace(textHolder);

}

Trouble With External JPEGs Into External MC
I'm stumped. I created a Movie Clip using code that when a button is moused over, resizes the frame as an external JPEG is loaded into it. The MC itself (ContentPix) is then loaded into the main file and is called on by a submenu. Everything functions fine when ContentPix is tested by itself. But when loaded externally into the main movie, it won't import the JPEGs. What am I missing? This is the only submenu section that loads a MC that itself loads images. All the others work fine.

Adding External .swf
When I press a button, I want to open an .swf file. How would i do this?

Trouble With An External .swf »»»Help
Hi all,

I am having touble with external .swf's I am loading.
If it is a fairly straight forward movie, it will load no problem. But if there is like music with on/off buttons or like a mouse drag, the mouse drag doesn't work or the music doesn't play.

If the music is on the actual time line (on a layer) within the movie I am tryin gto import it works fine, but if the music is in the movie with .attachSound etc etc it doesn't work?

Hope I am being clear enough.

Here is the script I am using..


on (press) {
loadMovie("whateverMovie.swf", "holder");
}


Thx

External Swf Trouble...
Hello!

I'm importing a slide show swf into a main movie by loading it into an empty clip. When I test the slide show on its own, it works perfectly; nevertheless, when I load it, it does not work.

This is the coding that is in the loaded swf. Do I put "this" in there or what?

________________________________________________
PixMCpos = 144;
one.onRelease = function() {
PixMCpos = 144;
};
two.onRelease = function() {
PixMCpos = -234;
};
this.three.onRelease = function() {
PixMCpos = -723;
};
________________________________________________

Any suggestions? Thanks!
Furpants

External .swf Trouble
How do I get an external swf to play when entering a frame?

Is there some code that will do it for me?

I have read the tutorial on this site, but I want it to work when entering a frame (frame 6 ).

Thanks for any help !

External .swf Trouble
How do I get an external swf to play when entering a frame?

Is there some code that will do it for me?

I have read the tutorial on this site, but I want it to work when entering a frame (frame 6 ).

Thanks for any help !

More External Swf Trouble
i have a button in my main swf that loads up and external swf.

when the external swf comes up, the menu shows up and all looks good. but when i click on the buttons on the menu, the movie clips that are supposed to start don't start.

when i play the external swf separate, the buttons work fine. i feel like it might be a path problem.

i just don't understand why it would work by itself but when it's loaded in another swf the buttons no longer work.

here's is my coding in the external swf:

on (release) {
_root.gotoAndStop("photo02");
}


photo02 is the named anchor of the frame.

Trouble Adding Animation To Existing Rollover Animation
Hey all,

I'm using Flash 8. I have a picture of a building which is segmented into floors. Upon rolling over a grouping of floors the user sees either a blue overlay, indicating they can click, or a gray overlay simply describing what the floor is. I already have some actionscript in place and I don't need to alter it, I just added more animation to an existing movieclip rollover, but it's not quite working. On one of the floors that rolls-over gray, I want an additional rollover with some text. So I made a movie clip of the rollover animating out and the type coming in and I just added it to the gray fade in movie clip since there was already onRollover actionscript in place there. However, the rollover kept playing over and over again. So, of course I added a Stop action. Then, the animation didn't work anymore, it just rolled over to the final state of that animation. Does anyone have any ideas of what I can do, or what I can do as an alternative? I'll post the actionscript in case that helps. Like I said, the rollover "rolls-over" but either loops (without a Stop action), or rolls over to the final frame in the animation (with a Stop action).

Thanks!
Mc

Having Trouble Adding Additional Text To Text Stored In Var
How can i add "&print=page" to printVar=facility.php?type=all&state=ak so it would be, printVar=facility.php?type=all&state=ak"&print=pag e in a button?
I tried this and it won't work..
[code]
on(release){
getURL(printVar+"&print=page")
}
or
on(release){
newPrintVar = printVar+"&print=page"
getURL(newPrintVar)
}

Adding External AS File?
Can someone help me find my classes directory? I need to add an external AS file. Thank you so much for your help!

Adding Preloader To External Swf
I have a preloader that I made very simuler to this one (Link) and its in my main movie but I want to make for my external swfs so everytime I call a swf my preloader would appear 1st to preload the swfs. Im using this action this.loadMovie("gallery.swf") im clueless on how to go about doing this so any information action ect... would be greatly apprecated.

Adding Links From External MC's
What I have going on here (you'll see if you visit www.takedownmag.com) a flash header that is used for the navagation of the site. Once a user mouses Over a specific section (which is why I can't the onPress) the main time line is ushered to the frame labeled "events" and a few color effects take place as well as:

1. A movie clip called scratch (which is placed of each label frame) plays and stops once it completes on cycle.//See code above//
2. Above that (because it's on a higher layer) a movie clip called "NavCon" (which simply acts as a container for loading external swfs) loads it's specific swf. Which is different per each instince that is moused over.//see example code above//
3. In the event the user mouses off of the scratch the main time line will play (for 13 frames) and reach a keyframe that has a stop action, actions to return the color effects to normal, and this line of code:
-------------------------
this.navCon._visible = false;
------------------------
In order to hide the scratch Movie Clip once the user rolls away from the loaded options.

NOW>>>> Here's my problem. Everything about works fine. But, if I add (by invisible buttons or directly on the text) any "onPress/onRelease" events to the specific "NavBar" swf that link to a different page. Once my mouse rolls over it. It (The external MC and the scratch MC) disappear.

----------------------------------- On Button instance
on (rollOut) {
_root.play();
}
on (rollOver) {
_root.gotoAndStop("events");
_root.navCon.loadMovie("NavBar1.swf");
}
----------------------On scratch Movie Clip

on (rollOver) {
_root.stop();
}
on (rollOut) {
_root.gotoAndStop("home");
}
--------------------------------------------

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