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




Cross-SWF Communication/referencing



Hi there,

I have a preloader that loads my index page but my preloader also contains the background and main functions of my site. So I have preloader.swf that loads index.swf. The index file then pulls up and shows data from child swfs.

What I'd wondering though, is how I can reference objects/functions between the swf file. For example what if I had a function in preloader.swf that changed the background.

Could this be as ease as parent.changeBackground() and referencing a as parent.movieClip.text = "whatever".

Thanks!

David



FlashKit > Flash Help > Actionscript 3.0
Posted on: 09-11-2008, 06:59 PM


View Complete Forum Thread with Replies

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

Cross Domain Communication Between Swf And Php
I have been working on a form in flash that is attempting to communicate with a php script on another server. The problem is that I do not have access to the other server with the php script since it is for a form that is hosted by freedback.com.

If I use sendToURL to send the field data, I can send the data but the swf file will not listen to the php script response ("you need to fill out form field blah blah" or redirect to thank you page)

If I use the URLLoader I can't send the data to the php script because it is on a different domain.

What are my options? I can't put a crossdomain.xml file on the server running the php script. Is there anything I can put in my actionscript that would allow such communications?

Here is my form code: ....

Cross SWF Communication Questions
Ok I am making a map-based site and ran in to few issues:

SWF structure:

-- User Interface (.swf)
-- Map (.swf)
-- Index (.swf that loads the levels above)

1. Question one: I have a button inside a movieclip on Map (.swf). When clicked it should open another SWF file at same position as the other swf files are loaded. Here is the script I use to load a SWF file:

function onMclick(e:MouseEvent):void {
var scemeart:URLRequest = new URLRequest("some.swf");
var scemeart2:Loader = new Loader();
scemeart2.load(scemeart);
addChild(scemeart2);
}

So the current script does work in the levels mentioned at start, however it doesn't work in the map since it positions it from the button and not the stage. Is there a way to change it to position it in the Stage's point of view (probably something to do with the "addChild part?)

2. Question two: Is there a way to pass variable info cross between SWF files in actionscript 3.0. Or are they detecting variable infos automatically if I merge several SWF files inside one "project" like I have done?

I thank you a lot for your time if you read this and answer this.

Cross Domain Communication.
I have a flash movie beng served form a remote server. This movie, once started has to communicate w/ a C++ engine running on the local machine (client). The data transfer between the flash movie & the C++ engine is two way. Since the movie runs w/in the sandbox of the browser, it's getting to be a pain to get it to speak to the C++ engine.

Have any of you come across a similar situation? Any help is appreciated.

Note: I don't have an option where-in I can start the flash movie after downloading it locally; it has to be run from w/in the browser.

Cross Referencing Classes
I know this question has been asked ample times, but I haven't been able to find a good answer, so I'd thought to ask again. Whenever I have two classes that cross reference each other, I get the "class XXX conflicts..." error while checking syntax.

Here's an example.


PHP Code:



class test{
    function test{
        var Test2:test2;
    }
}
class test2{
    function test2{
        var Test:test;
    }





Albeit classes like this work fine in the .fla, I am annoyed at having this error come up every time I check syntax in Flash 8. I've done the usual methods of setting timestamps and deleting .aso files, but that yielded no results. Is there any way to fix this, or an alternative editor to write my code?

Cross Package Referencing
I'm hoping this is a no brainer question someone can answer easily for me and shake their head at me with a tut tut. I'd happily look silly and have an answer than have a too hard question and none. I'm trying to copy pixels from a graphic drawn using code in one package/.as file onto a bitmap image loaded using a different package/.as file. From what I read both packages should be covered in the scope, but they don't seem to talk to one another.

As always any assistance would be most appreciated.
Thank you,







Attach Code

This code lives in the main.as file. I need to copy the line drawn in this function over a bitmap image that's loaded in a different package/.as file. The code is working and the line is drawn over the image on the stage:

public function mouseUpHandler(evt:MouseEvent):void {
if (mouseX >37 && mouseX<792 && mouseY>285&& mouseY<670) {
sprite1.removeEventListener(Event.ENTER_FRAME, enterFrameHandler);
sprite1.removeChild(sprite1.getChildByName("dotStart"));
sprite1.removeChild(sprite1.getChildByName("dotEnd"));
sprite1.graphics.clear();
sprite1.graphics.lineStyle(strokeWidth_ns.value, strokeColor_cb.selectedItem.data, 1);
sprite1.graphics.moveTo(startX, startY);
sprite1.graphics.lineTo(mouseX, startY);
//var image:Bitmap = Bitmap(holder_sp.content);
//var imageData:BitmapData=new BitmapData (image.width,image.height,false,0xcccccc);
//imageData.draw(image);
//var line = sprite1.graphics;
//image.draw(line);
//drawPic();
//loader.load(image);
}
}

This is the code from the loading.as file that loads the bitmap image into holder_sp scrollpane and places it under the drawing code above. You'll notice I can't decide where to create the bitmapdata object:

private function completato(event:Event):void {
_fla.lights_mc.visible=false;
_fla.lights_mc.stop();
_fla.pre_mc.fill_mc.stop();
_fla.pre_mc.visible=false;
_fla.addChild(loader);
loader.x=544;
loader.y=15;
loader.width = 263;
loader.height = 242;
var sprite2:Sprite;
sprite2=new Sprite();
_fla.addChildAt(sprite2, _fla.getChildIndex(_fla.sb_microns));
sprite2.graphics.beginFill(0x666666,0);
sprite2.graphics.drawRect(580,400,holder_sp.width,holder_sp.height);
sprite2.addChild(holder_sp);
holder_sp.x=37;
holder_sp.y=285;
holder_sp.width =772;
holder_sp.height =400;
var image:Bitmap = Bitmap(holder_sp.content);
var imageData:BitmapData=new BitmapData(image.width,image.height,false,0xcccccc);
imageData.draw(image);
}

























Edited: 09/15/2007 at 12:51:01 AM by Beatie3

Cross-brower JS To Flash Communication?
Hi, I have manage to talk to flash from js using the LiveConnect method.

EG:


Code:
<script type="text/javascript" language="JavaScript">
function StopTheMovie(){
document.baseclip.GotoFrame(2);
}
</script>
But, is only works in IE. Is there a way of doing this will all browsers.

M@?

Cross Browser - Cross Platform Support
Can someone tell me what this actually represents when embedding fonts?

Cross-browser and cross-platform support

Thank you

The Cross Of A MC
Is that possible to change that pt from the top left to centre by actionscript?

Cross Hairs
Hello Im am wondering how to create a cross hair effect

not just the normal one with just an aimer, but the kind where the aimer slides on two bars, ya know what i mean?
i have know idea how to do this, can you please help???

Cross-hair
I am trying to drag/drop several different words to a target block. I want them all to stay unless they are incorrect. But they seem to snap to the cross-hair in the target area. Can I get rid of the cross hair?
(I'm working with F5)

Also, does each word have to be on a different layer?

HELP
NEWBIE IN TROUBLE>

Cross Platform Cd's
I'm attempting to burn a cd for pc's and mac's. I'm using a program called CD Anywhere to burn the cross platformable CD. I have a flash movie that autostarts, which works on both machines. Problem is that when the movie hits the "get URL" action I get a "can't find file" message on the macs. Right now the get URL action is ../startshot/startshot.html. I can successfully put two different versions of the movie on the cd and each autstarts right now. I just need some help on how to change the action for the macs. Thanks.

Cross Platform
I can't open a PC flash file on a Macintosh.
Does anybody know a way???????

Cross-link
guys
whats the meaning of cross-link in flash???????

Cross Platform PC Vs. MAC
I’m sure this is a stupid question. At work I work on a PC and have the Macromedia Professional bundle that includes both Flash and Dreamweaver MX along with other applications. At home I work on a G4 Mac and have Dreamweaver and Flash 5. I am considering upgrading to MX at home but don’t really have the money right now. Is Macromedia’s software cross platform so I can take my files from my home G4 to my work PC and back again with out a problem? Or can I assume that I can only work on work files at work on the PC?

Cross-Hair
Hi,

I'm currently developing a site which needs to make use of a full page cross-hair (not game/target type), similar to the one so kindly posted to flashkit by Alex Lein.

My problem is that I need the attached cross-hair to dissapear when there is no mouse movement, and re-appear again when mouse movement occurs.

Any help or direction to tutorials etc would be much appreciated.

Cheers.

Cross Actionscripting
I have created a website consisting of 3 separate flash movies. I have buttons on 2 of the movies that I need to affect the main movie. Is it possible to create an actionscript that can effect an alternative flash file?

Thanks in anticipation

Cross Domain
Hi anyone know why all of a sudden my flash has stopped accessing my remote server script from a web browser.

I have the crossdomain.xml file in the root of my remote server.

the flash file works fine when I run it locally (ie off my desktop(different server)) but when i put it in a web page on another server it fails to execute the commands.

any help would be appreceiated

cheers
B

Cross Domain
Hello,
I have been messing around with socket servers and had few questions about cross domain. If I have a flash client on a webhost and my server on another host, when the client connects to the socket server will it send a policy request to the socket server or look for crossdomain.xml in the root directory?

I would appreciate any help i can get.

Thanks

[F8] Cross Fading In AS With XML
I got a script working with XML fed jpgs, but I need to know how I would change the code to create any type of cross fade, so certain parts on the images don't look like they are flashing.

Note: The first part of the AS is referring to an additonal image, which I've since dropped.

Thanks..

Here's the AS I'm using:

Code:
//-- Set Variables ---//
delay = 4000;
//--- Load logo ---//
var imgLoader = new MovieClipLoader();
//--- Load logo into empty mc ---//
this.createEmptyMovieClip("logoHolder_mc", this.getNextHighestDepth());
logoHolder_mc._x = 48;
logoHolder_mc._y = 30;
logoHolder_mc._alpha = 0;
// Load the image in to the new movieclip
imgLoader.loadClip(imageName, logoHolder_mc);
// Fade logo in
imgLoader.onLoadComplete = function(targetMC) {
_root.onEnterFrame = function() {
targetMC._alpha += 3;
if (targetMC._alpha>=100) {
delete _root.onEnterFrame;
}
};
};
//--- Load background images via XML ---//
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
//description = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
}
firstImage();
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("fdata.xml");
/////////////////////////////////////
listen = new Object();
listen.onKeyDown = function() {
if (Key.getCode() == Key.LEFT) {
prevImage();
nextImage();
} else if (Key.getCode() == Key.RIGHT) {
}
};
p = 0;
this.onEnterFrame = function() {
filesize = picture.getBytesTotal();
loaded = picture.getBytesLoaded();
preloader._visible = false;
if (loaded != filesize) {
preloader.preload_bar._xscale = 100*loaded/filesize;
} else {
preloader._visible = false;
if (picture._alpha<100) {
picture._alpha += 10;
}
}
};
function nextImage() {
if (p<(total-1)) {
p++;
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[p], 1);
picture_num();
slideshow();
}
}
}
function prevImage() {
if (p>0) {
p--;
picture._alpha = 0;
picture.loadMovie(image[p], 1);
picture_num();
}
}
function firstImage() {
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[0], 1);
picture_num();
slideshow();
}
}
function slideshow() {
myInterval = setInterval(pause_slideshow, delay);
function pause_slideshow() {
clearInterval(myInterval);
if (p == (total-1)) {
p = 0;
firstImage();
} else {
nextImage();
}
}
}

Help With Cross Domain From An SWF
Greetings flash world,

I am currently stumped on a project. I am giving a weather report through a flash player. However for the twist, this is not a browser run flash file. This is being run from my desktop.

This runs into problem when dealing with the "sandbox" security system flash has set up. My file will go grab the information from xml files. Starts off getting the city from an xml file on the user sides computer (the one with the SWF file). Then it contacts Environment Canada and using the city name, it asks for the code number and province (Canadian program) in which to grab the weather from. Then re contacts EC, and using the code number and province, it finds the weather report and downloads that information into the SWF to be displayed on the fly.

Now all this does work perfectly while running it straight out of the Flash pro program. However if you run the SWF it runs into the security problem and doesn't bring back any information past grabbing the city name from the local XML file.

In an experiment I set flash up to run through a php server to go grab the information. This does work... however once again I am not running my SWF through an internet browser (what PHP needs). So that isn't working.

And as for a conformation.xml file or anything, the server I am trying to access of course isn't my own and there for i can not add such a file to the server to allow flash to access it from another domain, such as my computer.

So how can I access cross domain information from a local none browser run SWF file?

See if you can rap your mind around this one. No one seems to have an answer as of yet to solve this problem.

[F8] Help With Cross Domain From An SWF
Greetings flash world,

I am currently stumped on a project. I am giving a weather report through a flash player. However for the twist, this is not a browser run flash file. This is being run from my desktop.

This runs into problem when dealing with the "sandbox" security system flash has set up. My file will go grab the information from xml files. Starts off getting the city from an xml file on the user sides computer (the one with the SWF file). Then it contacts Environment Canada and using the city name, it asks for the code number and province (Canadian program) in which to grab the weather from. Then re contacts EC, and using the code number and province, it finds the weather report and downloads that information into the SWF to be displayed on the fly.

Now all this does work perfectly while running it straight out of the Flash pro program. However if you run the SWF it runs into the security problem and doesn't bring back any information past grabbing the city name from the local XML file.

In an experiment I set flash up to run through a php server to go grab the information. This does work... however once again I am not running my SWF through an internet browser (what PHP needs). So that isn't working.

And as for a conformation.xml file or anything, the server I am trying to access of course isn't my own and there for i can not add such a file to the server to allow flash to access it from another domain, such as my computer.

So how can I access cross domain information from a local none browser run SWF file?

See if you can rap your mind around this one. No one seems to have an answer as of yet to solve this problem.

[CS3] About Cross Domain
Hi,

I'm new to this forum, want to ask about cross domain issue. If we call a swf (using embed) from another domain where the swf is loading some images (and those images are in the same domain as swf), is there any cross domain issue?

The Cross In The Centre Of MC
Do any one know how to move it to top left if I have an animation inside MC and dont want move the object inside instead?

Cross Platform CD
hello all,
I am trying to make a cross platform autorun CD for mac and PC
using Director mx2004 i made two project one for window(.exe) and for mac(.osx from hqx )

i used CDEverywhere to make it autorun and then burned the CD .. the CD works perfectlly fine on windows but when i run cd on mac some of the files like .osx and .swf and some xml files are converted to text files format..

please can some one put light on my such problem

Cross Domain XML
So...when I'm accessing an XML file on another domain, I know I need to use a cross domain XML file to allow access to that said file...

However, do I need to reference that cross domain file from inside my ActionScript? Or does it just have to be in the same directory as the the file I am accessing?

Cross Platform Cd Rom
Does anyone have any info on creating a cross-platform CD rom?

tutorials links etc?

Cheers

JP

Cross Domain
I have a flash object on one, content, server, some data coming to it from another, application, server, which works fine using crossdomain.xml and all this shows from the third server's html page. But, on this third server I can't access the flash object's methods through javascript (external interface). I am assuming this is because of XSS. Did anyone have this issue before, any suggestions how to tackle this problem?

Xml Cross Domain
I am putting xml weather on my Flash site using Yahoo! weather. I am using code similar to:

var my_xml:XML = new XML();

my_xml.ignoreWhite = true;

my_xml.onLoad = function(success:Boolean) {

// do something

}

my_xml.load("

Help With Cross-domain
DELETED - i got it





























Edited: 08/14/2008 at 02:42:08 PM by Twinbird24

Cross Post
Please, I need help. Will you see my other post ([L=http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=15&catid=194&threadid=1417534&enterthread=y) please?

Cross Fade?
I am trying to do simultaneous cross fade of iamges in a slideshow. The script here seems to have a very elegant method for cross-fading movieclips:
http://www.actionscripts.org/showMovie.php?id=678
However, I cannot get this script to work for images Anyone have a clue as to how to make this work with images? Let's say I have done:
this.createEmptyMovieClip("photo", 200)
and done a loadmovie of an iamge into the the MC.
Here is the actionscript that I want to alter so that it will cross fade the iamges...
//
// P i X E L W i T . C O M
//
//
//
//
// Define variables.
var step = 5;
var xFadeDepth = 999;
var oldClip;
//
//
//
//
//
//
// Make a class to fade-out any clip.
function fadeOut() {};
fadeOut.prototype = new MovieClip();
fadeOut.prototype.onEnterFrame = function() {
this._parent._alpha -= step;
if (this._parent._alpha<=0) {
this._parent._alpha = 0;
this._parent._visible = false;
this.removeMovieClip();
}
};
// XOut is a blank clip in the library with
// a linkage identifier of "XOut".
Object.registerClass("XOut", fadeOut);
// Now any time you attach the XOut clip to
// another clip, it will decrease that clip's
// alpha until it reaches 0 then set that clip's
// visibility to false and then remove itself.
//
//
//
//
//
//
// Make a class to fade-in any clip.
function fadeIn() {};
fadeIn.prototype = new MovieClip();
fadeIn.prototype.onLoad = function(){
this._parent._visible = true;
};
fadeIn.prototype.onEnterFrame = function() {
this._parent._alpha += step;
if (this._parent._alpha>=100) {
this._parent._alpha = 100;
this.removeMovieClip();
}
};
// XIn is a blank clip in the library with
// a linkage identifier of "XIn".
Object.registerClass("XIn", fadeIn);
// Now any time you attach the XIn clip to
// another clip it will increase that clip's
// alpha until it reaches 100 then remove itself.
//
//
//
//
//
//
// XFade crossfades two clips.
// NewClip is the clip to be revealed.
// OldClip tracks the last revealed clip.
function xFade(newClip) {
if (newClip != oldClip) {
newClip.attachMovie("XIn", "Fader", xFadeDepth);
oldClip.attachMovie("XOut", "Fader", xFadeDepth);
oldClip = newClip;
}
}
//
//
//
//
//
//
// Hide all the clips to be crossfaded.
Red._visible =
Green._visible =
Blue._visible =
Yellow._visible =
Red._alpha =
Green._alpha =
Blue._alpha =
Yellow._alpha = 0;
//
//
//
//
//
//
// Assign crossfade functions to buttons.
RB.onRollOver = function (){
xFade(Red);
}
GB.onRollOver = function (){
xFade(Green);
}
BB.onRollOver = function (){
xFade(Blue);
}
YB.onRollOver = function (){
xFade(Yellow);
}
//
//
//
//
//
//

Cross Fade Help
Hi,

I have 3 Buttons

button1, button2 and button3
and three pictures in three layers.
Which are

layer 1: picture1
Layer2: Picture2
layer3: picture3

Now what my client want is on mouse over button1 - it should show only picture1 and once we mouse over button2 , it should cross fade the picture1 and picture2 and eventually it should show picture2 and same things goes for the picture3.

What i believe is all about cross fade. I am dont have any idea how to do that??

Can some one help me with example??

Cross Fade?
I am trying to do simultaneous cross fade of iamges in a slideshow. The script here seems to have a very elegant method for cross-fading movieclips:
http://www.actionscripts.org/showMovie.php?id=678
However, I cannot get this script to work for images Anyone have a clue as to how to make this work with images? Let's say I have done:
this.createEmptyMovieClip("photo", 200)
and done a loadmovie of an iamge into the the MC.
Here is the actionscript that I want to alter so that it will cross fade the iamges...
//
// P i X E L W i T . C O M
//
//
//
//
// Define variables.
var step = 5;
var xFadeDepth = 999;
var oldClip;
//
//
//
//
//
//
// Make a class to fade-out any clip.
function fadeOut() {};
fadeOut.prototype = new MovieClip();
fadeOut.prototype.onEnterFrame = function() {
this._parent._alpha -= step;
if (this._parent._alpha<=0) {
this._parent._alpha = 0;
this._parent._visible = false;
this.removeMovieClip();
}
};
// XOut is a blank clip in the library with
// a linkage identifier of "XOut".
Object.registerClass("XOut", fadeOut);
// Now any time you attach the XOut clip to
// another clip, it will decrease that clip's
// alpha until it reaches 0 then set that clip's
// visibility to false and then remove itself.
//
//
//
//
//
//
// Make a class to fade-in any clip.
function fadeIn() {};
fadeIn.prototype = new MovieClip();
fadeIn.prototype.onLoad = function(){
this._parent._visible = true;
};
fadeIn.prototype.onEnterFrame = function() {
this._parent._alpha += step;
if (this._parent._alpha>=100) {
this._parent._alpha = 100;
this.removeMovieClip();
}
};
// XIn is a blank clip in the library with
// a linkage identifier of "XIn".
Object.registerClass("XIn", fadeIn);
// Now any time you attach the XIn clip to
// another clip it will increase that clip's
// alpha until it reaches 100 then remove itself.
//
//
//
//
//
//
// XFade crossfades two clips.
// NewClip is the clip to be revealed.
// OldClip tracks the last revealed clip.
function xFade(newClip) {
if (newClip != oldClip) {
newClip.attachMovie("XIn", "Fader", xFadeDepth);
oldClip.attachMovie("XOut", "Fader", xFadeDepth);
oldClip = newClip;
}
}
//
//
//
//
//
//
// Hide all the clips to be crossfaded.
Red._visible =
Green._visible =
Blue._visible =
Yellow._visible =
Red._alpha =
Green._alpha =
Blue._alpha =
Yellow._alpha = 0;
//
//
//
//
//
//
// Assign crossfade functions to buttons.
RB.onRollOver = function (){
xFade(Red);
}
GB.onRollOver = function (){
xFade(Green);
}
BB.onRollOver = function (){
xFade(Blue);
}
YB.onRollOver = function (){
xFade(Yellow);
}
//
//
//
//
//
//

Cross Hair?
Hello,

I'm new to flash, and I have a movie symbol with a backround image in it.  Everything looks OK, except I have a "cross hair" in the middle?  Similar to the center marker, but it doesn't go away when I play the movie?  It wasn't there when I started, but I have made several changes and I don't know how this got added.

Any ideas?  Thank you.

Rgds,

John

Cross Domain
Ok i want to create a button on www.mysite.com which takes you to www.mysite.com/main

What would be the as on the button ??

Thank you!

Cross-mc Duplication
I don't know why on Earth I need to ask this so please try to make your replies short and painless

I have a movie clip on the _root called "lib" and "lib" contains a collection of movie clips.

How would I make a duplicate of one of the movie clips in "lib" on the _root instead of it duplicating inside "lib" ?

In other words.. "bob" lives inside "lib" and I need to copy "bob" to the _root.

Cross MCs/swf Issue
I have 2 MCs: MAIN and MC2. On MC2, I have ball_MC with label 'test'.
Check the fla-s at:
www.frager-ag.com/projects/main.fla
www.frager-ag.com/projects/mc2.fla

On MAIN, I have a button that should load MC2 and tell to ball_MC to stop at the label 'test'.

I tried this AS:

ActionScript Code:
on (release) {
 loadMovieNum("mc2.swf", 1);
 _level1.ball_MC.gotoAndStop("Test");
}

at the button, but it does not function. Where is the problem?

I really appreciate your help.

Cross Domain
I wanna be able to watch a video not on the same server than my webpages & i believe i need to use crossdomain,any idea of how all this work?

also note i use a xml playlist

Thanks for your help

Cross-Platform Seems So .... -_-
It's really great the Flash applications (SWFs) can be runned anywhere, with just a player plugin. But I found some strange problems when I load the Flash just in different browsers. Such as Firefox and IE.

I use "MovieClipLoader" to load a swf which includes a "v2-component" inside it, such as using "main.swf" to load "someV2.swf". The ComboBox seems not working under IE but it works well in FF.

I use "Key.isDown" with "onKeyDown" to give the user's key-input, but it goes strange. Sometimes in FF, if the swf is loaded by another, such as using "main.swf" to load "keyListener.swf", the "Key.isDown" never fires.

Anybody meet with such problems in developing apps for FF and IE?

and, Anyone can give me some advice when an app often uses "MovieClipLoader" ?



Thanks very much in Advance.

Cross Scene Looping
I would like to start a sound in scene one ... and have it loop until scene 6 where it fades out. Can this be done - and if so how? I assume it can be done with action scripting, but I just started using flash this week -

So if you know of a tutorial that shows how - or if its simpler than that please let me know. Any assistance would be greatly appreciated - thanks.

flashhood

Cross-hair Effect?
Can anyone show me how to make a crosshair effect that is focues on your mouse pointer?

The lines have to co across the whole movie...no little "+" type stuff attached to mouse tip.

I remember doing it a while back..bvut cant remeber how to now...lol....I tried have an MC be stuck (drag) to the pointer tip...but I can only get one MC to stick at a time....not BOTH. (note: the MC's would just be a LINE either up/down or left/right)

And the only other thing I can think of was making the MC a giant "+" but not practical when movie is large...lol..

Thanks

-whispers-

Authoring Cross-platform
Can a flash MX file in-progress be worked on from a mac and a PC?
Not at the same time of course, but can an in-progress file go between platforms if MX is installed on both?

Cross-Fading Question ?
Hello All,

I was wondering if someone can help with this. I have a small flash project that requires me to have 4 images appear, scroll and then cross-fade to another image. As of now, I can do most of it...but my fade just fades out to 0 then the other image appears to fade in.
Even though I have the layers crossing each other...when I export the flash movie...and play it, one image completely fades out before the other fades in.
I want them to kind of overlap like a cross-fade!

Thanks for any help!

Cross Platform CDROM
I am trying to burn a CDROM from a pc that will be compatible with mac's and pc's. I've published the main projector as an exe. and all the other files as swf's. What else to i need to do to make it work in a mac?????? I need help desperately!!!! Thank you

CDROM Cross Platform
i am burning a cdrom from a pc. How do i publish it so that it will be able to run in a mac aswell as a pc???????

Cross-layer Rollover?
Greetings,

I don't think this can be done, but I wanted to make sure before I change my whole design. Here's the situation: The order of the layers is as follows and can't be changed :


Layer 2
Layer 1

I have a button on layer 1, and I would like to make a text appear on layer 2 when the user rolls over the button. (Note : The text would be invisible if I made it appear on layer 1 - it would be below an image)

Is this possible? If not, is there another way to make some text appear above the layer on which the button is located? (when the user rolls over the button)

Any input welcome...thanks.

JP

Cross Cheking 2 Arrays With Each Other
hello im trying to check all elements of one array for equality with all elements of a second array. i got a code for that but it doesn seem to work properly, i was hoping yopu could take a look at it and tell me whats wrong. thanx



Code:
function procesarComando() {
for (i=0; i<=(arrayOne.length); i++) {
stringToCheck = arrayOne[i];
for (e=0; e<(arrayTwo.length+1); e++) {
if (stringToCheck == arrayTwo[e]) {
//set this variables...
comandos[i] = stringToCheck;
parametros[i] = arrayOne[i+1];
}
}
}
}



arrayOne is a comand line typed in by the user in an input box example:

Code:

fd 50

arrayTwo is a list of commands that are recognized by the app , like this:

Code:

arrayTwo = new Array("fd", "av", "bk", "re", "rt", "gd", "lt", "gi", "repeat", "repetir");

Cross Site Scripting....
Hi All,

Is there any software that can 'run an eye' over .fla or any source file that results in a compiled .swf file that checks for Cross Site Scripting vulnerabilities ???

Im trying to create an online gallery for .swf files that people can uplaod to, but dont want to deal with the 'server killing' issue of XSS

Cheers for your help

Paul

Cross Platform Pitfalls?
Blah,

I decided to author in flash so I wouldnt have cross platform issues. My bad. Everything in cool in IE on PC. but not on the mac, the movie freezes on my preloader. I have a preloader that caches several movies, one being a shared library. Is there anything funny cross platform I should know about. I also noticed that using safari on the mac, my embeded fonts didn't work. Nor did my HTML framing, but thats another issue.

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