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.NetRight click on the tool box. Select “Add/Remove Items…”. Select “COM Components”Select “Shockwave Flash Object”. Click OKDraw it on the formName it “SF1”
Adobe > ActionScript 1 and 2
Posted on: 02/21/2007 03:23:38 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
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
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
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
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);
}
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
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
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
Adding A Swish File To A Flash File?
Is it possible?
I made an intro to my site, and made a good animated button in SWiSH 2.0. When I try to open it, it pops up as an unexpected file format. When I "Save As" the button, there are no other file formats to choose from other than the .swi file.
Any help?
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 An .fla File.
Sorry if I'm super-noob of the week, but I've been downloading some nice .fla files from here and have been trying to add them to my already-finished movie. However, I haven't used Flash since v1.0 so I've forgotten mostly everything.
Can someone help me so that I might know how to 'add' an already made .fla file into mine. For instance, I found a neat background line loop I would like to add as a background on mine, but so far have just gotten extremely frustrated.
Thank you for your patience.
Adriorn
Adding A SWF File To FLA
Hi there,
I have a really nice swf file that i would like to insert into my flash file. I do not have the swf file in FLA. format. So i cant edit it.
Is this possible to do?
Adding A Music File
I'm making a music video, How do I add music to the animation with more than one scene and not have to worry about cutting the sound file up to puting it in certain scenes? SO really what I'm asking is how do I make music play through the entire animatin, never cutting out, and never skipping? Thanks
Adding To Html File
ive done all me movie now, and all thats left is to put it on me site. I have an original index.htm file, and using dreamweaver MX, i import the .swf file, and also add the relevant image files and folders to my directory.
Because my movie reads in random external images. I can open the .swf file on its own and it works perfectly, and displays the images as it should, but when i open my index.htm file, none of the images appear, why is this,
any one got a clue
Lee
Help With Adding A Quiz To The File
I am having to create a CBT for my final at school, and I am trying to add a quiz onto the end of my flash movie. I have the quiz (which i created from one of the flash templates) as a seperate file, which i tried to copy and paste those frames into the movie, but with no luck. Any clue how I can get this to work?
It will go to the first check, then you can check it, then it sends you back to frame one of the movie besides sending you on to the next question. I am not using any additional coding besides what is in the quiz template.
Emma
Adding A Hyperlink To An .swf / .fla File
Could someone walk me through as to how I attach a hyperlink to a picture in my website so it opens a new webpage to the desired target. I have the picture in .gif format .jpg format, .fla and .swf format. Thanks for any help in making my life more complete.
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!
[F8] CS3- Adding A .mid Audio File
I am trying to add a midi audio file to an animation but when I try to import, cs3 says it can't read the format. I haven't been able to find the sound file in any other format. Is there a way actionscript can play the file when the animation starts without it being part of the swf? (I have also tried embedding the file with html' tried the object tag, but these only works in IE and not FF.)
Adding To Stage From A .as File
Hi Just wondering if anyone has a better system for adding to the stage from an as file than this:
I am trying to add a text box to the stage and this works but it seems like there should be an easier way to do this. Do I really need to pass this to the .as file?
In my .as file I have:
ActionScript Code:
package{
public class Create{
public function createObjectAndAdd(myStage:Object){
var tx:TextField = new TextField();
tx.text="Stuff";
myStage.addChild();
}
}
}
In my .fla file I have:
ActionScript Code:
var c:Create = new Create();
c.createObjectAndAdd(this);
Thanks all.
Adding Controls To Swf File
Hello
I want to add controls (Play/pause/ slider) to a swf file does anyone know a tutorial or a way to do it?
Thanks
Ad
Adding Audio File To FLV
Hi All,
I have one FLV and i want to add MP3 audio file to that. And recompile it to create the new FLV file which can have the audio embede along with the video.
Can anyone tellme how do that. Any tools are available.
Thanks & Regards,
Sridhar B
Adding API To Flash File
Hello,
I am working on an online poker game for a client. I am in charge of the design phase and somebody else is involved with the back end. He sent me an group of API formated to fit in to Action Script. I am not sure how to proceed. What would you need from me on this post to see what is going on?
Thanks
Edited: 12/04/2007 at 09:37:02 PM by Kevin1138
Adding A URL Button From XML File
I'm making a photo slideshow that pulls info from an XML doc--including a URL. What is the code to add a link on a Flash button from an XML document?
Here's my XML code for each photo: <url>http://www.yahoo.com</url>
My Flash doc pulls all xml url's in an array like this:
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
description = [];
url = [];
delay = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
image = xmlNode.childNodes.childNodes[0].firstChild.nodeValue;
description = xmlNode.childNodes.childNodes[1].firstChild.nodeValue;
url = xmlNode.childNodes.childNodes[2].firstChild.nodeValue;
delay = xmlNode.childNodes.childNodes[3].firstChild.nodeValue;
}
Adding An API To Flash File
Hello,
I am working on an online poker game for a client. I am in charge of the design phase and somebody else is involved with the back end. He sent me an group of API formated to fit in to Action Script. I am not sure how to proceed. What would you need from me on this post to see what is going on?
Thanks
Adding Lines To A XML File
Alright im trying to figure out how to take the xml gallery tutorial, and add the ability to add lines to the xml from the swf itself.
The swf would just be 2 text boxes, one having the url to the image, and one for the caption
Code:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<images>
<pic>
<image>http://www.phirebrush.com/issues/38/photography/54ka%20-%20Treestory.jpg</image>
<caption>PHIREBRUSH!!!!</caption>
</pic>
<pic>
<image>*USER DATA*</image>
<caption>*USER DATA*</caption>
</pic>
</images>
Make sense? can anyone help?
Adding Controls To Swf File
Hello
I want to add controls ( slider) to a swf file does anyone know a tutorial or a way to do it?
I have added the play pause button its making the slider bar to move the video forward or backward that is giving me the problem
Thanks
Ad
Trouble Opening A File
Help please! I'm a little new to Flash MX. I have been working on a movie, and now when I try to open the file, Flash closes immediately. I can't even open the file to edit anything. Any clues or suggestions? I've already tried renaming it and reopening that, and the same thing. Help please!! Thanks.
Trouble Loading Txt File
I can't my swf to read a txt file I'm trying to import. I can get it to read other peoples txt files but if i make one and save it it doesn't open, I've tried making the txt files in word, apple works, and text edit. I have an intel mac maybe there's some incompatibility issue??
Trouble Sending Swf File Please Help...
Hi, I am fairly new to flash. I have done a little test site (not yet published) for a client. I want to send him the swf file so he can get an idea of the site. Does he need to download flashplayer to view the site? Is there another way to send the file without having to ask him to download anything. If so how? I tried to send the html file but he still isn't able to open it, what can I do?
thanks
reem
Trouble With Loading Xml File
I'm using MX 2004, and I'm having trouble loading an external swf via xml into another swf file. Where it's perplexing for me is that I'm able to do it with other files into that same document.
I've got three external files which should be available on each individual frame -- a lesson file, a help file, and a glossary file. The lesson file will load automatically while the help and glossary files are only available after a mouse click. Thus far, I'm getting an undefined error when I attempt to load the glossary file, yet I've used the same code that I did for the lesson file, which is working fine. Can anyone else see where I went wrong? Any suggestions are greatly appreciated.
Here is the code that I'm using.
function loadCurrentPage (newPageNode) {
contentMoviePath = newPageNode.attributes.filename;
keytermsmovie = newPageNode.attributes.keyterms;
helpmovie = newPageNode.attributes.helpfile;
objtitle = newPageNode.attributes.objtitle;
loadMovie (contentMoviePath, content);
}
keys.onRelease = function () {
keyholder.loadMovie (keytermsmovie);
closemovie._visible = true;
closemovie.enabled = true;
closemovie.gotoAndPlay ("_up");
}
closemovie.onRelease = function () {
keyholder.unloadMovie ();
helpholder.unloadMovie ();
closemovie._visible = false;
closemovie.enabled = false;
}
Projector File Trouble
Hi
I have about 5 seperate swf files that come into my main when buttons are clicked, I want to create one projector file that plays them all, do you know how do i do this?
cheers matt
Trouble With Remote File
Hey Guys
Relative newbie here.
I've created a site that loads external swf's into a holder movie clip using a frame actionscript which is triggered by instantiated buttons that call the function.
Everything tests fine locally but when I upload and test the site only the main swf loads. When the buttons are clicked the other swf files cannot be found. I have checked that all the files are in the correct directory and all seems to be fine.
To see an example of what is happening check the site.
www.thegroomingroom.com.au
The buttons are along the right hand bottom and don't seem to function.
Can anyone explain what might be happening? This has been a problem for quite a while and is really starting to bug me.
Thanks for your time
Leroice
Trouble Loading XML File.Please Help Me
Hi!
I have a xml file with this structure :
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<slideshow>
<photo thumb="imagesfoto1.jpg" url="imagesfoto1.jpg" caption="DJ Chambinho fazendo o Gas Total."/>
<photo thumb="imagesfoto1.jpg" url="imagesfoto2.jpg" caption="DJ Chambinho mixando no Gas Total."/>
<photo thumb="imagesfoto1.jpg" url="imagesfoto3.jpg" caption="DJ Pele,Emersom(Barriga),Danielle e DJ Chambinho na Vintage."/>
<photo thumb="imagesfoto1.jpg" url="imagesfoto4.jpg" caption="DJ Chambinho e sua linda mulher, DJ Gabriela, na Joy."/>
<photo thumb="imagesfoto1.jpg" url="imagesfoto5.jpg" caption="Entrada do Olympia Disco Show."/>
<photo thumb="imagesfoto1.jpg" url="imagesfoto6.jpg" caption="Pista de danca do Olympia Disco Show."/>
</slideshow>
and I am trying to load each image into an empty MC but it is not working. I am sure there is something wrong with my code.Could You guys help me out?
Code:
import flash.events.*;
stop();
var xLoader : URLLoader = new URLLoader();
var xml : XML;
xLoader.addEventListener(Event.COMPLETE,onComplete);
xLoader.load(new URLRequest("album.xml"));
function onComplete(e:Event):void
{
xml = new XML(e.target.data);
var lista :XMLList = xml.slideshow.photo;
holder.addChild(lista[0]);
}
What is wrong and what else I need to do?
Trouble Exporting A GIF File, Please Help Me
Hey guys, I'm having a bit of trouble exporting a GIF file that I have created, it's probably really simple, but I have no idea.
This is the exported file http://b.imagehost.org/0258/25.gif as you can see the banner is there but you can't see it.
Any thoughts, also it's strange because if I import files from photoshop it exports in GIF format, but this was created solely in Flash and it's all text.
Thanks for any help.
Trouble Sending Swf File Please Help...
Hi, I am fairly new to flash. I have done a little test site (not yet published) for a client. I want to send him the swf file so he can get an idea of the site. Does he need to download flashplayer to view the site? Is there another way to send the file without having to ask him to download anything. If so how? I tried to send the html file but he still isn't able to open it, what can I do?
thanks
reem
Trouble Loading XML File.Please Help Me
Hi!
I have a xml file with this structure :
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<slideshow>
<photo thumb="imagesfoto1.jpg" url="imagesfoto1.jpg" caption="DJ Chambinho fazendo o Gas Total."/>
<photo thumb="imagesfoto1.jpg" url="imagesfoto2.jpg" caption="DJ Chambinho mixando no Gas Total."/>
<photo thumb="imagesfoto1.jpg" url="imagesfoto3.jpg" caption="DJ Pele,Emersom(Barriga),Danielle e DJ Chambinho na Vintage."/>
<photo thumb="imagesfoto1.jpg" url="imagesfoto4.jpg" caption="DJ Chambinho e sua linda mulher, DJ Gabriela, na Joy."/>
<photo thumb="imagesfoto1.jpg" url="imagesfoto5.jpg" caption="Entrada do Olympia Disco Show."/>
<photo thumb="imagesfoto1.jpg" url="imagesfoto6.jpg" caption="Pista de danca do Olympia Disco Show."/>
</slideshow>
and I am trying to load each image into an empty MC but it is not working. I am sure there is something wrong with my code.Could You guys help me out?
Code:
import flash.events.*;
stop();
var xLoader : URLLoader = new URLLoader();
var xml : XML;
xLoader.addEventListener(Event.COMPLETE,onComplete);
xLoader.load(new URLRequest("album.xml"));
function onComplete(e:Event):void
{
xml = new XML(e.target.data);
var lista :XMLList = xml.slideshow.photo;
holder.addChild(lista[0]);
}
What is wrong and what else I need to do?
Adding Hyperlink To SWF File In HTML
This is my first time dealing with any .swf files, so any help would be appreciative...
I have been given an .swf file that needs to be added to an HTML page - no problem. That file then needs to link to another site. Is this something that needs to be added to the file before it is loaded onto a website?
I've seen the following code provided in other threads, but either it is meant to be used when creating the file, or I'm not using it correctly when I try adding it to my .asp page.
on (release) {
getURL ("<URL here>", "_blank");
}
If I'm not trying to do something impossible, please edit the code below to make this file link:
<html>
<BODY BGCOLOR="#ffffff" TEXT="#000000" marginheight=0 marginwidth=0 topmargin=0 leftmargin=0 rightmargin=0 id=all>
<embed width="360" height="75" src="<file>" border="0">
</body>
</html>
Thanks!!
Adding To File Slows Down Significantly?
Hi gang!
Any idea on how to optimize this code.
For a projector I am making a list of companys based on variables pulled out of a textfile based database.
I have an array of companies and an array of types.
in a loop where i++;
txtResults += _root.arrCompany_1[i-1] + _root.arrType[i-1] + '
';
(' go instead of ")
The list sometimes adds up to 1000 entries. At first it goes pretty fast but as i increases it is beginning to slow down significantly. Until it down to adding 1 line pr second.
Does anybody know of a better way of adding to a string?
Regards //podenphant
Adding To A Text File Through Flash
My news is loaded dynamically on my flash website through a text file, and I'd just like to know, is there any way to add-to or open up and completely change the news textfile through flash? I'd like to streamline it for the other people who'd like to post.
Any ideas on how to accomplish this?
(Sorry, it seems like I havn't tried at all to answer my own question, but I have been for a couple of days now.)
|