Alternate For Eval In ActionScript 3.0
Hi
Anybody knows the alternate for my following code, which was written in AS2..
sender = eval(vArgs[0]);
method = sender[vArgs[1]];
method.apply(sender, [someData]);
thx in advance..
Angel
Adobe > ActionScript 1 and 2
Posted on: 06/08/2007 12:59:27 AM
View Complete Forum Thread with Replies
Sponsored Links:
Dynamic (XML) Slideshow With Alternate Views - Alternate Thumbnails Not Working.
Hi everyone!
I've posted a couple times in the past, and you have all been very helpful, thank you!
I've tried to do my part in helping others, but it's time I need help again.
I made a slideshow based off the following tutorial: http://www.kirupa.com/developer/mx2004/thumbnails.htm (yes thanks again kirupa!)
I edited the code a bit to suit my needs, nothing major though until now
I need to add alternate views of some of the slides.
I have started adding the code, and get the thumbnails to show up correctly when the corresponding slide is picked from the main slide (uhh slider... lol), but the problem is they refuse to be interactive. I'm trying to make the alpha change when they're moused over, as well as load the correct slide when clicked. Nothing works - neither the alpha nor the click action.
Strange thing is the code I'm using for the alternate view thumbnails is almost identical to stuff I've used not only earlier in the program, but in the past as well.
So in short, I am having trouble making the alternate view thumbnails interactive, I'm not sure if I'm way off or if its just a silly mistake that i havnt caught yet, but ive been looking at it for awhile now, and i think a few fresh eyes would help.
Here's the code: (this is the entire program, and I will post JUST the thumbnail code below it, so you don't have to wade through the whole thing, but I'm not sure if you might need the program for reference.
Code:
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
description = [];
thumbnails = [];
alt1path = [];
alt1thumb= [];
alt2path = [];
alt2thumb = [];
alt3path = [];
alt3thumb = [];
alt4path = [];
alt4thumb = [];
alt5path = [];
alt5thumb = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
description[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
thumbnails[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
alt1path[i] = xmlNode.childNodes[i].childNodes[3].firstChild.nodeValue;
alt1thumb[i] = xmlNode.childNodes[i].childNodes[4].firstChild.nodeValue;
alt2path[i] = xmlNode.childNodes[i].childNodes[5].firstChild.nodeValue;
alt2thumb[i] = xmlNode.childNodes[i].childNodes[6].firstChild.nodeValue;
alt3path[i] = xmlNode.childNodes[i].childNodes[7].firstChild.nodeValue;
alt3thumb[i] = xmlNode.childNodes[i].childNodes[8].firstChild.nodeValue;
alt4path[i] = xmlNode.childNodes[i].childNodes[9].firstChild.nodeValue;
alt4thumb[i] = xmlNode.childNodes[i].childNodes[10].firstChild.nodeValue;
alt5path[i] = xmlNode.childNodes[i].childNodes[11].firstChild.nodeValue;
alt5thumb[i] = xmlNode.childNodes[i].childNodes[12].firstChild.nodeValue;
thumbnails_fn(i);
}
firstImage();
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("portimages2.xml");
/////////////////////////////////////
listen = new Object();
listen.onKeyDown = function() {
if (Key.getCode() == Key.LEFT) {
prevImage();
} else if (Key.getCode() == Key.RIGHT) {
nextImage();
}
};
Key.addListener(listen);
previous_btn.onRelease = function() {
prevImage();
};
next_btn.onRelease = function() {
nextImage();
};
//btn_link.onRelease = function (){
//getURL ("http://"+description[p], _blank);
//}
/////////////////////////////////////
p = 0;
q = 0;
thu
this.onEnterFrame = function() {
filesize = picture.getBytesTotal();
loaded = picture.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {
preloader.preload_bar._xscale = 100*loaded/filesize;
} else {
preloader._visible = false;
picwidth = picture._width;
picheight = picture._height;
picture._x = (590-picwidth)/2;
picture._y = (420-picheight)/2;
if (picture._alpha<100) {
picture._alpha += 10;
alt_thumbs_fn(p);
}
}
};
function nextImage() {
if (p<(total-1)) {
p++;
if (loaded == filesize) {
picture._alpha = 0;
picture.x = (590-picture.width)/2;
picture.y = (420-picture.height)/2;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
alt_thumbs_fn(p);
picture_num();
}
}
}
function prevImage() {
if (p>0) {
p--;
picture._alpha = 0;
picture.x = (590-picture.width)/2;
picture.y = (420-picture.height)/2;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
alt_thumbs_fn(p);
picture_num();
}
}
function firstImage() {
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[0], 1);
desc_txt.text = description[p];
picture_num();
}
}
function picture_num() {
current_pos = p+1;
pos_txt.text = current_pos+" / "+total;
}
function thumbNailScroller() {
// thumbnail code!
this.createEmptyMovieClip("tscroller", 1000);
scroll_speed = 10;
tscroller.onEnterFrame = function() {
if ((_root._ymouse>=thumbnail_mc._y) && (_root._ymouse<=thumbnail_mc._y+thumbnail_mc._height)) {
if ((_root._xmouse>=(hit_right._x-40)) && (thumbnail_mc.hitTest(hit_right))) {
thumbnail_mc._x -= scroll_speed;
} else if ((_root._xmouse<=40) && (thumbnail_mc.hitTest(hit_left))) {
thumbnail_mc._x += scroll_speed;
}
} else {
delete tscroller.onEnterFrame;
}
};
}
function thumbnails_fn(k) {
thumbnail_mc.createEmptyMovieClip("t"+k, thumbnail_mc.getNextHighestDepth());
tlistener = new Object();
tlistener.onLoadInit = function(target_mc) {
target_mc._x = hit_left._x+(eval("thumbnail_mc.t"+k)._width+5)*k;
target_mc.pictureValue = k;
target_mc.onRelease = function() {
p = this.pictureValue-1;
nextImage();
}
target_mc.onRollOver = function() {
this._alpha = 50;
thumbNailScroller();
}
target_mc.onRollOut = function() {
this._alpha = 100;
}
}
image_mcl = new MovieClipLoader();
image_mcl.addListener(tlistener);
image_mcl.loadClip(thumbnails[k], "thumbnail_mc.t"+k);
}
function alt_thumbs_fn() {
thumbholder1.loadMovie(alt1thumb[p], thumbholder1.getNextHighestDepth());
thumbholder1.onRelease = function (p,q) {
q = alt1path[p];
altload(q);
}
thumbholder1.onRollOver = function() {
this._alpha = 50;
}
thumbholder1.onRollOut = function() {
this._alpha = 100;
}
thumbholder2.loadMovie(alt2thumb[p], thumbholder2.getNextHighestDepth());
thumbholder2.onRelease = function (p,q) {
q = alt2path[p];
altload(q);
}
thumbholder2.onRollOver = function() {
this._alpha = 50;
}
thumbholder2.onRollOut = function() {
this._alpha = 100;
}
thumbholder3.loadMovie(alt3thumb[p], thumbholder3.getNextHighestDepth());
thumbholder3.onRelease = function (p,q) {
q = alt3path[p];
altload(q);
}
thumbholder3.onRollOver = function() {
thumbholder3._alpha = 50;
}
thumbholder3.onRollOut = function() {
thumbholder3._alpha = 100;
}
thumbholder4.loadMovie(alt4thumb[p], thumbholder4.getNextHighestDepth());
thumbholder4.onRelease = function (p,q) {
q = alt4path[p];
altload(q);
}
thumbholder4.onRollOver = function() {
thumbholder4._alpha = 50;
}
thumbholder4.onRollOut = function() {
thumbholder4._alpha = 100;
}
thumbholder5.loadMovie(alt5thumb[p], thumbholder5.getNextHighestDepth());
thumbholder5.onRelease = function (p,q) {
q = alt5path[p];
altload(q);
}
thumbholder5.onRollOver = function() {
thumbholder5._alpha = 50;
}
thumbholder5.onRollOut = function() {
thumbholder5._alpha = 100;
}
}
function altload(q) {
}
Alt View code:
Code:
function alt_thumbs_fn() {
thumbholder1.loadMovie(alt1thumb[p], thumbholder1.getNextHighestDepth());
thumbholder1.onRelease = function (p,q) {
q = alt1path[p];
altload(q);
}
thumbholder1.onRollOver = function() {
this._alpha = 50;
}
thumbholder1.onRollOut = function() {
this._alpha = 100;
}
thumbholder2.loadMovie(alt2thumb[p], thumbholder2.getNextHighestDepth());
thumbholder2.onRelease = function (p,q) {
q = alt2path[p];
altload(q);
}
thumbholder2.onRollOver = function() {
this._alpha = 50;
}
thumbholder2.onRollOut = function() {
this._alpha = 100;
}
thumbholder3.loadMovie(alt3thumb[p], thumbholder3.getNextHighestDepth());
thumbholder3.onRelease = function (p,q) {
q = alt3path[p];
altload(q);
}
thumbholder3.onRollOver = function() {
thumbholder3._alpha = 50;
}
thumbholder3.onRollOut = function() {
thumbholder3._alpha = 100;
}
thumbholder4.loadMovie(alt4thumb[p], thumbholder4.getNextHighestDepth());
thumbholder4.onRelease = function (p,q) {
q = alt4path[p];
altload(q);
}
thumbholder4.onRollOver = function() {
thumbholder4._alpha = 50;
}
thumbholder4.onRollOut = function() {
thumbholder4._alpha = 100;
}
thumbholder5.loadMovie(alt5thumb[p], thumbholder5.getNextHighestDepth());
thumbholder5.onRelease = function (p,q) {
q = alt5path[p];
altload(q);
}
thumbholder5.onRollOver = function() {
thumbholder5._alpha = 50;
}
thumbholder5.onRollOut = function() {
thumbholder5._alpha = 100;
}
}
I am aware that the altload function is empty - I am trying to get the alpha to work before hand, since the code for the altload function is easy enough to write, I just am trying to debug this problem before I get too ahead, in case I need to change the program around a lot.
Thank you all very much in advance, and sorry for the excessively long code.
View Replies !
View Related
?eval? In ActionScript 2.0
Hi!
I didn't find answer my question...
I would like use eval... but not with variables...
Story:
My Application get any strings from a server in xml...
In string: actionscript commands...
I would like tu execute there...
Example:
<cmd1>i=10;</cmd1>
<cmd2>trace(i)</cmd2>
but i don't know how to i do it... please help me...
Thanks ^_^
View Replies !
View Related
Eval? In Actionscript 3
k say i wanted to create a bunch of movieclips in a for loop but wanted to name them something different each time, how would i dynamically name them?
example of basically what i want to know how to do
ActionScript Code:
for (var i:Number = 0; i > 10; i++) { var eval(myMovieClip+i):MovieClip = new MovieClip();}
but that code won't work as AS3 does not use eval any more so how would i go about doing this?
View Replies !
View Related
Actionscript Eval And Array[] Enigma
i stumbled into a little puzzler......
i am using the following actionscript:
_root.num_04="violet"
colorName = eval("_root.num_" + _root.menusArray[4][1] ) ;
_root.array1 = colorName;
_root.array2 = _root.menusArray[4][1];
set("_root." + colorName, []);
set("_root." + colorName + "[1]", _root.menusArray[4][1]);
set("_root." + colorName + "[2]", _root.menusArray[4][2]);
_root.array3 = _root.violet[2];
_root.array4 = eval("_root." + _root.num_04 + "[2]");
menusArray[4][1] holds a text value like "04"
menusArray[4][2] holds a text value like "Company"
[array1....array4 are just dyn text boxes to display values for debugging]
results of dyn text boxes:
array1 ==> [violet ] ...correct
array2 ==> [04 ] ...correct
array3 ==> [ ] .......nothin!
array4 ==> [Company ] ...correct
the question is......why no value showing up for array3?
its got something to do with how the definition of the array is constructed.....using 'eval'
i then added this line of actionscript to further understand what was happening.....
_root.violet[2] = "New Value";
after this addition......
array3 ==> [New Value ]
but....
array4 ==> [Company ] ...not affected!?!
so......
either the definition using 'eval' make the difference
or
the difference lies in the 'eval' used to define the final value....
...as in the diff betw....
_root.array3 = _root.violet[2];
and....
_root.num_04="violet"
_root.array4 = eval("_root." + _root.num_04 + "[2]");
any thoughts would be appreciated.
[Edited by howardroarklives on 04-09-2002 at 03:01 AM]
View Replies !
View Related
Alternate APP
I have macromedia studio 2004 but i use mostly Flash. I'm not satisfied from displaying a text into flash (poor quality whatever i try) so i try to use text as JPEG maded in Photoshop but it took me a much place and i want to tell me some one a light advice, what is the app from macromedia studio 2004 which i could use easy to display a good quality text into Flash environment.
Thanks
View Replies !
View Related
Alternate .swf
Don't laugh !
Something so simple I can't set it up...
I load a .swf into a movie clip.
How can I write my code in order to load an alternate .swf in case the one first called doesn't exist?
View Replies !
View Related
Possible Alternate Method?
Take a look:
for (n=0; n<2; n++) {
duplicateMovieClip ("mc", n, n);
setProperty (n, _x, n._x + (n+1)*50);
set ("text" add n, n._x);
}
I would prefer naming the duplicated MCs: mc0, mc1, etc... but then I can't seem to get the setProperty to work--I've already tried several methods, but it doesn't wanna fly. Here's another:
on (rollOver) {
swapDepths(_root.top);
_root.top=_name
}
This code is in a button in above MC. I'm currently using a different method that uses levels rather than targets, but I'd like this to work (yes _root.top is defined before this is run). Why won't this go?
Thanks in advance...
B
View Replies !
View Related
Flash Alternate....
Hi All,
Can anyone tell me the javascript code for flash alternate.
If the user dont have flash in their computer alternative gif or jpeg come up.
Please send me the code ASAP.
Thanks
View Replies !
View Related
If Else - Alternate Syntax
What is the syntax for that abbreviated version of an "if" statement?
I know there is a question mark involved somehow and its all on one line (i think...).
Also is there a similar short cut for the "if else" statement?
Thank you.
View Replies !
View Related
Alternate OnRollOver
Hello,
I've got this box that fades in and out with a rollover action. The rollover action is being triggered by a clear hotspot button I created over it.
Problem is, I have other buttons underneath the box that fades, and they don't work when I have this giant clear button over it.
So my question is, how can I trigger functions via a movieclip with mouse overs instead of using a button?
I was thinking of maybe a hittest, but I'm not too sure on how those work.
--iMat
View Replies !
View Related
Alternate Image
Im doin a website with a flash banner, the client want it so if someone with out flash comes to the site it will show a .jpg or .gif image insted of a blank and prompting them to download flash. does anyone know the code for this?
View Replies !
View Related
Alternate Page
Hi - I remember somewhere back in my studies about doing an "alternate page" for visitors who don't have and don't want to have a flash player installed on their machine.
Is there a tutorial somewhere on how to write the actionscript or whatever needs to be done to take visitors to an html page automatically...?
Hope this question makes sense...
Thanks
Mandi
Sorry - forgot to mention I am using Flash 8
View Replies !
View Related
Alternate Through XML Data
Hi people,
At the moment the attachment pulls in a series of data from an XML. The only problem is at the moment i can only alternate through via the previous and next buttons.
Is there an easy way which will allow me to alternate between the data held in the XML every 30 seconds or so, automatically?
Thank you for any help, I'm still a bit of a newbie at this :-)
Carl
View Replies !
View Related
Alternate Through XML Data
Hi people,
Is it possible that a rectangle held in flash can be linked to an XML, and when clicked go to the URL held in the XML.
And if so, how?
Thank you for any help, I'm still a bit of a newbie at this :-)
Carl
View Replies !
View Related
Alternate Through XML Data
Hi people,
At the moment the attachment pulls in a series of data from an XML. The only problem is at the moment i can only alternate through via the previous and next buttons.
Is there an easy way which will allow me to alternate between the data held in the XML every 30 seconds or so, automatically?
Thank you for any help, I'm still a bit of a newbie at this :-)
Carl
View Replies !
View Related
Alternate For OnMouseMove Of As2
hi friends
how do i use both of MOUSE_DOWN, MOUSE_OVER at a same time
in AS2 the following code i hav used.
i need to know the code in AS3
AS2
Code:
mc_1.onPress = turn;
function turn():Void
{
var oldMousePos:Number = _xmouse;
line.onMouseMove = function()
{
line._x += _xmouse-oldMousePos;
oldMousePos = _xmouse;
if (line._x>pc)
{
line._x = pc;
}
else if (line._x<ps)
{
line._x = ps;
}
movePages();
updateAfterEvent();
};
}
thanks in advance..
View Replies !
View Related
Alternate Image
Is it posible to have an alternate image appear in a frame if the user does not have the proper plugin. I am using a frameset in which one frame has a flash document in it. I am getting responses from people who do not have the proper plugin. The frame is just blank. I don't want to force them into downloading the plugin. I know you can have the behaviors check the plugin for a flash doc, but it asks for an alternate url. I would just like to have another graphic take it's place. Is this possible?
View Replies !
View Related
[CS3 AS2] Alternate Mainloop?
Hello! Exciting to be able to ask some questions of some experts.
I'm working on my 3rd game, which happens to be my first platform game, and I have a general question that I haven't been able to find a good answer to so far.
My games are exclusively code-based. No frames, no timelines, no gotoandplay, just pure AS2. I use pure code because I'm a programmer, and I'm stuck with AS2 because I need my game to submit a score to server at the end, and only have AS2-version of the score submit logic (plus I don't know AS3).
I have a single movie clip which serves as the holder for the game logic:
Code:
onClipEvent(load)
{
// InitializeEverything
}
onClipEvent(enterFrame)
{
function leveldone()
{
timeleft = _root.timeleft;
for (i= timeleft; i > 0; i--)
{
_root.timeleft--;
_root.score += 10;
// force screen update here ????
}
}
// the MainLoop: ProcessEverything...
}
Everything is going pretty well with the game, the basic logic is all done. Now, when the player reaches the end of a level I call a support function called leveldone(). And one of the things that I would like to happen inside of this function is have the seconds remaining on the level's countdown timer to be converted into bonus points. No problem so far.
But, what I would like to have happen is something like you might see in a Mario game, where you actually see the timer value quickly counting down, while the score correspondingly quickly counts up over a period of a few seconds.
I can add the code which does the countup/countdown, but obviously the screen is not updating each time I tweak the dynamic text, so only the final result is seen. If there was a function I could put inside my countup/countdown loop that would force the screen to be updated with the latest values of the score and the timer it would be perfect. But I'm not aware of such a function.
Now, I guess I could code up a special state inside the MainLoop that would handle this countup/countdown when a flag was set, but I would prefer to have the countdown/countup logic in a separate temporary mainloop, if possible. If I could somehow achieve this, it would allow me to also save checking a flag inside the MainLoop.
I remember from programming in X-Windows and Motif Widgets on UNIX that this was possible. You could at any point in the execution of the normal mainloop, setup a secondary mainloop that processed different events with some code like this:
while (specialLoop)
{
event = XGetNextEvent();
SpecialProcessEvent(event);
}
Does anybody have any suggestions, how, in completely AS2-based program, I can do something along these lines?
1. Either force a screen update while still processing within the MainLoop, or...
2. Branch off to a secondary MainLoop, do some stuff, then return to the MainLoop without having to check a new flag in each iteration of the primary MainLoop?
View Replies !
View Related
An Alternate Method To This.....
I have a question to an alternate way of doing something. I was playing around with the idea of breaking up an image in flash 8 using the "Break Apart" CTRL+B. I then proceeded to highlight portions of the image I've broken apart and tunring them into Movie clips. The image stays intact - but only now it's made up of many movie clips. With me so far....
I then when into each movieClip time frame selected the portion of the image and selected insert Motion Tween - Onframe one I have the opacity set to 0 and on frame 10 it's 100%
I did this for all the movieclips that now makes up the image..
It look slike a nice effect when you play - I just want to know if their is an easier way. Am I over looking something.
Thanks
View Replies !
View Related
Printing Alternate Images
I have set up a slide viewer in MX, you know scrolls through the images forwards and backwards. The images are loaded from a separate folder so as not to bloat the file size. it all works very nicely. now here is my problem. the images are designed for viewing, ie screen res, but I want to be able to print an alternate version of the image at print res from a separate folder called 'print_images'. I am able to print the images from the first folder fine but any ideas on how to target the 'print_images' files?
cheers
View Replies !
View Related
Alternate Code Ideas ...
Here's my problem:
Create an empty MovieClip on the stage and call it emptyMC
Put this code in the first frame:
emptyMC.loadMovie( "http://www.domain.com/file.jpg" );
emptyMC.duplicateMovieClip( "newMC", 2);
See, I need to dynamically load an image, and then duplicate it.
Macromedia EXPLICITLY states that this is a problem, you cannot use duplicateMovieClip on a dynamically loaded MC.
Any ideas at all???
View Replies !
View Related
Alternate Drag Functions
I have made a small game with actionscript and want to attach a graphic or MC to the mouse but the actionscript for the game seems to conflict with the start drag function, does anyone know of other methods that I could use?
View Replies !
View Related
Alternate Preloader Possibility
as mentioned last time i have a preloader in scene 1 and my movie in scene 2 but the preloader does not appear until about 17 %
i am using this code:
bytes_loaded = Math.round(_root.getBytesLoaded());
bytes_total = Math.round(_root.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
_root.loadBar._width = getPercent*100;
_root.loadText = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
_root.gotoAndStop(100);
}
in flash MX
would it be possible to create an empty movie containing the preloader only and my main movie on the level above it and that the preloader would be based on the size of the main movie - i thought changing _root to _level 1 may acheive this ????
is it possible
thanks everyone - john
View Replies !
View Related
[CS3] Alternate Movie Clips
Hello. I have a series of movie clips that play 1 after the other, we'll call them 'A', 'B', and 'C'. When clip C is done playing, I want to alternate between 2 other clips, 'X' and 'Z'. Basically, I want to loop A,B,C,X, then A,B,C,Z. What code would I implement to make this loop take place? It must be AS2 for this project, and any help is greatly appreciated!
View Replies !
View Related
Rotate Mc Alternate Directions
Hi,
Imagine the needle on a dial. I can get it to rotate either the full 360º or to a fixed angle (say 90º) clockwise or counter-clockwise using the following script:
onClipEvent (enterFrame) {
i = getProperty(this,_rotation);
setProperty(this, _rotation, i-3);
}
or:
onClipEvent (enterFrame) {
i = getProperty(this,_rotation);
if(i <= 90)
setProperty(this, _rotation, i+3);
}
But what I want to do (and can't figure out ) is have the needle rotate to say 65º, then reverse to 50º, then go back to 65º and back again to 50º - ie continue moving back and forth between these 2 angles after it started out from it's original position (which was -90º).
Any suggestions would be gratefully received because this is driving me nuts!!!
Thanks,
Jo
View Replies !
View Related
Looping Through Alternate Players
Hi
This is my last hope! I'm trying to create a quiz that has 3 players - each of which take it in turns to answer a question. I'm at the early stages of development and ideally want player one to answer a question, then player two to answer a question and then player three to answer a question followed by player one answering a question and so on untill a certain score id reached. I thought this would be quite simple to do, but I'm really struggling.
I've tried using if and else statements with variables but think i'm doing it all wrong. Can anyone share with me some code that would loop through the players?
It would be most appreciated.
Thanks in advance
Claire
View Replies !
View Related
Alternate Non-flash Site
Hi all,
I'm creating a site which is virtually completely Flash. This will includes pulling dynamic text into text boxes for each 'page'.
I want to be able to create an alternate html version of the site too to cater for the small % of people who don't have or block Flash but would ideally like to serve up the same content in both places.
I was hoping that I could just pull a html file into the dynamic text boxes which could also be used as includes on the html version. This way, any update to content could happen in one place and both the Flash and non-Flash version would update it automatically.
I'm not sure how to achieve this given that the HTML served to Flash has to be in variable assignment format, which I can't serve as a html include.
Any options here for me? Can I use an include in the html code that is passed to Flash and have it pull the content from a 'third party' html file?
thanks in advance
Aaron
View Replies !
View Related
Alternate Page For 508 Compliance?
I have a page that is 90% flash. I would like to add a link to my movie that would lead to an alternate html page in order to provide complete accessibility. I would love to use something like the longdesc. Does such a method exist?
Thanks very much,
Debbie
View Replies !
View Related
Alternate Drag Functions
Alternate Drag functions
--------------------------------------------------------------------------------
I have made a small game with actionscript and want to attach a graphic or MC to the mouse but the actionscript for the game seems to conflict with the start drag function, does anyone know of other methods that I could use?
View Replies !
View Related
Alternate Jpg For A Flash Banner
Good day everyone.
I have a flash banner. I also created an alternate jpg image in case the user don't have flash plugin installed.
Is there a code I can insert on the html or object/embed tags, or is it somewhere in the publish settings?
Thans in advance.
View Replies !
View Related
Swf Loading Alternate Content
Ok this is my site: www.onphire.net/Large
Ok, this is a tough one to explain... my site is loading perfectly in firefox and netscape but when i open it (the home page) in IE it displays the folio page.
My site is set up so that transparent swfs are loaded ontop of the main background. The pages have a black backgorund that gets knocked out because of the wmode=transparent script. This is what it should look like: Correct Display
But when it loads in IE it shows the folio page and not the background... Like this: http://www.onphire.net/BugFix/Incorrect.jpg
Any ideas?
I would REALLY appreciate any help, this has been bugging me for weeks!
View Replies !
View Related
Alternate Drag Functions
I have made a small game with actionscript and want to attach a graphic or MC to the mouse but the actionscript for the game seems to conflict with the start drag function, does anyone know of other methods that I could use?
View Replies !
View Related
Alternate Audio Track
I want to add a "directors commentary" audio track to my swf or flv video tracks. This would allow the user to toggle on and off an alternate audio track while watching one of my video demoes.
Any idea as to how I can do this?
Thanks
View Replies !
View Related
Swf Object- Alternate Content
Hi,
I've been trying to learn about SEO for flash.
Apparently the best thing to do is use swfObject and provide alternate html content for Google to pick up.
Can this alternate content only be one html page? Or can it be a whole html site?
Are there any other ways to help Google pick up my flash site?
View Replies !
View Related
Alternate Drag Functions
I have made a small game with actionscript and want to attach a graphic or MC to the mouse but the actionscript for the game seems to conflict with the start drag function, does anyone know of other methods that I could use?
View Replies !
View Related
Alternate Audio Track
I want to add a "directors commentary" audio track to my swf or flv video tracks. This would allow the user to toggle on and off an alternate audio track while watching one of my video demoes.
Any idea as to how I can do this?
Thanks
View Replies !
View Related
Alternate Colours In Text Box
I have made a shoutbox using flash a php, and saved all messages in a special format that is redable in a .txt file
All is working fine, i would just like to know if its possible and how you would get alternate messages in a diffrent colours ie the first orange and the second black then orange etc
thx
View Replies !
View Related
Term For Effect / AS Alternate?
Hi -
I'm trying to figure-out how to do text that
slides/moves one after the other - similar to the
one here .
Is this all tweening? Or are diff. .swf's being loaded one
after the other?
Running MX2004 and would like to get this down...
Thanks,
El
View Replies !
View Related
Alternate Flash Content
Hi All,
I've been searching for a practical method to deliver alternative Flash content to user and have that content search-engine-friendly at the same time. I've come up with a method to do this but I would like to get some more eyes on it before I start implementing it on my projects.
Here it is in a nutshell:
- Web page holds html alternative content in original state. This way search engines treat it as a regular page.
- Using Javascript, detect if the user has flash + correct version (I'm currently using Geoff Stearns' detection script).
- If not, do nothing - keep showing the defaulted HTML content.
- If they DO have flash (and correct version), generate flash content via Javascript. Also, hide the existing HTML content via Javascript (and the use of <noembed> tags).
It seems to work really well, but my brain hurts and I could've missed a major detail in this method. If you see any flaws with this idea, please let me know - Thanks.
http://www.shustudios.com/detect/
View Replies !
View Related
Alternate Text For Flash
I'm designing a site with flash elements that need text alternatives so that it meets WC3 accessibility requirements...I have tried to research how to do this, but I am stumped! Help anyone?
Thanks!
View Replies !
View Related
Alternate Button Actions.
Hello, i tried searching the forums but i couldn't find this....
I've got a button, when i click it once i want it to do something, and when i click it a second time, i want it to do something else. Just 2 different things that alternate when i click that same button.
for example:
on the first click, play(56);
on 2nd click, play(154);
on 3rd click, play(56);
on 4th click, play(154);
etc.....
thanks y'all
View Replies !
View Related
Swf Object- Alternate Content
Hi,
I've been trying to learn about SEO for flash.
Apparently the best thing to do is use swfObject and provide alternate html content for Google to pick up.
Can this alternate content only be one html page? Or can it be a whole html site?
Are there any other ways to help Google pick up my flash site?
View Replies !
View Related
Alternate Button Command Problem
as far as I understand an alternate button command such as
on(keypress<"space"> can only be used once in a flash movie. In The application I'm creating I really need to use a alternate button command more than once for a button with five states such as "space or "enter" or maybe even right-click if possible. Is there any way around this problem? I don't understand why flash only allows on atlternate command.
Sean
View Replies !
View Related
GlobalToLocal Giving Alternate Values
i have a movieclip with this code:
Code:
this.onMouseMove = function (){
var point = new Object();
point.x = _root._xmouse;
point.y = _root._ymouse;
globalToLocal(point);
trace(point.x + " " + point.y);
this._x = point.x
this._y = point.y;
}
what happens is that the point values shifts between showing the correct values and incorrect values. here's an excerp of trace:
Quote:
134 27
-1 0
133 27
-2 1
132 27
-3 1
131 28
-4 1
130 28
-5 1
128 28
-7 1
127 28
am i using the function wrong?? the idea is that the movieclip (this) shall follow wherever the cursor is.
View Replies !
View Related
Alternate Paths If Movie Has/has Not Loaded
Howdy -
I'm writing a flash app that will have two different installation scenarios. In both scenarios, a "start" movie will be installed. In Scenario #1, Movie A will be installed. In Scenario #2, Movie B will be installed.
I need start.swf to try to load a.swf into a movie clip. If a.swf doesn't load (because Movie A is not installed), I need start.swf to load b.swf.
I've tried different variations of this code:
stop();
//create a new movieclip
this.createEmptyMovieClip("holder1", 0);
holder1._lockroot = true;
//load swf into that movieclip
holder1.loadMovie("a.swf");
//check to see if the movie has loaded
this.onEnterFrame = function() {
if (holder1.getBytesLoaded==0) {
trace ("Movie A not loaded")
//if it hasn't, go to the frame where
//there is actionscript to load B
gotoandPlay("open_b");
//stop checking to see if the movie has fully loaded
delete this.onEnterFrame;
}
};
I can't seem to get this to work correctly. I've also tried to check for the loaded movie, and if it's not there, just unload the movie clip, then load a new movie clip with Movie B. That doesn't seem to work either.
Can anyone help? This doesn't seem like it should be that difficult...
By the way, I'm using Flash MX 2004 Pro, developing on a Mac Powerbook G4, OS 10.3.5.
Thank you!
View Replies !
View Related
|