Also: How To Include JS DOM In Flash
A possible solution for my previous question is to parse and read the whole thing with JS DOM. BUt how to include that in Flash?
Or just parse it with XSLT, how to use that in Flash?
Thanks
FlashKit > Flash Help > Flash ActionScript
Posted on: 08-29-2002, 05:06 AM
View Complete Forum Thread with Replies
Sponsored Links:
Include 'samp.as' Ignores Include Folder?
It seems that "include" only looks in the host FLA files folder. Back in 8, I recall placing files in your (and I paraphrase:) "%profile%localappdataflashenconfigInclu de" folder allowed centralized access to as files. I really need this, I can't have a few dozen copies of this file floating around the project structure when I need to make a change.
I see that an Include folder still exists, but I can't include anything that's in it, even the files that live there by default. Adobe help for CS3 indicates that this folder's function remains unchanged, but I just can't seem to make it go. Am I missing something here? This is a fresh load of Windows XP and CS4.
I know I can write a class that handles what I'm doing and just make it the document class; but I'd rather not. Any thoughts?
(I am also concerned that I'll just run into the same problem with the Class folder refusing to play ball...)
View Replies !
View Related
Include Flash
right going to have to bug u experts again ...im wanting to include a flash movie into a shape...such as it can load navigation into a shape which saves the file side.
I set out a flas site layout and on a white box a put this code:
Code:
loadMovieNum("maininfo.swf", 0, "GET");
which should load my maininfo.swf file in the same folder and show the file...this file is the same width and height as the shape.
this didnt work.
i tryed to do it by putting the same code in frame 1 of the symbol i created on the shape...still no luck.
so how do i do this?, and with maininfo.swf do i have to put unloadmovie sumwhere?
View Replies !
View Related
Include In Flash The Same As Php...
I would like to know if i can have a txt box on my flash website and have it take the words/stuff i would like to put inside it, in a txt file. The only reason i would like to do this is so i could change anything in the txt box at will, and not have to open flash ever time... does any one know how to do this or know where a tut is to show me?
View Replies !
View Related
Php Include With Flash
I have this flash menu inside a php based website, and I am using include to called in the other pages of the site.
So is there any way i can use my flash menu to control the include to load the php file? Could the php file be loaded without refreshing the whole thing?
*totally dumb wiv php*
View Replies !
View Related
PHP Include And Flash
Hi!
I have a page where I have used the include PHP function, my problem is that my top menu in flash have a little movie that runs when you come into the site and when you are going round on the site the little movie runs from the start again. Is there a way I can stop it from reload the movie every time I go around the site?
View Replies !
View Related
#include And ASP With Flash Not Working
Grabbed a file off the net that lets me do "dynamic includes". I've got a flash movie with tons of links to other flash movies, text files, etc. In ASP I coded a single page (portal.asp) to grab the links sent to it from flash and parse and replace them with the proper flash files or whatever. Then coded the dynamic text in Flash to popup only a single window--all this works fine.
PROBLEM: When the ASP tries to replace my string with the flash file include(an '.htm' file with HTML and BODY TAGS stripped off) the page hangs and never loads the .swf!! Tried cutting out all the flash crap and just put in some junk text. Of course this returns the page with no problems, so the code is doing what it is supposed to. What gives????
PLEEEAAASE HELP :)
Here is the code for portal.asp
<%
'Pass the name of the file to the function.
Function getFileContents(strIncludeFile)
Dim objFSO
Dim objText
Dim strPage
'Instantiate the FileSystemObject Object.
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
'Open the file and pass it to a TextStream Object (objText). The
'"MapPath" function of the Server Object is used to get the
'physical path for the file.
Set objText = objFSO.OpenTextFile(Server.MapPath(strIncludeFile) )
'Read and return the contents of the file as a string.
getFileContents = objText.ReadAll
objText.Close
Set objText = Nothing
Set objFSO = Nothing
End Function
%>
<%
'Declare variables to hold the content of the main page and
'the include file.
Dim strMain, strInclude, strText, strHead
'Get the contents of the main page and pass them to the "strMain"
'variable.
strMain = getFileContents("maintemplate.inc")
strInclude = getFileContents("includes/swfs/" + Request.QueryString("subcat") + ".htm")
strText = getFileContents("includes/txts/" + Request.QueryString("subcat") + ".txt")
strHead = getFileContents("includes/head/" + Request.QueryString("category") + ".htm")
'After the proper include file contents are loaded ("strInclude"),
'then insert it into the main page ("strMain") using the "Replace"
'function.
strMain = replace(strMain,"<!-- INCLUDE MAIN FILE HERE -->",strInclude)
strMain = replace(strMain,"<!-- INCLUDE HEAD FILE HERE -->",strHead)
strMain = replace(strMain,"<!-- INCLUDE TEXT FILE HERE -->",strText)
'Use the "Response" Object to "Write" the completed page to the client.
Response.Write strMain
%>
Here is maintemplate.inc:
<html>
<head>
<title>JMAC"S PLACE - flashes</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="site.css" type="text/css">
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">
<tr>
<td align="center" valign="middle">
<!-- INCLUDE HEAD FILE HERE -->
</td>
</tr>
<tr>
<td align="center" valign="middle">
<!-- INCLUDE MAIN FILE HERE -->
</td>
</tr>
<tr>
<td align="center">
<table width="600" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="169" rowspan="3" valign="top" align="left"><img name="defaultasp_r1_c1" src="images/splash/default.asp_r1_c1.gif" width="144" height="96" border="0"></td>
<td width="431" align="left" valign="top" class="verdana10"><b><%= Date %></b></td>
</tr>
<tr>
<td width="431" align="left" valign="top" class="verdana10"> </td>
</tr>
<tr>
<td width="431" align="left" valign="top" class="verdana10">
<p><!-- INCLUDE TEXT FILE HERE -->
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
View Replies !
View Related
Include TXT File In A Flash
I havent worked much with flash pages, when iDo use flash i only make animations.
Well, tothe question: How do I include a txt file ?
I work with asp administration updates, databases, but now we shall tothe page in Flash, but the problem comes toupdates and allother texts. It would be gr8 if they could be included into the flash files, but how??
/Micke
View Replies !
View Related
Flash In An Include File
greetings. i'm currently developing a site which utilizes a dynamic web template. when i create a page and try to include the header.asp file (which contains a header.swf file) and preview, all i show is a white space in the dimensions of my flash movie where it should be. there must be something special for using swf files in an include. any help on this would be greatly appreciated. thanks in advance!
View Replies !
View Related
FLASH With An Include Statement In PHP
Hi everyone, I'm trying to include a file in PHP, wich it self is a PHP file which has a Flash object on it. If I link straight to the PHP file with the Flash object on it, it works fine, but if I use an include statement in one PHP file to include the PHP file with the Flash object on it, the FLash just laods and laods but never loads at all. Please help if you can, im ripping my hair out.
Just incase you need reminding the php include statement looks like this
<?php
include("Flash/details.php");
?>
Thanks,
A very bald Graham.
View Replies !
View Related
How To Include Video In Flash 8
Hi guys,
I am a freelance web developer. My website http://[URL="http://www.ingenious-i.co.uk"]www.ingenious-i.co.uk[/url] has been recently launched a month ago and still trying to find some work. Can anyone suggest me how to include video in flash 8.
Thanks
View Replies !
View Related
How Can I Include The Flash 6 Player On A CD?
I need to have a flash animation in my PowerPoint which is going to a conference. The conference organisers will load it onto one of their laptops which means unless it has the flash 6 player loaded my swf file will not run. They are not connected to the internet of course so how can I get and include the player on my CD so they can install it?
The macromedia site seems to only allow internet installation, there are no stand alone files?
Thanks
Simon
View Replies !
View Related
Include HTML Into Flash
Hello!
I have an HTML code that I would have to insert into one of the frame in a Flash MX website. I shall not modify the HTML code, but it is a very small form. Il does work out of Flash.
Clumsily, I inserted the code in a text area and played with an HTML icon, but nothing.
Any hint I thank in advance,
Have a nice day.
View Replies !
View Related
Include Jirc Applet Into Flash
Im trying to get jIRC applet into my flashwebsite, but I dont really know how.
The basic working of jIRC is as follows:
a normal HTML-page needs a Username to enter the Applet, like this:
-=chat.html=-
...
<script language="JavaScript" src="popup.js">
<FORM NAME="UserInfo">
<input TYPE=TEXT NAME="NICKNAME" SIZE=15>
<A HREF='Close' onclick='send();>ENTER jIRC</A>
</FORM>
....
This username is send to the file popup.js, what opens the applet and gives all parameters for it:
-=popup.js=-
...
function popupChat() {
win=window.open("popup.html", "JPilotChat",
"height=220,width=520");
}
var USERNICK = document.UserInfo.NICKNAME.value
win=window.open("","IRC","resizable=no,height=320, width=500")
win.document.write('<html><head><title>jIRC</title></head>')
win.document.write('<applet archive="jirc_nss.zip" code=Chat.class
width=490 height=300 >')
win.document.write('<param name="CABBASE" value="jirc_mss.cab">');
...
is it possible to include such a applet into flash? and if so can u give me some hints where to start?
Im not a total n00b, I can work a lil with php, xml and javascript in flash, but this is just completely new for me
tnx and greetz,
Jobba
View Replies !
View Related
How Do I Include TXT CGI, And HTML In A Flash Website?
Hello there! This is my first post here. I am fairly new with Flash, but don't have to be talked to like a complete idiot. I am very knowledgeable with website design, CGI scripts, and ASP.
Basicly, what I am wanting to do is this:
I want to have a flash website (nearly done, but got this little problem). Right now, the website I have is using a lot of CGI scripts. Basicly, what I need to do is (if this is even possible), have the site either call and include the contents of an HTML or txt document, or the CGI Script itself. If people are familiar with coranto (CGI PERL News Posting Script), I need the flash site to call upon that script and include it in a scrollable window within the flash document. This would make maintaining the flash site a lot easier because I would not have to keep editing the flash file everytime I wanted to add a small news post. Also, I would like to know if it is possible to add fully formatable HTML documents in my flash website. Like get the flash movie to call on a totally different HTML file and include it in a scrollable window inside the flash movie. I would need the basics, like the ability to change the background, font size/color etc. So it would not shoit the HTML tags, but the actual output of the HTML file. Possible?
View Replies !
View Related
PHP Include In FLASH Dynamic Text Box
first, id like to start off by saying hello to all of you and that i hope this is not posted in the wrong place...please help...using a Dynamic text box, i was wondering if i could display PHP. I have HTML enabled and i have typed the box to say < include...> and i also used the ? and the " in the script, but i cannot get it to display the PHP. the PHP page does not use mySQL, it is formatted in HTML actually. What exactly am i doing wrong? if it is not possible, please tell me a viable solution for this. Also, i do not have any scripting or programming knoweledge and am pretty much taking a guess at the PHP part and the Flash part. i have been able to do a few things like add pictures and music to a FLASH movie, but thats my limit. here are the URLs that might help you in helping me do this the right way...
this page holds the flash object and is written in HTML (Flash MX did the HTML page, so i asume this is correct):
deejrothdotcom in FLASH/PHP
here is the SWF file...
SWF FILE
and here are the PHP files...
1
2
3
4
5
thankyou all in advance for your help, i really truly appreciate it
View Replies !
View Related
CSS & Flash: <li> Items Don't Include A Bullet.
Can someone help me with CSS as it relates to Flash MX 2004? I'm loading external text files and then formatting them with a home-made CSS file (as per one of the Kirupa tut's instructions), but when I try to use the "<li>" HTML code in the text file, it doesn't come across when testing the movie. I have the "Render text as HTML" button enabled, but it's just a hassle, especially when I've loaded up a sample file I did in class which has list tags which work and don't seem to differ from mine in any way. Also, for some reason, text doesn't show up underlined after defining a 'u' style which is defined as "text-decoration: underline". Can someone help me with this? It's already enough work hard-coding "span class=" for every little bold or italicized item, but then having list and underline items not working? I have the font set to Times New Roman, with no font outlines, by the way.
Cheers,
The Red Fall
View Replies !
View Related
How To Include Audio In Flash Site
I have a flash site and want to add some mp3 audio. Cannot be embbeded in the main movie because the size would be too big. I would like to place the audio in a different file and kind of stream it into the main movie. Should be safe for 56k modems. Can someone tell me how to do this?
View Replies !
View Related
How To Include Java Applets In Flash
Respected sir,
I am new to flash (3 months).And i liked this tool a lot.Sir recently I had been in a problem when i tried to include a java applet embedded in an html page inside flash.Through the loadfile method I was able to include the html page but flash dosen't recognize the applet tag so the applet is not loaded.When i used the get url method on a button I was able to open the applet but on a different window(ie).Can this be done please sort me out as I am engeged in a project that requires java applets inside flash swf files.
View Replies !
View Related
How To Include Flash Player With Interactive CD
Hi all,
I have been learning flash through my own interests, which means I know some advanced concepts, but there are often very basic elements that I skip because of my non-linear training.
I have an interactive CD that autoloads a flash file for viewers. I was wondering if (and then how) I need to include the flash player for users that may not have flash on their computer. If this was a website, I could just have a link to the player, but since its a CD, and the presenation is such that it should be automatic, or "presented", how might I solve this?
Thanks for the help!
Haus
View Replies !
View Related
CSS & Flash: <li> Items Don't Include A Bullet.
Can someone help me with CSS as it relates to Flash MX 2004? I'm loading external text files and then formatting them with a home-made CSS file (as per one of the Kirupa tut's instructions), but when I try to use the "<li>" HTML code in the text file, it doesn't come across when testing the movie. I have the "Render text as HTML" button enabled, but it's just a hassle, especially when I've loaded up a sample file I did in class which has list tags which work and don't seem to differ from mine in any way. Also, for some reason, text doesn't show up underlined after defining a 'u' style which is defined as "text-decoration: underline". Can someone help me with this? It's already enough work hard-coding "span class=" for every little bold or italicized item, but then having list and underline items not working? I have the font set to Times New Roman, with no font outlines, by the way.
Cheers,
The Red Fall
View Replies !
View Related
Include Outside HTML Page In Flash Document
How can I include an external html document in a flash document? I want it to be sort of like a window to a certain file where that file can interact as a normal webpage with other html files inside of a flash document. Let me know if I make no sense, it happens often!
Thanks
View Replies !
View Related
Flash Link To Include .asp Variable In URL String
I'm trying to place a flash movie on an .asp page and have it append a server generated visitor ID on to the URL string of links from the movie to other pages of the web site.
My .asp page generates a variable "WID" by using the following code:
<%=sURLTOKEN%>
This code on the server causes an example url in the browser to be: "http://www.mysite.com/product.asp?productid=354&WID=%7BA76F3CB0%2DDA6D%2 D11D6%2D917D%2D0002B330452B%7D
I need to have the Flash movie read this WID and append it on to the end of any links from the movie to other pages of the site.
Any ideas where I can find out how? I can provide more details if that would help.
Email me: mike@mikejacobs.org
Thanks.
--mike
View Replies !
View Related
Preload On A Sever-side Include In Flash
I know this is a flash site but I've gotten
so much help in flash I was wondering if anyone can
help me with this question. I want to have a preload on
images in dreamweaver. I have a menu that i insert in
most of my pages but the problem is you can't have
preload in the sever-side since it doesn't have a body.
So where do I but the preload in the menu or on the page that
I insert it in? any questions just ask or email dmassa@myoc.net
thanks
View Replies !
View Related
Why The Heck Doesn’t Flash 8 Include An FTP Client?
It’s incredible to me that Flash 8 doesn’t include a way to enter FTP information such as site address, user name and password when the time comes to upload a Flash site. I spend days designing a Flash site and then when it came to upload it to my Internet Service Provider’s FTP address I learned that I need a FTP client extension. Since Macromedia must know that people are using their Flash software to upload a Flash site why the heck don’t they include a way to do this like they do with Dreamweaver? Anyway, what is the best FTP client for Flash 8?
View Replies !
View Related
Flash To Include Soft Shadow On The Object
Hi all, anyone know how this website manage to create softshadow and there is a background on it.
http://www.nana-movie.com/
the two girl have a white soft shadow on it. From what i know, the only way to do it is in photoshop but the background cannot be remove. Or bring a gif but the shadow won't be solid.
Anyone know how they achieve it.
Thxs for reading.
View Replies !
View Related
Flash Carousel- Amending To Include New Text?
Hi, I've created a carousel of items using (initially) the tutorials from gotoandlearn.com, and then also the modified version here:
http://www.box.net/public/6rhb01kcja
- which was posted in another link.
This modified code allows you to click on one of the carousel items, which then brings up a new screen that plays an SWF file (specified in the accompanying XML file). Meanwhile the carousel item moves to one side.
What I need is for that carousel item to also have on it some text along the lines of "Click here to return to the carousel of videos" or similar. However I can't see a way of doing this within the ActionScript- has anyone got any ideas?
This is the current ActionScript for my carousel:
Code:
import mx.utils.Delegate;
//transitions for icon tween
import mx.transitions.Tween;
import mx.transitions.easing.*;
var numOfItems:Number;
var radiusX:Number = 300;
var radiusY:Number = 75;
var centerX:Number = Stage.width/2;
var centerY:Number = (Stage.height/2.6);
var speed:Number = 0.05;
var perspective:Number = 130;
var home:MovieClip = this;
//text field invisible at startup
myLoader._alpha = 0;
var tooltip:MovieClip = this.attachMovie ("tooltip","tooltip",10000)
tooltip._alpha = 0;
var xml:XML = new XML ();
xml.ignoreWhite = true;
xml.onLoad = function ()
{
var nodes = this.firstChild.childNodes;
numOfItems = nodes.length;
trace(numOfItems);
for (var i=0;i<numOfItems;i++)
{
var t = home.attachMovie ("item", "item"+i, i+1);
t.angle = i * ((Math.PI*2)/numOfItems);
t.onEnterFrame = mover;
//attributes called from XML
t.toolText = nodes[i].attributes.tooltip;
t.movie = nodes[i].attributes.movie;
//t.content = nodes[i].attributes.content;
//t.loadClip = nodes [i].attributes.movie;
//t.myLoader = nodes[i].attributes.movie;
//t.loadMovie = nodes[i].attributes.movie;
//t.myLoader.loadMovie = nodes[i].attributes.movie;
//t.movieClip = nodes[i].attributes.movie;
//t.myLoader.loadMovie = nodes[i].attributes.movie;
//t.page = nodes[i].attributes.movie;
t.icon.inner.loadMovie (nodes [i].attributes.image);
t.ref.inner.loadMovie (nodes [i].attributes.image);
t.icon.onRollOver = over;
t.icon.onRollOut = out;
t.icon.onRelease = released;
}
}
function over ()
{
home.tooltip.tipText.text = this._parent.toolText;
home.tooltip._x = this._parent._x;
home.tooltip._y = this._parent._y - this._parent._height/2;
home.tooltip.onEnterFrame = Delegate.create (this,moveTip);
home.tooltip._alpha = 100;
}
function out ()
{
delete home.tooltip.onEnterFrame;
home.tooltip._alpha = 0;
}
function released ()
{
home.tooltip._alpha = 0;
for (var i=0;i<numOfItems;i++)
{
//var to refer to icons in carousel
var t:MovieClip = home["item"+i]
t.xPos = t._x;
t.yPos = t._y;
t.theScale = t._xscale;
//undo icon properties when fired
delete t.icon.onRollOver;
delete t.icon.onRollOut;
delete t.icon.onRelease;
delete t.onEnterFrame;
//if statement to animated selected icon in a different way to all other items
if (t != this._parent)
{
var tw:Tween = new Tween (t,"_xscale",Strong.easeOut,t._xscale,0,1,true);
var tw2:Tween = new Tween (t,"_yscale",Strong.easeOut,t._yscale,0,1,true);
var tw3:Tween = new Tween (t,"_alpha",Strong.easeOut,100,0,1,true);
}
else
{
var tw:Tween = new Tween (t,"_xscale",Strong.easeOut,t._xscale,100,1,true);
var tw2:Tween = new Tween (t,"_yscale",Strong.easeOut,t._yscale,100,1,true);
//Next 2 lines determine where the carousel item moves to when clicked and the video plays
var tw3:Tween = new Tween (t,"_x",Strong.easeOut,t._x,40,1,true);
var tw4:Tween = new Tween (t,"_y",Strong.easeOut,t._y,207,1,true);
var tw5:Tween = new Tween (myLoader,"_alpha",Strong.easeOut,0,100,1,true);
//theText.text = t.content;
//mcLoader.loadClip(t.page ,myLoader);
//myLoader.loadMovie = t.page;
//myLoader.movieClip = t.movie;
//myLoader.loadMovie = t.loadMovie;
myLoader.loadMovie(t.movie);
var s:Object = this;
tw.onMotionStopped = function()
{
s.onRelease = unReleased;
}
}
}
}
function unReleased()
{
delete this.onRelease;
var tw:Tween = new Tween (theText,"_alpha",Strong.easeOut,100,0,0.5,true);
var tw2:Tween = new Tween (scroller,"_alpha",Strong.easeOut,100,0,0.5,true);
for (var i=0;i<numOfItems;i++)
{
var t:MovieClip = home["item"+i]
myLoader.unloadMovie();
if (t != this._parent)
{
var tw:Tween = new Tween (t,"_xscale",Strong.easeOut,0,t.theScale,1,true);
var tw2:Tween = new Tween (t,"_yscale",Strong.easeOut,0,t.theScale,1,true);
var tw3:Tween = new Tween (t,"_alpha",Strong.easeOut,0,100,1,true);
}
else
{
var tw:Tween = new Tween (t,"_xscale",Strong.easeOut,100,t.theScale,1,true);
var tw2:Tween = new Tween (t,"_yscale",Strong.easeOut,100,t.theScale,1,true);
var tw3:Tween = new Tween (t,"_x",Strong.easeOut,t._x,t.xPos,1,true);
var tw4:Tween = new Tween (t,"_y",Strong.easeOut,t._y,t.yPos,1,true);
tw.onMotionStopped = function()
{
for (var i=0;i<numOfItems;i++)
{
var t:MovieClip = home["item"+i]
t.icon.onRollOver = Delegate.create (t.icon,over);
t.icon.onRollOut= Delegate.create (t.icon,out);
t.icon.onRelease= Delegate.create (t.icon,released);
t.onEnterFrame = mover;
}
}
}
}
}
function moveTip ()
{
home.tooltip._x = this._parent._x;
home.tooltip._y = this._parent._y - this._parent._height/2;
}
xml.load ("icons.xml");
for (var i=0;i<numOfItems;i++)
{
var t = this.attachMovie ("item", "item"+i, i+1);
t.angle = i * ((Math.PI*2)/numOfItems);
t.onEnterFrame = mover;
}
function mover ()
{
this._x = Math.cos (this.angle) * radiusX + centerX;
this._y = Math.sin (this.angle) * radiusY + centerY;
var s:Number = (this._y-perspective) / (centerY+radiusY-perspective);
this._xscale = this._yscale = s * 100;
this.angle += this._parent.speed;
this.swapDepths (Math.round (this._xscale) + 100);
}
this.onMouseMove = function()
{
speed = (this._xmouse-centerX)/2500;
}
This is the XML file:
(at present I'm just testing with a single image and SWF but obviously different ones will eventually be used)
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<icons>
<icons image="iconbigger01.png" tooltip="Customer" movie="mov01059.swf" />
<icons image="iconbigger02.png" tooltip="Customer" movie="mov01059.swf" />
<icons image="iconbigger03.png" tooltip="Customer" movie="mov01059.swf" />
<icons image="iconbigger04.png" tooltip="Customer" movie="mov01059.swf" />
<icons image="iconbigger05.png" tooltip="Customer" movie="mov01059.swf" />
<icons image="iconbigger06.png" tooltip="Customer" movie="mov01059.swf" />
<icons image="iconbigger07.png" tooltip="Customer" movie="mov01059.swf" />
<icons image="iconbigger08.png" tooltip="Customer" movie="mov01059.swf" />
<icons image="iconbigger09.png" tooltip="Customer" movie="mov01059.swf" />
<icons image="iconbigger10.png" tooltip="Customer" movie="mov01059.swf" />
</icons>
[edited by admin: Use code tags!]
View Replies !
View Related
Flash Menu Breadcrumb Using Include File ?
The page located here http://www.copytronics.com/newsite/index.php has a flash navigation bar at the top that is included in the index.php that may seen by it's self here http://www.copytronics.com/newsite/header.htm
The problem is that going from link to link the flash file reloads/starts over and the current menu highlighting is gone due to the bar be called again. Is there a way that flash can call a page of data or php include file and display it underneath it without using frames or creating an entire flash site leading to the flash file that is included not being refreshed leading to the navigation bar to work?
View Replies !
View Related
How To Include Clear Bacground Or Image In Flash Slideshow
Hi there, we are using the following script and dont want the colour background to show as the images dont have a background. So every time one of the images goes from one to next we see a whote background but want to know if we can change it so that there is no colour in the transition OR can we change it so that a background image comes up instead of a colour.
WIDTH="300" HEIGHT="220" ALIGN="" id="slidesimple">
<PARAM NAME=movie VALUE="slidesimple.swf?xmlUrl=exemple2.xml">
<PARAM NAME=loop VALUE=false>
<PARAM NAME=menu VALUE=false>
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#ff6600>
<EMBED src="slidesimple.swf?xmlUrl=exemple2.xml"
loop="false"
menu="false"
quality="high"
bgcolor="#FF6600"
WIDTH="300"
HEIGHT="220"
NAME="slidesimple"
ALIGN=""
TYPE="application/x-shockwave-flash"
PLUGINSPAGE="
View Replies !
View Related
#include "NetServices.as",#include "NetDebug.as" Problem
#include "NetServices.as"
#include "NetDebug.as"
when i try to include these two files and publish in
Actionscript2: it gives following error:
C:Program FilesEasyPHP1-8wwwhellohelloNetServices.as: Line 22: Classes may only be defined in external ActionScript 2.0 class scripts.
class mx.remoting.NetServices extends Object
**Error** C:Program FilesEasyPHP1-8wwwhellohelloNetServices.as: Line 24: Error opening include file RemotingComponentVersion.as: File not found.
#include "RemotingComponentVersion.as"
**Error** C:Program FilesEasyPHP1-8wwwhellohelloNetDebug.as: Line 10: Classes may only be defined in external ActionScript 2.0 class scripts.
intrinsic class mx.remoting.debug.NetDebug extends Object
Total ActionScript Errors: 3 Reported Errors: 3
and when i publish in ActionScript1 :it gives following 11 errors
**Error** C:Program FilesEasyPHP1-8wwwhellohelloNetServices.as: Line 8: Syntax error.
import mx.remoting.Connection;
**Error** C:Program FilesEasyPHP1-8wwwhellohelloNetServices.as: Line 9: Syntax error.
import mx.services.Log;
**Error** C:Program FilesEasyPHP1-8wwwhellohelloNetServices.as: Line 22: Syntax error.
class mx.remoting.NetServices extends Object
**Error** C:Program FilesEasyPHP1-8wwwhellohelloNetServices.as: Line 24: Error opening include file RemotingComponentVersion.as: File not found.
#include "RemotingComponentVersion.as"
**Error** C:Program FilesEasyPHP1-8wwwhellohelloNetServices.as: Line 34: Syntax error.
public static function setDefaultGatewayUrl(url:String):Void
**Error** C:Program FilesEasyPHP1-8wwwhellohelloNetServices.as: Line 48: Syntax error.
public static function setGatewayUrl(url:String):Void
**Error** C:Program FilesEasyPHP1-8wwwhellohelloNetServices.as: Line 67: Syntax error.
public static function createGatewayConnection(url:String, infoLogger:Log):Connection
**Error** C:Program FilesEasyPHP1-8wwwhellohelloNetServices.as: Line 109: Syntax error.
public static function getConnection( uri:String ):Connection {
**Error** C:Program FilesEasyPHP1-8wwwhellohelloNetServices.as: Line 123: Syntax error.
public static function getHostUrl():String
**Error** C:Program FilesEasyPHP1-8wwwhellohelloNetServices.as: Line 149: Syntax error.
public static function isHttpUrl(url:String):Boolean {
**Error** C:Program FilesEasyPHP1-8wwwhellohelloNetServices.as: Line 152: Unexpected '}' encountered
}
Total ActionScript Errors: 11 Reported Errors: 11
View Replies !
View Related
[F8] How To Include An "Add To Favorites" Link In Flash?
Hi everyone, I'm a new member to the forum as I am starting to learn a bit about Flash. I currently have Flash 8 and I am exporting everything in Flash 6 with ActionScript 1.0.
I am creating a website for a file hosting site and have stumbled across a problem. I have an "Add to Favorites" link but have no idea on how to get it to work, I have tried the following but first of all it has to confirm whether the user allows to run the script and second of all, it doesn't do anything!
on (press) {
getURL("'javascript:window.external.AddFavorite(lo cation.href, document.title);'");
}
Anyone have any idea on what I could do to solve the problem?
Regards,
James Venning.
EDIT: QUESTION SOLVED! I searched in a search engine I never use and it came up with the following article:
http://info.template-help.com/after_.../article6.html
View Replies !
View Related
#include On The Mac
Our team is developing a pretty complex Flash5 application. The source resides on the company network, and it has a bunch of #include statements referring to actionscript files in various subfolders. (For example, #include "library/foo.as".)
On the pc's everything works fine, but the mac's can't find the include files that are in subfolders. We tried to change the / notation to : notation, but it still couldn't find it...
Any ideas as to how to get it working?
Thanks in advance.
View Replies !
View Related
#include
Hi all, I've worked in C, Super C and C++ for many years. Action Script implements most of the C protocal so I've taken to it quickly and comfortably.
My problem is this; When I use the '#include' keyword...
example: #include "thisActionScriptFile.as";
... my Flash 5 compiler always returns the error: 'Malformed #include directive'. I'm getting real frustrated with this because I like to be able to library functions that I use often.
Is my syntax incorrect or do I have a bad compiler? Thanx in advance for any help
View Replies !
View Related
#include
Hello,
I need some advise or help.
#include "buttons.txt" workes fine
#include "c:dirdir/diruttons.txt" workes fine
#include "http://www...com/buttons.txt doesn't work ???
Anyone knows wy?
Thanks for reading this.
View Replies !
View Related
#include Possible Or Not?
is it possible to load an external as script with the #include function from a variable?
like
script = "test.as"
#include script
something like that... as far as i've been able to find it won't let anything except for #include "test.as"
anyone know of a way to do it?
thanks
-Rui
View Replies !
View Related
|