Displaying XML - Please Help
Hello All,
Thanks for your help in advance! As a novice coder, I seemed to have reached an impasse!
Code: stop ();
var placesXML:XML = <places> <place name= "Bengkulu" frame= "63"> <Data>This is a deliightful place in Sumatra</Data> </place> <place name= "Yogyakarta" frame= "62"> <Data>This is a deliightful place in Java</Data> </place> <place name= "Banda_Aceh" frame= "64"> <Data>This is a deliightful place in Northern Sumatra</Data> </place> </places>
var placeNo:Number; var place_mc:Array = [towns.Bengkulu, towns.Yogyakarta, towns.Banda_Aceh];
for each (var place_btn in place_mc){
place_btn.addEventListener(MouseEvent.CLICK, showData); }
function showData(e:MouseEvent):void{ for (var i in place_mc){ if (e.currentTarget.name==place_mc[i].name){ gotoAndStop(placesXML.place[i].placeNo); mc_myMarker.myText = placesXML.place[i].Data; } } }
//the script below controls the mc_myMarker movie clip and it currently works...
function removeMarker(event:MouseEvent):void { gotoAndStop(61); }
mc_myMarker.bt_remove.addEventListener(MouseEvent.CLICK, removeMarker);
function scrollUp (Event:MouseEvent):void {
mc_myMarker.myText.scrollV -= 1; }
function scrollDown (Event:MouseEvent):void {
mc_myMarker.myText.scrollV += 1; }
mc_myMarker.bt_up.addEventListener (MouseEvent.CLICK, scrollUp)
mc_myMarker.bt_dn.addEventListener (MouseEvent.CLICK, scrollDown) The above code currently does not log any compiler errors, however the movie just loops through (does not stop as the first instruction) and displays this is the output panel;
Code: TypeError: Error #1034: Type Coercion failed: cannot convert MapMovieClipJAN09_fla::grc_Towns_3@2d0f1a1 to flash.display.SimpleButton. at flash.display::Sprite/constructChildren() at flash.display::Sprite() at flash.display::MovieClip() at MapMovieClipJAN09_fla::Towns_grp_1() at flash.display::Sprite/constructChildren() at flash.display::Sprite() at flash.display::MovieClip() at MapMovieClipJAN09_fla::MainTimeline() TypeError: Error #1009: Cannot access a property or method of a null object reference. at MapMovieClipJAN09_fla::MainTimeline/frame61() What I am trying to acheive is basically;
1. Stop the movie on the frame in which this AS is stored. 2. Store all the movie clips (which I want to act as buttons) in the array at the top. 3. When a user clicks on one of the movie clips (names of which are currently in the array), I want the AS3 to check for a match between the 'name attribute' within the xml and the name of the movie clip just clicked. 4. Once the match is spotted, I want the user to be sent to the corresponding frame number (stored in xml as 'frame attribute') and the corresponding text (stored in the 'Data' element tags) to be displayed in 'mc_myMarker.myText'.
This script was just a smaller version of a larger program - there would be over 200 movie clips acting as buttons in the final version (as oppose to the three above) and there and I would add a little HTML to the xml data and use the 'HTMLText' property.
Thanks for taking the time to read this post!
Cheers
Ultrashock Forums > Flash > Flash Newbie
Posted on: 1 Week Ago
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Flash 8 Dynamic Map Displaying XML Data, Problem With Displaying Text
Hello everybody...
I'm working on a project in which viewers can see a map with state parks highlighted as buttons. onRollOver a caption pops up displaying the name of the park, acreage and feet of shoreline. onRelease a movie clip is loaded into a holder. The data is being stored in an XML file integrated with a content management system... The AS for displaying the caption works fine, but I cannot get the XML data to display in the dynamic text fields contained within the caption MC. There are 37 buttons that need to display the popup and I am looking for some advice on how I can effectively navigate the XML nodes and display the data accordingly in the text fields. Below is my current code, I have not yet added the onRelease function because, I'm pretty sure that i'm going to run into the same issue that i'm having with the caption popup... The last obstacle will be that the caption is only displaying 3 of the child nodes, while the MC loaded into the holder will be displaying 7 of the child nodes. I'm guessing that using the attributes property and modifying my XML would be the easiest... but i'm relatively new to integrating XML data into Flash and am trying to minimize the work that I create for myself. If anybody could point me in the right direction, i would be immensly appreciative. Pura Vida. ~Anthony
//1st frame AS for the first button, and loading XML
var xmlPath = ("xml_mapinfo.xml");
/////////////////////////////////////
var locID:Number = 0;
/////////////////////////////////////
startDrag(this.caption, true);
/////////////////////////////////////
btn_1.onRollOver = function (){
set ("locID", 1);
RollOver();
ShowData();
}
btn_1.onRollOut = function (){
RollOut();
}
/////////////////////////////////////
function RollOver (){
trace("rollOver occured");
_root.x = 1;
this.caption.words = "Word!";
trace ("Location ID = " + locID);
}
function RollOut (){
trace("rollOut occured");
set ("locID", 0);
_root.x = 0;
this.caption.words= " ";
trace ("Location ID = " + locID);
}
/////////////////////////////////////
function ShowData(){
this.caption.location_txt.text=contentMain.owner['1'];
this.caption.acreage_txt.text=contentMain.acreage['1'];
this.caption.acreage_txt.text=contentMain.shorelin e['1'];
}
/////////////////////////////////////
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
owner = [];
interest = [];
town = [];
established = [];
acreage = [];
shoreline = [];
thumbnail = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
owner[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
interest[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
town[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
established[i] = xmlNode.childNodes[i].childNodes[3].firstChild.nodeValue;
acreage[i] = xmlNode.childNodes[i].childNodes[4].firstChild.nodeValue;
shoreline[i] = xmlNode.childNodes[i].childNodes[5].firstChild.nodeValue;
thumbnail[i] = xmlNode.childNodes[i].childNodes[6].firstChild.nodeValue;
}
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load(this.xmlPath);
//AS on actual caption MC
//////////////////////////////
onClipEvent (enterFrame) {
if (_root.x==1) {
this._alpha = 80;
} else {
this._alpha = 0;
}
}
_
Flash Displaying Of Html Not Displaying Spans Right
I have a swf that calls a php script. The script outputs html and then the html is displayed in a dynamic text box. The textbox is set to display html.
My problem is this. The
HTML Code:
<b>Concealed Weapon Law </b>
will print bold on the dynamic text field, but
HTML Code:
<span style="font-weight: bold;">Badges</span>
will not display bold on the dynamic text field.
I have an admin section built that allows a user to use a wysiwyg editor (js) to create the text and it does the span style way.....
I have no way of changing that or I would.
Is there a way in flash to recognize that span style info to print out bold?
Displaying Or Not Displaying Lyrics
I am making a music video in Flash and at the beginning of the movie....after it loads....Ill have 2 options: play w/ lyrics or play w/o lyrics
The lyrics will be displayed across the top of the screen.....(like in a sing-a-long) so the viewer can sing a long.
How do I make the lyrics show w/ the movie when the option is desired and how do i make it play w/o the lyrics when the other button is chosen???
plz help.....
thnx
Not Displaying
Recently and somewhat randomly my exported flash movies have been behaving strangely - just now i uploaded several movies (having tested that they worked through control>test movie and viewing them in the standalone flash player) and yet, after having uploaded them to the server and view them from the browser, they tend not to display anything apart from a small part of the loading sequence...
http://www.krisdines.com/testermov.swf
-for the sample
I cant understand why it works fine in the flash environment but not in my browser and other users' browsers.
Thanks for your help!
Confusing stuff
Displaying URL
Ok I have a site, this has 2 frames, one at the top (banner and links) and a MainFrame. When i click a link it loads into the MainFrame, this of course doesn't update the URL displayed in the browser.
What ways can i get round this, so that the user can see the URL of the sites they are viewing?
The banner is flash can i show the URL in there?. If it is possible to change the actual Browsers URL, that would be better.
Thanks,
Turbs.
Displaying Name
I am having problems with a math tutorial I am building for my students. I basically want them to enter their name and after they enter the correct answer I want it to say "Great Job! (student name)"
As an example here is what I have so far
Glenn
on (release) {
if (an3a == 2 and an4a == 7) {
var feedback3= "Great Job!";
gotoAndPlay(11);
} else {
var feedback3= "Try Again";
}
}
Displaying Jpg
Is there a way to detect whether or not the client has flash installed and if they don't to display a .gif or .jpg instead of the flash?
If there is could you post the code or point me in the right direction?
thanks
Displaying Your Name
I'm trying to find a tut on how to display a name that you enter in a text box.
In other words if I enter a name in frame one I want it do show up in a text box in frame 2 after you click a next button.
I have the text boxes set up but I just can't put a code together that will do that.
Thanks.
AS Isn't Displaying Like It Should
ok, I'm making this game called "7th grade RPG". I've been writing the code for a while and then I hit a problem i can't solve. It isn't a syntex error, but it dosn't display like I want it to. The code is for random numbers (1-10) to determine the Intelligence, Strength, and Charm. When I go to the page where it is suppose to display the numebrs it comes up with "_level10.status.Intelligence". I can't figure out what the problem is. Here is the code. And yes there is code before it, but it isn't important.
PLZ HELP ME!
//Set Intelligence, Strength, and Charm
parseInt(_root.intelligence)
parseInt(_root.strength)
parseInt(_root.charm)
_root.intelligence = Math.ceil(Math.random() *10)
_root.strength = Math.ceil(Math.random() *10)
_root.charm = Math.ceil(Math.random() *10)
trace(_root.intelligence)
trace(_root.strength)
trace(_root.charm)
//set outs to ints
parseInt(_root.outIntelligence)
parseInt(_root.outStrength)
parseInt(_root.outCharm)
//Set default vaules
_root.outIntelligence = 0
_root.outStrength = 0
_root.outCharm = 0
//let outs equal stats
_root.outIntelligence = _root.intelligence
_root.outStrength = _root.strength
_root.outCharm = _root.charm
trace(_root.outIntelligence)
trace(_root.outStrength)
trace(_root.outCharm)
[F8] Displaying FPS
Hello everyone,
I was wondering if there was anyway of displaying the fps(not the frame rate) of an swf that was assigned to it when first created that has been imported into a movie clip.
Any ideas or help is much appreciated.
Thank you.
[CS3] Displaying Ads Within SWF
Hi,
A client has inquired into the possibility of us showing ads (both flash and static image) within our games (swf).
Is this possible at all? Can I use javascript at all to call the ad? Has anyone done anything similar?
Cheers!
Why Is This Not Displaying?
In a .fla I have a movieClip with a linkage class of "CollectHome." I have the document class set to "Main"
Then I have two .as files, a main class and a subclass:
ActionScript Code:
//Main.as
package {
import flash.display.MovieClip;
import HomeClass;
public class Main extends MovieClip {
public function Main() {
var homeView:HomeClass = new HomeClass();
addChild(homeView);
}
}
}
Then the subclass:
ActionScript Code:
//HomeClass.as
package {
import flash.display.MovieClip;
import flash.events.Event;
public class HomeClass extends Main {
public var _theScene:CollectHome = new CollectHome;
public function HomeClass() {
//I've tried setting the variable and adding the child here too
}
addChild(_theScene);
}
}
Why don't I see the movieClip from my .fla? I don't get an error. I don't get anything?
I don't have to have an instance of Main on the stage to have an instance of the subclass do I? I can't make that work either.
Thanks in advance!
Displaying XML
Hello All,
Thanks for your help in advance! As a novice coder, I seemed to have reached an impasse!
ActionScript Code:
stop ();
var placesXML:XML =
<places>
<place name= "Bengkulu" frame= "63">
<Data>This is a deliightful place in Sumatra</Data>
</place>
<place name= "Yogyakarta" frame= "62">
<Data>This is a deliightful place in Java</Data>
</place>
<place name= "Banda_Aceh" frame= "64">
<Data>This is a deliightful place in Northern Sumatra</Data>
</place>
</places>
var placeNo:Number;
var place_mc:Array = [towns.Bengkulu, towns.Yogyakarta, towns.Banda_Aceh];
for each (var place_btn in place_mc){
place_btn.addEventListener(MouseEvent.CLICK, showData);
}
function showData(e:MouseEvent):void{
for (var i in place_mc){
if (e.currentTarget.name==place_mc[i].name){
gotoAndStop(placesXML.place[i].placeNo);
mc_myMarker.myText = placesXML.place[i].Data;
}
}
}
//the script below controls the mc_myMarker movie clip and it currently works...
function removeMarker(event:MouseEvent):void
{
gotoAndStop(61);
}
mc_myMarker.bt_remove.addEventListener(MouseEvent.CLICK, removeMarker);
function scrollUp (Event:MouseEvent):void {
mc_myMarker.myText.scrollV -= 1;
}
function scrollDown (Event:MouseEvent):void {
mc_myMarker.myText.scrollV += 1;
}
mc_myMarker.bt_up.addEventListener (MouseEvent.CLICK, scrollUp)
mc_myMarker.bt_dn.addEventListener (MouseEvent.CLICK, scrollDown)
The above code currently does not log any compiler errors, however the movie just loops through (does not stop as the first instruction) and displays this is the output panel;
ActionScript Code:
TypeError: Error #1034: Type Coercion failed: cannot convert MapMovieClipJAN09_fla::grc_Towns_3@2d0f1a1 to flash.display.SimpleButton.
at flash.display::Sprite/constructChildren()
at flash.display::Sprite()
at flash.display::MovieClip()
at MapMovieClipJAN09_fla::Towns_grp_1()
at flash.display::Sprite/constructChildren()
at flash.display::Sprite()
at flash.display::MovieClip()
at MapMovieClipJAN09_fla::MainTimeline()
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at MapMovieClipJAN09_fla::MainTimeline/frame61()
What I am trying to acheive is basically;
1. Stop the movie on the frame in which this AS is stored.
2. Store all the movie clips (which I want to act as buttons) in the array at the top.
3. When a user clicks on one of the movie clips (names of which are currently in the array), I want the AS3 to check for a match between the 'name attribute' within the xml and the name of the movie clip just clicked.
4. Once the match is spotted, I want the user to be sent to the corresponding frame number (stored in xml as 'frame attribute') and the corresponding text (stored in the 'Data' element tags) to be displayed in 'mc_myMarker.myText'.
This script was just a smaller version of a larger program - there would be over 200 movie clips acting as buttons in the final version (as oppose to the three above) and there and I would add a little HTML to the xml data and use the 'HTMLText' property.
Thanks for taking the time to read this post!
Cheers
Dan H
NOt Displaying In IE
I’ve never come across a problem quite like this. It appears that one of my latest flash files doesn’t play in IE. How is that possible? I mean flash player is flash player IE, Firefox, Safari, etc. But it’s happening. Anyone encounter anything like this? Here’s my link: http://marcfolio.com/flashden/fullframe_viewer/
Like I said it’s not showing up in IE but every other browser it does. I’ve tried different methods to embed it, but nothing changes.
Please help!
Displaying é, ç, à , Etc....
i'm using mx 2004 prof...
... and i'm loading text via loadVars but special characters like "é" and "ç" aren't coming through... does anybody know what font outlines i have to include?
Displaying Milliseconds On Mac
Just wondering fi anyone new how to get the Milliseconds to display on a Mac. I can display them on a PC with the exact same scripting. The script is in a blank movieclip with an onClipEvent(enterFrame). Anyone have any ideas?
Displaying Files
Does anyone know of a way to display the files in a directory within my flash movie? I want to create a list of each directory on my web server? Just looking for some hints so if anyone has ideas please let me know.
Thanks,
D
Displaying Images
I was wondering how i can make my flash movie display images located in a separate folder. I would like to periodically change the images in the separate folder -- and thus the images displayed in the flash movie would be different without having to re-program my flash movie.
Displaying Choices
I have a screen with 5 choices listed, the user can select any combination by clicking a check box, each choice corresponds to a movie clip.
When the user has made their selection they click a next button.
This takes them to a screen where the movie clips corresponding to their choices are displayed.
What is the best way of tackling this.
Help greatly appreciated
Thanks
Displaying Time
What I was doing was,
display = (_currentframe)/12 with a few extras to get the time, but its very inacurate, There is also the getTImer() but I wanted to display the Min, Seconds a movie clip has been playing, can you help ?
I guess I should also add a few more things explain a little better! I'm loading a movie into the main movie into _level1 then I also eval( frame information from that movie, but I would also like to get the length of time it has been playing, rather then the way I have done above! there has got to be an easy way
[Edited by KJintrest on 01-15-2002 at 11:59 PM]
Displaying The Time
I have searched the threads and can't find this but i'm sure it has been covered, if it has i apologise....
It is hopefully quite simple, i have a a script that puts the date and time in a text field....
the problem is this. The time is a twelve hour clock (not too bad)
but the minutes upto 10 don't have a leading zero, so for example if the time is 16.04 i get....
4.4 which doesn't really resemble a time.
I have enclosed the script below. please can someone help.
mydate = new Date();
weekday = new Array("Sunday", "Monday", "Tuesday", "Wendnesday", "Thursday", "Friday", "Saturday");
month = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "Octobert", "November", "December");
time = (weekday[mydate.getDay()]+' | '+month[mydate.getMonth()]+' | '+mydate.getDate()+' | '+mydate.getHours()+' . '+mydate.getMinutes()+' . '+mydate.getSeconds());
Displaying Movies
Hello Guys and gals
Iwas wondering if anyone had any ideas if there was a wayin which i can have my flash site always display in 1024 x 768 resolution? I am not sure if this is possible,any ideas would be greatly appreciated.
Also I have a preloader which seems to work fine on high speed cable internet....however I am doing the website for a friend who is on dialup --he sz that the site takes over 5 minutes to load before it will play! Does this sound like a reasonable time to wait for phone line when viewing a Flash site with a fairly simple intro? The flash site main movie consists of about 155 frams total with various MC through out the main movie timeline. The site also has a couple mpeg files for sound. It is for a band and I am going to add about 5 other mpegs for music samples.
My preloader currently uses the following preloader code:
loadedBytes =_root.getBytesLoaded();
totalBytes =_root.getBytesTotal();
if (loadedBytes < totalBytes){
percentageOutput= int((loadedBytes / totalBytes) * 100);
_root.loaderbar._xscale = percentageOutput;
gotoAndPlay("preload_loop");
}
else {
gotoAndPlay("begin_movie");
}
Please tell me if there is a way I can speed things up..or if things seem to be in order for best results??
Thanks guys..
Displaying Xml In A Table
-----------------------------------------------
we have an xml file and need to display the info in a dynamic table. Is there an easy way to generate that table and display the xml data on the fly? is it even possible in flashMX?
-----------------------------------------------
Displaying The & Character
Hi,
I have flashform, where the data is loaded into the movie like
&target1=New York|Washington &target2=NY|WA&TargetCount=2&eof=1
If the database has a value containg '&' e.g. 'Deloitte & Touche' Flash would recognize it as a new string.
How can the '&' sign be displayed?
cheers
Patrick
Displaying Text
I know this is a stupid question, but how do I dispay text in Flash MX using actionscript? I want to put a changing variable in a movie clip.
Displaying Boolean Value
I'm stumped. This used to work in flash 5 is it different now.
Here's the situation:
one input field- numbers only, assigns input to variable in1
one dynamic field- assigned variable in2
one button that has the following script:
on (release, keyPress "<Enter>") {
in2 = (in1<100);
}
Which I believe passes along a boolean value to in2, so that either false or true is written in the dynamic text field. But nothing happens! What am I doing wrong?
Displaying Date
Hello,
Can someone please tell me how to display a date in a flash movie that will change automatically?
Cheers.
Displaying The Date
Hi,
Simple but causing loads of problems: all i want is to display the current date in this format or similar "10 Jan 2003", but i just can't seem to work it out.
Thanks in anticipation
Ada
Displaying X,y Coordinates
hi | i'm in the midst of developing a draggable movie clip that has a display which will show its current x,y coordinates. anyone know how i can get the current x,y coordinates to display?
thanks. fu-meng.
Displaying Date
Hello,
Can someone please tell me how to display the date in a .swf using this method:
http://www.flashkit.com/tutorials/Ac...-808/index.php
But without the time included.. I am trying to disply only (Wed Jan 22)
Cheers,
Mike
Button Not Displaying
Greetings,
I'm new to flash, and am having a small problem with a button not displaying.
The button was originally just a text string with a Link property, but I needed to use javascript on the link, so I converted the text to a button, added the on (release){}; call, and exported the movie.
The button functions properly, and opens a new window with the correct page loaded, BUT the button does not show up. It's invisible.
Is there something I'm missing here? Perhaps a "visible" property or something?
The button is in a keyframe, and all other elements of the keyframe display.
Thanks,
Keith
Imported .png Not Displaying
I have a png imported inside of a movie clip, and everytime I close the file and reopen it again, the library says "Bitmap not loaded" and I have to reimport the png again......Any ideas as to why it keeps disappearing from the library?
I have several other png's within this movie clip and they all load fine...
Thank you!
Displaying The Value Of Xml Attributtes
I have loaded my xml file in to my movie it has been successfully parsed and all the data I need is there for me. But Im having difficulty with the loop which iterates through the xml nodes attributtes i need to get there values displayed in dynamic text boxes can anyone help me with some coding ideas
Delay In Displaying
hello
ive tried load variable in the _root frame using LoadVariablesNum.
After doing so, ive tried to get the var, eg.
"var=_root.var;"
the dynamic textbox, which belongs to the movieclip, only seems to display the item after one cycle. How come it doesnt appear as soon as the movie is loaded? help
is there any solution to that?
Displaying Picks
Hi fellow MXers. I need a little bit of help. I want to have to team names show up, the user picks one,which is displayed on the left. Then two new team names show up.that happens again and again. until every team has showed up once. then i would like two of the names from the left to show up in the middle again.the picked one going to the right.and so on and so forth until it is narrowed down to one team. can you guys help me by telling me the best way of doing this? thanks a lot. I hope it wasn't confusing. if it was, it is kind of like one of those ncaa bracket things. you know.
_____
_____|-
_____ |------
_____|-
Thanks,
Marc
Displaying Images
Hi
Im currently recreating my portfilio page in flash and want to display some of my work.
Im not sure weather to open the images in a large flash movie or to open them in a browser window. which is best?
i have tried loading them into a window but can't get it to center on screen.
thx
DoM
No Error But Still Not Displaying
Hello everyone, I've been to so many sites... could anyone tell me why this code doesnt display the box?!?!?! an empty mc called "image" does exist and it is set to write to the first frame. that bit is all done and still!!! it manages to hide away somewhere. help!!!!
_level0.attachMovie("FScrollPaneSymbol", "myPane", 10);
myPane.setScrollContent("image");
myPane.setHScroll(true);
myPane.setVScroll(true);
myPane.setSize(stage.width, stage.height - 100);
var paneContent = myPane.getScrollContent();
w = 6;
sf = 300;
st = 400;
x_st = 100;
with(paneContent) {
beginFill ("0xFF0300", 100);
lineStyle (1, "0xFF0000", 10);
moveTo(x_st, sf);
lineTo (x_st, st);
lineTo (x_st + w, st);
lineTo (x_st + w, sf);
endFill();
}
XML Link Displaying
I have this code on the frame where my XML data is displayed, everything works great except I want my links to go to a target browser of _blank. How do I add this into the code to make the links open up a new browser intead of just going within the browser that the swf is in?
here is the code:
_______________________________
news = "";
for (i=0; i<articles.length; i++) {
news += "<a href='"+articles[i].link+"'>"+articles[i].headline+"</a><br>";
news += " <font color='#cccccc'>("+articles[i].source+")</font><br>";
}
stop();
_______________________________
Thanks for your help,
Kyle
Displaying A Variable...
Hi! How would I go about displaying a varialble that changes constantly through a Flash movie.
For example; if I were to make a simple click counter that just counts how many times you click on a certain area and updates the number live.
Thanks!
spoon
Displaying Pic In New Window
I have visited sites where when you clicked on a picture or when the intro played, both appeared in a window that was the exact size as the pic or movie and I want to duplicate that.
I ran across this code to be placed into HTML, after the </head>:
Code:
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function openWindow(URL, winname, xtoolbar, xlocation, xdirectories, xstatus, xmenubar, xscrollbars, xresizable, xwidth, xheight, xleft, xtop) {
newWindow = window.open(URL,winname,"toolbar="+xtoolbar+",location="+xlocation+",directories="+xdirectories+",status="+xstatus+",menubar="+xmenubar+",scrollbars="+xscrollbars+",resizable="+xresizable+",width="+xwidth+",height="+xheight+",left="+xleft+",top="+xtop)
}
function closeWindow() {
newWindow.close()
}
// End -->
</SCRIPT>
And on my button I have this:
Code:
on (release){
getURL("java script:openWindow('http://www.caleb.eljefestudios.com/pics/' + varPics[currentPic],'winname',1,0,0,0,1,0,0,350,400,0,0)", "");
}
But is is not working, says it can not find the enter string insode of the getURL()...
Any ideas on what I am doing wrong?
Thanks!
Displaying Name Of Person
I have a math tutorial I am building for my students. I have some interactive problems for them to solve as they solve the problem I want to have it say "Great Job!". This part I have figured out. What I need help with is how to have their name pop up also. How to ask for the name at the beginning of the tutorial and then how to use that name to say, "Great Job! Paul"
Thanks in advance
Glenn
Here is what I have so far
on (release) {
if (an1 == 0 and an2 == 2) {
var feedback3= "Great Job! ";
gotoAndPlay(6);
} else {
var feedback3= "Try Again";
}
}
Displaying Czech
Hey guys,
I am translating a course built in flash, from english into czech. I have a word doc with all the translations, but when I copy from the word doc and paste it in the flash movie, some of the characters are different, even if I use the same font, times new roman. I can find the characters in a unicode subrange of times new roman, but can't get them in flash.
I need it to show up exacting as it appears in the word doc.
Does anybody have any suggestions?
Displaying Users IP
I was wondering if anybody can help,
I have only just started using flash/dreamweaver....... I have made up a contact form in flash that posts to a CGI script. On the form itself I want to display the users IP address, this is to stop people abusing the form.
I have no problem using something like shtml to get the ip but I do not know how to pass that variable into flash or if there is an easier way just using action script itself
Thanks for the help in advance
Grimmis
Displaying 01 Using GetHour()
can anyone give me a quick answer?
I have scripted a clock but would like to display numbers less than 10 with a zero in front (i.e. 01:05).
Will I need to add an if statement or is their a short cut?
Displaying JUST The Date
on my website i've got the date showing with code:
my_date = new date();
it works fine, but i was wondering how you get rid of the 'time' and the 'GMT+1:00' that comes with it.
I just want it to say 'mon Apr 5'
Any ideas?
Text Not Displaying Well....
Hi,
I am making a cd rom for a presentation. We're using a projector and the text is not displaying the way it should.
I am encountering problems with fuzzy text....with Arial and Verdana.
I am trying to use Flash 2004 Pro. cos it has the anti-alias button...but this is still not working.
Any ideas welcome pls?
Not Displaying Correctly...hlp
hello everyone, I have a problem with an external MC not displaying correctly when loaded into a container. i have 3 other MC's that load fine into the holder but for some reason when the one i am trying to load into it , it is displaying half way into the holder. any reason why this is happening?
the size of this ext. swf is the exact size as all the others.
Displaying Movie On Web
I am hosting a Flash site on geocities. It seems to be downloading for some people and not for others. They have installed the Flash Player, what else could be wrong?
|