Part of the EllisLab Network
   
 
Need help for Flash file in view
Posted: 09 August 2006 07:42 AM   [ Ignore ]  
Summer Student
Total Posts:  8
Joined  08-09-2006

Hi

I am a new with CI and I need to use some flash animation in my view page but I don’t know hoe to do it would you please give me some tips

Thank you

Profile
 
 
Posted: 09 August 2006 08:55 AM   [ Ignore ]   [ # 1 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  351
Joined  07-25-2006

The view is pretty much just an HTML page, so you would embed it the same was as you would with a HTML page. Try Google.

 Signature 

me and some random code, hosted by dh. and a blog too! ++ dead bugs

Profile
 
 
Posted: 09 August 2006 09:36 AM   [ Ignore ]   [ # 2 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  256
Joined  03-25-2006

You could check out this URL to embed flash content and replace with HTML if no flash player is available:
http://blog.deconcept.com/flashobject/

Profile
 
 
Posted: 09 August 2006 10:30 AM   [ Ignore ]   [ # 3 ]  
Administrator
Avatar
RankRankRankRankRankRank
Total Posts:  7337
Joined  03-23-2006

I second LuckyFella’s suggestion.  flashobject rocks my world, fails gracefully and is generally very nice.  The disadvantage (if you want to call it that) is that it requires some external js libs and some people struggle figuring out paths in CI.  If you are unsure of how to go about this, and you aren’t sharing your code for others, use absolute paths.  For example , src=”/js/flashobject.js”

 Signature 

DerekAllard.com - CodeIgniter, ExpressionEngine, and the World of Web Design
BambooInvoice - Open Source, CodeIgniter powered invoicing.

Profile
MSG
 
 
Posted: 09 August 2006 02:42 PM   [ Ignore ]   [ # 4 ]  
Summer Student
Total Posts:  8
Joined  08-09-2006

Hi gentleman

Thank you for your fast replay. I actually tried assets_helper (http://codeigniter.com/forums/viewthread/45055/) in order to manage my image and CSS tagging and also I’ve flashobject javascripts store in my javascripts folder and I use this tag to call the *.js file

<?=add_jscript('swfobject.js')?>

and I’m pretty sure it including the *.js file in to my html and I have

      // <![CDATA[
     
      var so = new SWFObject(“so_tester.swf”, “sotester”, “300”, “300”, “8.0.23”, “#FF6600”, true);
      so.addVariable(“flashVarText”, “this is passed in via FlashVars”); // this line is optional, but this example uses the variable and displays this text inside the flash movie
      so.write(“flashcontent”);
     
      // ]]>
  </script>

 

For embedding the flash file but still I don’t see anything on browser (FireFox & IE) :( ??? Also because I’m not sure where to store my *.swf file I copied the flash file on every possible folder (I know sound stupid) . Any taught?

Sorry for my bad English.

Profile
 
 
Posted: 09 August 2006 02:55 PM   [ Ignore ]   [ # 5 ]  
Administrator
Avatar
RankRankRankRankRankRank
Total Posts:  7337
Joined  03-23-2006

Hey Beta.

What address is the page located at?  What address is the .swf located at?  If I can see the page I can help diagnose.

Derek

 Signature 

DerekAllard.com - CodeIgniter, ExpressionEngine, and the World of Web Design
BambooInvoice - Open Source, CodeIgniter powered invoicing.

Profile
MSG
 
 
Posted: 09 August 2006 03:05 PM   [ Ignore ]   [ # 6 ]  
Summer Student
Total Posts:  8
Joined  08-09-2006

Hi

URL: http://localhost/mvc/API/

At the framework: system>application>views

Profile
 
 
Posted: 09 August 2006 03:07 PM   [ Ignore ]   [ # 7 ]  
Administrator
Avatar
RankRankRankRankRankRank
Total Posts:  7337
Joined  03-23-2006

It is available online?

 Signature 

DerekAllard.com - CodeIgniter, ExpressionEngine, and the World of Web Design
BambooInvoice - Open Source, CodeIgniter powered invoicing.

Profile
MSG
 
 
Posted: 09 August 2006 03:08 PM   [ Ignore ]   [ # 8 ]  
Summer Student
Total Posts:  8
Joined  08-09-2006

No but i can upload it

Profile
 
 
Posted: 09 August 2006 03:10 PM   [ Ignore ]   [ # 9 ]  
Administrator
Avatar
RankRankRankRankRankRank
Total Posts:  7337
Joined  03-23-2006

That would make things easier for me to debug.

 Signature 

DerekAllard.com - CodeIgniter, ExpressionEngine, and the World of Web Design
BambooInvoice - Open Source, CodeIgniter powered invoicing.

Profile
MSG
 
 
Posted: 09 August 2006 03:13 PM   [ Ignore ]   [ # 10 ]  
Summer Student
Total Posts:  8
Joined  08-09-2006

SURE i’ll Do it now

Profile
 
 
Posted: 09 August 2006 03:17 PM   [ Ignore ]   [ # 11 ]  
Summer Student
Total Posts:  8
Joined  08-09-2006

here is the link:

http://www.hutmove.co.uk/hutmove/API/index.php/welcome

Profile
 
 
Posted: 09 August 2006 03:23 PM   [ Ignore ]   [ # 12 ]  
Administrator
Avatar
RankRankRankRankRankRank
Total Posts:  7337
Joined  03-23-2006

I think you might want to read the instructions at the swfobject site again.  You seem to be missing a div called “sotester” which the script needs to put the flash into.

PS: nice design.

 Signature 

DerekAllard.com - CodeIgniter, ExpressionEngine, and the World of Web Design
BambooInvoice - Open Source, CodeIgniter powered invoicing.

Profile
MSG
 
 
Posted: 09 August 2006 03:26 PM   [ Ignore ]   [ # 13 ]  
Summer Student
Total Posts:  8
Joined  08-09-2006

smile Thanks I’m new in design specially framework it’s my first framework experience and I do appreciate your help. if i stock i’ll let you know

Thank You

Profile
 
 
Posted: 09 August 2006 03:49 PM   [ Ignore ]   [ # 14 ]  
Summer Student
Total Posts:  8
Joined  08-09-2006

Hi
I found the problem, I forgotten to use div id=“flashcontent” before my flash tag

Thanks to everybody

Profile
 
 
Posted: 06 March 2008 03:45 AM   [ Ignore ]   [ # 15 ]  
Grad Student
Avatar
Rank
Total Posts:  85
Joined  11-12-2007

Nice Solution! It is ROCKING my world now too. Hehe.. Thanks CodeIgniters!

 Signature 

“Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.”

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 819, on March 11, 2010 10:15 AM
Total Registered Members: 119722 Total Logged-in Users: 28
Total Topics: 125907 Total Anonymous Users: 3
Total Replies: 662460 Total Guests: 350
Total Posts: 788367    
Members ( View Memberlist )