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




IE PC Nav Problem (some Buttons Going To Index.html)



I have a site that works fine on the mac, and in Firefox on the PC. But on IE some of my buttons jump back to the index.html page instead of the html pages that they are supposed to go to. This is very frustrating. Does anyone know what is possibly going on here? If necessary, take a look at the site: http://www.babyblissconsulting.com



FlashKit > Flash Help > Flash ActionScript
Posted on: 04-14-2008, 03:40 PM


View Complete Forum Thread with Replies

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

Index.html Vs. Index.swf (fullscreen) Help
Hi,

I am working on a site and what I am trying to get is the flash movie to load full screen (so there is no scroll bars). How can I set it so that when they go to the website it loads the index.swf file and not the .html file

my example is www.iccimmigration.com/index.swf (this is what I want, no scroll bars)

The index.html file with all margins set to 0... but what happens is when someone views the site with a higher screen resolution the movie is only half the screen.

www.iccimmigration.com

I hope that made some sense. I want it to load the .swf file not the .html

ONLOAD Help For Index.html
howdy folks. i've just created my first flash file. it is a christmas greeting for our website.

now, how do i get it to play when a person first opens index.html?

thanks in advance,
debi

Index.html Won't Play
On a site that I have created my index.html file will not play. It does play from my hard drive, but not on the web. I have tried re-uploading both the index.html file and the home.swf file to the server several times, but still not luck. Does anyone know why this might be? Thanks!

Index.html In Other Server?
hi there...
is there any possibility to keep all the swf files in my server (mydomain.com) and have one index.html in other server(client.com) ???
thanks
Pepe

Uploading Swf Into Index.html
I thought it used to be pretty simple to import/upload a swf into your index.html, and update it to your server.

However, I'm running into security issues?

This error pops up when I test my index.html file:

SecurityError: Error #2148: SWF file http://www.mywebsite.com/first.swf cannot access local resource second.swf. Only local-with-filesystem and trusted local SWF files may access local resources.
at flash.display::Loader/_load()
at flash.display::Loader/load()
at init_fla::MainTimeline/load()
at init_fla::MainTimeline/init()
at init_fla::MainTimeline/frame1()

I looked through the forums:

-came across creating and uploading a crossdomain.xml file; did that
-in the fla file, changed the publish settings of 'local playback security.' played around with both 'access local files only' and 'access network files only'
-added
ActionScript Code:
Security.loadPolicyFile("http://www.mywebsite.com/crossdomain.xml");
to all my fla/swfs


when I
ActionScript Code:
trace(flash.system.Security.sandboxType);
it traces that all my swfs are trusted.

What am I missing?

Does it have something to do with AC_RunActiveContent?

All I'm attempting to do is upload my main swf, and index.html.

Any help would be greatly appreciated.
Thanks in advance.

Index.html Content
Hi,

I placed a Flash web site on the www but it doesn't look centered, big enough, etc. Is there any recommended index.html file that I can see as an example. On mine I am calling main.swf. I also noticed that the main.html file generated by the publish option in flash doesn't call the .swf. Any comments or sugestions?...thanks

Files - Index.html?
I have a problem and it might sound very dumb, so you will have to be patient.

Ok here goes, I'm having a lot of problems at the moment testing my site that is made in flash - I keep getting the page not found page.

I have made a homepage into which all other swf files will be pulled in by pressing home, contact etc. Now then, quite obviously the homepage will be the first one to load, so, should i name this page index right from the start, and then when it is published, it creates the index.html page ready for uploading to the server, or can I name it homepage and then at a later date, rename the file. This later one is the one I have been using and I think it is causing some sort of conflict - I need to know the correct procedure.

Thank you

HTML Index Page
the index page of my site was built in flash, it contains site requirements, link to macromedia, enter site... etc,etc.
It is the first scene of my movie. The enter site button goes to scene 2 which contains the preloader and then continues into the movie.

after publishing the movie, i go to dreamweaver, create new site etc..etc and save my SWF as 'index html' then put it on my server
with the main SWF file.

my questions,

1. will a user who doesn't have flash even get to my index page because it was built in flash, or is it OK because it has an 'index html' file on my server?

2. if they do get the index page, will the link to macromedia be active for them to get flash and veiw the rest of the site?

thanks.

Z-index And Flash Over HTML
ive got some flash over HTML using z-index and div tags, only problem is the flash overlaps some of the html buttons
so i kind of want it to play an animation, then unload itself

is there a way of doing this?

Files - Index.html?
I have a problem and it might sound very dumb, so you will have to be patient.

Ok here goes, I'm having a lot of problems at the moment testing my site that is made in flash - I keep getting the page not found page.

I have made a homepage into which all other swf files will be pulled in by pressing home, contact etc. Now then, quite obviously the homepage will be the first one to load, so, should i name this page index right from the start, and then when it is published, it creates the index.html page ready for uploading to the server, or can I name it homepage and then at a later date, rename the file. This later one is the one I have been using and I think it is causing some sort of conflict - I need to know the correct procedure.

Thank you

Importing Swf Into Index.html
I thought it used to be pretty simple to import/upload a swf into your index.html, and update it to your server.

However, I'm running into security issues?

This error pops up when I test my index.html file:

SecurityError: Error #2148: SWF file http://www.mywebsite.com/first.swf cannot access local resource second.swf. Only local-with-filesystem and trusted local SWF files may access local resources.
at flash.display::Loader/_load()
at flash.display::Loader/load()
at init_fla::MainTimeline/load()
at init_fla::MainTimeline/init()
at init_fla::MainTimeline/frame1()

I looked through the forums:

-came across creating and uploading a crossdomain.xml file; did that
-in the fla file, changed the publish settings of 'local playback security.' played around with both 'access local files only' and 'access network files only'
-SWFObject didn't remedy it
-added
Security.loadPolicyFile("http://www.mywebsite.com/crossdomain.xml");
to all my fla/swfs


when I trace(flash.system.Security.sandboxType);
it traces that all my swfs are trusted.

What am I missing?

Does it have something to do with AC_RunActiveContent?

All I'm attempting to do is upload my main swf, and index.html.

Any help would be greatly appreciated.
Thanks in advance.

My Index Buttons Are Not Loading The Swf...?
hi all!

my index page is not loading the swf files from the buttons. can someone please take a look and assist me?

files (index, contact) are here

my index button script is:

b1.onRollOver = over;
b1.onRollOut = out;
b1.onRelease = home;

function over() {
this.gotoAndPlay(2);
}
function out() {
this.gotoAndPlay(16);
}
function home() {
_root.emptyMC.loadMovie("home.swf");
}

the emptyMC on my index page is instance named "emptyMC".

thanks so much. :)

Z-index On Html Layers And Flash....
I have html layers (part of a navigation) that are activited by mouseovers. I have these html layers z-index set at 5.

I have a swf in a different html layer which has a z-index set to 0.

Why does my swf still appear on top over my html layers that have a higher z-index.

Get Caret Index Of Html Textfield
I'm working on a HTMLarea plugin. It's supposed to be used in HTML forms to replace the textarea form field so people with no knowledge of HTML can generate HTML code in a texteditor alike environment. It can be used for example in content manegement systems or server-side email clients. I've made a WYSIWYG editor once, so I figured it could be done in one textfield without showing code aswell.
Perhaps I've guessed wrong, 'cause I'm stuck and I can't figure out how to solve this problem, so I hoped one of the guru's round here could help me out...
The problem is that I need to get the caret index of a HTML textfield. When I try to achieve this using Selection.getCaretIndex(); it returns the caret index showed instead of the index of the variable attached to the textfield.
e.g.
When the textfield shows the line:

Code:
This is a HTML textfield
the variable contains:

Code:
<P ALIGN="LEFT"><FONT FACE="_sans" SIZE="12" COLOR="#000000">This is a HTML textfield</FONT></P>
When I select "is a HTML" getCaretIndex returns 5 instead of 61.
I've spend quite some time figuring out a workaround, but still without any result. Please help me..
Thmx in advance !

Cheers,
Shaman

Link To Different PopUps From Index.html
I've got one html file (index) which opens up main.swf. There are several buttons in this file that link to different .swf's. Each different swf has two buttons in it which open popUp windows. by putting this code on my button-

on (release) {
getURL("JavaScriptopup();");
}

and this code in my index.htmlfile-

<SCRIPT LANGUAGE="JavaScript">
function popup() {
window.open('hotel_pic.html','hotel','toolbar=no,l ocation=no,directories=no,status=no,menubar=no,scr ollbars=no,resizable=no,width=520,height=530,left= 0,top=0');
}
</script>

i am now able to open the popUp of hotel_pic.

However there are about 7 more buttons on the site that need to open up different popUps but i don't know how to go about this as there is only one html file and it doesn't specify on the button code which popUp to open. I've tried addng the name of the individual popUPs to the button code but then i get an error message.

Does anyone know how to fix this?

Thankyou!!

Object Tag Into Index.html Or Php Block
I am trying to insert this

<object type="application/x-shockwave-flash" width="400" height="170"
data="

Full Screen .swf/ Index.html
I would like to have a .swf load full screen w/out using a pop-up window. In other words, using FS Commands how can I get a .swf to be full screen in a browser window that retains it's menu bar???

This is what i have tried on the first frame:

fscommand("fullscreen", true);
fscommand("allowscale", true);

Thanks in advance for any help you may have. I appreciate it!

-B

Setting Up Link Buttons Outside Of Index.swf
Quick Flash 101 question. I am setting up a portfolio.swf file on my website. The problem is the links work when the file is index.swf and not when it is portfolio.swf. I would like to go to for example www.generalwebsite.com/portfolio.swf and have my portfolio come up, which it does and works fine, but when the button is pressed, I have the _blank screen pop up and instead of getting www.whateverlink.com in the new window, I get www.generalwebsite.com/www.whateverlink.com . Why is www.generalwebsite.com coming up before www.whateverlink.com? Sorry if this is so confusing but it is really simple and I am sure I am forgetting something basic. All suggestions greatly appreciated.

Get Selection Index From Html Text Field
argh!

hey all,

has anyone had to get the selection indicies from a html enabled text area?

I'm using the

Selection.getBeginIndex()
and
Selection.getEndIndex()

but these are returning counts based on the visible text
BUT...
then when I need to do substring functions, the indicies refer to the whole string (html tags etc.)


does anyone have a clever idea??


thanks,
glenn

I Would Like To Have My Intro Animation Transition To My Html.index
I have an intro animiation that makes my homepage "appear" (zoom in buttons, fade in logo banner). When the movie clip is finished, I would like it to open the home page that is identical to the end of the clip with out the user really noticing. Is this possible?
The obstacles I encounter are:
1. I don't know the actionscript that makes the swf file appear in a "regular" browers (meaning with the toolbars and buttons)
2. I don't know how to open an html file from within the swf file (_self)

Thanks

RbnHd

How Do I Set My Flash To Play Only On First Visit To Index.html? :
Is there a way that once a movie has played and unloaded that if you bounce to a non-flash page (i.e. HTML (.htm/.asp) page) that when you back to the page it won't play that movie again.

I know it would be easier remaining in flash the entire time.
The movie I've loaded is an intro that I don't want played everytime a user hits the index.php again. Only the first time.

Thanx.

Does Using The Css Z-index Property For Flash In Html Work?
i'm putting together a hybrid html/flash site and i want some html text to be above a flash file but it appears to go behind the flash file. i've set the flash file to be z-index 1 and the text to be z-index 2. i've solved it by making the flash transparent but does anyone know why the z-index solution isn't working? thanks.

Index.html Won't Update-refers To Cache
I have a problem when I update .html and .swf files. It seems that some browsers update automatically while others refer to their cache. Even after clearing the cache, I still get the old files, even though they have been replaced with files of the same name.

To see an example of what I'm talking about go to the following address, then hit the home button. I changed the .html file so it no longer is published as a percentage, but it still retains the old file somehow:

www.redcatjazzcafe.com

Also, is there a way to get the logo and buttons to not have to reload with each page without making the whole website into one .swf file?

Index.html Page (get Me Full Screen)
Hi out there!

My question:

I have a swf. file and need to create a index.html site to open the swf file in browser. Does anybody has the code to emmbed my main_1.swf file and make it full screen?

Thanks in advance for your support.

ANB

Centering And Framing My .swf In My Index.html Code
I’m not familiar with JAVA script and I can’t figure out how to adjust the html “index” file obtained via the publish option in flash cs 3. I want to edit in Dreamweaver the html index file that contains my flash site so that my flash page is framed and centered on the page; it’s also important that the page retains the capabilities of AC_RunActiveContent which I plan on posting to my server. I don’t want users to have to approve the install activeX control every time. I’ve tried variations of code and tried to work through it, but no matter what I do I end up with a quarky outcome. The most common outcome is where the page is requesting to install activeX control despite the presence of my AC_RunActiveContent file and displays within the frame the error message that is meant for users who do not have a Flash Player Installed, yet if you simply accept the ActiveX control request the flash becomes viewable.. not drastically off, but really quarky. Can someone look at my code and make suggestions or better yet indicate for me what the correct code for this situation should look like? .......

The Index.html Doesn´t Work On The Website
Hi guys,

I just uploaded my first flash website (in as3) files from SmartFTP program into the web server including everything (swf, index.html and ac_runactive_content.js files). The problem is that when you visit on the site the preloader works fine (I think) but all I can see after the preloader goes away, is the menubar above the screen. And it doesn´t work.

the URL is

http://icemanclub.com

I think that all the publish settings are OK in the flash cs3 in the preloader.fla file and index.fla file. I have a UILoader on the top left corner in the preloader.fla file which should bring the index.swf file on to the stage on the website.

How To Center Flash Movie In Index.html
I dont know why my movie isnt auto centering in the browser. Even when i edit the publishing settings!!!!!!

Hello, I am having a lot of trouble figuring out which publish settings will allow my site to automatically center in the browser window. What i did for a while was in Publish Settings>Dimensions> I set it to pixels and made it 1000*500. That did not work even when i used the other settings to center it in the html. The size of my acctually movie is 800*550. I dont know why my movie isnt auto centering in the browser. Any help would be appreciated.

Server Does Not Recognize Index.html File
I am having a bit of trouble using Flash CS3. I have created my flash file, and publish it to my hard drive. There are two files, one is the flash.swf file, and the other is index.html. I used to put these two files on my server and everything worked fine, however, this is not the case since I have gotten CS3. Any suggestions?

I Would Like To Have My Intro Animation Transition To My Html.index
I have an intro animiation that makes my homepage "appear" (zoom in buttons, fade in logo banner). When the movie clip is finished, I would like it to open the home page that is identical to the end of the clip with out the user really noticing. Is this possible?
The obstacles I encounter are:
1.  I don't know the actionscript that makes the swf file appear in a "regular" browers (meaning with the toolbars and buttons)
2.  I don't know how to open an html file from within the swf file (_self)

Thanks

REL


The Index.html Doesn´t Work On The Website
Hi guys,

I just uploaded my first flash website (in as3) files from SmartFTP program into the web server including everything (swf, index.html and ac_runactive_content.js files). The problem is that when you visit on the site the preloader works fine (I think) but all I can see after the preloader goes away, is the menubar above the screen. And it doesn´t work.

here´s the URL

http://www.icemanclub.com


I think that all the publish settings are OK in the flash cs3 in the preloader.fla file and index.fla file. When you go and try yourself the site there´s an error what comes:

SecurityError: Error #2148: SWF file http://www.icemanclub.com/preloader.swf cannot access local resource H:Documents and SettingsadminMy Documentsflash_tyon_allawebsitehomebar.swf. Only local-with-filesystem and trusted local SWF files may access local resources.
at flash.display::Loader/_load()
at flash.display::Loader/load()
at fl.containers::UILoader/load()
at fl.containers::UILoader/set source()
at pageHome/__setProp___id7__pageHome_Layer1_1()
at pageHome()
at index_fla::MainTimeline/frame1()

the homebar.swf is below the pageHome in the index.fla. The pageHome includes only one picture and below that
is a UILoader which should load the file called "homebar.swf"

Here´s a picture of the stage
http://img103.imageshack.us/my.php?image=indexflaproblemwi8.jpg

How To Force Redirection Of Browser To Another HTML Upon Loading INDEX.HTM ?
If I want to prevent users from going through my files on my server, I will have to put in an "index.htm" in all my folders. So if they try to look at my folders, they will only get my "index.htm".

My question is, how can I in my "index.htm" force a redirection of the browser to my home page ? That way, no matter what folder they try to look at, they will always be automaticaly be directed to my home page.

I'm assuming it's done by <body ...OnLoad="ddd"> ???



p.s. : I know this won't block every body. It will at least block 90% of them and that's enough.

Flash Button Won't Go To Anchor <a> On The Same Webpage (index.html)
In the webpage with the swf I have an anchor at the bottom of the same page. (Im speaking of html anchors not flash anchors EG: a name="sd"></a>) I want the flash button to scroll the user to that part of the page with the anchor (#sd) I tried using GetURL but it only reloads the page(index.html)without going to the anchor (index.html#sd). I really need a way for a flash button to point to anchors on a webpage but now I'm really frustrated. is there a way to do this that actually works?

Linking Flash Index.htm To A Regular .html File?
I have a flash intro and once it is done I want to link the "enter" button and "skip intro" button to a regular .html file called Main.html. how would I go about doing this in actionscript?

I dont want the .html file to open inside flash or anything, just a new window.

Using History.js Combined With Flash Index.html#portfolio
Hi,

Been trying to figure this one out for a while. Hopefully someone can point me in the right direction.

What Id like to do is to pass variales from flash to javascript and vice versa.

Why? Well Id like visitors to be able to bookmark for instance www.name.com/index.html#client?id=name
I think Ive figured out how to send variables to flash using swfobject but Im no where near figuring out how to change url to #contact without reloading the swf.

I see many sites that does this use history.js combined with swfobject/flashobject
www.fantasyinteractive.com
www.2advanced.com
www.bigleoproductions.com

Does anyone out there know anyting about this and can give me some tips and pointers. Id really, really appreciate it.

Help With Index HTML Embed Code - Version Detection Etc.
Hi there
Really need some help with the index html page.
Someone redid my code to fix an active x issue but the original version detection/install code was lost so its not got any help for visitors and getting reports of site not working as a result.

Please check
www.thebrightgolfcompany.co.uk

Id be really grateful foir a quick fix with best code to add to index.

Please let me know what you advise to get the site working as well as possible - Thank you!!

Is There A Way To Get The Cursor Position Index Of Html Text Field
I'm trying to work on a text pad like MC with "insert text at position X" and "find and replace" can anyone tell me how to find the cursor index of an html text field. Selection.getBeginIndex() , Selection.getEndIndex(), Selection.getCaretIndex() as far as I know these methods only work with text and not htmltext.
What I'm trying to do is assign different parts of the string to variables so that I can combine them to reconstitute my html string.

The Index.html File Doesn´t Work On Website
Hi guys,

I just uploaded my first flash website (in as3) files from SmartFTP program into the web server including everything (swf, index.html and ac_runactive_content.js files). The problem is that when you visit on the site the preloader works fine (I think) but all I can see after the preloader goes away, is the menubar above the screen. And it doesn´t work.

The URL is Icemanclub.com

I think that all the publish settings are OK in the flash cs3 in the preloader.fla file and index.fla file

Hiding Index.html In Address Bar And Just Showing Domain Name
Does anyone know now to hide extensions on a website? for example if my domain name is:

Kirupa.com

how would I hide lets say kirupa.com/index.htm when the site first pops up?

Please Help With Code (attachMovie,Array[index],linked Buttons)
Please, please, on my knees, could someone have a glance over this code and offer some answers as to why the buttons are not working.
I am trying to morph to files so as I have the functionability of the buttons and the advantage of fading into two levels to decrease CPU grind.

Thanks (perhaps some knees pads will be in my stocking!)

zipped file attached ((PC) MX 2004)

//Main file


ActionScript Code:
var swfArray = new Array("mixed/1.jpg", "mixed/2.jpg", "mixed/3.jpg")
var totalNumPics:Number = swfArray.length;
var maxDepth = 1000;
var cpicnum = 0;
var xi = 50;
var yi = 20;
var btnWidth = 25;
var currentpic = 0;
var buttonHolder = visible(false)
////////////////////////////////////////////
function loadNextPic() {
    if (_root.cpicnum<_root.totalNumPics) {
        var pic_mcl = new MovieClipLoader();
        var listener:Object = new Object();
        listener.onLoadProgress = function(target:MovieClip, bytesLoaded:Number, bytesTotal:Number) {
            trace(target+".onLoadProgress with "+bytesLoaded+" bytes of "+bytesTotal);
            _root.percent = int(bytesLoaded*100/bytesTotal);
        };
        listener.onLoadComplete = function(target_mc:MovieClip, httpStatus:Number) {
            _root.percent = "Done!";
            var param = {_x:(_root.xi+_root.cpicnum*_root.btnWidth), _y:_root.yi};
            var temp = _root.attachMovie("btn", "btn"+_root.cpicnum, _root.getNextHighestDepth(), param);
            temp.num = _root.cpicnum+1;
            _root.cpicnum++;
            loadNextPic();
        };
        //
        var target1 = _root.attachMovie("picHolder1", "picHolder1"+cpicnum, 1, {_x:50, _y:50});
        var target2 = _root.attachMovie("picHolder2", "picHolder2"+cpicnum, 2, {_x:50, _y:50});
        pic_mcl.loadClip(swfArray[0], target2);
        pic_mcl.addListener(listener);
        ///////
        target1._alpha = 100;
        target2._alpha = 0;
        activeTarget = target1;
        currentIndex = 0;
        target1.loadMovie(swfArray[0]);
    }
}
onEnterFrame = function () {
    if (obj1._alpha>0) {
        obj1._alpha -= 10;
    }
    if (obj2._alpha<100) {
        obj2._alpha += 10;
    }
   
};
loadNextPic();
this._lockroot = true;

Code on button


ActionScript Code:
this.onRelease=function(){
    if (_root.activeTarget == _root.target1) {
        _root.obj1 = _root.target1;
        _root.obj2 = _root.activeTarget = _root.target2;
    } else {
        _root.obj1 = _root.target2;
        _root.obj2 = _root.activeTarget = _root.target1;
    }
    ///index below is just a test to see if obj2 is in fact loading. Ideally I need for the index to find the current picture number??///
    _root.currentIndex = 6;
   
    //load content into second clip
    _root.obj2.loadMovie(_root.swfArray[6])
}

Script To Make Index.html Load Full Screen, Even On Mac?
When it loads, I would like my index.html to go full screen (NOT the page that holds my .swf, I know how to get that one to go full screen)
It's the first page that the user comes into, then clicks on the "enter" button to launch the html that has the .swf in it....

see it here:
http://www.noquo.com/mathscience

I want it to be full screen so the small popup window that has my .swf file will be over a solid color that covers the entire screen.

I have found a couple scripts but they don't seem to work on a Mac!?!? They only make the window a little bigger.

Any ideas?
Thanks!
Schimke

***. Arrarys, Finding Index, Loading Called Pic From Found Index
I am fairly new to flash, so thanks for bearing with me - here is my problem -
1. I have a bunch of associated arrays, populated from an xml file.
2. I have a dyn mc that displays thumbs, based on the info from the arrays.
3. if the user clicks on the thumb, I want the on release to trigger (among other things) a function that will find the index of, say, "houseID" so I can then apply that index in loading up a different(big) jpg , and other info pertinent to that thumb.
here is my code for the button:
on (release) {
//carry ID being the variable passed thru "oneHouse" function
CarryID=this.houseID;

trace("houseid"+houseID);
_parent.oneHouse(CarryID)
//"big" being the frame label
_parent.play("big")
}

-----------------------
here is code from a frame -

foundIndex = findByID(CarryID);
if (foundIndex != null) {
/*set dynamic textbox values from Arrays
all this stuff is not set up yet...
txtLocation = houseLocationArray[foundIndex];
txtBed = houseBedArray[foundIndex];
txtBath = houseBathArray[foundIndex];
txtPrice = housePriceArray[foundIndex];
//set dynamic jpeg clip from value of photoArray
loadMovie(houseBigpicArray[foundIndex], BigphotoClip);
*/

trace("foundIndex!=null");

}
else{
trace("foundIndex really=null");
}

function findByID(houseID) {
//loop through the IDArray
for (j=0; j<houseIDArray.length; j++) {
//if the passed argument equals an Array value...
if (houseIDArray[j] ==houseID) {
//return the index of the matching value
return j;

}
}
//if nothing is ever found, return null
trace("foundIndex2=null");
return null;
}

gotoAndStop("big");

}

thanks for anyone that can help me with this!!

***. Arrarys, Finding Index, Loading Called Pic From Found Index
I am fairly new to flash, so thanks for bearing with me - here is my problem -
1. I have a bunch of associated arrays, populated from an xml file.
2. I have a dyn mc that displays thumbs, based on the info from the arrays.
3. if the user clicks on the thumb, I want the on release to trigger (among other things) a function that will find the index of, say, "houseID" so I can then apply that index in loading up a different(big) jpg , and other info pertinent to that thumb.
here is my code for the button:
on (release) {
//carry ID being the variable passed thru "oneHouse" function
CarryID=this.houseID;

trace("houseid"+houseID);
_parent.oneHouse(CarryID)
//"big" being the frame label
_parent.play("big")
}

-----------------------
here is code from a frame -

foundIndex = findByID(CarryID);
if (foundIndex != null) {
/*set dynamic textbox values from Arrays
all this stuff is not set up yet...
txtLocation = houseLocationArray[foundIndex];
txtBed = houseBedArray[foundIndex];
txtBath = houseBathArray[foundIndex];
txtPrice = housePriceArray[foundIndex];
//set dynamic jpeg clip from value of photoArray
loadMovie(houseBigpicArray[foundIndex], BigphotoClip);
*/

trace("foundIndex!=null");

}
else{
trace("foundIndex really=null");
}

function findByID(houseID) {
//loop through the IDArray
for (j=0; j<houseIDArray.length; j++) {
//if the passed argument equals an Array value...
if (houseIDArray[j] ==houseID) {
//return the index of the matching value
return j;

}
}
//if nothing is ever found, return null
trace("foundIndex2=null");
return null;
}

gotoAndStop("big");

}

thanks for anyone that can help me with this!!

Txtfield.htmlText Ignoring "<a Href=index.html#"?
Hmm... why is a dynamic textfield ignoring this part

Code:
City1.htmlText = "<a href=index.html#";
of my code code ?
Here's a quick .Fla with this part isolated. When I run a Test Movie, City1 shows

Code:
04.06.08>New York, NY
i.e., it shows everything that comes after "<a href=index.html#";...
Here's the full relevant code snippet:

Code:
var dat:String = Dat1.htmlText = "04.06.2008";
var cityLnkNTxt:String = "<a name='#04.06.08'>New York, NY</a>";
var cityNoLnk:String = cityLnkNTxt.slice(cityLnkNTxt.indexOf(">",0)+1, cityLnkNTxt.lastIndexOf("<"));
var getLnkpt1:String = dat.slice(0,6);
var getLnkpt2:String = dat.slice(8,10);

City1.htmlText = "<a href=/index.html#";
City1.htmlText += getLnkpt1;
City1.htmlText += getLnkpt2;
City1.htmlText += ">";
City1.htmlText += cityNoLnk;
City1.htmlText += "</a>";
stop();
Can anyone check this out?

HTTP Status 404 Http://localhost:8080/flashservices/index.html
Why if I type "http://localhost:8080/flashremoting/gateway" (flashremoting is the context root)in the address bar, I will get a HTTP Status 404 error: The requested resource (/flashservices/index.html) is not available.
If every thing is ok, it should show a blank page, right?
Thanks

By the way, if I set gateWayUrl to "http://localhost:8080/flashremoting/gateway", I will get an error of "flashgateway.adapter.NoSuchServiceException: No service named flashremoting is known to Flash Remoting MX."
if I set it to "http://localhost:8080/flashremoting/", I will get an error of "NetConnection.call.BadVersion"!

I am quite confused now, can anyone help me out?
I am using flash mx 2004 pro, flash remoting mx with components installed. And tomcat 5.0

How To Reveal A .swf Server Directory Behind A Host Html Index File To Save A Flash File To HD?
I FIND YOUR FLASH FORMAT EXTREMELY USER-UNFRIENDLY.
I spent two weeks to figure out how to save a complete .swf file to my local drive.
Finding 48 files behind a main html doc hosting those .swf's took 48 hours.
(Now I can't move my arm anymore due to RSI!)

No application to save a Flash file, seems to be able to do that in 1,2,3 convenient steps.
I always get bits and pieces or individual graphics.

I NEVER GET THE ENTIRE MANUAL the way I can browse the Flash file in my browser.
I am seriously thinking of never browsing a Flash file again if there is no solution to download e.g. a manual of my digital camera. I have the right to browse such a file at my convenience either on or offline! Online it's just impossible due to server overload.

Now I only get the desadvantages of the format to deal with (e.g. tons of spamming advertising) whereas I should be able to enjoy the benefits. Eventhough I gave the manufacturer the right to fill up 10 MB on my drive, I never got a file on my PC. And even when I did, I wouldnt know where to find it...
I hope Adobe would listen to the user more often...

WHY DON'T YOU BUILD SOLUTIONS AS EASY AS A RIGHT MOUSE CLICK
ALLOWING FOR SAVING A FLASH FILE!
That can't be rocket science, is it?

Thank you for paying attention to your customers.





























Edited: 10/29/2007 at 11:45:18 AM by VOGAN

How Can I Load Another Movie Into My Index Page From Another Movie I Have In My Index
Need help:

How to load a movie into my original index. I have an index and i need to load the locacion into the same index, from a link from clicking another movie i have in the index. plz help hope u undeztood

Buttons And Html
I think I am posing this in the right area. To begin with, I have a swf file containing 4 buttons or so. My site has two frames. The left smaller window for the menu, where the buttons go, and the larger right one for the main site content. I have figured out how to add the swf file to the html in the left frame, but no matter what option I seem to choose for 'window' in GetURL I can not get it to load in the right frame, just the menu frame or a new window all together. Any help would be most apreciated, and thank you in advance.

Oh right, and I am using flash mx

Buttons In Html
I have a dynamic text box with a scroll bar, with the information being loaded from a text file I am wondering if you can insert either some actionscript or html code into the text file which will display a button at the bottom of the text field which I could use to download files

HTML Buttons
I already found this code
it works only then html is loaded into flash:

In HTML:

<a href="asfunction:_root.func,10">Activate Function</a>

In Flash root:

function func(par) {
.....
}
But what do i have to do when I want to use a button instead of a link?

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