Sideas
asked on
deep linking with frame anchors doesn't load external swfs
Hi, I'm using Frame Anchors to jump straight to certain points on a timeline.
This does work, but code to load an external swf on that frame is unsuccessful.
when I go to:
http://www.idealogyltd.com/test/id/newGallery/test.html the red shape swf loads
but
when I force the playhead to the frame via an anchor:
http://www.idealogyltd.com/test/id/newGallery/test.html#advertising
the red shape doesn't load! I know it is successfully going to the anchor though because the green square is only on that frame!
Anybody any ideas?
Thanks, Paul
This does work, but code to load an external swf on that frame is unsuccessful.
when I go to:
http://www.idealogyltd.com/test/id/newGallery/test.html the red shape swf loads
but
when I force the playhead to the frame via an anchor:
http://www.idealogyltd.com/test/id/newGallery/test.html#advertising
the red shape doesn't load! I know it is successfully going to the anchor though because the green square is only on that frame!
Anybody any ideas?
Thanks, Paul
ASKER
Hi dgofman - I've put the base URL in, but no luck. html now looks like below:
<object classid="clsid:d27cdb6e-ae 6d-11cf-96 b8-4445535 40000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="717" height="531" id="test" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="test.swf" /><param name="quality" value="high" /><param name="base" value="http://www.idealogyltd.com/test/id/newGallery/"><embed src="test.swf" quality="high" bgcolor="#ffffff" width="717" height="531" name="test" align="middle" swLiveConnect="true" allowScriptAccess="sameDom ain" type="application/x-shockw ave-flash" pluginspage="http://www.adobe.com/go/getflashplayer"/>
</object>
<!--bookmarks used in the movie-->
<a name="advertising"></a>
why would the anchor stop it loading though?
The AS3 is just a loader for a swf in the same folder!
var swfLoader1:Loader = new Loader();
placeHolder.addChild(swfLo ader1);
var bgURL1:URLRequest = new URLRequest("loaded.swf");
swfLoader1.contentLoaderIn fo.addEven tListener( Event.COMP LETE, loadProdComplete);
swfLoader1.load(bgURL1);
<object classid="clsid:d27cdb6e-ae
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="test.swf" /><param name="quality" value="high" /><param name="base" value="http://www.idealogyltd.com/test/id/newGallery/"><embed src="test.swf" quality="high" bgcolor="#ffffff" width="717" height="531" name="test" align="middle" swLiveConnect="true" allowScriptAccess="sameDom
</object>
<!--bookmarks used in the movie-->
<a name="advertising"></a>
why would the anchor stop it loading though?
The AS3 is just a loader for a swf in the same folder!
var swfLoader1:Loader = new Loader();
placeHolder.addChild(swfLo
var bgURL1:URLRequest = new URLRequest("loaded.swf");
swfLoader1.contentLoaderIn
swfLoader1.load(bgURL1);
That strange problem can you submit your FLA file I will play I think the probelm in Flash Player so we need to find workaround. I never use an anchor in my URL
ASKER
Hi dgofman - It won't let me attach the files for some reason! You can download them here:
http://www.idealogyltd.com/test/anchors.zip
(the reason I need to use anchors is that I need to be able to jump straight to certain sections of a gallery)
Cheers, Paul
http://www.idealogyltd.com/test/anchors.zip
(the reason I need to use anchors is that I need to be able to jump straight to certain sections of a gallery)
Cheers, Paul
Don't ask me why but If I will change in test.fla in the anchors layout frame one you frame name from "advertising" to any other such as "myadvertising" I can use "advertising" anchor
test.html#advertising
However you will get the same error by using test.html#myadvertising
I think frame name shouldn't be match to the anchor URL
test.html#advertising
However you will get the same error by using test.html#myadvertising
I think frame name shouldn't be match to the anchor URL
The workaround to create on first frame a keyframe as blank and on the second frame create a keyframe with name "advertising"
after loading complete go to the second frame
I attached new FLA
test.fla
after loading complete go to the second frame
I attached new FLA
test.fla
ASKER
Hi dgofman, mmmm, thanks for that - although it doesn't load the swf at that frame still.
BUT! doesn't give an error as it sets the 'success' MC (red graphic) to visible on Event.COMPLETE
http://www.idealogyltd.com/test/id/newGallery/fixed/test.html#advertising
but what it should display is like here:
http://www.idealogyltd.com/test/id/newGallery/fixed/test.html
It's really weird.
Any more ideas?
BUT! doesn't give an error as it sets the 'success' MC (red graphic) to visible on Event.COMPLETE
http://www.idealogyltd.com/test/id/newGallery/fixed/test.html#advertising
but what it should display is like here:
http://www.idealogyltd.com/test/id/newGallery/fixed/test.html
It's really weird.
Any more ideas?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi dgofman...but I want the SWF to load and it's not! That's the problem!
Any ideas?
Thanks, Paul
Any ideas?
Thanks, Paul
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
OK thanks everyone
http://kb2.adobe.com/cps/127/tn_12701.html
base - [base directory] or [URL]. Specifies the base directory or URL used to resolve all relative path statements in the SWF. This attribute is helpful when your SWF file is kept in a different directory from your other files.